3b5681b58457dcd4a82d4b35ebeaba27d08857a8
[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 _0xcc05=['length','voiceQueueReport:','./voiceQueueReport.events','save','update','emit','register'];(function(_0x191f72,_0x30cf2b){var _0x423db0=function(_0x395116){while(--_0x395116){_0x191f72['push'](_0x191f72['shift']());}};_0x423db0(++_0x30cf2b);}(_0xcc05,0x95));var _0x5cc0=function(_0xc411d0,_0x118c9c){_0xc411d0=_0xc411d0-0x0;var _0xf9f573=_0xcc05[_0xc411d0];return _0xf9f573;};'use strict';var VoiceQueueReportEvents=require(_0x5cc0('0x0'));var events=[_0x5cc0('0x1'),'remove',_0x5cc0('0x2')];function createListener(_0x31acb,_0x211131){return function(_0x4f85b6){_0x211131[_0x5cc0('0x3')](_0x31acb,_0x4f85b6);};}function removeListener(_0x3148a5,_0x59924d){return function(){VoiceQueueReportEvents['removeListener'](_0x3148a5,_0x59924d);};}exports[_0x5cc0('0x4')]=function(_0x420064){for(var _0x30b9b4=0x0,_0x57768b=events[_0x5cc0('0x5')];_0x30b9b4<_0x57768b;_0x30b9b4++){var _0x14a90c=events[_0x30b9b4];var _0x35a07d=createListener(_0x5cc0('0x6')+_0x14a90c,_0x420064);VoiceQueueReportEvents['on'](_0x14a90c,_0x35a07d);}};