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