The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/ee/server/startup/engagementDashboard.ts

19 lines
615 B

import { Meteor } from 'meteor/meteor';
import { onToggledFeature } from '../../app/license/server/license';
onToggledFeature('engagement-dashboard', {
up: () =>
Meteor.startup(async () => {
const { prepareAnalytics, prepareAuthorization, attachCallbacks } = await import('../lib/engagementDashboard/startup');
await prepareAuthorization();
await prepareAnalytics();
attachCallbacks();
await import('../api/engagementDashboard');
}),
down: () =>
Meteor.startup(async () => {
const { detachCallbacks } = await import('../lib/engagementDashboard/startup');
detachCallbacks();
}),
});