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 _0x14ec=['./voiceQueueReport.events','remove','update','emit','length'];(function(_0x307d86,_0x9264f2){var _0x361745=function(_0x1b64e1){while(--_0x1b64e1){_0x307d86['push'](_0x307d86['shift']());}};_0x361745(++_0x9264f2);}(_0x14ec,0x127));var _0xc14e=function(_0x29fbf2,_0xebd6f0){_0x29fbf2=_0x29fbf2-0x0;var _0x3ad91f=_0x14ec[_0x29fbf2];return _0x3ad91f;};'use strict';var VoiceQueueReportEvents=require(_0xc14e('0x0'));var events=['save',_0xc14e('0x1'),_0xc14e('0x2')];function createListener(_0x3b7af9,_0x1bc2e3){return function(_0x197fe4){_0x1bc2e3[_0xc14e('0x3')](_0x3b7af9,_0x197fe4);};}function removeListener(_0x515956,_0x5f2682){return function(){VoiceQueueReportEvents['removeListener'](_0x515956,_0x5f2682);};}exports['register']=function(_0x128caf){for(var _0x23f61f=0x0,_0x280f08=events[_0xc14e('0x4')];_0x23f61f<_0x280f08;_0x23f61f++){var _0xbf6d2c=events[_0x23f61f];var _0x351e15=createListener('voiceQueueReport:'+_0xbf6d2c,_0x128caf);VoiceQueueReportEvents['on'](_0xbf6d2c,_0x351e15);}};