5365a4a2230f1e70c2b83e93c2dc8fc178d6b6b3
[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 _0xb838=['name','generate','twilio','TEXT','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','mandatoryDisposition','sequelize','randomstring','STRING'];(function(_0xe1b5f6,_0x210c09){var _0x44636e=function(_0x3a3212){while(--_0x3a3212){_0xe1b5f6['push'](_0xe1b5f6['shift']());}};_0x44636e(++_0x210c09);}(_0xb838,0x165));var _0x8b83=function(_0x2a91ba,_0x25af3e){_0x2a91ba=_0x2a91ba-0x0;var _0x8be938=_0xb838[_0x2a91ba];return _0x8be938;};'use strict';var Sequelize=require(_0x8b83('0x0'));var rs=require(_0x8b83('0x1'));module['exports']={'name':{'type':Sequelize[_0x8b83('0x2')],'unique':_0x8b83('0x3'),'allowNull':![]},'key':{'type':Sequelize[_0x8b83('0x2')],'allowNull':![]},'remote':{'type':Sequelize[_0x8b83('0x2')],'allowNull':![]},'token':{'type':Sequelize[_0x8b83('0x2')],'defaultValue':function(){return rs[_0x8b83('0x4')]();}},'phone':{'type':Sequelize[_0x8b83('0x2')]},'type':{'type':Sequelize['ENUM'](_0x8b83('0x5'))},'accountSid':{'type':Sequelize['STRING']},'authToken':{'type':Sequelize[_0x8b83('0x2')]},'notificationTemplate':{'type':Sequelize[_0x8b83('0x6')],'defaultValue':function(){return _0x8b83('0x7');}},'notificationSound':{'type':Sequelize[_0x8b83('0x8')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x8b83('0x8')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x8b83('0x9')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x8b83('0x8')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x8b83('0x9')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x8b83('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x8b83('0x9')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x8b83('0x9')],'comment':_0x8b83('0xa')},'mandatoryDisposition':{'type':Sequelize[_0x8b83('0x8')],'defaultValue':![],'comment':_0x8b83('0xb'),'set':function(_0x34462b){if(!_0x34462b){this[_0x8b83('0xc')](_0x8b83('0xd'),null);}this[_0x8b83('0xc')](_0x8b83('0xe'),_0x34462b);}},'description':{'type':Sequelize[_0x8b83('0x2')]}};