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/packages/rocketchat-sms/settings.js

36 lines
710 B

Meteor.startup(function() {
RocketChat.settings.addGroup('SMS', function() {
this.add('SMS_Enabled', false, {
type: 'boolean',
i18nLabel: 'Enabled'
});
this.add('SMS_Service', 'twilio', {
type: 'select',
values: [{
key: 'twilio',
i18nLabel: 'Twilio'
}],
i18nLabel: 'Service'
});
this.section('Twilio', function() {
this.add('SMS_Twilio_Account_SID', '', {
type: 'string',
enableQuery: {
_id: 'SMS_Service',
value: 'twilio'
},
i18nLabel: 'Account_SID'
});
this.add('SMS_Twilio_authToken', '', {
type: 'string',
enableQuery: {
_id: 'SMS_Service',
value: 'twilio'
},
i18nLabel: 'Auth_Token'
});
});
});
});