from django.urls import path
from . import ui_views

app_name = 'callcenter'

urlpatterns = [
    # Interactions
    path('interactions/', ui_views.interaction_list, name='interaction_list'),
    path('interactions/<uuid:pk>/', ui_views.interaction_detail, name='interaction_detail'),

    # Complaints
    path('complaints/', ui_views.complaint_list, name='complaint_list'),
    path('complaints/create/', ui_views.create_complaint, name='create_complaint'),
    path('complaints/<uuid:pk>/success/', ui_views.complaint_success, name='complaint_success'),

    # Inquiries
    path('inquiries/', ui_views.inquiry_list, name='inquiry_list'),
    path('inquiries/create/', ui_views.create_inquiry, name='create_inquiry'),
    path('inquiries/<uuid:pk>/success/', ui_views.inquiry_success, name='inquiry_success'),

    # Call Records (CSV Import)
    path('records/', ui_views.call_records_list, name='call_records_list'),
    path('records/import/', ui_views.import_call_records, name='import_call_records'),
    path('records/export-template/', ui_views.export_call_records_template, name='export_call_records_template'),

    # AJAX Helpers
    path('ajax/departments/', ui_views.get_departments_by_hospital, name='ajax_departments'),
    path('ajax/physicians/', ui_views.get_staff_by_hospital, name='ajax_physicians'),
    path('ajax/patients/', ui_views.search_patients, name='ajax_patients'),
]
