'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var localsHelper = require('../../../../utils/localsHelper.js');

class RecentlyViewedReportsController {
    services;
    constructor(services) {
        this.services = services;
    }
    POST = async (req, res) => {
        const { dprUser } = localsHelper.default.getValues(res);
        const { id } = req.params;
        await this.services.recentlyViewedService.removeReport(id, dprUser.id);
        await this.services.requestedReportService.removeReport(id, dprUser.id);
        res.end();
    };
}

exports.RecentlyViewedReportsController = RecentlyViewedReportsController;
exports.default = RecentlyViewedReportsController;
//# sourceMappingURL=controller.js.map
