Built motion from commit a679711e.|2.6.15
[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 _0xbccd=['emit','removeListener','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','update'];(function(_0x3d86cc,_0x45ae9c){var _0x3147f2=function(_0x299aa4){while(--_0x299aa4){_0x3d86cc['push'](_0x3d86cc['shift']());}};_0x3147f2(++_0x45ae9c);}(_0xbccd,0x1b0));var _0xdbcc=function(_0x3ff085,_0x27c92e){_0x3ff085=_0x3ff085-0x0;var _0x2b68c3=_0xbccd[_0x3ff085];return _0x2b68c3;};'use strict';var UserVoiceQueueRtEvents=require(_0xdbcc('0x0'));var events=['save','remove',_0xdbcc('0x1')];function createListener(_0x1c6fb5,_0x39bff4){return function(_0x193088){_0x39bff4[_0xdbcc('0x2')](_0x1c6fb5,_0x193088);};}function removeListener(_0x33b260,_0x4bd11a){return function(){UserVoiceQueueRtEvents[_0xdbcc('0x3')](_0x33b260,_0x4bd11a);};}exports[_0xdbcc('0x4')]=function(_0x9cca7a){for(var _0x2997fd=0x0,_0x7fe600=events[_0xdbcc('0x5')];_0x2997fd<_0x7fe600;_0x2997fd++){var _0x216289=events[_0x2997fd];var _0x22d783=createListener(_0xdbcc('0x6')+_0x216289,_0x9cca7a);UserVoiceQueueRtEvents['on'](_0x216289,_0x22d783);}};