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 _0xb65f=['save','remove','emit','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events'];(function(_0x3690a7,_0x4cc1b7){var _0x4c9d8a=function(_0x1903b3){while(--_0x1903b3){_0x3690a7['push'](_0x3690a7['shift']());}};_0x4c9d8a(++_0x4cc1b7);}(_0xb65f,0xc3));var _0xfb65=function(_0x38daf9,_0xd97a1a){_0x38daf9=_0x38daf9-0x0;var _0x165f6b=_0xb65f[_0x38daf9];return _0x165f6b;};'use strict';var UserVoiceQueueRtEvents=require(_0xfb65('0x0'));var events=[_0xfb65('0x1'),_0xfb65('0x2'),'update'];function createListener(_0x4e1d5a,_0x45128){return function(_0x5a80ee){_0x45128[_0xfb65('0x3')](_0x4e1d5a,_0x5a80ee);};}function removeListener(_0x1f823d,_0xe1e55){return function(){UserVoiceQueueRtEvents['removeListener'](_0x1f823d,_0xe1e55);};}exports[_0xfb65('0x4')]=function(_0x1feb61){for(var _0x20f05c=0x0,_0x4a8429=events[_0xfb65('0x5')];_0x20f05c<_0x4a8429;_0x20f05c++){var _0x3e0343=events[_0x20f05c];var _0x3e1e83=createListener(_0xfb65('0x6')+_0x3e0343,_0x1feb61);UserVoiceQueueRtEvents['on'](_0x3e0343,_0x3e1e83);}};