Built motion from commit cafec4f3.|2.6.31
[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 _0x158f=['register','length','voiceQueueReport:','save','remove','update','emit'];(function(_0x3a3758,_0x4dd8cf){var _0x1a9234=function(_0x3dda22){while(--_0x3dda22){_0x3a3758['push'](_0x3a3758['shift']());}};_0x1a9234(++_0x4dd8cf);}(_0x158f,0x137));var _0xf158=function(_0x2780a0,_0x232b7f){_0x2780a0=_0x2780a0-0x0;var _0x1c9106=_0x158f[_0x2780a0];return _0x1c9106;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0xf158('0x0'),_0xf158('0x1'),_0xf158('0x2')];function createListener(_0x6c3ff4,_0x1bbba1){return function(_0x150b19){_0x1bbba1[_0xf158('0x3')](_0x6c3ff4,_0x150b19);};}function removeListener(_0x5ea49a,_0x29a06){return function(){VoiceQueueReportEvents['removeListener'](_0x5ea49a,_0x29a06);};}exports[_0xf158('0x4')]=function(_0xb84ee0){for(var _0x178e85=0x0,_0x23ff44=events[_0xf158('0x5')];_0x178e85<_0x23ff44;_0x178e85++){var _0x2a24a7=events[_0x178e85];var _0x395f69=createListener(_0xf158('0x6')+_0x2a24a7,_0xb84ee0);VoiceQueueReportEvents['on'](_0x2a24a7,_0x395f69);}};