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 _0x06f4=['register','userVoiceQueueRt:','./userVoiceQueueRt.events','save','update','emit','removeListener'];(function(_0x226471,_0x27cf15){var _0x5e0061=function(_0x4dbb8c){while(--_0x4dbb8c){_0x226471['push'](_0x226471['shift']());}};_0x5e0061(++_0x27cf15);}(_0x06f4,0x136));var _0x406f=function(_0x58d48a,_0x4c624b){_0x58d48a=_0x58d48a-0x0;var _0x51ff59=_0x06f4[_0x58d48a];return _0x51ff59;};'use strict';var UserVoiceQueueRtEvents=require(_0x406f('0x0'));var events=[_0x406f('0x1'),'remove',_0x406f('0x2')];function createListener(_0x276a15,_0x58cd7d){return function(_0x5cab5e){_0x58cd7d[_0x406f('0x3')](_0x276a15,_0x5cab5e);};}function removeListener(_0x5ed32f,_0x32abfd){return function(){UserVoiceQueueRtEvents[_0x406f('0x4')](_0x5ed32f,_0x32abfd);};}exports[_0x406f('0x5')]=function(_0x32b2bd){for(var _0x59821c=0x0,_0x1d2886=events['length'];_0x59821c<_0x1d2886;_0x59821c++){var _0x1afec4=events[_0x59821c];var _0x1c39ce=createListener(_0x406f('0x6')+_0x1afec4,_0x32b2bd);UserVoiceQueueRtEvents['on'](_0x1afec4,_0x1c39ce);}};