88c199d2e3ae4447f6b66b89a531099ea2b6380a
[motion-next.git] / server / api / smsAccount / smsAccount.attributes.js
1 const a541_0x7b82=['intelepeer','plivo','sequelize','setDataValue','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','name','ENUM','csc','skebby','clickatell','TEXT','randomstring','mandatoryDispositionPauseId','infobip','STRING','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','INTEGER','BOOLEAN'];(function(_0x52c3cc,_0x7b821c){const _0x2b498e=function(_0x25d68c){while(--_0x25d68c){_0x52c3cc['push'](_0x52c3cc['shift']());}};_0x2b498e(++_0x7b821c);}(a541_0x7b82,0x120));const a541_0x2b49=function(_0x52c3cc,_0x7b821c){_0x52c3cc=_0x52c3cc-0x0;let _0x2b498e=a541_0x7b82[_0x52c3cc];return _0x2b498e;};const _0x244400=a541_0x2b49;'use strict';const Sequelize=require(_0x244400('0x2')),rs=require(_0x244400('0xb'));module['exports']={'name':{'type':Sequelize[_0x244400('0xe')],'unique':_0x244400('0x5'),'allowNull':![]},'key':{'type':Sequelize[_0x244400('0xe')],'allowNull':![]},'remote':{'type':Sequelize[_0x244400('0xe')],'allowNull':![]},'token':{'type':Sequelize[_0x244400('0xe')],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0x244400('0xe')]},'type':{'type':Sequelize[_0x244400('0x6')]('twilio',_0x244400('0x8'),'connectel','clicksend',_0x244400('0x1'),_0x244400('0x9'),_0x244400('0x7'),_0x244400('0xd'),_0x244400('0x0'))},'accountSid':{'type':Sequelize[_0x244400('0xe')]},'authId':{'type':Sequelize[_0x244400('0xe')]},'authToken':{'type':Sequelize[_0x244400('0xe')]},'smsMethod':{'type':Sequelize[_0x244400('0x6')]('SI','TI','GP')},'username':{'type':Sequelize[_0x244400('0xe')]},'password':{'type':Sequelize[_0x244400('0xe')]},'apiKey':{'type':Sequelize[_0x244400('0xe')]},'senderString':{'type':Sequelize[_0x244400('0xe')]},'deliveryReport':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'description':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0x244400('0xa')],'defaultValue':function(){const _0x2fec9b=_0x244400;return _0x2fec9b('0xf');}},'notificationSound':{'type':Sequelize[_0x244400('0x11')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x244400('0x11')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x244400('0x11')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x244400('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x244400('0x11')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x244400('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x244400('0xe')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x244400('0x10')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x244400('0x11')],'defaultValue':![],'comment':_0x244400('0x4'),'set':function(_0x25d68c){const _0x37aa82=_0x244400;if(!_0x25d68c)this[_0x37aa82('0x3')](_0x37aa82('0xc'),null);this[_0x37aa82('0x3')]('mandatoryDisposition',_0x25d68c);}}};