Skip to content

Commit

Permalink
feat(reporting): remove unused reporting service (AngularJS)
Browse files Browse the repository at this point in the history
  • Loading branch information
Desvelao committed Mar 11, 2024
1 parent 1241c00 commit 4a780b8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 196 deletions.
11 changes: 0 additions & 11 deletions plugins/main/public/controllers/agent/agents.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export class AgentsController {
* @param {Object} $rootScope
* @param {Object} errorHandler
* @param {Object} commonData
* @param {Object} reportingService
* @param {Object} visFactoryService
* @param {Object} csvReq
*/
Expand All @@ -48,7 +47,6 @@ export class AgentsController {
$rootScope,
errorHandler,
commonData,
reportingService,
visFactoryService,
csvReq,
) {
Expand All @@ -60,7 +58,6 @@ export class AgentsController {
this.$scope.visualizations = visualizations;
this.shareAgent = new ShareAgent();
this.commonData = commonData;
this.reportingService = reportingService;
this.visFactoryService = visFactoryService;
this.csvReq = csvReq;
this.wazuhConfig = new WazuhConfig();
Expand Down Expand Up @@ -189,14 +186,6 @@ export class AgentsController {
this.$location.path('/manager/groups');
};

this.$scope.exportConfiguration = enabledComponents => {
this.reportingService.startConfigReport(
this.$scope.agent,
'agentConfig',
enabledComponents,
);
};

//Load
try {
this.$scope.getAgent();
Expand Down
10 changes: 0 additions & 10 deletions plugins/main/public/controllers/overview/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export class OverviewController {
* @param {*} $rootScope
* @param {*} errorHandler
* @param {*} commonData
* @param {*} reportingService
* @param {*} visFactoryService
*/
constructor(
Expand All @@ -48,7 +47,6 @@ export class OverviewController {
$rootScope,
errorHandler,
commonData,
reportingService,
visFactoryService,
$route,
) {
Expand All @@ -59,7 +57,6 @@ export class OverviewController {
this.errorHandler = errorHandler;
this.tabVisualizations = new TabVisualizations();
this.commonData = commonData;
this.reportingService = reportingService;
this.visFactoryService = visFactoryService;
this.wazuhConfig = new WazuhConfig();
this.visFactoryService = VisFactoryHandler;
Expand Down Expand Up @@ -327,13 +324,6 @@ export class OverviewController {
this.$scope.$applyAsync();
}

/**
* Transform a visualization into an image
*/
startVis2Png() {
return this.reportingService.startVis2Png(this.tab);
}

/**
* This fetch de agents summary
*/
Expand Down
2 changes: 0 additions & 2 deletions plugins/main/public/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import './theming';
import './routes';
import { CSVRequest } from './csv-request';
import { CommonData } from './common-data';
import { ReportingService } from './reporting';
import { VisFactoryService } from './vis-factory-handler';
import './region-maps';
import './order-object-by';
Expand All @@ -28,7 +27,6 @@ app
.service('errorHandler', ErrorHandler)
.service('csvReq', CSVRequest)
.service('commonData', CommonData)
.service('reportingService', ReportingService)
.service('visFactoryService', VisFactoryService)
.service('configHandler', ConfigHandler)
.service('checkDaemonsStatus', CheckDaemonsStatus);
173 changes: 0 additions & 173 deletions plugins/main/public/services/reporting.js

This file was deleted.

0 comments on commit 4a780b8

Please sign in to comment.