
from django.urls import path
from user import views
from technician.technician_api.views import (
  
  AssignedOrderListAPI,
  AssignedItemListAPI,
  # JobListAPI,
  JobStartStopAPIView,
  ForgotPasswordAPIView,
  ResetPasswordAPIView,
  JobsViewByTechnicianAPIView,
  TechnicianUpdateInstallationStatusAPIView,
  
  CustomerOrderListAPI,
  CustomerOrderItemListAPI,
  
  CustomerWarrantyOrderListAPI,
  CustomerServiceOrderListAPI,

  ServiceRequestAPIView,

  CallDetailCreateView,

  NotificationListAPIView,

  QuestionAnswerListAPIView,
  
  CreateChatAPIView,
 
  
  AssignedJobsListAPI,

  ServiceSignatureAPIView,
  PDFAPIView,
  SignatureUpdateAPIView,
  CustomerQuestionAnswerListAPIView,
  ServiceSignatureAPIViewByCustomer,
  TechnicianMultiRoleLoginAPI,
  PartDetailListAPIView,
  TechnicianLogoutAPI,
  AssignedNewJobsListAPI,
  AssignedTodayJobsListAPI,
#   AssignedAllOtherJobsListAPI,
  AssignedAllInstallJobsListAPI,
  AssignedAllServiceJobsListAPI,
  AssignedCompletedJobsListAPI,
  CustomerInvoiceListAPI,
  
  ViewChecklist,
#   JobTimerAPIView,
  JobIntervalStartStopAPIView,
  
  
  AssignedLeadListAPI,
  LeadDetailAPI,
  AddCustomerNoteAPI,
  listCustomerNoteAPI,
  ProductListAPI,
  SalesUserListAPI,
  CreateLeadQuotationAPI,
  AllLeadQuotationAPI,
  LeadNoteAPI,
  LeadDeleteAPI,
  updateCustomerNoteAPI,
#   LeadAttachmentFilesListCreateAPIView,
  LeadAttachmentPhotosListCreateAPIView,
  SendLeadQuotationEmailAPI,
  SendLeadNoteEmailAPI,
  UpdatereadNoteAPI,
  ProcessNoteActionAPI
 
)

