Penambahan Webhook

This commit is contained in:
Ariyutta
2026-09-30 22:33:05 +07:00
parent ead04f6f7f
commit 2059c9b5af
9 changed files with 185 additions and 74 deletions
@@ -14,6 +14,7 @@ use App\Models\Verifikator\Tendik;
use App\Models\Verifikator\View\Pegawai;
use App\Services\DawaiService;
use App\Services\VerifikasiAbsenLinkService;
use App\Services\VerifikatorWebhookService;
use App\Services\WhatsAppService;
use Carbon\Carbon;
use Exception;
@@ -539,6 +540,7 @@ class PengajuanAbsenController extends Controller
$this->catatLog($pengajuan, 'Pengajuan Presensi Berhasil diajukan', $pegawai->nip, 'Pemohon', 'POST', $pegawai->nama);
$this->notifikasiTertunda[] = fn () => $this->notifikasiAtasanWhatsApp($pengajuan, $pegawai, $dawaiService);
$this->notifikasiTertunda[] = fn () => (new VerifikatorWebhookService)->kirimIzin($pengajuan, VerifikatorWebhookService::STATUS_PENDING);
// Ambil nama kategori dari Dawai Service
$statusPresensi = collect($dawaiService->listStatusPresensi());
@@ -641,6 +643,8 @@ class PengajuanAbsenController extends Controller
$pengajuan->delete();
(new VerifikatorWebhookService)->kirimIzin($pengajuan, VerifikatorWebhookService::STATUS_DELETED);
$this->catatLog(
$pengajuan,
'Pengajuan Presensi Berhasil dihapus',