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 _0xbb67=['removeListener','register','userVoiceQueueRt:','save','remove','update','emit'];(function(_0x309d31,_0x6a4e9c){var _0x55a4bf=function(_0x5cb736){while(--_0x5cb736){_0x309d31['push'](_0x309d31['shift']());}};_0x55a4bf(++_0x6a4e9c);}(_0xbb67,0x161));var _0x7bb6=function(_0x427582,_0x266a66){_0x427582=_0x427582-0x0;var _0x32ebe3=_0xbb67[_0x427582];return _0x32ebe3;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x7bb6('0x0'),_0x7bb6('0x1'),_0x7bb6('0x2')];function createListener(_0x35c9ba,_0x2a1dcb){return function(_0x5b8771){_0x2a1dcb[_0x7bb6('0x3')](_0x35c9ba,_0x5b8771);};}function removeListener(_0x2c1ddb,_0x1f527c){return function(){UserVoiceQueueRtEvents[_0x7bb6('0x4')](_0x2c1ddb,_0x1f527c);};}exports[_0x7bb6('0x5')]=function(_0x139b0e){for(var _0x4b5232=0x0,_0x2a059b=events['length'];_0x4b5232<_0x2a059b;_0x4b5232++){var _0x45441a=events[_0x4b5232];var _0x15fb32=createListener(_0x7bb6('0x6')+_0x45441a,_0x139b0e);UserVoiceQueueRtEvents['on'](_0x45441a,_0x15fb32);}};