from django.urls import path
from customer import views
from .views import MarkNotesReadView

app_name = 'customer'

urlpatterns = [
    
    path('list/',views.list_customer, name='list'),
    path('create/',views.create_customer, name='create'),
    path('post/',views.post_customer, name='post'),
    path('edit/<int:id>/',views.edit_customer, name='edit'),
    path('show/<int:id>/',views.show_customer, name='show'),
    path('reset-send-credentials/<int:id>/',views.reset_password, name='resetpassword'),
    path('reset-send-credentials-contact/<int:id>/',views.reset_password_contact, name='resetpasswordadditionalcontact'),

    path('activity/<int:id>/',views.activity_customer, name='activity_customer'),
    path('note/<int:id>/',views.note_customer, name='note_customer'),
    path('synch/<int:id>/', views.sync_myob_customer, name='myob_synch'),
    path('synchAll/', views.sync_myob_customer_all, name='myob_synch_all'),
    path('delete/<int:id>/', views.delete_customer, name='delete'),

    path('deletecontact/<int:id>/', views.delete_customer_contact, name='deletecontact'),    
    path('reset-password-customer/', views.reset_password, name='reset_password'),
     path('note_list/',views.note_list_customer, name='note_list'),
    path('add_customer_note/<int:id>/', views.add_customer_note, name='add_customer_note'), 
    path('update_customer_note/<int:id>/', views.update_customer_note, name='update_customer_note'), 
    path('note_delete/<int:id>/', views.note_delete, name='note_delete'),
    path('mark-notes-read/', MarkNotesReadView.as_view(), name='mark-notes-read'),
    path('process_note_action/<int:note_id>/', views.process_note_action, name='process_note_action'),
    path('export/customers/', views.export_customers_csv, name='export_customers'),

]
