import { Notification, toast } from '@/components/ui' import { generateBackgroundWorkers } from '@/proxy/background-worker/background-worker.service' import { useLocalization } from '@/utils/hooks/useLocalization' export abstract class UiEvalService { static Init = () => { //console.log('init') } static ApiGenerateBackgroundWorkers = () => { const { translate } = useLocalization() const asyncCall = async () => { await generateBackgroundWorkers() } asyncCall() toast.push( {translate('::App.BackgroundWorkers.Message')} , { placement: 'top-center', }, ) } } const _global = (window || global) as any _global.UiEvalService = UiEvalService