'use strict';

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

var utils = require('../../../../../components/my-reports/utils.js');

class RequestedReportsListController {
    layoutPath;
    services;
    constructor(layoutPath, services) {
        this.layoutPath = layoutPath;
        this.services = services;
    }
    GET = async (req, res) => {
        const myReportsData = await utils.initMyReports(req, res, this.services);
        const list = myReportsData ? myReportsData.requested : {};
        res.render(`dpr/routes/journeys/my-reports/view`, {
            title: 'Requested reports',
            id: 'requested-reports-list',
            layoutPath: this.layoutPath,
            list,
        });
    };
}

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