Built motion from commit a679711e.|2.6.15
[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 _0xb693=['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','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','exports','name','STRING','generate','ENUM','twilio','sinch','TEXT'];(function(_0x1cae14,_0x350198){var _0x4b03e7=function(_0x52c200){while(--_0x52c200){_0x1cae14['push'](_0x1cae14['shift']());}};_0x4b03e7(++_0x350198);}(_0xb693,0x1c1));var _0x3b69=function(_0x2136a6,_0x35af63){_0x2136a6=_0x2136a6-0x0;var _0x55b948=_0xb693[_0x2136a6];return _0x55b948;};'use strict';var Sequelize=require(_0x3b69('0x0'));var rs=require(_0x3b69('0x1'));module[_0x3b69('0x2')]={'name':{'type':Sequelize['STRING'],'unique':_0x3b69('0x3'),'allowNull':![]},'key':{'type':Sequelize[_0x3b69('0x4')],'allowNull':![]},'remote':{'type':Sequelize[_0x3b69('0x4')],'allowNull':![]},'token':{'type':Sequelize[_0x3b69('0x4')],'defaultValue':function(){return rs[_0x3b69('0x5')]();}},'phone':{'type':Sequelize[_0x3b69('0x4')]},'type':{'type':Sequelize[_0x3b69('0x6')](_0x3b69('0x7'),_0x3b69('0x8'))},'accountSid':{'type':Sequelize['STRING']},'baseUrl':{'type':Sequelize[_0x3b69('0x4')]},'authToken':{'type':Sequelize[_0x3b69('0x4')]},'notificationTemplate':{'type':Sequelize[_0x3b69('0x9')],'defaultValue':function(){return _0x3b69('0xa');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x3b69('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x3b69('0xc')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x3b69('0xc')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x3b69('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x3b69('0xb')],'comment':_0x3b69('0xd')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x34adce){if(!_0x34adce){this[_0x3b69('0xe')](_0x3b69('0xf'),null);}this[_0x3b69('0xe')](_0x3b69('0x10'),_0x34adce);}},'description':{'type':Sequelize[_0x3b69('0x4')]}};