f3bd7fd3ba7a7e2be58ac49b87c0019f5ca4c732
[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 _0x3d85=['Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','INTEGER','BOOLEAN','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','exports','STRING','twilio','sinch'];(function(_0x28e572,_0x186005){var _0x3b0e74=function(_0x5ba5cc){while(--_0x5ba5cc){_0x28e572['push'](_0x28e572['shift']());}};_0x3b0e74(++_0x186005);}(_0x3d85,0x176));var _0x53d8=function(_0x5b2035,_0x15b0f2){_0x5b2035=_0x5b2035-0x0;var _0xbe4817=_0x3d85[_0x5b2035];return _0xbe4817;};'use strict';var Sequelize=require('sequelize');var rs=require('randomstring');module[_0x53d8('0x0')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize['STRING'],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0x53d8('0x1')]},'type':{'type':Sequelize['ENUM'](_0x53d8('0x2'),_0x53d8('0x3'))},'accountSid':{'type':Sequelize[_0x53d8('0x1')]},'baseUrl':{'type':Sequelize[_0x53d8('0x1')]},'authToken':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x53d8('0x4');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x53d8('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x53d8('0x6')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x53d8('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x53d8('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0x53d8('0x7')},'mandatoryDisposition':{'type':Sequelize[_0x53d8('0x6')],'defaultValue':![],'comment':_0x53d8('0x8'),'set':function(_0x286192){if(!_0x286192){this['setDataValue']('mandatoryDispositionPauseId',null);}this['setDataValue']('mandatoryDisposition',_0x286192);}},'description':{'type':Sequelize[_0x53d8('0x1')]}};