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 _0xb0df=['length','save','remove','update','emit','register'];(function(_0x21fb2c,_0x4df56b){var _0x49dc3b=function(_0xc6c2d4){while(--_0xc6c2d4){_0x21fb2c['push'](_0x21fb2c['shift']());}};_0x49dc3b(++_0x4df56b);}(_0xb0df,0x85));var _0xfb0d=function(_0x44ae0b,_0x3e9865){_0x44ae0b=_0x44ae0b-0x0;var _0x69232a=_0xb0df[_0x44ae0b];return _0x69232a;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0xfb0d('0x0'),_0xfb0d('0x1'),_0xfb0d('0x2')];function createListener(_0x1d8a94,_0x3b212b){return function(_0x14e303){_0x3b212b[_0xfb0d('0x3')](_0x1d8a94,_0x14e303);};}function removeListener(_0x823ea6,_0x3348e0){return function(){UserVoiceQueueRtEvents['removeListener'](_0x823ea6,_0x3348e0);};}exports[_0xfb0d('0x4')]=function(_0x12458c){for(var _0x58e4c0=0x0,_0x5b7591=events[_0xfb0d('0x5')];_0x58e4c0<_0x5b7591;_0x58e4c0++){var _0xee3329=events[_0x58e4c0];var _0x5cf723=createListener('userVoiceQueueRt:'+_0xee3329,_0x12458c);UserVoiceQueueRtEvents['on'](_0xee3329,_0x5cf723);}};