'use strict';

var utils = require('../../../components/_catalogue/catalogue/utils.js');
var utils$1 = require('../../../components/my-reports/utils.js');

class MyReportsCatalogueController {
    layoutPath;
    services;
    constructor(layoutPath, services) {
        this.layoutPath = layoutPath;
        this.services = services;
    }
    GET = async (req, res) => {
        const args = { res, req, services: this.services };
        const catalogue = await utils.initCatalogue(args);
        const myReportsData = await utils$1.initMyReports(req, res, this.services, { maxRows: 10 });
        res.render(`dpr/routes/journeys/my-reports-catalogue/view`, {
            layoutPath: this.layoutPath,
            catalogue,
            myReportsData,
        });
    };
}

module.exports = MyReportsCatalogueController;
//# sourceMappingURL=controller.js.map
