2cd319066ef06235aa3eda1c116da3a09572172d
[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 _0x1c61=['removeListener','register','length','./voiceQueueReport.events','save','remove','update','emit'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x1c61,0x1e3));var _0x11c6=function(_0x996bc8,_0x291e01){_0x996bc8=_0x996bc8-0x0;var _0x20b0ea=_0x1c61[_0x996bc8];return _0x20b0ea;};'use strict';var VoiceQueueReportEvents=require(_0x11c6('0x0'));var events=[_0x11c6('0x1'),_0x11c6('0x2'),_0x11c6('0x3')];function createListener(_0x308611,_0x3f2f20){return function(_0x518923){_0x3f2f20[_0x11c6('0x4')](_0x308611,_0x518923);};}function removeListener(_0x325a56,_0x437fac){return function(){VoiceQueueReportEvents[_0x11c6('0x5')](_0x325a56,_0x437fac);};}exports[_0x11c6('0x6')]=function(_0x517e41){for(var _0x302262=0x0,_0x1fe123=events[_0x11c6('0x7')];_0x302262<_0x1fe123;_0x302262++){var _0xf62bfc=events[_0x302262];var _0x30ff11=createListener('voiceQueueReport:'+_0xf62bfc,_0x517e41);VoiceQueueReportEvents['on'](_0xf62bfc,_0x30ff11);}};