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 _0x4784=['emit','register','length','voiceQueueReport:','./voiceQueueReport.events','save','remove','update'];(function(_0x24083e,_0x27814c){var _0x23afa1=function(_0x54749e){while(--_0x54749e){_0x24083e['push'](_0x24083e['shift']());}};_0x23afa1(++_0x27814c);}(_0x4784,0xe4));var _0x4478=function(_0x238d10,_0x18534e){_0x238d10=_0x238d10-0x0;var _0x4d5b76=_0x4784[_0x238d10];return _0x4d5b76;};'use strict';var VoiceQueueReportEvents=require(_0x4478('0x0'));var events=[_0x4478('0x1'),_0x4478('0x2'),_0x4478('0x3')];function createListener(_0x2da6a8,_0x9bad45){return function(_0x4ff3a7){_0x9bad45[_0x4478('0x4')](_0x2da6a8,_0x4ff3a7);};}function removeListener(_0xa4e8bb,_0x1e487c){return function(){VoiceQueueReportEvents['removeListener'](_0xa4e8bb,_0x1e487c);};}exports[_0x4478('0x5')]=function(_0x4ce0c1){for(var _0x42d230=0x0,_0x4858da=events[_0x4478('0x6')];_0x42d230<_0x4858da;_0x42d230++){var _0xe013ab=events[_0x42d230];var _0x3cd15f=createListener(_0x4478('0x7')+_0xe013ab,_0x4ce0c1);VoiceQueueReportEvents['on'](_0xe013ab,_0x3cd15f);}};