Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.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 _0xd9d9=['emit','register','length','save','remove','update'];(function(_0x273641,_0x47fd56){var _0x127fce=function(_0x4fc621){while(--_0x4fc621){_0x273641['push'](_0x273641['shift']());}};_0x127fce(++_0x47fd56);}(_0xd9d9,0x11d));var _0x9d9d=function(_0x20d9f0,_0x453415){_0x20d9f0=_0x20d9f0-0x0;var _0x195dda=_0xd9d9[_0x20d9f0];return _0x195dda;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0x9d9d('0x0'),_0x9d9d('0x1'),_0x9d9d('0x2')];function createListener(_0x1161e2,_0x230cb7){return function(_0x13655d){_0x230cb7[_0x9d9d('0x3')](_0x1161e2,_0x13655d);};}function removeListener(_0x2693b7,_0x482617){return function(){VoiceQueueReportEvents['removeListener'](_0x2693b7,_0x482617);};}exports[_0x9d9d('0x4')]=function(_0x508cb4){for(var _0x25f128=0x0,_0x577bb3=events[_0x9d9d('0x5')];_0x25f128<_0x577bb3;_0x25f128++){var _0x2d1419=events[_0x25f128];var _0xf15972=createListener('voiceQueueReport:'+_0x2d1419,_0x508cb4);VoiceQueueReportEvents['on'](_0x2d1419,_0xf15972);}};