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 _0x64c9=['Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','STRING','name','generate','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'];(function(_0x58d876,_0x740db8){var _0xaf3a62=function(_0x2357bb){while(--_0x2357bb){_0x58d876['push'](_0x58d876['shift']());}};_0xaf3a62(++_0x740db8);}(_0x64c9,0x14e));var _0x964c=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x64c9[_0x321bb2];return _0x9c12ed;};'use strict';var Sequelize=require('sequelize');var rs=require('randomstring');module['exports']={'name':{'type':Sequelize[_0x964c('0x0')],'unique':_0x964c('0x1'),'allowNull':![]},'description':{'type':Sequelize['STRING']},'token':{'type':Sequelize[_0x964c('0x0')],'defaultValue':function(){return rs[_0x964c('0x2')]();}},'replyUri':{'type':Sequelize[_0x964c('0x0')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x964c('0x0')],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x964c('0x3');}},'notificationSound':{'type':Sequelize[_0x964c('0x4')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x964c('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x964c('0x0')]},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x964c('0x4')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x964c('0x5')],'allowNull':!![],'defaultValue':null,'comment':_0x964c('0x6')},'mandatoryDisposition':{'type':Sequelize[_0x964c('0x4')],'defaultValue':![],'comment':_0x964c('0x7'),'set':function(_0x458075){if(!_0x458075)this[_0x964c('0x8')](_0x964c('0x9'),null);this[_0x964c('0x8')](_0x964c('0xa'),_0x458075);}}};