Improve naming for twilio department param (#23725)

pull/23744/head
Murtaza Patrawala 4 years ago committed by GitHub
parent 7660464d08
commit 485676a005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/livechat/imports/server/rest/sms.js
  2. 2
      packages/rocketchat-i18n/i18n/en.i18n.json

@ -69,8 +69,8 @@ API.v1.addRoute('livechat/sms-incoming/:service', {
post() {
const SMSService = SMS.getService(this.urlParams.service);
const sms = SMSService.parse(this.bodyParams);
const { departmentName } = this.queryParams;
let targetDepartment = defineDepartment(departmentName || SMS.department);
const { department } = this.queryParams;
let targetDepartment = defineDepartment(department || SMS.department);
if (!targetDepartment) {
targetDepartment = defineDepartment(SMS.department);
}

@ -3911,7 +3911,7 @@
"Smileys_and_People": "Smileys & People",
"SMS": "SMS",
"SMS_Default_Omnichannel_Department": "Omnichannel Department (Default)",
"SMS_Default_Omnichannel_Department_Description": "If set, all new incoming chats initiated by this integration will be routed to this department.\nThis setting can be overwritten by passing departmentName query param in the request.\ne.g. https://<SERVER_URL>/api/v1/livechat/sms-incoming/twilio?departmentName=< departmentName>.\nDepartment name should be URL safe.",
"SMS_Default_Omnichannel_Department_Description": "If set, all new incoming chats initiated by this integration will be routed to this department.\nThis setting can be overwritten by passing department query param in the request.\ne.g. https://<SERVER_URL>/api/v1/livechat/sms-incoming/twilio?department=<Department Id or Name>.\nNote: if you're using Department Name, then it should be URL safe.",
"SMS_Enabled": "SMS Enabled",
"SMTP": "SMTP",
"SMTP_Host": "SMTP Host",

Loading…
Cancel
Save