Built motion from commit (unavailable).|2.5.6
[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 _0x2ac9=['./voiceQueueReport.events','remove','update','emit','removeListener','register','length','voiceQueueReport:'];(function(_0x33b569,_0x453133){var _0x47f48b=function(_0x520294){while(--_0x520294){_0x33b569['push'](_0x33b569['shift']());}};_0x47f48b(++_0x453133);}(_0x2ac9,0x100));var _0x92ac=function(_0x495914,_0x3c6e6d){_0x495914=_0x495914-0x0;var _0x6e249e=_0x2ac9[_0x495914];return _0x6e249e;};'use strict';var VoiceQueueReportEvents=require(_0x92ac('0x0'));var events=['save',_0x92ac('0x1'),_0x92ac('0x2')];function createListener(_0x736b5f,_0x33cfc){return function(_0x445dcb){_0x33cfc[_0x92ac('0x3')](_0x736b5f,_0x445dcb);};}function removeListener(_0x1aa1d3,_0x500607){return function(){VoiceQueueReportEvents[_0x92ac('0x4')](_0x1aa1d3,_0x500607);};}exports[_0x92ac('0x5')]=function(_0x554b5f){for(var _0x532515=0x0,_0x18dfce=events[_0x92ac('0x6')];_0x532515<_0x18dfce;_0x532515++){var _0x453567=events[_0x532515];var _0x58de91=createListener(_0x92ac('0x7')+_0x453567,_0x554b5f);VoiceQueueReportEvents['on'](_0x453567,_0x58de91);}};