Built motion from commit (unavailable).|2.5.20
[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 _0x1314=['emit','register','length','voiceQueueReport:','save','remove'];(function(_0x260361,_0xe6bd66){var _0x4a2899=function(_0x338d1a){while(--_0x338d1a){_0x260361['push'](_0x260361['shift']());}};_0x4a2899(++_0xe6bd66);}(_0x1314,0x1e4));var _0x4131=function(_0xa9eaa0,_0x4ba2b4){_0xa9eaa0=_0xa9eaa0-0x0;var _0x30897a=_0x1314[_0xa9eaa0];return _0x30897a;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0x4131('0x0'),_0x4131('0x1'),'update'];function createListener(_0x16dbd1,_0x3e44bc){return function(_0x13aa4f){_0x3e44bc[_0x4131('0x2')](_0x16dbd1,_0x13aa4f);};}function removeListener(_0x4d7997,_0x3b108a){return function(){VoiceQueueReportEvents['removeListener'](_0x4d7997,_0x3b108a);};}exports[_0x4131('0x3')]=function(_0x299f2f){for(var _0x15b7b2=0x0,_0x2ea5c6=events[_0x4131('0x4')];_0x15b7b2<_0x2ea5c6;_0x15b7b2++){var _0x12f95a=events[_0x15b7b2];var _0x45b334=createListener(_0x4131('0x5')+_0x12f95a,_0x299f2f);VoiceQueueReportEvents['on'](_0x12f95a,_0x45b334);}};