"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.YFConfigModule = void 0;
const common_1 = require("@nestjs/common");
const config_1 = require("@nestjs/config");
const path_1 = require("path");
const redis_config_1 = __importDefault(require("./redis.config"));
const rdb_config_1 = __importDefault(require("./rdb.config"));
const rtd_config_1 = __importDefault(require("./rtd.config"));
const mqtt_config_1 = __importDefault(require("./mqtt.config"));
const base_config_1 = __importDefault(require("./base.config"));
const wechat_config_1 = __importDefault(require("./wechat.config"));
const config_service_1 = require("./config.service");
let YFConfigModule = class YFConfigModule {
};
exports.YFConfigModule = YFConfigModule;
exports.YFConfigModule = YFConfigModule = __decorate([
    (0, common_1.Global)(),
    (0, common_1.Module)({
        imports: [
            config_1.ConfigModule.forRoot({
                isGlobal: true,
                envFilePath: '/app/yfios-platform/backend/packages/.env',
                load: [redis_config_1.default, rdb_config_1.default, rtd_config_1.default, mqtt_config_1.default, base_config_1.default, wechat_config_1.default],
                cache: true,
            }),
        ],
        providers: [config_service_1.YFConfigService],
        exports: [config_1.ConfigModule, config_service_1.YFConfigService]
    })
], YFConfigModule);
//# sourceMappingURL=config.module.js.map