????

Your IP : 216.73.216.216


Current Path : C:/inetpub/vhost/qnquyhoach.nextform.vn/api/dist/
Upload File :
Current File : C:/inetpub/vhost/qnquyhoach.nextform.vn/api/dist/app.module.js

"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 typeorm_1 = require("@nestjs/typeorm");
const schedule_1 = require("@nestjs/schedule");
const app_controller_1 = require("./app.controller");
const app_service_1 = require("./app.service");
const apps_1 = require("./apps");
const ht_cay_xanhs_module_1 = require("./apps/ht-cay-xanhs/ht-cay-xanhs.module");
const qhct_cong_thoat_nuocs_module_1 = require("./apps/qhct-cong-thoat-nuocs/qhct-cong-thoat-nuocs.module");
const qhct_ho_gas_module_1 = require("./apps/qhct-ho-gas/qhct-ho-gas.module");
const thong_kes_module_1 = require("./apps/thong-kes/thong-kes.module");
const cong_thoat_nuocs_module_1 = require("./apps/cong-thoat-nuocs/cong-thoat-nuocs.module");
const audit_logs_module_1 = require("./apps/audit-logs/audit-logs.module");
const log_cay_xanhs_module_1 = require("./apps/log-cay-xanhs/log-cay-xanhs.module");
const typeorm_2 = __importDefault(require("./config/typeorm"));
const nestjs_cls_1 = require("nestjs-cls");
const layers_module_1 = require("./apps/layers/layers.module");
const thoat_nuoc_thais_module_1 = require("./apps/thoat-nuoc-thais/thoat-nuoc-thais.module");
const qhpk_do_ans_module_1 = require("./apps/qhpk-do-ans/qhpk-do-ans.module");
const qhct_do_ans_module_1 = require("./apps/qhct-do-ans/qhct-do-ans.module");
const thoat_nuoc_muas_module_1 = require("./apps/thoat-nuoc-muas/thoat-nuoc-muas.module");
const qhpk_tim_duongs_module_1 = require("./apps/qhpk-tim-duongs/qhpk-tim-duongs.module");
const qhcts_module_1 = require("./apps/qhcts/qhcts.module");
const qhpks_module_1 = require("./apps/qhpks/qhpks.module");
let AppModule = class AppModule {
};
exports.AppModule = AppModule;
exports.AppModule = AppModule = __decorate([
    (0, common_1.Module)({
        imports: [
            config_1.ConfigModule.forRoot({ isGlobal: true, load: [typeorm_2.default] }),
            typeorm_1.TypeOrmModule.forRootAsync({
                imports: [config_1.ConfigModule],
                useFactory: async (configService) => configService.get('typeorm'),
                inject: [config_1.ConfigService],
            }),
            nestjs_cls_1.ClsModule.forRoot({
                global: true,
                middleware: { mount: true },
            }),
            schedule_1.ScheduleModule.forRoot(),
            apps_1.AuthModule,
            apps_1.UsersModule,
            apps_1.RolesModule,
            apps_1.PermissionsModule,
            apps_1.CategoriesModule,
            apps_1.PostsModule,
            apps_1.AssetsModule,
            apps_1.SlidesModule,
            apps_1.PostTranslationsModule,
            ht_cay_xanhs_module_1.HTCayXanhsModule,
            qhct_cong_thoat_nuocs_module_1.QhctCongThoatNuocsModule,
            qhct_ho_gas_module_1.QhctHoGasModule,
            thong_kes_module_1.ThongKesModule,
            cong_thoat_nuocs_module_1.CongThoatNuocsModule,
            audit_logs_module_1.AuditLogModule,
            log_cay_xanhs_module_1.LogCayXanhsModule,
            layers_module_1.LayersModule,
            thoat_nuoc_thais_module_1.ThoatNuocMuasModule,
            thoat_nuoc_muas_module_1.ThoatNuocThaisModule,
            qhpk_do_ans_module_1.QhpkDoAnsModule,
            qhct_do_ans_module_1.QhctDoAnsModule,
            qhpk_tim_duongs_module_1.QhpkTimDuongsModule,
            qhcts_module_1.QhctsModule,
            qhpks_module_1.QhpksModule,
        ],
        controllers: [app_controller_1.AppController],
        providers: [app_service_1.AppService],
    })
], AppModule);
//# sourceMappingURL=app.module.js.map