Skip to content

Commit

Permalink
CRS move voip ee files inside a seperate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza98 committed Jun 3, 2022
1 parent c0bd826 commit e902f43
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/meteor/ee/app/livechat-enterprise/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import './lib/routing/LoadRotation';
import './lib/AutoCloseOnHoldScheduler';
import { onLicense } from '../../license/server';
import './business-hour';
import './services/voipService';

onLicense('livechat-enterprise', () => {
require('./api');
Expand Down
1 change: 1 addition & 0 deletions apps/meteor/ee/app/voip-enterprise/server/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './services/voipService';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IVoipRoom } from '@rocket.chat/core-typings';

import { PbxEvent } from '../../../../../../app/models/server/raw';
import { PbxEvent } from '../../../../../app/models/server/raw';

export const calculateOnHoldTimeForRoom = async (room: IVoipRoom, closedAt: Date): Promise<number> => {
if (!room.callUniqueId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { IRoomClosingInfo, IVoipRoom } from '@rocket.chat/core-typings';
import { IOmniRoomClosingMessage } from '../../../../../server/services/omnichannel-voip/internalTypes';
import { OmnichannelVoipService } from '../../../../../server/services/omnichannel-voip/service';
import { overwriteClassOnLicense } from '../../../license/server';
import { calculateOnHoldTimeForRoom } from '../lib/voip/helper';
import { calculateOnHoldTimeForRoom } from '../lib/calculateOnHoldTimeForRoom';

overwriteClassOnLicense('livechat-enterprise', OmnichannelVoipService, {
getRoomClosingData(
Expand Down
1 change: 1 addition & 0 deletions apps/meteor/ee/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import '../app/auditing/server/index';
import '../app/authorization/server/index';
import '../app/canned-responses/server/index';
import '../app/livechat-enterprise/server/index';
import '../app/voip-enterprise/server/index';
import '../app/settings/server/index';
import '../app/teams-mention/server/index';
import './api';
Expand Down

0 comments on commit e902f43

Please sign in to comment.