cb14deac878f52cdc3c90a2ac06c6153391e8f55
[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 _0xb33d=['mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','STRING','name','generate','ENUM','twilio','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'];(function(_0xa7f1d5,_0x15cc5){var _0x37ed36=function(_0xd3474c){while(--_0xd3474c){_0xa7f1d5['push'](_0xa7f1d5['shift']());}};_0x37ed36(++_0x15cc5);}(_0xb33d,0x72));var _0xdb33=function(_0x89bddd,_0x5c50e8){_0x89bddd=_0x89bddd-0x0;var _0x3a10e6=_0xb33d[_0x89bddd];return _0x3a10e6;};'use strict';var Sequelize=require(_0xdb33('0x0'));var rs=require(_0xdb33('0x1'));module['exports']={'name':{'type':Sequelize[_0xdb33('0x2')],'unique':_0xdb33('0x3'),'allowNull':![]},'key':{'type':Sequelize[_0xdb33('0x2')],'allowNull':![]},'remote':{'type':Sequelize[_0xdb33('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0xdb33('0x2')],'defaultValue':function(){return rs[_0xdb33('0x4')]();}},'phone':{'type':Sequelize[_0xdb33('0x2')]},'type':{'type':Sequelize[_0xdb33('0x5')](_0xdb33('0x6'),_0xdb33('0x7'))},'accountSid':{'type':Sequelize[_0xdb33('0x2')]},'baseUrl':{'type':Sequelize[_0xdb33('0x2')]},'authToken':{'type':Sequelize[_0xdb33('0x2')]},'notificationTemplate':{'type':Sequelize[_0xdb33('0x8')],'defaultValue':function(){return _0xdb33('0x9');}},'notificationSound':{'type':Sequelize[_0xdb33('0xa')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0xdb33('0xa')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'waitForTheAssignedQueue':{'type':Sequelize[_0xdb33('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0xdb33('0xa')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xdb33('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xdb33('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0xdb33('0xb')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0xdb33('0xc'),'set':function(_0x3f48f0){if(!_0x3f48f0){this[_0xdb33('0xd')](_0xdb33('0xe'),null);}this[_0xdb33('0xd')](_0xdb33('0xf'),_0x3f48f0);}},'description':{'type':Sequelize[_0xdb33('0x2')]}};