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 _0x61f7=['emit','removeListener','register','length','./userVoiceQueueRt.events','save','remove','update'];(function(_0x431488,_0x37f9d5){var _0x9ce3d1=function(_0x228d1a){while(--_0x228d1a){_0x431488['push'](_0x431488['shift']());}};_0x9ce3d1(++_0x37f9d5);}(_0x61f7,0xcc));var _0x761f=function(_0x5ee5c3,_0x150938){_0x5ee5c3=_0x5ee5c3-0x0;var _0xd738c=_0x61f7[_0x5ee5c3];return _0xd738c;};'use strict';var UserVoiceQueueRtEvents=require(_0x761f('0x0'));var events=[_0x761f('0x1'),_0x761f('0x2'),_0x761f('0x3')];function createListener(_0x57cd78,_0x30f17e){return function(_0x5366f5){_0x30f17e[_0x761f('0x4')](_0x57cd78,_0x5366f5);};}function removeListener(_0x4e32af,_0x4b67f0){return function(){UserVoiceQueueRtEvents[_0x761f('0x5')](_0x4e32af,_0x4b67f0);};}exports[_0x761f('0x6')]=function(_0x2941dd){for(var _0x31dcbc=0x0,_0x244a5c=events[_0x761f('0x7')];_0x31dcbc<_0x244a5c;_0x31dcbc++){var _0x534b80=events[_0x31dcbc];var _0x3b9ba6=createListener('userVoiceQueueRt:'+_0x534b80,_0x2941dd);UserVoiceQueueRtEvents['on'](_0x534b80,_0x3b9ba6);}};