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 _0xdab9=['remove','update','emit','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save'];(function(_0x2070da,_0x45e586){var _0x4f9fe1=function(_0x5b6f2a){while(--_0x5b6f2a){_0x2070da['push'](_0x2070da['shift']());}};_0x4f9fe1(++_0x45e586);}(_0xdab9,0x12b));var _0x9dab=function(_0x19e91d,_0x5df028){_0x19e91d=_0x19e91d-0x0;var _0x510256=_0xdab9[_0x19e91d];return _0x510256;};'use strict';var UserVoiceQueueRtEvents=require(_0x9dab('0x0'));var events=[_0x9dab('0x1'),_0x9dab('0x2'),_0x9dab('0x3')];function createListener(_0x2e0b3,_0x259433){return function(_0x1034e4){_0x259433[_0x9dab('0x4')](_0x2e0b3,_0x1034e4);};}function removeListener(_0x5e771b,_0x3fcc4b){return function(){UserVoiceQueueRtEvents['removeListener'](_0x5e771b,_0x3fcc4b);};}exports['register']=function(_0x5b4630){for(var _0x4323bb=0x0,_0x554505=events[_0x9dab('0x5')];_0x4323bb<_0x554505;_0x4323bb++){var _0x3f5e24=events[_0x4323bb];var _0x4c9f54=createListener(_0x9dab('0x6')+_0x3f5e24,_0x5b4630);UserVoiceQueueRtEvents['on'](_0x3f5e24,_0x4c9f54);}};