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 _0xfb82=['save','remove','emit','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events'];(function(_0x46d0c9,_0x526bfa){var _0x174506=function(_0x654bc6){while(--_0x654bc6){_0x46d0c9['push'](_0x46d0c9['shift']());}};_0x174506(++_0x526bfa);}(_0xfb82,0x17f));var _0x2fb8=function(_0x49d18c,_0x3ccc8c){_0x49d18c=_0x49d18c-0x0;var _0x2dba71=_0xfb82[_0x49d18c];return _0x2dba71;};'use strict';var VoiceQueueReportEvents=require(_0x2fb8('0x0'));var events=[_0x2fb8('0x1'),_0x2fb8('0x2'),'update'];function createListener(_0x316a4d,_0x1b6abc){return function(_0x50aa53){_0x1b6abc[_0x2fb8('0x3')](_0x316a4d,_0x50aa53);};}function removeListener(_0x8d8257,_0x34535f){return function(){VoiceQueueReportEvents[_0x2fb8('0x4')](_0x8d8257,_0x34535f);};}exports[_0x2fb8('0x5')]=function(_0xe9a5b5){for(var _0x3e6900=0x0,_0x8ede42=events[_0x2fb8('0x6')];_0x3e6900<_0x8ede42;_0x3e6900++){var _0x1f7575=events[_0x3e6900];var _0x5d58fa=createListener(_0x2fb8('0x7')+_0x1f7575,_0xe9a5b5);VoiceQueueReportEvents['on'](_0x1f7575,_0x5d58fa);}};