"""Microsoft provider signals"""

from authentik.enterprise.providers.microsoft_entra.models import MicrosoftEntraProvider
from authentik.enterprise.providers.microsoft_entra.tasks import (
    microsoft_entra_sync_delete_dispatch,
    microsoft_entra_sync_direct_dispatch,
    microsoft_entra_sync_m2m_dispatch,
)
from authentik.lib.sync.outgoing.signals import register_signals

register_signals(
    MicrosoftEntraProvider,
    task_sync_direct_dispatch=microsoft_entra_sync_direct_dispatch,
    task_sync_delete_dispatch=microsoft_entra_sync_delete_dispatch,
    task_sync_m2m_dispatch=microsoft_entra_sync_m2m_dispatch,
)
