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 _0xb383=['removeListener','register','length','./voiceQueueReport.events','save','update'];(function(_0x4cc492,_0x162c85){var _0x1f36b9=function(_0xce4b2){while(--_0xce4b2){_0x4cc492['push'](_0x4cc492['shift']());}};_0x1f36b9(++_0x162c85);}(_0xb383,0x87));var _0x3b38=function(_0x51a173,_0x11a7de){_0x51a173=_0x51a173-0x0;var _0x3c5ec5=_0xb383[_0x51a173];return _0x3c5ec5;};'use strict';var VoiceQueueReportEvents=require(_0x3b38('0x0'));var events=[_0x3b38('0x1'),'remove',_0x3b38('0x2')];function createListener(_0x5f1ae0,_0x40589d){return function(_0x3e856b){_0x40589d['emit'](_0x5f1ae0,_0x3e856b);};}function removeListener(_0x510fb1,_0xadc062){return function(){VoiceQueueReportEvents[_0x3b38('0x3')](_0x510fb1,_0xadc062);};}exports[_0x3b38('0x4')]=function(_0x523df7){for(var _0x5c4802=0x0,_0x2669ab=events[_0x3b38('0x5')];_0x5c4802<_0x2669ab;_0x5c4802++){var _0x5c77d6=events[_0x5c4802];var _0x1a8f31=createListener('voiceQueueReport:'+_0x5c77d6,_0x523df7);VoiceQueueReportEvents['on'](_0x5c77d6,_0x1a8f31);}};