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