Skip to content

Commit

Permalink
feat: Add contact identification settings (#32893)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustrb authored Jul 25, 2024
1 parent 9397779 commit 81c9ea0
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/smooth-beans-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@rocket.chat/meteor": patch
"@rocket.chat/i18n": patch
---

Added the `Livechat_Block_Unknown_Contacts`, `Livechat_Block_Unverified_Contacts`, `Livechat_Contact_Verification_App`, `Livechat_Request_Verification_On_First_Contact_Only` settings to control how the app is going to verify a contact's identity
45 changes: 45 additions & 0 deletions apps/meteor/ee/app/livechat-enterprise/server/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,51 @@ export const createSettings = async (): Promise<void> => {
invalidValue: '',
});
});

await this.add('Livechat_Block_Unknown_Contacts', false, {
type: 'boolean',
public: true,
hidden: true,
enableQuery: omnichannelEnabledQuery,
invalidValue: false,
section: 'Contact_identification',
enterprise: true,
modules: ['livechat-enterprise'],
});

await this.add('Livechat_Block_Unverified_Contacts', false, {
type: 'boolean',
public: true,
hidden: true,
enableQuery: omnichannelEnabledQuery,
invalidValue: false,
section: 'Contact_identification',
enterprise: true,
modules: ['livechat-enterprise'],
});

await this.add('Livechat_Contact_Verification_App', '', {
type: 'select',
public: true,
hidden: true,
values: [{ key: 'VerifyChat', i18nLabel: 'VerifyChat' }],
enableQuery: omnichannelEnabledQuery,
invalidValue: '',
section: 'Contact_identification',
enterprise: true,
modules: ['livechat-enterprise'],
});

await this.add('Livechat_Request_Verification_On_First_Contact_Only', false, {
type: 'boolean',
public: true,
hidden: true,
enableQuery: omnichannelEnabledQuery,
invalidValue: false,
section: 'Contact_identification',
enterprise: true,
modules: ['livechat-enterprise'],
});
});

await settingsRegistry.add('Livechat_AdditionalWidgetScripts', '', {
Expand Down
5 changes: 5 additions & 0 deletions packages/i18n/src/locales/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3256,6 +3256,10 @@
"Omnichannel_placed_chat_on_hold": "Chat On Hold: {{comment}}",
"Omnichannel_hide_conversation_after_closing": "Hide conversation after closing",
"Omnichannel_hide_conversation_after_closing_description": "After closing the conversation you will be redirected to Home.",
"Livechat_Block_Unknown_Contacts": "Block unknown contacts",
"Livechat_Block_Unverified_Contacts": "Block unverified contacts",
"Livechat_Contact_Verification_App": "Contact verification app",
"Livechat_Request_Verification_On_First_Contact_Only": "Request verification on first contact only",
"Livechat_Queue": "Omnichannel Queue",
"Livechat_registration_form": "Registration Form",
"Livechat_registration_form_message": "Registration Form Message",
Expand Down Expand Up @@ -6274,6 +6278,7 @@
"Omnichannel_transcript_pdf": "Export chat transcript as PDF.",
"Accounts_Default_User_Preferences_omnichannelTranscriptPDF_Description": "Always export the transcript as PDF at the end of conversations.",
"Contact_email": "Contact email",
"Contact_identification": "Contact identification",
"Customer": "Customer",
"Time": "Time",
"Omnichannel_Agent": "Omnichannel Agent",
Expand Down

0 comments on commit 81c9ea0

Please sign in to comment.