Built motion from commit b0a9a629.|2.6.33
[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 _0xe4b8=['save','remove','update','removeListener','register','length','./voiceQueueReport.events'];(function(_0x282389,_0x212532){var _0x570170=function(_0x4e6736){while(--_0x4e6736){_0x282389['push'](_0x282389['shift']());}};_0x570170(++_0x212532);}(_0xe4b8,0x179));var _0x8e4b=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0xe4b8[_0x2c91e9];return _0x13f0ff;};'use strict';var VoiceQueueReportEvents=require(_0x8e4b('0x0'));var events=[_0x8e4b('0x1'),_0x8e4b('0x2'),_0x8e4b('0x3')];function createListener(_0x42c835,_0x365269){return function(_0x1161a8){_0x365269['emit'](_0x42c835,_0x1161a8);};}function removeListener(_0x4fa340,_0x35e679){return function(){VoiceQueueReportEvents[_0x8e4b('0x4')](_0x4fa340,_0x35e679);};}exports[_0x8e4b('0x5')]=function(_0x47e630){for(var _0x2796f8=0x0,_0x4d0472=events[_0x8e4b('0x6')];_0x2796f8<_0x4d0472;_0x2796f8++){var _0x5642a3=events[_0x2796f8];var _0x4e0535=createListener('voiceQueueReport:'+_0x5642a3,_0x47e630);VoiceQueueReportEvents['on'](_0x5642a3,_0x4e0535);}};