Built motion from commit 43538d75.|2.5.35
[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 _0x0c9c=['./voiceQueueReport.events','save','remove','update','emit','removeListener','register','length'];(function(_0x4b2863,_0x494899){var _0x567d67=function(_0x751f03){while(--_0x751f03){_0x4b2863['push'](_0x4b2863['shift']());}};_0x567d67(++_0x494899);}(_0x0c9c,0x188));var _0xc0c9=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x0c9c[_0x3dd15e];return _0x231fd0;};'use strict';var VoiceQueueReportEvents=require(_0xc0c9('0x0'));var events=[_0xc0c9('0x1'),_0xc0c9('0x2'),_0xc0c9('0x3')];function createListener(_0x4abb6c,_0xe1a7e7){return function(_0x5bc767){_0xe1a7e7[_0xc0c9('0x4')](_0x4abb6c,_0x5bc767);};}function removeListener(_0x7f8ea1,_0x40f245){return function(){VoiceQueueReportEvents[_0xc0c9('0x5')](_0x7f8ea1,_0x40f245);};}exports[_0xc0c9('0x6')]=function(_0x46f5be){for(var _0x439963=0x0,_0x42a744=events[_0xc0c9('0x7')];_0x439963<_0x42a744;_0x439963++){var _0x23d607=events[_0x439963];var _0x785bba=createListener('voiceQueueReport:'+_0x23d607,_0x46f5be);VoiceQueueReportEvents['on'](_0x23d607,_0x785bba);}};