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