1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xc232=['setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','randomstring','exports','STRING','TEXT','BOOLEAN','INTEGER','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xc232,0x177));var _0x2c23=function(_0x2e4bbc,_0x3b0036){_0x2e4bbc=_0x2e4bbc-0x0;var _0x517b41=_0xc232[_0x2e4bbc];return _0x517b41;};'use strict';var Sequelize=require(_0x2c23('0x0'));var rs=require(_0x2c23('0x1'));module[_0x2c23('0x2')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'description':{'type':Sequelize[_0x2c23('0x3')]},'token':{'type':Sequelize[_0x2c23('0x3')],'defaultValue':function(){return rs['generate']();}},'replyUri':{'type':Sequelize[_0x2c23('0x3')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x2c23('0x3')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x2c23('0x4')],'defaultValue':function(){return'Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x2c23('0x5')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x2c23('0x5')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x2c23('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x2c23('0x3')]},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x2c23('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x2c23('0x5')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x2c23('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x2c23('0x6')],'allowNull':!![],'defaultValue':null,'comment':_0x2c23('0x7')},'mandatoryDisposition':{'type':Sequelize[_0x2c23('0x5')],'defaultValue':![],'comment':_0x2c23('0x8'),'set':function(_0x11db62){if(!_0x11db62)this[_0x2c23('0x9')](_0x2c23('0xa'),null);this[_0x2c23('0x9')](_0x2c23('0xb'),_0x11db62);}}};