Rocket.Chat/apps/meteor/ee/app/livechat-enterprise/server/index.ts
Lucas Pelegrino ee928a66cc chore!: removes livechat:saveTag deprecated method (#37663)
Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
2025-12-20 15:44:23 -03:00

42 lines
1.3 KiB
TypeScript

import { License } from '@rocket.chat/license';
import { patchOmniCore } from '@rocket.chat/omni-core-ee';
import { Meteor } from 'meteor/meteor';
import './methods/addMonitor';
import './methods/removeBusinessHour';
import './hooks/afterTakeInquiry';
import './hooks/beforeNewInquiry';
import './hooks/beforeNewRoom';
import './hooks/beforeRoutingChat';
import './hooks/checkAgentBeforeTakeInquiry';
import './hooks/handleNextAgentPreferredEvents';
import './hooks/onCheckRoomParamsApi';
import './hooks/onLoadConfigApi';
import './hooks/onSaveVisitorInfo';
import './hooks/scheduleAutoTransfer';
import './hooks/resumeOnHold';
import './hooks/afterOnHold';
import './hooks/onTransferFailure';
import './lib/routing/LoadBalancing';
import './lib/routing/LoadRotation';
import './lib/AutoCloseOnHoldScheduler';
import './business-hour';
import './api';
import { createDefaultPriorities } from './priorities';
patchOmniCore();
await License.onLicense('livechat-enterprise', async () => {
require('./hooks');
await import('./startup');
const { createPermissions } = await import('./permissions');
const { createSettings } = await import('./settings');
await import('./lib/unit');
Meteor.startup(() => {
void createSettings();
void createPermissions();
void createDefaultPriorities();
});
});