7a95e7e26f576aac7495e2679d47028bb5ee5886
[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 _0x91bb=['Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','name','STRING','generate','ENUM','twilio','connectel','clicksend','plivo','clickatell','csc','infobip','intelepeer','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'];(function(_0x1ce50d,_0x1a7b77){var _0x4028b2=function(_0x47331b){while(--_0x47331b){_0x1ce50d['push'](_0x1ce50d['shift']());}};_0x4028b2(++_0x1a7b77);}(_0x91bb,0x192));var _0xb91b=function(_0x4cb03b,_0x47d402){_0x4cb03b=_0x4cb03b-0x0;var _0x132ba4=_0x91bb[_0x4cb03b];return _0x132ba4;};'use strict';var Sequelize=require(_0xb91b('0x0'));var rs=require('randomstring');module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0xb91b('0x1'),'allowNull':![]},'key':{'type':Sequelize[_0xb91b('0x2')],'allowNull':![]},'remote':{'type':Sequelize[_0xb91b('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0xb91b('0x2')],'defaultValue':function(){return rs[_0xb91b('0x3')]();}},'phone':{'type':Sequelize[_0xb91b('0x2')]},'type':{'type':Sequelize[_0xb91b('0x4')](_0xb91b('0x5'),'skebby',_0xb91b('0x6'),_0xb91b('0x7'),_0xb91b('0x8'),_0xb91b('0x9'),_0xb91b('0xa'),_0xb91b('0xb'),_0xb91b('0xc'))},'accountSid':{'type':Sequelize[_0xb91b('0x2')]},'authId':{'type':Sequelize[_0xb91b('0x2')]},'authToken':{'type':Sequelize[_0xb91b('0x2')]},'smsMethod':{'type':Sequelize['ENUM']('SI','TI','GP')},'username':{'type':Sequelize[_0xb91b('0x2')]},'password':{'type':Sequelize['STRING']},'apiKey':{'type':Sequelize[_0xb91b('0x2')]},'senderString':{'type':Sequelize['STRING']},'deliveryReport':{'type':Sequelize[_0xb91b('0xd')],'defaultValue':![]},'description':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0xb91b('0xe')],'defaultValue':function(){return _0xb91b('0xf');}},'notificationSound':{'type':Sequelize[_0xb91b('0xd')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xb91b('0xd')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xb91b('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xb91b('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xb91b('0xd')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xb91b('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0xb91b('0x2')]},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0xb91b('0x11')},'mandatoryDisposition':{'type':Sequelize[_0xb91b('0xd')],'defaultValue':![],'comment':_0xb91b('0x12'),'set':function(_0x2f5cc6){if(!_0x2f5cc6)this['setDataValue'](_0xb91b('0x13'),null);this['setDataValue'](_0xb91b('0x14'),_0x2f5cc6);}}};