Built motion from commit 5ae82ce5.|2.6.7
[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 _0xfb2f=['connectel','clicksend','plivo','clickatell','bandwidth','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','setDataValue','mandatoryDisposition','sequelize','exports','STRING','name','ENUM','twilio','skebby'];(function(_0x78373d,_0x2507db){var _0x5f3a5d=function(_0x373255){while(--_0x373255){_0x78373d['push'](_0x78373d['shift']());}};_0x5f3a5d(++_0x2507db);}(_0xfb2f,0x13d));var _0xffb2=function(_0x5880a5,_0x4a52d6){_0x5880a5=_0x5880a5-0x0;var _0xa2818d=_0xfb2f[_0x5880a5];return _0xa2818d;};'use strict';var Sequelize=require(_0xffb2('0x0'));var rs=require('randomstring');module[_0xffb2('0x1')]={'name':{'type':Sequelize[_0xffb2('0x2')],'unique':_0xffb2('0x3'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0xffb2('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0xffb2('0x2')],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0xffb2('0x2')]},'type':{'type':Sequelize[_0xffb2('0x4')](_0xffb2('0x5'),_0xffb2('0x6'),_0xffb2('0x7'),_0xffb2('0x8'),_0xffb2('0x9'),_0xffb2('0xa'),_0xffb2('0xb'),'csc','infobip','intelepeer')},'accountSid':{'type':Sequelize['STRING']},'authId':{'type':Sequelize[_0xffb2('0x2')]},'authToken':{'type':Sequelize['STRING']},'smsMethod':{'type':Sequelize[_0xffb2('0x4')]('SI','TI','GP')},'username':{'type':Sequelize[_0xffb2('0x2')]},'password':{'type':Sequelize['STRING']},'apiKey':{'type':Sequelize[_0xffb2('0x2')]},'applicationId':{'type':Sequelize['STRING']},'accountId':{'type':Sequelize[_0xffb2('0x2')]},'senderString':{'type':Sequelize[_0xffb2('0x2')]},'deliveryReport':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'description':{'type':Sequelize[_0xffb2('0x2')]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0xffb2('0xc');}},'notificationSound':{'type':Sequelize[_0xffb2('0xd')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xffb2('0xd')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xffb2('0xe')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xffb2('0xd')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xffb2('0xe')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0xffb2('0x2')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0xffb2('0xe')],'comment':_0xffb2('0xf')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x32ef5f){if(!_0x32ef5f)this[_0xffb2('0x10')]('mandatoryDispositionPauseId',null);this['setDataValue'](_0xffb2('0x11'),_0x32ef5f);}}};