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