Built motion from commit (unavailable).|2.5.30
[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 _0x4e98=['ENUM','twilio','TEXT','BOOLEAN','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','exports','STRING'];(function(_0x5acebe,_0x1f2c20){var _0x4a5136=function(_0xcf061a){while(--_0xcf061a){_0x5acebe['push'](_0x5acebe['shift']());}};_0x4a5136(++_0x1f2c20);}(_0x4e98,0x82));var _0x84e9=function(_0x266f32,_0x442f53){_0x266f32=_0x266f32-0x0;var _0x112b8e=_0x4e98[_0x266f32];return _0x112b8e;};'use strict';var Sequelize=require('sequelize');var rs=require('randomstring');module[_0x84e9('0x0')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'key':{'type':Sequelize[_0x84e9('0x1')],'allowNull':![]},'remote':{'type':Sequelize['STRING'],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs['generate']();}},'phone':{'type':Sequelize[_0x84e9('0x1')]},'type':{'type':Sequelize[_0x84e9('0x2')](_0x84e9('0x3'))},'accountSid':{'type':Sequelize[_0x84e9('0x1')]},'authToken':{'type':Sequelize[_0x84e9('0x1')]},'notificationTemplate':{'type':Sequelize[_0x84e9('0x4')],'defaultValue':function(){return'Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x84e9('0x5')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x84e9('0x5')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x84e9('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x84e9('0x5')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x84e9('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x84e9('0x5')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x84e9('0x6')],'comment':_0x84e9('0x7')},'mandatoryDisposition':{'type':Sequelize[_0x84e9('0x5')],'defaultValue':![],'comment':_0x84e9('0x8'),'set':function(_0x2cb233){if(!_0x2cb233){this[_0x84e9('0x9')](_0x84e9('0xa'),null);}this[_0x84e9('0x9')](_0x84e9('0xb'),_0x2cb233);}},'description':{'type':Sequelize[_0x84e9('0x1')]}};