087b1173c7f53a6168682517ec7786e48dab4df0
[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 _0x6b1d=['length','save','update','emit','register'];(function(_0x30567e,_0xa860af){var _0x48161d=function(_0x1f61cd){while(--_0x1f61cd){_0x30567e['push'](_0x30567e['shift']());}};_0x48161d(++_0xa860af);}(_0x6b1d,0xc9));var _0xd6b1=function(_0x6c40ba,_0x5e39fa){_0x6c40ba=_0x6c40ba-0x0;var _0x7a54dd=_0x6b1d[_0x6c40ba];return _0x7a54dd;};'use strict';var VoiceQueueReportEvents=require('./voiceQueueReport.events');var events=[_0xd6b1('0x0'),'remove',_0xd6b1('0x1')];function createListener(_0x15351b,_0x409fc9){return function(_0x372042){_0x409fc9[_0xd6b1('0x2')](_0x15351b,_0x372042);};}function removeListener(_0x5f3de9,_0x75f22b){return function(){VoiceQueueReportEvents['removeListener'](_0x5f3de9,_0x75f22b);};}exports[_0xd6b1('0x3')]=function(_0x37345b){for(var _0x106639=0x0,_0x29b0f7=events[_0xd6b1('0x4')];_0x106639<_0x29b0f7;_0x106639++){var _0x34bdd6=events[_0x106639];var _0x1adddd=createListener('voiceQueueReport:'+_0x34bdd6,_0x37345b);VoiceQueueReportEvents['on'](_0x34bdd6,_0x1adddd);}};