359795d412dd2ed28b7bf27ba52c1856747583f4
[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 _0x42db=['remove','update','emit','register','length','voiceQueueReport:','save'];(function(_0x49047d,_0x38d1cf){var _0x44e662=function(_0xe7417e){while(--_0xe7417e){_0x49047d['push'](_0x49047d['shift']());}};_0x44e662(++_0x38d1cf);}(_0x42db,0x1db));var _0xb42d=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x42db[_0x20a584];return _0x4b41a8;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0xb42d('0x0'),_0xb42d('0x1'),_0xb42d('0x2')];function createListener(_0x496b63,_0x47cd6b){return function(_0x3aa33b){_0x47cd6b[_0xb42d('0x3')](_0x496b63,_0x3aa33b);};}function removeListener(_0x2d84ba,_0x50ef4b){return function(){VoiceQueueReportEvents['removeListener'](_0x2d84ba,_0x50ef4b);};}exports[_0xb42d('0x4')]=function(_0x1adc2a){for(var _0x4f39b4=0x0,_0x55467f=events[_0xb42d('0x5')];_0x4f39b4<_0x55467f;_0x4f39b4++){var _0x45bb6a=events[_0x4f39b4];var _0x59c2bf=createListener(_0xb42d('0x6')+_0x45bb6a,_0x1adc2a);VoiceQueueReportEvents['on'](_0x45bb6a,_0x59c2bf);}};