7b47614587307e4cf89a457df8f8dcf150a5fb0a
[motion2.git] / server / api / whatsappAccount / whatsappAccount.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 _0x7207=['mandatoryDisposition','sequelize','randomstring','exports','name','STRING','generate','twilio','sinch','TEXT','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','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId'];(function(_0x2dec7f,_0x26e594){var _0x378888=function(_0x105bff){while(--_0x105bff){_0x2dec7f['push'](_0x2dec7f['shift']());}};_0x378888(++_0x26e594);}(_0x7207,0x122));var _0x7720=function(_0x17e087,_0xf89520){_0x17e087=_0x17e087-0x0;var _0x56e582=_0x7207[_0x17e087];return _0x56e582;};'use strict';var Sequelize=require(_0x7720('0x0'));var rs=require(_0x7720('0x1'));module[_0x7720('0x2')]={'name':{'type':Sequelize['STRING'],'unique':_0x7720('0x3'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0x7720('0x4')],'allowNull':![]},'token':{'type':Sequelize[_0x7720('0x4')],'defaultValue':function(){return rs[_0x7720('0x5')]();}},'phone':{'type':Sequelize[_0x7720('0x4')]},'type':{'type':Sequelize['ENUM'](_0x7720('0x6'),_0x7720('0x7'))},'accountSid':{'type':Sequelize[_0x7720('0x4')]},'baseUrl':{'type':Sequelize[_0x7720('0x4')]},'authToken':{'type':Sequelize[_0x7720('0x4')]},'notificationTemplate':{'type':Sequelize[_0x7720('0x8')],'defaultValue':function(){return _0x7720('0x9');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x7720('0xa')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x7720('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x7720('0xa')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x7720('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x7720('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x7720('0xb')],'comment':_0x7720('0xc')},'mandatoryDisposition':{'type':Sequelize[_0x7720('0xa')],'defaultValue':![],'comment':_0x7720('0xd'),'set':function(_0x2fee4d){if(!_0x2fee4d){this[_0x7720('0xe')](_0x7720('0xf'),null);}this['setDataValue'](_0x7720('0x10'),_0x2fee4d);}},'description':{'type':Sequelize[_0x7720('0x4')]}};