"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppModule = void 0;
const common_1 = require("@nestjs/common");
const config_1 = require("@nestjs/config");
const joi_1 = __importDefault(require("joi"));
const auth_module_1 = require("./auth/auth.module");
const branch_module_1 = require("./branch/branch.module");
const commons_module_1 = require("./commons/commons.module");
const customer_module_1 = require("./customer/customer.module");
const export_module_1 = require("./export/export.module");
const notes_module_1 = require("./note/notes.module");
const print_module_1 = require("./print/print.module");
const prisma_module_1 = require("./prisma/prisma.module");
const role_module_1 = require("./role/role.module");
const settings_module_1 = require("./settings/settings.module");
const temp_upload_module_1 = require("./transactions/temp-upload.module");
const transactions_module_1 = require("./transactions/transactions.module");
const user_module_1 = require("./user/user.module");
let AppModule = class AppModule {
};
exports.AppModule = AppModule;
exports.AppModule = AppModule = __decorate([
    (0, common_1.Module)({
        imports: [
            config_1.ConfigModule.forRoot({
                isGlobal: true,
                validationSchema: joi_1.default.object({
                    JWT_SECRET: joi_1.default.string().required(),
                    JWT_EXPIRES_IN: joi_1.default.string().required(),
                    PORT: joi_1.default.number().required(),
                    NODE_ENV: joi_1.default.string().required(),
                    DATABASE_URL: joi_1.default.string().required(),
                    CLIENT_URL: joi_1.default.string().required(),
                }),
            }), auth_module_1.AuthModule, user_module_1.UserModule, prisma_module_1.PrismaModule, settings_module_1.SettingsModule, commons_module_1.CommonsModule, print_module_1.PrintModule, branch_module_1.BranchModule, transactions_module_1.TransactionsModule, temp_upload_module_1.TempUploadModule, customer_module_1.CustomerModule, notes_module_1.NoteModule, role_module_1.RoleModule, export_module_1.ExportModule
        ],
        controllers: [],
        providers: [],
    })
], AppModule);
//# sourceMappingURL=app.module.js.map