ace42832a3267601318d7612f5706b7258009ebb
[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 _0x2f0d=['./voiceQueueReport.events','save','remove','update','removeListener','register','length','voiceQueueReport:'];(function(_0x115bdf,_0x4de32c){var _0x4c608e=function(_0x3b6da1){while(--_0x3b6da1){_0x115bdf['push'](_0x115bdf['shift']());}};_0x4c608e(++_0x4de32c);}(_0x2f0d,0xa8));var _0xd2f0=function(_0x43e7fc,_0xaa0d8){_0x43e7fc=_0x43e7fc-0x0;var _0x21ccf0=_0x2f0d[_0x43e7fc];return _0x21ccf0;};'use strict';var VoiceQueueReportEvents=require(_0xd2f0('0x0'));var events=[_0xd2f0('0x1'),_0xd2f0('0x2'),_0xd2f0('0x3')];function createListener(_0x1c3302,_0x388a3b){return function(_0x1c3633){_0x388a3b['emit'](_0x1c3302,_0x1c3633);};}function removeListener(_0x4150e8,_0x436a1d){return function(){VoiceQueueReportEvents[_0xd2f0('0x4')](_0x4150e8,_0x436a1d);};}exports[_0xd2f0('0x5')]=function(_0x4f689c){for(var _0x2c70ca=0x0,_0x1c8200=events[_0xd2f0('0x6')];_0x2c70ca<_0x1c8200;_0x2c70ca++){var _0x1d749e=events[_0x2c70ca];var _0x287e19=createListener(_0xd2f0('0x7')+_0x1d749e,_0x4f689c);VoiceQueueReportEvents['on'](_0x1d749e,_0x287e19);}};