38fb39768ec6cd8c1e0e5848db871d3265bc90ea
[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 _0x2fa9=['emit','register','length','voiceQueueReport:','./voiceQueueReport.events','save','remove','update'];(function(_0x21c0de,_0x4a9720){var _0x32229e=function(_0x275c29){while(--_0x275c29){_0x21c0de['push'](_0x21c0de['shift']());}};_0x32229e(++_0x4a9720);}(_0x2fa9,0x144));var _0x92fa=function(_0x46ba50,_0x24068a){_0x46ba50=_0x46ba50-0x0;var _0x4dedef=_0x2fa9[_0x46ba50];return _0x4dedef;};'use strict';var VoiceQueueReportEvents=require(_0x92fa('0x0'));var events=[_0x92fa('0x1'),_0x92fa('0x2'),_0x92fa('0x3')];function createListener(_0x103ebe,_0x3221b5){return function(_0x5d24db){_0x3221b5[_0x92fa('0x4')](_0x103ebe,_0x5d24db);};}function removeListener(_0x2f9f15,_0x361e63){return function(){VoiceQueueReportEvents['removeListener'](_0x2f9f15,_0x361e63);};}exports[_0x92fa('0x5')]=function(_0x3fa3cc){for(var _0x1a9f28=0x0,_0x4a3d25=events[_0x92fa('0x6')];_0x1a9f28<_0x4a3d25;_0x1a9f28++){var _0x30cf75=events[_0x1a9f28];var _0x3f5bd9=createListener(_0x92fa('0x7')+_0x30cf75,_0x3fa3cc);VoiceQueueReportEvents['on'](_0x30cf75,_0x3f5bd9);}};