from django.urls import path
from . import views

urlpatterns = [
    path('get-all-customers/',
         views.get_all_customers),
    path('get-customer-types/',
         views.get_customer_types),
    path('get-product-categories/',
         views.get_product_categories),
    path('get-all-category-products/',
         views.get_all_category_products),
    path('get-all-products/',
         views.get_all_products),
    path('get-all-staff-sales-performance/',
         views.get_all_staff_sales_performance),
    path('get-all-staff-commissions/',
         views.get_all_staff_commissions),
    path('get-single-staff-sales-performance/',
         views.get_single_staff_sales_performance),
    path('get-single-staff-commissions/',
         views.get_single_staff_commissions),
    path('agent-login/',
         views.agent_login),
    path('change-password-for-agent/',
         views.change_password_for_agent),
    path('get-access-token/',
         views.get_access_token),
     path('get-all-customers-based-on-activity/',
         views.get_all_customers_based_on_activity),
    # ---- CRM integration endpoints (consumed by the Laravel CRM) ----
    path('marketing-login/',
         views.marketing_login),
    path('get-all-marketing-staff/',
         views.get_all_marketing_staff),
    path('get-customer-by-email/',
         views.get_customer_by_email),
    path('create-customer-order-crm/',
         views.create_customer_order_crm),
    path('check-if-customer-order-exist/',
         views.check_if_customer_order_exist),
    path('create-stock-reservation-crm/',
         views.create_stock_reservation_crm),
    path('get-stock-reservations-crm/',
         views.get_stock_reservations_crm),
]
