a2635de51f2d8e6f88877ba7c0fcd6bd863e0c70
[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 _0x0ecc=['STRING','name','generate','ENUM','sinch','TEXT','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','BOOLEAN','INTEGER','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDisposition','sequelize','randomstring','exports'];(function(_0x56cc28,_0x4a921e){var _0x1f5798=function(_0x45f7a5){while(--_0x45f7a5){_0x56cc28['push'](_0x56cc28['shift']());}};_0x1f5798(++_0x4a921e);}(_0x0ecc,0x1bf));var _0xc0ec=function(_0x28a6bb,_0x5d6e70){_0x28a6bb=_0x28a6bb-0x0;var _0xaf7fce=_0x0ecc[_0x28a6bb];return _0xaf7fce;};'use strict';var Sequelize=require(_0xc0ec('0x0'));var rs=require(_0xc0ec('0x1'));module[_0xc0ec('0x2')]={'name':{'type':Sequelize[_0xc0ec('0x3')],'unique':_0xc0ec('0x4'),'allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0xc0ec('0x3')],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs[_0xc0ec('0x5')]();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xc0ec('0x6')]('twilio',_0xc0ec('0x7'))},'accountSid':{'type':Sequelize[_0xc0ec('0x3')]},'baseUrl':{'type':Sequelize[_0xc0ec('0x3')]},'authToken':{'type':Sequelize[_0xc0ec('0x3')]},'notificationTemplate':{'type':Sequelize[_0xc0ec('0x8')],'defaultValue':function(){return _0xc0ec('0x9');}},'notificationSound':{'type':Sequelize[_0xc0ec('0xa')],'defaultValue':![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0xc0ec('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xc0ec('0xa')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xc0ec('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xc0ec('0xa')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xc0ec('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0xc0ec('0xb')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0xc0ec('0xa')],'defaultValue':![],'comment':_0xc0ec('0xc'),'set':function(_0x340b0b){if(!_0x340b0b){this[_0xc0ec('0xd')]('mandatoryDispositionPauseId',null);}this[_0xc0ec('0xd')](_0xc0ec('0xe'),_0x340b0b);}},'description':{'type':Sequelize['STRING']}};