Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xc1fc=['save','remove','emit','removeListener','register','length','userVoiceQueueRt:'];(function(_0x56482c,_0x16118d){var _0x5aae7a=function(_0x52512f){while(--_0x52512f){_0x56482c['push'](_0x56482c['shift']());}};_0x5aae7a(++_0x16118d);}(_0xc1fc,0x93));var _0xcc1f=function(_0x2c49ff,_0x5c8178){_0x2c49ff=_0x2c49ff-0x0;var _0x1d7a4a=_0xc1fc[_0x2c49ff];return _0x1d7a4a;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0xcc1f('0x0'),_0xcc1f('0x1'),'update'];function createListener(_0xe9fa4f,_0xcb1f19){return function(_0x35ef51){_0xcb1f19[_0xcc1f('0x2')](_0xe9fa4f,_0x35ef51);};}function removeListener(_0x26d3b2,_0x52703d){return function(){UserVoiceQueueRtEvents[_0xcc1f('0x3')](_0x26d3b2,_0x52703d);};}exports[_0xcc1f('0x4')]=function(_0x493a97){for(var _0x5f448b=0x0,_0x376348=events[_0xcc1f('0x5')];_0x5f448b<_0x376348;_0x5f448b++){var _0x431ca8=events[_0x5f448b];var _0x123b7d=createListener(_0xcc1f('0x6')+_0x431ca8,_0x493a97);UserVoiceQueueRtEvents['on'](_0x431ca8,_0x123b7d);}};