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 _0xfc76=['userVoiceQueueRt:','save','remove','update','emit','removeListener'];(function(_0x442281,_0x3fd29a){var _0x6e841c=function(_0x581f28){while(--_0x581f28){_0x442281['push'](_0x442281['shift']());}};_0x6e841c(++_0x3fd29a);}(_0xfc76,0xb5));var _0x6fc7=function(_0x13cb1c,_0x373aee){_0x13cb1c=_0x13cb1c-0x0;var _0x1d5191=_0xfc76[_0x13cb1c];return _0x1d5191;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x6fc7('0x0'),_0x6fc7('0x1'),_0x6fc7('0x2')];function createListener(_0xdc26f7,_0x5c0232){return function(_0x5c6b36){_0x5c0232[_0x6fc7('0x3')](_0xdc26f7,_0x5c6b36);};}function removeListener(_0x40d212,_0x51280c){return function(){UserVoiceQueueRtEvents[_0x6fc7('0x4')](_0x40d212,_0x51280c);};}exports['register']=function(_0xe8177b){for(var _0x82a35a=0x0,_0x385a5a=events['length'];_0x82a35a<_0x385a5a;_0x82a35a++){var _0x21a64d=events[_0x82a35a];var _0x407b0a=createListener(_0x6fc7('0x5')+_0x21a64d,_0xe8177b);UserVoiceQueueRtEvents['on'](_0x21a64d,_0x407b0a);}};