"""."""
from django.conf.urls import url


from . import views
from . import admin

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^([0-9\-\ \:]+)$', views.index_date, name='index_date'),
    url(r'^config$', admin.config),
    url(r'^settings$', admin.module_settings),
    url(r'^get_all_shift_templates/$', views.get_all_shift_templates),
    url(r'^shift_template/next_shift/([0-9]+)$',
        views.get_shift_templates_next_shift),
    url(r'^create_from_buffered_data/$', views.create_from_buffered_data),
    url(r'^import_from_csv', views.create_from_csv),
    url(r'^inscriptions/$', views.inscriptions),
    url(r'^inscriptions/([0-9]*)$', views.inscriptions),
    url(r'^prepa-odoo/$', views.prepa_odoo),
    url(r'^validation_inscription/(.+)$', views.validation_inscription),
    url(r'^manage_mess$', admin.manage_mess),
    url(r'^problematic_members$', admin.problematic_members),
    url(r'^remove_member_from_mess_list$', admin.remove_member_from_mess_list),
    url(r'^generate_barcode/([0-9]+)$', admin.generate_barcode),
    url(r'^generate_base_and_barcode/([0-9]+)$', admin.generate_base_and_barcode),
    url(r'^create_envelops$', admin.create_envelops),
    url(r'^raw_search$', admin.raw_search),
    url(r'^coop_warning_msg$', views.coop_warning_msg),
    url(r'^coop_validated_data$', views.coop_validated_data),
    url(r'^latest_coop_id/$', views.latest_coop_id),
    url(r'^get/([0-9]+)$', views.get),
    url(r'^exists/([a-zA-Z0-9_\-\.\+@]+)$', views.exists),
    url(r'^is_associated/([0-9]+)$', views.is_associated),
    url(r'^get_couchdb_odoo_markers/(.+)$', views.get_couchdb_odoo_markers),
    url(r'^menu/$', views.menu),
    url(r'^verify_final_state$', views.verify_final_state),
    url(r'^update_couchdb_barcodes$', views.update_couchdb_barcodes),
    url(r'^add_shares_to_member$', views.add_shares_to_member),
    url(r'^ask_for_new_password$', views.ask_for_new_password),
    url(r'^reset_password/([0-9-a-z\-]+)$', views.reset_new_password),
    #  Borne accueil
    url(r'^search/([^\/.]+)/?([0-9]*)', views.search),
    url(r'^save_photo/([0-9]+)$', views.save_photo, name='save_photo'),
    url(r'^services_at_time/([0-9TZ\-\: \.]+)/([0-9\-]+)$', views.services_at_time),
    url(r'^service_presence/$', views.record_service_presence),
    url(r'^record_absences/?([0-9\-\ \:]*)$', views.record_absences),
    url(r'^record_shift_absences/?([0-9]+)$', views.record_shift_absences),
    url(r'^close_ftop_service$', views.close_ftop_service),
    url(r'^get_credentials$', views.get_credentials),
    url(r'^remove_data_from_couchdb$', views.remove_data_from_CouchDB),
    url(r'^image/([0-9]+)', views.getmemberimage),
    url(r'^add_pts_to_everybody/([0-9]+)/([a-zA-Z0-9_ ]+)$', admin.add_pts_to_everybody),
    url(r'^easy_validate_shift_presence$', views.easy_validate_shift_presence),
    # conso / groupe recherche / socio
    url(r'^panel_get_purchases$', views.panel_get_purchases),
    # BDM
    url(r'^save_partner_info$', views.save_partner_info),

    # BDM - members admin
    url(r'^admin/?$', admin.admin),
    url(r'^admin/manage_makeups$', admin.manage_makeups),
    url(r'^admin/manage_shift_registrations$', admin.manage_shift_registrations),
    url(r'^admin/manage_regular_shifts$', admin.manage_regular_shifts),
    url(r'^get_makeups_members$', admin.get_makeups_members),
    url(r'^update_members_makeups$', admin.update_members_makeups),
    url(r'^delete_shift_registration$', admin.delete_shift_registration),
    url(r'^delete_shift_template_registration$', admin.delete_shift_template_registration),
    url(r'^shift_subscription$', admin.shift_subscription),
    url(r'^admin/manage_attached$', admin.manage_attached),
    url(r'^admin/regenerate_member_delay$', admin.regenerate_member_delay),
    url(r'^admin/manage_attached/create_pair$', admin.create_pair),
    url(r'^admin/manage_attached/delete_pair$', admin.delete_pair),
    url(r'^get_makeups_members$', admin.get_makeups_members),
    url(r'^update_members_makeups$', admin.update_members_makeups),
    url(r'^get_member_info/(\d+)$', admin.get_member_info),
    url(r'^get_attached_members$', admin.get_attached_members),
    # External login 
    url(r'^external_login$', views.external_login)
]