urlpatterns = [
    
    
    
    
  path('logout/', TechnicianLogoutAPI.as_view(), name='logout'),    
  path("technician-login/",TechnicianMultiRoleLoginAPI.as_view(),name = "technician-login"),
  path('technician-forgot-password/', ForgotPasswordAPIView.as_view(), name='forgot_password'),
  path('technician-reset-password/', ResetPasswordAPIView.as_view(), name='reset_password'),

  path("technician-assigned-orders/",AssignedOrderListAPI.as_view(),name = "technician-assigned-orders"),
  path("technician-assigned-order-items/<int:order_id>/",AssignedItemListAPI.as_view(),name = "technician-assigned-order-items"),
  # path("technician-update-item-installation-date/<int:order_id>/",AssignedItemListAPI.as_view(),name = "technician-update-item-installation-date"),
  

  path("technician-assigned-new-jobs/",AssignedNewJobsListAPI.as_view(),name = "technician-assigned-new-jobs"),
  path("technician-assigned-today-jobs/",AssignedTodayJobsListAPI.as_view(),name = "technician-assigned-today-jobs"), 
  path("technician-assigned-all-install-jobs/",AssignedAllInstallJobsListAPI.as_view(),name = "technician-assigned-all-install-jobs"), 
  path("technician-assigned-all-service-jobs/",AssignedAllServiceJobsListAPI.as_view(),name = "technician-assigned-all-service-jobs"), 
  
#   path("technician-assigned-all-other-jobs/",AssignedAllOtherJobsListAPI.as_view(),name = "technician-assigned-all-other-jobs"), 
  path("technician-assigned-completed-jobs/",AssignedCompletedJobsListAPI.as_view(),name = "technician-assigned-completed-jobs"), 
  
  
  path("technician-update-item-installation-date/<int:job_id>/",AssignedJobsListAPI.as_view(),name = "technician-update-item-installation-date"),
  

  path('technician-job-start-stop/<int:job_id>/',JobStartStopAPIView.as_view(), name='technician-job-start-stop'),
  path('technician-view-job/<int:job_id>/',JobsViewByTechnicianAPIView.as_view(), name='technician-view-job'),
  
  
  path('technician-update-installation-status/<int:order_item_id>/',TechnicianUpdateInstallationStatusAPIView.as_view(), name='technician-update-installation-status'),
  
  
  path('technician-notifications/', NotificationListAPIView.as_view(), name='technician-notifications'),
  path('technician-notifications/<int:id>/', NotificationListAPIView.as_view(), name='technicians-notifications-viewed'),  
 
  path("customer-orders/",CustomerOrderListAPI.as_view(),name = "customer-orders"),

  path("customer-order-items/<int:order_id>/",CustomerOrderItemListAPI.as_view(),name = "customer-order-items"), 
  
  path("customer-warranty-order-list/",CustomerWarrantyOrderListAPI.as_view(),name = "customer-warranty-order-list"),
  path("customer-service-order-list/",CustomerServiceOrderListAPI.as_view(),name = "customer-service-order-list"),
  path('customer-service-request/<int:order_item_id>/',ServiceRequestAPIView.as_view(), name='service-request-api'),

  path('technician-call-detail-create/', CallDetailCreateView.as_view(), name='technician-call-detail-create'),
  path('technician-call-detail-get/<int:job_id>/', CallDetailCreateView.as_view(), name='technician-call-detail-get'),

  
  path('call-detail-create/', CallDetailCreateView.as_view(), name='call-detail-create'),
  path('call-detail-get/<int:job_id>/', CallDetailCreateView.as_view(), name='call-detail-get'),
  
  
  
  path('technician-notification/', NotificationListAPIView.as_view(), name='technician-notification'),
  path('technician-notification/<int:id>/', NotificationListAPIView.as_view(), name='technicians-notifications-viewed'),
  path('technician-questions/<int:job_id>/', QuestionAnswerListAPIView.as_view(), name='technician-question-list'),
  path('technician-questions-ans/', QuestionAnswerListAPIView.as_view(), name='technician-question-ans'),
  
  path('chats-create/', CreateChatAPIView.as_view(), name='chat-list-create'),
  path('chats-get/<int:job_id>/', CreateChatAPIView.as_view(), name='chat-list-get'),
  
  path('technician-service-signature/', ServiceSignatureAPIView.as_view(), name='technician-service-signature'),
  
  path('view-pdf/<int:job_id>/', PDFAPIView.as_view(), name='pdf-api'),
  
  path('technician-request-signature/<int:job_id>/',SignatureUpdateAPIView.as_view(), name='updatechnician-request-signature'),
  
  path('customer-get-question-ans/<int:job_id>/',CustomerQuestionAnswerListAPIView.as_view(), name='customer-get-question-ans'),
  
  path('customer-service-signature/', ServiceSignatureAPIViewByCustomer.as_view(), name='customer-service-signature'),
  

  
  path('part-detail-get/<int:job_id>/', PartDetailListAPIView.as_view(), name='part-detail-get'),
  path('part-delete-post/<int:job_id>/', PartDetailListAPIView.as_view(), name='part-delete-post'),
  
  
  path("customer-invoice/",CustomerInvoiceListAPI.as_view(),name = "customer-orders"),
  
  path('view-checklist/<int:job_id>/', ViewChecklist.as_view(), name='view-checklist'),
  
#   path('job-timer/<int:job_id>/', JobTimerAPIView.as_view(), name='job-timer'),
  
  path('job-interval-time-timer/', JobIntervalStartStopAPIView.as_view(), name='job-interval-time-timer'),
  path("sales-leads-all/",AssignedLeadListAPI.as_view(),name = "sales-leads-all"),
  path('sales-leads/<int:lead_id>/', LeadDetailAPI.as_view(), name='lead-detail'),
  path('sales-leads/notes/<int:lead_id>/', LeadNoteAPI.as_view(), name='lead-notes'),
  
  path('leads/<int:lead_id>/add-note/', AddCustomerNoteAPI.as_view(), name='add-lead-note'),
  path('leads/list-note/',listCustomerNoteAPI.as_view(), name='list-lead-note'),
  path('leads/update-note/<int:lead_id>/<int:note_id>/',updateCustomerNoteAPI.as_view(), name='update-lead-note'),
  path('leads/read-note/<int:note_id>/',UpdatereadNoteAPI.as_view(), name='update-read-lead-note'),
#   path('leads/delete-note/<int:lead_id>/<int:note_id>/',updateCustomerNoteAPI.as_view(), name='update-lead-note'),
  path("product-list/",ProductListAPI.as_view(),name = "product-list"),
  path("sales-user-list/",SalesUserListAPI.as_view(),name = "sales-user-list"),
  path('leads/quotation/create/', CreateLeadQuotationAPI.as_view(), name='create-lead-quotation'),
  path('leads/quotation/list/<int:lead_id>/', AllLeadQuotationAPI.as_view(), name='lead-quotation-list'),
  path('leads/quotation/list/', CreateLeadQuotationAPI.as_view(), name='all-lead-quotation'),
  path('leads/destroy/<int:lead_id>/', LeadDeleteAPI.as_view(), name='delete-lead'),
  path('leads/<int:lead_id>/attachments/', LeadAttachmentPhotosListCreateAPIView.as_view(), name='lead-attachments'),
  path('leads/quotation/<int:id>/send-email/', SendLeadQuotationEmailAPI.as_view(), name='send-lead-quotation-email'),
  path('leads/<int:lead_id>/send-note-email/<int:note_id>/', SendLeadNoteEmailAPI.as_view(), name='send-lead-note-email'),
  path('notes/<int:note_id>/action/', ProcessNoteActionAPI.as_view(), name='process_note_action_api'),
 

]