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 _0xd7c3=['update','emit','removeListener','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save','remove'];(function(_0x4638a0,_0x232ab6){var _0x26b1ed=function(_0x487376){while(--_0x487376){_0x4638a0['push'](_0x4638a0['shift']());}};_0x26b1ed(++_0x232ab6);}(_0xd7c3,0x1c5));var _0x3d7c=function(_0x1fafbb,_0xc5082f){_0x1fafbb=_0x1fafbb-0x0;var _0x4b5877=_0xd7c3[_0x1fafbb];return _0x4b5877;};'use strict';var UserVoiceQueueRtEvents=require(_0x3d7c('0x0'));var events=[_0x3d7c('0x1'),_0x3d7c('0x2'),_0x3d7c('0x3')];function createListener(_0x2ff255,_0x1d618e){return function(_0x4ad9fe){_0x1d618e[_0x3d7c('0x4')](_0x2ff255,_0x4ad9fe);};}function removeListener(_0x22396c,_0x538ca7){return function(){UserVoiceQueueRtEvents[_0x3d7c('0x5')](_0x22396c,_0x538ca7);};}exports['register']=function(_0x52b31c){for(var _0x504e04=0x0,_0xeccebe=events[_0x3d7c('0x6')];_0x504e04<_0xeccebe;_0x504e04++){var _0x3416dd=events[_0x504e04];var _0x2bd736=createListener(_0x3d7c('0x7')+_0x3416dd,_0x52b31c);UserVoiceQueueRtEvents['on'](_0x3416dd,_0x2bd736);}};