Built motion from commit (unavailable).|2.5.20
[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 _0x19cb=['setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','randomstring','exports','name','STRING','ENUM','twilio','clicksend','plivo','clickatell','bandwidth','intelepeer','BOOLEAN','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue'];(function(_0x5436a1,_0x43ce08){var _0x46c586=function(_0x622b2b){while(--_0x622b2b){_0x5436a1['push'](_0x5436a1['shift']());}};_0x46c586(++_0x43ce08);}(_0x19cb,0x146));var _0xb19c=function(_0x5616b9,_0x37ae5c){_0x5616b9=_0x5616b9-0x0;var _0x45dd35=_0x19cb[_0x5616b9];return _0x45dd35;};'use strict';var Sequelize=require('sequelize');var rs=require(_0xb19c('0x0'));module[_0xb19c('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0xb19c('0x2'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0xb19c('0x3')],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xb19c('0x4')](_0xb19c('0x5'),'skebby','connectel',_0xb19c('0x6'),_0xb19c('0x7'),_0xb19c('0x8'),_0xb19c('0x9'),'csc','infobip',_0xb19c('0xa'))},'accountSid':{'type':Sequelize[_0xb19c('0x3')]},'authId':{'type':Sequelize[_0xb19c('0x3')]},'authToken':{'type':Sequelize[_0xb19c('0x3')]},'smsMethod':{'type':Sequelize[_0xb19c('0x4')]('SI','TI','GP')},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0xb19c('0x3')]},'apiKey':{'type':Sequelize[_0xb19c('0x3')]},'applicationId':{'type':Sequelize[_0xb19c('0x3')]},'accountId':{'type':Sequelize[_0xb19c('0x3')]},'senderString':{'type':Sequelize[_0xb19c('0x3')]},'deliveryReport':{'type':Sequelize[_0xb19c('0xb')],'defaultValue':![]},'description':{'type':Sequelize['STRING']},'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[_0xb19c('0xb')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xb19c('0xb')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xb19c('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xb19c('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xb19c('0xb')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xb19c('0xc')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize['STRING']},'mandatoryDispositionPauseId':{'type':Sequelize[_0xb19c('0xc')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0xb19c('0xb')],'defaultValue':![],'comment':_0xb19c('0xd'),'set':function(_0x2d239c){if(!_0x2d239c)this[_0xb19c('0xe')](_0xb19c('0xf'),null);this['setDataValue'](_0xb19c('0x10'),_0x2d239c);}}};