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