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 _0xfaff=['userVoiceQueueRt:','save','remove','emit','removeListener','register','length'];(function(_0x4f4d19,_0x574245){var _0x27a258=function(_0x38da3e){while(--_0x38da3e){_0x4f4d19['push'](_0x4f4d19['shift']());}};_0x27a258(++_0x574245);}(_0xfaff,0x151));var _0xffaf=function(_0x35c517,_0x240386){_0x35c517=_0x35c517-0x0;var _0x421563=_0xfaff[_0x35c517];return _0x421563;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0xffaf('0x0'),_0xffaf('0x1'),'update'];function createListener(_0x46638b,_0x251ca2){return function(_0x1d82dc){_0x251ca2[_0xffaf('0x2')](_0x46638b,_0x1d82dc);};}function removeListener(_0x2cba68,_0x524ab0){return function(){UserVoiceQueueRtEvents[_0xffaf('0x3')](_0x2cba68,_0x524ab0);};}exports[_0xffaf('0x4')]=function(_0x829ef4){for(var _0x1514ce=0x0,_0x155466=events[_0xffaf('0x5')];_0x1514ce<_0x155466;_0x1514ce++){var _0x2b549a=events[_0x1514ce];var _0x32a5f1=createListener(_0xffaf('0x6')+_0x2b549a,_0x829ef4);UserVoiceQueueRtEvents['on'](_0x2b549a,_0x32a5f1);}};