Built motion from commit 00bf23f6.|2.6.16
[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 _0x6c14=['length','userVoiceQueueRt:','./userVoiceQueueRt.events','save','remove','update','emit','removeListener','register'];(function(_0x12420d,_0x4cbc00){var _0x5650b4=function(_0x14a2a0){while(--_0x14a2a0){_0x12420d['push'](_0x12420d['shift']());}};_0x5650b4(++_0x4cbc00);}(_0x6c14,0xd1));var _0x46c1=function(_0x1293c4,_0x528f3f){_0x1293c4=_0x1293c4-0x0;var _0x29f499=_0x6c14[_0x1293c4];return _0x29f499;};'use strict';var UserVoiceQueueRtEvents=require(_0x46c1('0x0'));var events=[_0x46c1('0x1'),_0x46c1('0x2'),_0x46c1('0x3')];function createListener(_0xefbe38,_0x48cbdf){return function(_0x142e95){_0x48cbdf[_0x46c1('0x4')](_0xefbe38,_0x142e95);};}function removeListener(_0x311234,_0x5b4a69){return function(){UserVoiceQueueRtEvents[_0x46c1('0x5')](_0x311234,_0x5b4a69);};}exports[_0x46c1('0x6')]=function(_0x30120b){for(var _0x270204=0x0,_0x29b2d8=events[_0x46c1('0x7')];_0x270204<_0x29b2d8;_0x270204++){var _0xfaf798=events[_0x270204];var _0x1277f7=createListener(_0x46c1('0x8')+_0xfaf798,_0x30120b);UserVoiceQueueRtEvents['on'](_0xfaf798,_0x1277f7);}};