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