Built motion from commit da617fac.|2.6.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 _0x8917=['emit','removeListener','length','./voiceQueueReport.events','remove','update'];(function(_0x455745,_0x5a9a82){var _0x29b21b=function(_0x477374){while(--_0x477374){_0x455745['push'](_0x455745['shift']());}};_0x29b21b(++_0x5a9a82);}(_0x8917,0x1d7));var _0x7891=function(_0x464707,_0x4f5da4){_0x464707=_0x464707-0x0;var _0x379110=_0x8917[_0x464707];return _0x379110;};'use strict';var VoiceQueueReportEvents=require(_0x7891('0x0'));var events=['save',_0x7891('0x1'),_0x7891('0x2')];function createListener(_0xfc1628,_0x129608){return function(_0xdf5de1){_0x129608[_0x7891('0x3')](_0xfc1628,_0xdf5de1);};}function removeListener(_0x2b5570,_0x24234b){return function(){VoiceQueueReportEvents[_0x7891('0x4')](_0x2b5570,_0x24234b);};}exports['register']=function(_0x46b52a){for(var _0x43a48e=0x0,_0x442944=events[_0x7891('0x5')];_0x43a48e<_0x442944;_0x43a48e++){var _0x4722b7=events[_0x43a48e];var _0x452a6d=createListener('voiceQueueReport:'+_0x4722b7,_0x46b52a);VoiceQueueReportEvents['on'](_0x4722b7,_0x452a6d);}};