2149282466a9df07ff80faffed916e99680f5d36
[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 _0x5fc0=['removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events','save','remove','update','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5fc0,0xdc));var _0x05fc=function(_0x42b28b,_0x126968){_0x42b28b=_0x42b28b-0x0;var _0x120c0c=_0x5fc0[_0x42b28b];return _0x120c0c;};'use strict';var VoiceQueueReportEvents=require(_0x05fc('0x0'));var events=[_0x05fc('0x1'),_0x05fc('0x2'),_0x05fc('0x3')];function createListener(_0x4ecf62,_0x11f75f){return function(_0x568b11){_0x11f75f[_0x05fc('0x4')](_0x4ecf62,_0x568b11);};}function removeListener(_0x1801e6,_0x131b36){return function(){VoiceQueueReportEvents[_0x05fc('0x5')](_0x1801e6,_0x131b36);};}exports[_0x05fc('0x6')]=function(_0x11d0b5){for(var _0x2e45a6=0x0,_0x955f85=events[_0x05fc('0x7')];_0x2e45a6<_0x955f85;_0x2e45a6++){var _0x33e6ff=events[_0x2e45a6];var _0xdc6a38=createListener(_0x05fc('0x8')+_0x33e6ff,_0x11d0b5);VoiceQueueReportEvents['on'](_0x33e6ff,_0xdc6a38);}};