Built motion from commit d69f4380.|2.6.29
[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 _0xc57c=['emit','removeListener','register','length','voiceQueueReport:','./voiceQueueReport.events'];(function(_0xe5088b,_0x21f295){var _0x7ff7f5=function(_0x5de49b){while(--_0x5de49b){_0xe5088b['push'](_0xe5088b['shift']());}};_0x7ff7f5(++_0x21f295);}(_0xc57c,0x149));var _0xcc57=function(_0x5b74e6,_0x45fb0c){_0x5b74e6=_0x5b74e6-0x0;var _0x18c866=_0xc57c[_0x5b74e6];return _0x18c866;};'use strict';var VoiceQueueReportEvents=require(_0xcc57('0x0'));var events=['save','remove','update'];function createListener(_0x3befc4,_0x5233e0){return function(_0x4a98ce){_0x5233e0[_0xcc57('0x1')](_0x3befc4,_0x4a98ce);};}function removeListener(_0x589025,_0x163be1){return function(){VoiceQueueReportEvents[_0xcc57('0x2')](_0x589025,_0x163be1);};}exports[_0xcc57('0x3')]=function(_0x2f87ef){for(var _0x4760f4=0x0,_0x2433da=events[_0xcc57('0x4')];_0x4760f4<_0x2433da;_0x4760f4++){var _0x5bd3d8=events[_0x4760f4];var _0x2a81f0=createListener(_0xcc57('0x5')+_0x5bd3d8,_0x2f87ef);VoiceQueueReportEvents['on'](_0x5bd3d8,_0x2a81f0);}};