"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.KehadiranModule = void 0;
const common_1 = require("@nestjs/common");
const kehadiran_resolver_1 = require("./kehadiran.resolver");
const kehadiran_service_1 = require("./services/kehadiran.service");
const jadwal_kerja_module_1 = require("../jadwal_kerja/jadwal-kerja.module");
const user_module_1 = require("../user/user.module");
const riwayat_presensi_module_1 = require("../riwayat_presensi/riwayat_presensi.module");
const instansi_module_1 = require("../instansi/instansi.module");
const pubsub_module_1 = require("../../core/pubsub/pubsub.module");
const map_pegawai_lokasi_presensi_module_1 = require("../map_pegawai_lokasi_presensi/map-pegawai-lokasi-presensi.module");
let KehadiranModule = class KehadiranModule {
};
exports.KehadiranModule = KehadiranModule;
exports.KehadiranModule = KehadiranModule = __decorate([
    (0, common_1.Module)({
        imports: [
            jadwal_kerja_module_1.JadwalKerjaModule,
            user_module_1.UserModule,
            instansi_module_1.InstansiModule,
            (0, common_1.forwardRef)(() => riwayat_presensi_module_1.RiwayatPresensiModule),
            pubsub_module_1.PubSubModule,
            map_pegawai_lokasi_presensi_module_1.MapPegawaiLokasiPresensiModule,
        ],
        providers: [
            kehadiran_resolver_1.KehadiranResolver,
            {
                provide: 'IKehadiranService',
                useClass: kehadiran_service_1.KehadiranService,
            },
        ],
        exports: [
            {
                provide: 'IKehadiranService',
                useClass: kehadiran_service_1.KehadiranService,
            },
        ],
    })
], KehadiranModule);
