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