931289218eb26c0b5c60dc4bc2af29673b043508
[motion2.git] / server / api / smsAccount / smsAccount.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xbaa1=['exports','STRING','name','generate','ENUM','twilio','skebby','connectel','clicksend','plivo','clickatell','csc','BOOLEAN','TEXT','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize'];(function(_0x43d25c,_0xcafbc7){var _0x1a378c=function(_0x59c1ce){while(--_0x59c1ce){_0x43d25c['push'](_0x43d25c['shift']());}};_0x1a378c(++_0xcafbc7);}(_0xbaa1,0x1a3));var _0x1baa=function(_0x21a8ed,_0x54d122){_0x21a8ed=_0x21a8ed-0x0;var _0x641ed9=_0xbaa1[_0x21a8ed];return _0x641ed9;};'use strict';var Sequelize=require(_0x1baa('0x0'));var rs=require('randomstring');module[_0x1baa('0x1')]={'name':{'type':Sequelize[_0x1baa('0x2')],'unique':_0x1baa('0x3'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0x1baa('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0x1baa('0x2')],'defaultValue':function(){return rs[_0x1baa('0x4')]();}},'phone':{'type':Sequelize[_0x1baa('0x2')]},'type':{'type':Sequelize[_0x1baa('0x5')](_0x1baa('0x6'),_0x1baa('0x7'),_0x1baa('0x8'),_0x1baa('0x9'),_0x1baa('0xa'),_0x1baa('0xb'),'bandwidth',_0x1baa('0xc'),'infobip','intelepeer')},'accountSid':{'type':Sequelize[_0x1baa('0x2')]},'authId':{'type':Sequelize[_0x1baa('0x2')]},'authToken':{'type':Sequelize['STRING']},'smsMethod':{'type':Sequelize['ENUM']('SI','TI','GP')},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x1baa('0x2')]},'apiKey':{'type':Sequelize[_0x1baa('0x2')]},'applicationId':{'type':Sequelize[_0x1baa('0x2')]},'accountId':{'type':Sequelize[_0x1baa('0x2')]},'senderString':{'type':Sequelize[_0x1baa('0x2')]},'deliveryReport':{'type':Sequelize[_0x1baa('0xd')],'defaultValue':![]},'description':{'type':Sequelize[_0x1baa('0x2')]},'notificationTemplate':{'type':Sequelize[_0x1baa('0xe')],'defaultValue':function(){return'Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x1baa('0xd')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x1baa('0xf')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x1baa('0xd')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x1baa('0xf')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x1baa('0xd')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x1baa('0xf')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize['STRING']},'mandatoryDispositionPauseId':{'type':Sequelize[_0x1baa('0xf')],'comment':_0x1baa('0x10')},'mandatoryDisposition':{'type':Sequelize[_0x1baa('0xd')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x1264e1){if(!_0x1264e1)this[_0x1baa('0x11')](_0x1baa('0x12'),null);this[_0x1baa('0x11')](_0x1baa('0x13'),_0x1264e1);}}};