From 17dd1197aa17e59b5081879a3df9fb06d3fb2c5e Mon Sep 17 00:00:00 2001 From: gustrb Date: Wed, 16 Oct 2024 07:19:10 -0300 Subject: [PATCH] chore: move service into correct license --- apps/meteor/ee/app/contact-id-verification/server/index.ts | 1 + .../server/services/omnichannelService.ts} | 3 +-- apps/meteor/ee/server/index.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 apps/meteor/ee/app/contact-id-verification/server/index.ts rename apps/meteor/ee/app/{livechat-enterprise/server/services/omnichannel.ts => contact-id-verification/server/services/omnichannelService.ts} (89%) diff --git a/apps/meteor/ee/app/contact-id-verification/server/index.ts b/apps/meteor/ee/app/contact-id-verification/server/index.ts new file mode 100644 index 0000000000000..103151b34ea20 --- /dev/null +++ b/apps/meteor/ee/app/contact-id-verification/server/index.ts @@ -0,0 +1 @@ +import './services/omnichannelService'; diff --git a/apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.ts b/apps/meteor/ee/app/contact-id-verification/server/services/omnichannelService.ts similarity index 89% rename from apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.ts rename to apps/meteor/ee/app/contact-id-verification/server/services/omnichannelService.ts index b6396ea61292b..a26ab6eb63a6d 100644 --- a/apps/meteor/ee/app/livechat-enterprise/server/services/omnichannel.ts +++ b/apps/meteor/ee/app/contact-id-verification/server/services/omnichannelService.ts @@ -5,8 +5,7 @@ import { LivechatContacts } from '@rocket.chat/models'; import { settings } from '../../../../../app/settings/server'; import { OmnichannelService } from '../../../../../server/services/omnichannel/service'; -// TODO: add correct license: 'chat.rocket.contact-id-verification' -await License.overwriteClassOnLicense('livechat-enterprise', OmnichannelService, { +await License.overwriteClassOnLicense('chat.rocket.contact-id-verification', OmnichannelService, { async isUnverifiedContact(room: AtLeast): Promise { if (!room.v.contactId) { return false; diff --git a/apps/meteor/ee/server/index.ts b/apps/meteor/ee/server/index.ts index 744de6f0c3cac..e81bb032b01f8 100644 --- a/apps/meteor/ee/server/index.ts +++ b/apps/meteor/ee/server/index.ts @@ -6,6 +6,7 @@ import '../app/canned-responses/server/index'; import '../app/livechat-enterprise/server/index'; import '../app/message-read-receipt/server/index'; import '../app/voip-enterprise/server/index'; +import '../app/contact-id-verification/server/index'; import '../app/settings/server/index'; import './api'; import './requestSeatsRoute';