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 _0xa5a7=['voiceQueueReport:','./voiceQueueReport.events','update','emit'];(function(_0x1ebce2,_0x10e903){var _0x4a330c=function(_0x4fd810){while(--_0x4fd810){_0x1ebce2['push'](_0x1ebce2['shift']());}};_0x4a330c(++_0x10e903);}(_0xa5a7,0x145));var _0x7a5a=function(_0x115552,_0x107858){_0x115552=_0x115552-0x0;var _0x1b272b=_0xa5a7[_0x115552];return _0x1b272b;};'use strict';var VoiceQueueReportEvents=require(_0x7a5a('0x0'));var events=['save','remove',_0x7a5a('0x1')];function createListener(_0x4a6ca1,_0x9646ad){return function(_0x4606d5){_0x9646ad[_0x7a5a('0x2')](_0x4a6ca1,_0x4606d5);};}function removeListener(_0x3e1a0d,_0x531207){return function(){VoiceQueueReportEvents['removeListener'](_0x3e1a0d,_0x531207);};}exports['register']=function(_0x55f189){for(var _0x42219e=0x0,_0x34f088=events['length'];_0x42219e<_0x34f088;_0x42219e++){var _0x10177f=events[_0x42219e];var _0x3a865b=createListener(_0x7a5a('0x3')+_0x10177f,_0x55f189);VoiceQueueReportEvents['on'](_0x10177f,_0x3a865b);}};