'use strict';

var utils = require('../../../components/_catalogue/catalogue/utils.js');
var utils$1 = require('../../../components/user-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 userReportsLists = await utils$1.initUserReports({ ...args, maxRows: 20 });
        res.render(`dpr/routes/journeys/my-reports-catalogue/view`, {
            layoutPath: this.layoutPath,
            catalogue,
            userReportsLists,
        });
    };
}

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