3aa938c76be09e5261359683ffcd81e036ac1a7d
[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 _0xcf7d=['remove','update','emit','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events','save'];(function(_0x5b4701,_0x22bf1c){var _0x212815=function(_0x4516ef){while(--_0x4516ef){_0x5b4701['push'](_0x5b4701['shift']());}};_0x212815(++_0x22bf1c);}(_0xcf7d,0x1c9));var _0xdcf7=function(_0x29586b,_0x313dc2){_0x29586b=_0x29586b-0x0;var _0x1ceaa0=_0xcf7d[_0x29586b];return _0x1ceaa0;};'use strict';var VoiceQueueReportEvents=require(_0xdcf7('0x0'));var events=[_0xdcf7('0x1'),_0xdcf7('0x2'),_0xdcf7('0x3')];function createListener(_0x3ba82d,_0x582a92){return function(_0x360983){_0x582a92[_0xdcf7('0x4')](_0x3ba82d,_0x360983);};}function removeListener(_0x36fb1a,_0x8f53a4){return function(){VoiceQueueReportEvents[_0xdcf7('0x5')](_0x36fb1a,_0x8f53a4);};}exports[_0xdcf7('0x6')]=function(_0x2512e9){for(var _0x1aba1c=0x0,_0x5528bb=events[_0xdcf7('0x7')];_0x1aba1c<_0x5528bb;_0x1aba1c++){var _0x508796=events[_0x1aba1c];var _0x4dfd94=createListener(_0xdcf7('0x8')+_0x508796,_0x2512e9);VoiceQueueReportEvents['on'](_0x508796,_0x4dfd94);}};