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 _0x6f2f=['./voiceQueue.events','save','removeListener','length','voiceQueue:'];(function(_0x5f746f,_0x5b05ab){var _0x198d15=function(_0x58c7e7){while(--_0x58c7e7){_0x5f746f['push'](_0x5f746f['shift']());}};_0x198d15(++_0x5b05ab);}(_0x6f2f,0xbe));var _0xf6f2=function(_0x556bb1,_0x34830d){_0x556bb1=_0x556bb1-0x0;var _0x45455f=_0x6f2f[_0x556bb1];return _0x45455f;};'use strict';var VoiceQueueEvents=require(_0xf6f2('0x0'));var events=[_0xf6f2('0x1'),'remove','update'];function createListener(_0x5f4600,_0x4232e1){return function(_0x4a4431){_0x4232e1['emit'](_0x5f4600,_0x4a4431);};}function removeListener(_0xc69b60,_0x305bb){return function(){VoiceQueueEvents[_0xf6f2('0x2')](_0xc69b60,_0x305bb);};}exports['register']=function(_0x5c540a){for(var _0x1123bb=0x0,_0x1c94ad=events[_0xf6f2('0x3')];_0x1123bb<_0x1c94ad;_0x1123bb++){var _0x774922=events[_0x1123bb];var _0x15a71c=createListener(_0xf6f2('0x4')+_0x774922,_0x5c540a);VoiceQueueEvents['on'](_0x774922,_0x15a71c);}};