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