"""
Core app URLs
"""
from django.urls import path

from .views import (
    health_check,
    select_hospital,
    switch_hospital,
    no_hospital_assigned,
    public_submit_landing,
    public_inquiry_submit,
    public_observation_submit,
    public_track,
    public_track_api,
    public_set_satisfaction,
    api_hospitals,
    api_observation_categories,
    set_language,
    add_note
)
from . import config_views

app_name = 'core'

urlpatterns = [
    # Health check
    path('', health_check, name='health'),

    # Hospital selection
    path('select-hospital/', select_hospital, name='select_hospital'),
    path('switch-hospital/', switch_hospital, name='switch_hospital'),
    path('no-hospital/', no_hospital_assigned, name='no_hospital_assigned'),

    # Public submission pages
    path('public/submit/', public_submit_landing, name='public_submit_landing'),
    path('public/track/', public_track, name='public_track'),
    path('public/inquiry/submit/', public_inquiry_submit, name='public_inquiry_submit'),
    path('public/observation/submit/', public_observation_submit, name='public_observation_submit'),
    path('api/track/', public_track_api, name='public_track_api'),
    path('api/public/set-satisfaction/', public_set_satisfaction, name='public_set_satisfaction'),
    path('api/hospitals/', api_hospitals, name='api_hospitals'),
    path('api/observation-categories/', api_observation_categories, name='api_observation_categories'),
    
    # Language switching
    path('set-language/', set_language, name='set_language'),

    # Notes
    path('notes/add/', add_note, name='add_note'),
]

# Configuration URLs (separate app_name)
config_urlpatterns = [
    path('', config_views.config_dashboard, name='dashboard'),
    path('sla/', config_views.sla_config_list, name='sla_config_list'),
    path('routing/', config_views.routing_rules_list, name='routing_rules_list'),
]
