"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;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdminConsoleModule = void 0;
const common_1 = require("@nestjs/common");
const typeorm_1 = require("@nestjs/typeorm");
const admin_user_entity_1 = require("./entities/admin-user.entity");
const admin_user_service_1 = require("./services/admin-user.service");
const admin_auth_service_1 = require("./services/admin-auth.service");
const admin_session_service_1 = require("./services/admin-session.service");
const admin_console_controller_1 = require("./controllers/admin-console.controller");
const admin_auth_controller_1 = require("./controllers/admin-auth.controller");
const admin_session_guard_1 = require("./guards/admin-session.guard");
const user_module_1 = require("../user/user.module");
const role_module_1 = require("../role/role.module");
const tenant_module_1 = require("../tenant/tenant.module");
const admin_users_controller_1 = require("./controllers/admin-users.controller");
const admin_roles_controller_1 = require("./controllers/admin-roles.controller");
const admin_tenants_controller_1 = require("./controllers/admin-tenants.controller");
const admin_permissions_controller_1 = require("./controllers/admin-permissions.controller");
const admin_console_config_service_1 = require("./services/admin-console-config.service");
const auth_module_1 = require("../auth/auth.module");
const mfa_secret_entity_1 = require("../auth/entities/mfa-secret.entity");
const user_entity_1 = require("../user/entities/user.entity");
const permission_module_1 = require("../permission/permission.module");
const session_module_1 = require("../session/session.module");
const role_entity_1 = require("../role/entities/role.entity");
let AdminConsoleModule = class AdminConsoleModule {
};
exports.AdminConsoleModule = AdminConsoleModule;
exports.AdminConsoleModule = AdminConsoleModule = __decorate([
    (0, common_1.Module)({
        imports: [
            typeorm_1.TypeOrmModule.forFeature([admin_user_entity_1.AdminUser, mfa_secret_entity_1.NestAuthMFASecret, user_entity_1.NestAuthUser, role_entity_1.NestAuthRole]),
            (0, common_1.forwardRef)(() => auth_module_1.AuthModule),
            (0, common_1.forwardRef)(() => user_module_1.UserModule),
            (0, common_1.forwardRef)(() => role_module_1.RoleModule),
            (0, common_1.forwardRef)(() => tenant_module_1.TenantModule),
            (0, common_1.forwardRef)(() => session_module_1.SessionModule),
            permission_module_1.PermissionModule,
        ],
        providers: [
            admin_user_service_1.AdminUserService,
            admin_auth_service_1.AdminAuthService,
            admin_session_service_1.AdminSessionService,
            admin_console_config_service_1.AdminConsoleConfigService,
            admin_session_guard_1.AdminSessionGuard,
        ],
        controllers: [
            admin_auth_controller_1.AdminAuthController,
            admin_users_controller_1.AdminUsersController,
            admin_roles_controller_1.AdminRolesController,
            admin_tenants_controller_1.AdminTenantsController,
            admin_permissions_controller_1.AdminPermissionsController,
            admin_console_controller_1.AdminConsoleController,
        ],
        exports: [
            admin_user_service_1.AdminUserService,
            admin_auth_service_1.AdminAuthService,
            admin_session_service_1.AdminSessionService,
            admin_console_config_service_1.AdminConsoleConfigService,
            admin_session_guard_1.AdminSessionGuard,
            typeorm_1.TypeOrmModule,
        ],
    })
], AdminConsoleModule);
//# sourceMappingURL=admin-console.module.js.map