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 _0xe55d=['update','emit','removeListener','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save'];(function(_0x3123ca,_0x39412e){var _0x33019e=function(_0x27ed5b){while(--_0x27ed5b){_0x3123ca['push'](_0x3123ca['shift']());}};_0x33019e(++_0x39412e);}(_0xe55d,0x126));var _0xde55=function(_0x2785f6,_0x47e6b9){_0x2785f6=_0x2785f6-0x0;var _0x143ea8=_0xe55d[_0x2785f6];return _0x143ea8;};'use strict';var UserVoiceQueueRtEvents=require(_0xde55('0x0'));var events=[_0xde55('0x1'),'remove',_0xde55('0x2')];function createListener(_0x144148,_0x15f65e){return function(_0x1e6b1b){_0x15f65e[_0xde55('0x3')](_0x144148,_0x1e6b1b);};}function removeListener(_0x24b809,_0x532d91){return function(){UserVoiceQueueRtEvents[_0xde55('0x4')](_0x24b809,_0x532d91);};}exports[_0xde55('0x5')]=function(_0x3b2c0a){for(var _0x55d5fa=0x0,_0x1e7b53=events[_0xde55('0x6')];_0x55d5fa<_0x1e7b53;_0x55d5fa++){var _0x1e342e=events[_0x55d5fa];var _0x2094bb=createListener(_0xde55('0x7')+_0x1e342e,_0x3b2c0a);UserVoiceQueueRtEvents['on'](_0x1e342e,_0x2094bb);}};