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