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