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 _0xf1c6=['remove','update','register','length','userVoiceQueueRt:'];(function(_0x52a58c,_0x102224){var _0x3e826a=function(_0x26fc10){while(--_0x26fc10){_0x52a58c['push'](_0x52a58c['shift']());}};_0x3e826a(++_0x102224);}(_0xf1c6,0x145));var _0x6f1c=function(_0x489751,_0x46a67f){_0x489751=_0x489751-0x0;var _0x29a65f=_0xf1c6[_0x489751];return _0x29a65f;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=['save',_0x6f1c('0x0'),_0x6f1c('0x1')];function createListener(_0x26cd1b,_0x405b3c){return function(_0xc393e2){_0x405b3c['emit'](_0x26cd1b,_0xc393e2);};}function removeListener(_0x5f0d77,_0x43775d){return function(){UserVoiceQueueRtEvents['removeListener'](_0x5f0d77,_0x43775d);};}exports[_0x6f1c('0x2')]=function(_0xa275f4){for(var _0x462c85=0x0,_0x537c4f=events[_0x6f1c('0x3')];_0x462c85<_0x537c4f;_0x462c85++){var _0x564a8f=events[_0x462c85];var _0x275f11=createListener(_0x6f1c('0x4')+_0x564a8f,_0xa275f4);UserVoiceQueueRtEvents['on'](_0x564a8f,_0x275f11);}};