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 _0xb715=['update','userVoiceQueueRt:','save'];(function(_0x10dbf6,_0x3ff964){var _0x452147=function(_0x7476e0){while(--_0x7476e0){_0x10dbf6['push'](_0x10dbf6['shift']());}};_0x452147(++_0x3ff964);}(_0xb715,0x16d));var _0x5b71=function(_0x56c376,_0xf783e7){_0x56c376=_0x56c376-0x0;var _0x392f4d=_0xb715[_0x56c376];return _0x392f4d;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0x5b71('0x0'),'remove',_0x5b71('0x1')];function createListener(_0x142fff,_0x56f938){return function(_0x2ebf52){_0x56f938['emit'](_0x142fff,_0x2ebf52);};}function removeListener(_0x163202,_0x1a6819){return function(){UserVoiceQueueRtEvents['removeListener'](_0x163202,_0x1a6819);};}exports['register']=function(_0x887674){for(var _0x2a2950=0x0,_0x5a66fa=events['length'];_0x2a2950<_0x5a66fa;_0x2a2950++){var _0x4f1d28=events[_0x2a2950];var _0x37c945=createListener(_0x5b71('0x2')+_0x4f1d28,_0x887674);UserVoiceQueueRtEvents['on'](_0x4f1d28,_0x37c945);}};