"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const lib_1 = require("../lib/lib");
const express_1 = tslib_1.__importDefault(require("express"));
const app = (0, express_1.default)();
const port = 5000;
const TIMETRACK_ID = "REPORT_CREATION";
app.get("/", async (req, res) => {
    console.time(TIMETRACK_ID);
    (0, lib_1.createReport)(null, "Employee", (buffer) => {
        res.set({
            "Content-Disposition": "attachment; filename=Employee.pdf",
            "Content-Type": "application/pdf; charset=utf-8",
        });
        res.write(buffer);
        res.end();
        console.timeEnd(TIMETRACK_ID);
    });
});
app.listen(port, () => {
    console.log(`Test server listening on port ${port}`);
});
//# sourceMappingURL=index.js.map