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 _0x28aa=['removeListener','length','./voiceQueueReport.events','remove','update','emit'];(function(_0xea6d2e,_0x44e126){var _0xdda0ba=function(_0x318d8e){while(--_0x318d8e){_0xea6d2e['push'](_0xea6d2e['shift']());}};_0xdda0ba(++_0x44e126);}(_0x28aa,0x98));var _0xa28a=function(_0x102e37,_0x14a181){_0x102e37=_0x102e37-0x0;var _0x35a07c=_0x28aa[_0x102e37];return _0x35a07c;};'use strict';var VoiceQueueReportEvents=require(_0xa28a('0x0'));var events=['save',_0xa28a('0x1'),_0xa28a('0x2')];function createListener(_0x52a205,_0x3c7ea7){return function(_0x1d3b67){_0x3c7ea7[_0xa28a('0x3')](_0x52a205,_0x1d3b67);};}function removeListener(_0x45c78a,_0x1cc102){return function(){VoiceQueueReportEvents[_0xa28a('0x4')](_0x45c78a,_0x1cc102);};}exports['register']=function(_0x2efef8){for(var _0x397d8c=0x0,_0x466e6d=events[_0xa28a('0x5')];_0x397d8c<_0x466e6d;_0x397d8c++){var _0x4b7714=events[_0x397d8c];var _0x1dc1e0=createListener('voiceQueueReport:'+_0x4b7714,_0x2efef8);VoiceQueueReportEvents['on'](_0x4b7714,_0x1dc1e0);}};