48e58519dd6501fd64b15dd8d7953fe4ca8e0e94
[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 _0x061b=['update','emit','removeListener','register','length','voiceQueueReport:','save','remove'];(function(_0x16c723,_0x21b1bf){var _0x29ac3f=function(_0x9b573e){while(--_0x9b573e){_0x16c723['push'](_0x16c723['shift']());}};_0x29ac3f(++_0x21b1bf);}(_0x061b,0x6e));var _0xb061=function(_0x3b0731,_0xcf9925){_0x3b0731=_0x3b0731-0x0;var _0x4204d7=_0x061b[_0x3b0731];return _0x4204d7;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0xb061('0x0'),_0xb061('0x1'),_0xb061('0x2')];function createListener(_0x5ebc19,_0x27d414){return function(_0x32ef59){_0x27d414[_0xb061('0x3')](_0x5ebc19,_0x32ef59);};}function removeListener(_0x5077ec,_0x5500b2){return function(){VoiceQueueReportEvents[_0xb061('0x4')](_0x5077ec,_0x5500b2);};}exports[_0xb061('0x5')]=function(_0x4e68f6){for(var _0x2f1edd=0x0,_0x2837fb=events[_0xb061('0x6')];_0x2f1edd<_0x2837fb;_0x2f1edd++){var _0x314b0f=events[_0x2f1edd];var _0x120255=createListener(_0xb061('0x7')+_0x314b0f,_0x4e68f6);VoiceQueueReportEvents['on'](_0x314b0f,_0x120255);}};