Built motion from commit c738b9ac.|2.6.25
[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 _0x3e03=['emit','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events','save'];(function(_0x25e625,_0x2a97e2){var _0x3312cb=function(_0x3294e8){while(--_0x3294e8){_0x25e625['push'](_0x25e625['shift']());}};_0x3312cb(++_0x2a97e2);}(_0x3e03,0xc2));var _0x33e0=function(_0x2de0a7,_0x38d3e7){_0x2de0a7=_0x2de0a7-0x0;var _0x429437=_0x3e03[_0x2de0a7];return _0x429437;};'use strict';var VoiceQueueReportEvents=require(_0x33e0('0x0'));var events=[_0x33e0('0x1'),'remove','update'];function createListener(_0x5a3614,_0x4837d6){return function(_0x5324e5){_0x4837d6[_0x33e0('0x2')](_0x5a3614,_0x5324e5);};}function removeListener(_0x5acfab,_0x221365){return function(){VoiceQueueReportEvents[_0x33e0('0x3')](_0x5acfab,_0x221365);};}exports[_0x33e0('0x4')]=function(_0x36609d){for(var _0x42a979=0x0,_0x558408=events[_0x33e0('0x5')];_0x42a979<_0x558408;_0x42a979++){var _0x577f2a=events[_0x42a979];var _0x2d0a79=createListener(_0x33e0('0x6')+_0x577f2a,_0x36609d);VoiceQueueReportEvents['on'](_0x577f2a,_0x2d0a79);}};