Built motion from commit 8c034dcd.|2.6.31
[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 _0x9c64=['randomstring','exports','STRING','name','generate','ENUM','twilio','skebby','clicksend','plivo','clickatell','bandwidth','csc','infobip','intelepeer','BOOLEAN','TEXT','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize'];(function(_0x516dc5,_0x4bb815){var _0x9677ae=function(_0xa5488f){while(--_0xa5488f){_0x516dc5['push'](_0x516dc5['shift']());}};_0x9677ae(++_0x4bb815);}(_0x9c64,0x137));var _0x49c6=function(_0x4d48b0,_0x2d5a39){_0x4d48b0=_0x4d48b0-0x0;var _0x4a09a2=_0x9c64[_0x4d48b0];return _0x4a09a2;};'use strict';var Sequelize=require(_0x49c6('0x0'));var rs=require(_0x49c6('0x1'));module[_0x49c6('0x2')]={'name':{'type':Sequelize[_0x49c6('0x3')],'unique':_0x49c6('0x4'),'allowNull':![]},'key':{'type':Sequelize[_0x49c6('0x3')],'allowNull':![]},'remote':{'type':Sequelize[_0x49c6('0x3')],'allowNull':![]},'token':{'type':Sequelize[_0x49c6('0x3')],'defaultValue':function(){return rs[_0x49c6('0x5')]();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x49c6('0x6')](_0x49c6('0x7'),_0x49c6('0x8'),'connectel',_0x49c6('0x9'),_0x49c6('0xa'),_0x49c6('0xb'),_0x49c6('0xc'),_0x49c6('0xd'),_0x49c6('0xe'),_0x49c6('0xf'))},'accountSid':{'type':Sequelize[_0x49c6('0x3')]},'authId':{'type':Sequelize[_0x49c6('0x3')]},'authToken':{'type':Sequelize[_0x49c6('0x3')]},'smsMethod':{'type':Sequelize[_0x49c6('0x6')]('SI','TI','GP')},'username':{'type':Sequelize[_0x49c6('0x3')]},'password':{'type':Sequelize['STRING']},'apiKey':{'type':Sequelize[_0x49c6('0x3')]},'applicationId':{'type':Sequelize[_0x49c6('0x3')]},'accountId':{'type':Sequelize[_0x49c6('0x3')]},'senderString':{'type':Sequelize['STRING']},'deliveryReport':{'type':Sequelize[_0x49c6('0x10')],'defaultValue':![]},'description':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0x49c6('0x11')],'defaultValue':function(){return _0x49c6('0x12');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0x49c6('0x13')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x49c6('0x10')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x49c6('0x13')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize['STRING']},'mandatoryDispositionPauseId':{'type':Sequelize[_0x49c6('0x13')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x49c6('0x14'),'set':function(_0xcc60d){if(!_0xcc60d)this[_0x49c6('0x15')](_0x49c6('0x16'),null);this[_0x49c6('0x15')](_0x49c6('0x17'),_0xcc60d);}}};