5813b66c12a4abd0e28f24ae6c71f33b451a64b3
[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 _0xf6c1=['register','length','voiceQueueReport:','remove','update','removeListener'];(function(_0xcfa8b7,_0x41e7e6){var _0x421661=function(_0x3acd6b){while(--_0x3acd6b){_0xcfa8b7['push'](_0xcfa8b7['shift']());}};_0x421661(++_0x41e7e6);}(_0xf6c1,0x99));var _0x1f6c=function(_0x5328e5,_0x586f78){_0x5328e5=_0x5328e5-0x0;var _0x3eda6e=_0xf6c1[_0x5328e5];return _0x3eda6e;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=['save',_0x1f6c('0x0'),_0x1f6c('0x1')];function createListener(_0x2007f8,_0x52980e){return function(_0x217f74){_0x52980e['emit'](_0x2007f8,_0x217f74);};}function removeListener(_0x115493,_0x83b4a6){return function(){VoiceQueueReportEvents[_0x1f6c('0x2')](_0x115493,_0x83b4a6);};}exports[_0x1f6c('0x3')]=function(_0x25e99a){for(var _0x3ab17e=0x0,_0x530b25=events[_0x1f6c('0x4')];_0x3ab17e<_0x530b25;_0x3ab17e++){var _0x1385de=events[_0x3ab17e];var _0xade159=createListener(_0x1f6c('0x5')+_0x1385de,_0x25e99a);VoiceQueueReportEvents['on'](_0x1385de,_0xade159);}};