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 _0x49c3=['mandatoryDisposition','sequelize','randomstring','name','STRING','generate','Account:\x20{{account.name}}<br/>{{#queue}}Queue:\x20{{queue.name}}<br/>{{/queue}}From\x20:\x20{{from}}','BOOLEAN','INTEGER','setDataValue','mandatoryDispositionPauseId'];(function(_0x1d4c54,_0x472a01){var _0x2bfe75=function(_0x5323f3){while(--_0x5323f3){_0x1d4c54['push'](_0x1d4c54['shift']());}};_0x2bfe75(++_0x472a01);}(_0x49c3,0xbc));var _0x349c=function(_0x3d64a6,_0x1eb140){_0x3d64a6=_0x3d64a6-0x0;var _0x37ba25=_0x49c3[_0x3d64a6];return _0x37ba25;};'use strict';var Sequelize=require(_0x349c('0x0'));var rs=require(_0x349c('0x1'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0x349c('0x2'),'allowNull':![]},'description':{'type':Sequelize[_0x349c('0x3')]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){return rs[_0x349c('0x4')]();}},'replyUri':{'type':Sequelize[_0x349c('0x3')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x349c('0x3')],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){return _0x349c('0x5');}},'notificationSound':{'type':Sequelize[_0x349c('0x6')],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x349c('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x349c('0x3')]},'queueTransfer':{'type':Sequelize[_0x349c('0x6')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x349c('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x349c('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x349c('0x6')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0xdb6459){if(!_0xdb6459)this[_0x349c('0x8')](_0x349c('0x9'),null);this[_0x349c('0x8')](_0x349c('0xa'),_0xdb6459);}}};