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 _0x6bb4=['removeListener','register','length','./userVoiceQueueRt.events','save','remove','emit'];(function(_0x45c9d2,_0x96b578){var _0x2c317b=function(_0x1ff3d2){while(--_0x1ff3d2){_0x45c9d2['push'](_0x45c9d2['shift']());}};_0x2c317b(++_0x96b578);}(_0x6bb4,0x1a7));var _0x46bb=function(_0x1a174a,_0x3e1def){_0x1a174a=_0x1a174a-0x0;var _0x2791e7=_0x6bb4[_0x1a174a];return _0x2791e7;};'use strict';var UserVoiceQueueRtEvents=require(_0x46bb('0x0'));var events=[_0x46bb('0x1'),_0x46bb('0x2'),'update'];function createListener(_0x1205ee,_0xd0784){return function(_0x4eb2a9){_0xd0784[_0x46bb('0x3')](_0x1205ee,_0x4eb2a9);};}function removeListener(_0x100be2,_0x2eefcc){return function(){UserVoiceQueueRtEvents[_0x46bb('0x4')](_0x100be2,_0x2eefcc);};}exports[_0x46bb('0x5')]=function(_0x2ae90f){for(var _0x5dd7d6=0x0,_0x4fa5c4=events[_0x46bb('0x6')];_0x5dd7d6<_0x4fa5c4;_0x5dd7d6++){var _0x4338c9=events[_0x5dd7d6];var _0x57fb08=createListener('userVoiceQueueRt:'+_0x4338c9,_0x2ae90f);UserVoiceQueueRtEvents['on'](_0x4338c9,_0x57fb08);}};