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 _0xf015=['remove','emit','removeListener','register','length'];(function(_0x1be1a4,_0x38a5bd){var _0x5bb721=function(_0x401e00){while(--_0x401e00){_0x1be1a4['push'](_0x1be1a4['shift']());}};_0x5bb721(++_0x38a5bd);}(_0xf015,0x13b));var _0x5f01=function(_0x3bdc50,_0x218b7e){_0x3bdc50=_0x3bdc50-0x0;var _0x322bae=_0xf015[_0x3bdc50];return _0x322bae;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=['save',_0x5f01('0x0'),'update'];function createListener(_0x4ee3fd,_0x36cf4c){return function(_0x484077){_0x36cf4c[_0x5f01('0x1')](_0x4ee3fd,_0x484077);};}function removeListener(_0x524009,_0x33fd75){return function(){VoiceQueueReportEvents[_0x5f01('0x2')](_0x524009,_0x33fd75);};}exports[_0x5f01('0x3')]=function(_0x454de5){for(var _0x122dd0=0x0,_0x5bc7a3=events[_0x5f01('0x4')];_0x122dd0<_0x5bc7a3;_0x122dd0++){var _0x3d35da=events[_0x122dd0];var _0xb5cfef=createListener('voiceQueueReport:'+_0x3d35da,_0x454de5);VoiceQueueReportEvents['on'](_0x3d35da,_0xb5cfef);}};