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