Built motion from commit 47436d59.|2.6.7
[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 _0xd5bf=['remove','update','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events','save'];(function(_0x35e93c,_0x4aac86){var _0x165ffb=function(_0x397480){while(--_0x397480){_0x35e93c['push'](_0x35e93c['shift']());}};_0x165ffb(++_0x4aac86);}(_0xd5bf,0x66));var _0xfd5b=function(_0x493eba,_0x5c35f6){_0x493eba=_0x493eba-0x0;var _0x3e520a=_0xd5bf[_0x493eba];return _0x3e520a;};'use strict';var VoiceQueueReportEvents=require(_0xfd5b('0x0'));var events=[_0xfd5b('0x1'),_0xfd5b('0x2'),_0xfd5b('0x3')];function createListener(_0x467dc9,_0x2991d0){return function(_0x1a99a5){_0x2991d0['emit'](_0x467dc9,_0x1a99a5);};}function removeListener(_0x5cab79,_0x2ba290){return function(){VoiceQueueReportEvents[_0xfd5b('0x4')](_0x5cab79,_0x2ba290);};}exports[_0xfd5b('0x5')]=function(_0x50351f){for(var _0x5f079a=0x0,_0x2c61da=events[_0xfd5b('0x6')];_0x5f079a<_0x2c61da;_0x5f079a++){var _0x42b565=events[_0x5f079a];var _0x485158=createListener(_0xfd5b('0x7')+_0x42b565,_0x50351f);VoiceQueueReportEvents['on'](_0x42b565,_0x485158);}};