1de649ca2d12bd00289464b7f43dc900a8330491
[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 _0xf6ae=['clicksend','clickatell','csc','infobip','intelepeer','BOOLEAN','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDisposition','sequelize','randomstring','exports','STRING','name','generate','ENUM'];(function(_0x5cd253,_0x4162da){var _0x36e179=function(_0x597977){while(--_0x597977){_0x5cd253['push'](_0x5cd253['shift']());}};_0x36e179(++_0x4162da);}(_0xf6ae,0x107));var _0xef6a=function(_0x25e402,_0x5bfa8e){_0x25e402=_0x25e402-0x0;var _0x3d265d=_0xf6ae[_0x25e402];return _0x3d265d;};'use strict';var Sequelize=require(_0xef6a('0x0'));var rs=require(_0xef6a('0x1'));module[_0xef6a('0x2')]={'name':{'type':Sequelize[_0xef6a('0x3')],'unique':_0xef6a('0x4'),'allowNull':![]},'key':{'type':Sequelize[_0xef6a('0x3')],'allowNull':![]},'remote':{'type':Sequelize[_0xef6a('0x3')],'allowNull':![]},'token':{'type':Sequelize[_0xef6a('0x3')],'defaultValue':function(){return rs[_0xef6a('0x5')]();}},'phone':{'type':Sequelize[_0xef6a('0x3')]},'type':{'type':Sequelize[_0xef6a('0x6')]('twilio','skebby','connectel',_0xef6a('0x7'),'plivo',_0xef6a('0x8'),_0xef6a('0x9'),_0xef6a('0xa'),_0xef6a('0xb'))},'accountSid':{'type':Sequelize['STRING']},'authId':{'type':Sequelize['STRING']},'authToken':{'type':Sequelize['STRING']},'smsMethod':{'type':Sequelize['ENUM']('SI','TI','GP')},'username':{'type':Sequelize[_0xef6a('0x3')]},'password':{'type':Sequelize['STRING']},'apiKey':{'type':Sequelize[_0xef6a('0x3')]},'senderString':{'type':Sequelize[_0xef6a('0x3')]},'deliveryReport':{'type':Sequelize[_0xef6a('0xc')],'defaultValue':![]},'description':{'type':Sequelize[_0xef6a('0x3')]},'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[_0xef6a('0xc')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xef6a('0xc')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xef6a('0xc')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xef6a('0xc')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xef6a('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0xef6a('0x3')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0xef6a('0xd')],'comment':_0xef6a('0xe')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0xef6a('0xf'),'set':function(_0x2cfcce){if(!_0x2cfcce)this[_0xef6a('0x10')]('mandatoryDispositionPauseId',null);this[_0xef6a('0x10')](_0xef6a('0x11'),_0x2cfcce);}}};