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 _0x3c7d=['emit','removeListener','length','voiceQueueReport:','./voiceQueueReport.events','save','remove','update'];(function(_0x37b321,_0x44320f){var _0x1b85ad=function(_0x34bbe7){while(--_0x34bbe7){_0x37b321['push'](_0x37b321['shift']());}};_0x1b85ad(++_0x44320f);}(_0x3c7d,0x10c));var _0xd3c7=function(_0x5a79e2,_0x319b1a){_0x5a79e2=_0x5a79e2-0x0;var _0x266c45=_0x3c7d[_0x5a79e2];return _0x266c45;};'use strict';var VoiceQueueReportEvents=require(_0xd3c7('0x0'));var events=[_0xd3c7('0x1'),_0xd3c7('0x2'),_0xd3c7('0x3')];function createListener(_0x1964b1,_0x343bce){return function(_0x37caa3){_0x343bce[_0xd3c7('0x4')](_0x1964b1,_0x37caa3);};}function removeListener(_0x116806,_0x5ba113){return function(){VoiceQueueReportEvents[_0xd3c7('0x5')](_0x116806,_0x5ba113);};}exports['register']=function(_0xb234c5){for(var _0x3a19a3=0x0,_0x41de14=events[_0xd3c7('0x6')];_0x3a19a3<_0x41de14;_0x3a19a3++){var _0x16f635=events[_0x3a19a3];var _0x32ec50=createListener(_0xd3c7('0x7')+_0x16f635,_0xb234c5);VoiceQueueReportEvents['on'](_0x16f635,_0x32ec50);}};