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