f5994836c1178406d95eb8a548e8483e6d0d85d4
[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 _0x2409=['./voiceQueueReport.events','save','remove','update','emit','removeListener','register','length'];(function(_0x45fb6d,_0xdea806){var _0x3995d1=function(_0x1096c5){while(--_0x1096c5){_0x45fb6d['push'](_0x45fb6d['shift']());}};_0x3995d1(++_0xdea806);}(_0x2409,0x128));var _0x9240=function(_0x29b7b7,_0x483ba8){_0x29b7b7=_0x29b7b7-0x0;var _0x1f47b6=_0x2409[_0x29b7b7];return _0x1f47b6;};'use strict';var VoiceQueueReportEvents=require(_0x9240('0x0'));var events=[_0x9240('0x1'),_0x9240('0x2'),_0x9240('0x3')];function createListener(_0x45933d,_0x848f75){return function(_0x4d88c7){_0x848f75[_0x9240('0x4')](_0x45933d,_0x4d88c7);};}function removeListener(_0x6947ae,_0x3d3683){return function(){VoiceQueueReportEvents[_0x9240('0x5')](_0x6947ae,_0x3d3683);};}exports[_0x9240('0x6')]=function(_0x49b5f6){for(var _0xdab4c3=0x0,_0x496405=events[_0x9240('0x7')];_0xdab4c3<_0x496405;_0xdab4c3++){var _0x4997e9=events[_0xdab4c3];var _0x50e2df=createListener('voiceQueueReport:'+_0x4997e9,_0x49b5f6);VoiceQueueReportEvents['on'](_0x4997e9,_0x50e2df);}};