32d40ab693b8fa693873c9fdfc6c1265dcac3914
[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 _0x8e64=['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','setDataValue','mandatoryDispositionPauseId','randomstring','exports','STRING','name','twilio'];(function(_0x431aa0,_0x38a17c){var _0x50a459=function(_0xfe761b){while(--_0xfe761b){_0x431aa0['push'](_0x431aa0['shift']());}};_0x50a459(++_0x38a17c);}(_0x8e64,0x193));var _0x48e6=function(_0x117f69,_0x89f2e3){_0x117f69=_0x117f69-0x0;var _0x3cece9=_0x8e64[_0x117f69];return _0x3cece9;};'use strict';var Sequelize=require('sequelize');var rs=require(_0x48e6('0x0'));module[_0x48e6('0x1')]={'name':{'type':Sequelize[_0x48e6('0x2')],'unique':_0x48e6('0x3'),'allowNull':![]},'key':{'type':Sequelize[_0x48e6('0x2')],'allowNull':![]},'remote':{'type':Sequelize['STRING'],'allowNull':![]},'token':{'type':Sequelize[_0x48e6('0x2')],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0x48e6('0x2')]},'type':{'type':Sequelize['ENUM'](_0x48e6('0x4'))},'accountSid':{'type':Sequelize[_0x48e6('0x2')]},'authToken':{'type':Sequelize[_0x48e6('0x2')]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x48e6('0x5');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x48e6('0x6')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x48e6('0x6')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x48e6('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x48e6('0x7')],'comment':_0x48e6('0x8')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x48e6('0x9'),'set':function(_0x190910){if(!_0x190910){this[_0x48e6('0xa')](_0x48e6('0xb'),null);}this[_0x48e6('0xa')]('mandatoryDisposition',_0x190910);}},'description':{'type':Sequelize[_0x48e6('0x2')]}};