"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateFileNumber = exports.generateLeadId = void 0;
const database_1 = require("../config/database");
const generateLeadId = async () => {
    const result = await (0, database_1.query)('SELECT generate_lead_id() as lead_id');
    return result.rows[0].lead_id;
};
exports.generateLeadId = generateLeadId;
const generateFileNumber = async () => {
    const result = await (0, database_1.query)('SELECT generate_file_number() as file_number');
    return result.rows[0].file_number;
};
exports.generateFileNumber = generateFileNumber;
