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