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 _0x4813=['remove','update','removeListener','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save'];(function(_0x599689,_0x415f3d){var _0x3a69f6=function(_0x180a30){while(--_0x180a30){_0x599689['push'](_0x599689['shift']());}};_0x3a69f6(++_0x415f3d);}(_0x4813,0x14e));var _0x3481=function(_0x3224a8,_0x53537e){_0x3224a8=_0x3224a8-0x0;var _0x5bd02a=_0x4813[_0x3224a8];return _0x5bd02a;};'use strict';var UserVoiceQueueRtEvents=require(_0x3481('0x0'));var events=[_0x3481('0x1'),_0x3481('0x2'),_0x3481('0x3')];function createListener(_0x150873,_0x41c024){return function(_0x2c3ce3){_0x41c024['emit'](_0x150873,_0x2c3ce3);};}function removeListener(_0x7b05ad,_0x420123){return function(){UserVoiceQueueRtEvents[_0x3481('0x4')](_0x7b05ad,_0x420123);};}exports[_0x3481('0x5')]=function(_0x127833){for(var _0x49c8b9=0x0,_0x5e58ba=events[_0x3481('0x6')];_0x49c8b9<_0x5e58ba;_0x49c8b9++){var _0x59eda6=events[_0x49c8b9];var _0x41fb39=createListener(_0x3481('0x7')+_0x59eda6,_0x127833);UserVoiceQueueRtEvents['on'](_0x59eda6,_0x41fb39);}};