2fa0c5db01a0616d5a2a1632001bb0f205c2270a
[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 _0x37f9=['name','generate','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','setDataValue','mandatoryDisposition','randomstring','exports','STRING'];(function(_0xdc0397,_0x20d1f1){var _0x553d02=function(_0x364781){while(--_0x364781){_0xdc0397['push'](_0xdc0397['shift']());}};_0x553d02(++_0x20d1f1);}(_0x37f9,0x105));var _0x937f=function(_0x23b89c,_0x1f165e){_0x23b89c=_0x23b89c-0x0;var _0x29b51e=_0x37f9[_0x23b89c];return _0x29b51e;};'use strict';var Sequelize=require('sequelize');var rs=require(_0x937f('0x0'));module[_0x937f('0x1')]={'name':{'type':Sequelize[_0x937f('0x2')],'unique':_0x937f('0x3'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0x937f('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0x937f('0x2')],'defaultValue':function(){return rs[_0x937f('0x4')]();}},'phone':{'type':Sequelize[_0x937f('0x2')]},'type':{'type':Sequelize['ENUM']('twilio')},'accountSid':{'type':Sequelize[_0x937f('0x2')]},'authToken':{'type':Sequelize[_0x937f('0x2')]},'notificationTemplate':{'type':Sequelize[_0x937f('0x5')],'defaultValue':function(){return _0x937f('0x6');}},'notificationSound':{'type':Sequelize[_0x937f('0x7')],'defaultValue':![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x937f('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x937f('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x937f('0x7')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x937f('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x937f('0x8')],'comment':_0x937f('0x9')},'mandatoryDisposition':{'type':Sequelize[_0x937f('0x7')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x20ecca){if(!_0x20ecca){this[_0x937f('0xa')]('mandatoryDispositionPauseId',null);}this[_0x937f('0xa')](_0x937f('0xb'),_0x20ecca);}},'description':{'type':Sequelize['STRING']}};