65716ce2d3c0b0cb814fe877029feca9521f7438
[motion2.git] / server / api / voiceQueue / voiceQueue.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 _0x1803=['update','emit','removeListener','register','length','voiceQueue:','./voiceQueue.events','save','remove'];(function(_0x1cb6d5,_0x4d3dd7){var _0x12b134=function(_0x3ea4c1){while(--_0x3ea4c1){_0x1cb6d5['push'](_0x1cb6d5['shift']());}};_0x12b134(++_0x4d3dd7);}(_0x1803,0x72));var _0x3180=function(_0x3e16b6,_0x2dbc3c){_0x3e16b6=_0x3e16b6-0x0;var _0x1b9624=_0x1803[_0x3e16b6];return _0x1b9624;};'use strict';var VoiceQueueEvents=require(_0x3180('0x0'));var events=[_0x3180('0x1'),_0x3180('0x2'),_0x3180('0x3')];function createListener(_0x340e5c,_0x2ed1b6){return function(_0x49788c){_0x2ed1b6[_0x3180('0x4')](_0x340e5c,_0x49788c);};}function removeListener(_0x43e30e,_0x412adc){return function(){VoiceQueueEvents[_0x3180('0x5')](_0x43e30e,_0x412adc);};}exports[_0x3180('0x6')]=function(_0x33a797){for(var _0x176672=0x0,_0x1fba52=events[_0x3180('0x7')];_0x176672<_0x1fba52;_0x176672++){var _0x1f1b87=events[_0x176672];var _0x6c8780=createListener(_0x3180('0x8')+_0x1f1b87,_0x33a797);VoiceQueueEvents['on'](_0x1f1b87,_0x6c8780);}};