Built motion from commit 14588770.|2.5.38
[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 _0x3f54=['name','generate','ENUM','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','mandatoryDispositionPauseId','setDataValue','mandatoryDisposition','sequelize','randomstring','exports','STRING'];(function(_0xdd9669,_0xa191e0){var _0x295444=function(_0x3beda1){while(--_0x3beda1){_0xdd9669['push'](_0xdd9669['shift']());}};_0x295444(++_0xa191e0);}(_0x3f54,0x1b6));var _0x43f5=function(_0x52666e,_0x5b3776){_0x52666e=_0x52666e-0x0;var _0x515330=_0x3f54[_0x52666e];return _0x515330;};'use strict';var Sequelize=require(_0x43f5('0x0'));var rs=require(_0x43f5('0x1'));module[_0x43f5('0x2')]={'name':{'type':Sequelize[_0x43f5('0x3')],'unique':_0x43f5('0x4'),'allowNull':![]},'key':{'type':Sequelize[_0x43f5('0x3')],'allowNull':![]},'remote':{'type':Sequelize[_0x43f5('0x3')],'allowNull':![]},'token':{'type':Sequelize[_0x43f5('0x3')],'defaultValue':function(){return rs[_0x43f5('0x5')]();}},'phone':{'type':Sequelize[_0x43f5('0x3')]},'type':{'type':Sequelize[_0x43f5('0x6')]('twilio',_0x43f5('0x7'))},'accountSid':{'type':Sequelize[_0x43f5('0x3')]},'baseUrl':{'type':Sequelize[_0x43f5('0x3')]},'authToken':{'type':Sequelize[_0x43f5('0x3')]},'notificationTemplate':{'type':Sequelize[_0x43f5('0x8')],'defaultValue':function(){return _0x43f5('0x9');}},'notificationSound':{'type':Sequelize[_0x43f5('0xa')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x43f5('0xa')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x43f5('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x43f5('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x43f5('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x43f5('0xb')],'comment':_0x43f5('0xc')},'mandatoryDisposition':{'type':Sequelize[_0x43f5('0xa')],'defaultValue':![],'comment':_0x43f5('0xd'),'set':function(_0x559876){if(!_0x559876){this['setDataValue'](_0x43f5('0xe'),null);}this[_0x43f5('0xf')](_0x43f5('0x10'),_0x559876);}},'description':{'type':Sequelize[_0x43f5('0x3')]}};