Built motion from commit ab870f9e.|2.5.44
[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 _0x5419=['update','emit','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save','remove'];(function(_0x4f9b18,_0x2cb5ca){var _0x29f20c=function(_0x268b3d){while(--_0x268b3d){_0x4f9b18['push'](_0x4f9b18['shift']());}};_0x29f20c(++_0x2cb5ca);}(_0x5419,0x175));var _0x9541=function(_0x30e350,_0x359dd4){_0x30e350=_0x30e350-0x0;var _0x948992=_0x5419[_0x30e350];return _0x948992;};'use strict';var UserVoiceQueueRtEvents=require(_0x9541('0x0'));var events=[_0x9541('0x1'),_0x9541('0x2'),_0x9541('0x3')];function createListener(_0x44e02b,_0x5b451e){return function(_0x15418a){_0x5b451e[_0x9541('0x4')](_0x44e02b,_0x15418a);};}function removeListener(_0x307a35,_0xacdcfa){return function(){UserVoiceQueueRtEvents['removeListener'](_0x307a35,_0xacdcfa);};}exports[_0x9541('0x5')]=function(_0x1f9139){for(var _0xbdabaf=0x0,_0x3c8491=events[_0x9541('0x6')];_0xbdabaf<_0x3c8491;_0xbdabaf++){var _0x22f42f=events[_0xbdabaf];var _0x306dcb=createListener(_0x9541('0x7')+_0x22f42f,_0x1f9139);UserVoiceQueueRtEvents['on'](_0x22f42f,_0x306dcb);}};