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 _0x3f1c=['removeListener','length','./userVoiceQueueRt.events','update','emit'];(function(_0x1a409b,_0x3b8ae9){var _0xa4dbbc=function(_0xc5686){while(--_0xc5686){_0x1a409b['push'](_0x1a409b['shift']());}};_0xa4dbbc(++_0x3b8ae9);}(_0x3f1c,0xd4));var _0xc3f1=function(_0x2e954e,_0x41943b){_0x2e954e=_0x2e954e-0x0;var _0x14368e=_0x3f1c[_0x2e954e];return _0x14368e;};'use strict';var UserVoiceQueueRtEvents=require(_0xc3f1('0x0'));var events=['save','remove',_0xc3f1('0x1')];function createListener(_0x47b765,_0x59396e){return function(_0x2679d9){_0x59396e[_0xc3f1('0x2')](_0x47b765,_0x2679d9);};}function removeListener(_0x9f016d,_0xaa09ea){return function(){UserVoiceQueueRtEvents[_0xc3f1('0x3')](_0x9f016d,_0xaa09ea);};}exports['register']=function(_0x12e78a){for(var _0x4ebd4c=0x0,_0x1f0b80=events[_0xc3f1('0x4')];_0x4ebd4c<_0x1f0b80;_0x4ebd4c++){var _0x1060e6=events[_0x4ebd4c];var _0x5e4bfe=createListener('userVoiceQueueRt:'+_0x1060e6,_0x12e78a);UserVoiceQueueRtEvents['on'](_0x1060e6,_0x5e4bfe);}};