from django.conf.urls import url, include
from api import *

app_name = 'hr'

staff_urls=[
    url(r'^jobtypes/$',JobTypesView.as_view(), name='job-types'),
    url(r'^cadres/$',CadresView.as_view(), name='cadres'),
]

country_urls =[
    url(r'^jobtypes/$',CountryJobTypeView.as_view(), name='country-jobtype-summary'),
    url(r'^county/staff/$',CountryCountyStaffView.as_view(), name='country-county-staff-summary'),
]

ward_urls = [
    url(r'^(?P<ward_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/facility/numberofstaff/$',
        WardFacilityStaffView.as_view(),
        name='ward-facility-staff'),
    url(r'^(?P<ward_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$',
        WardStaffView.as_view(),
        name='ward-staff'),
]

constituency_urls = [
    url(r'^(?P<constituency_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/ward/numberofstaff/$',
        ConstituencyWardStaffView.as_view(),
        name='constituency-ward-staff'),
    url(r'^(?P<constituency_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$',
        ConstituencyStaffView.as_view(),
        name='constituency-staff'),
]


facility_urls =[
    url(r'^(?P<facility_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$',FacilityStaffView.as_view(), name='facility-staff'),
    url(r'^(?P<facility_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/jobtype/(?P<job_type_id>\w+)/$',FacilityJobTypeView.as_view(), name='facility-job-type'),
]

api_urls=[
    url(r'^staff/', include(staff_urls)),
    url(r'^country/', include(country_urls)),
    url(r'^wards/', include(ward_urls)),
    url(r'^constituencies/', include(constituency_urls)),
    url(r'^facility/', include(facility_urls)),
]

urlpatterns = [
    url(r'^api/', include(api_urls))
]
520a078840c6fd46cfbdb870dcd2a9cf345c4c4d
<mask token>

<mask token>
app_name = 'hr'
staff_urls = [url('^jobtypes/$', JobTypesView.as_view(), name='job-types'),
    url('^cadres/$', CadresView.as_view(), name='cadres')]
country_urls = [url('^jobtypes/$', CountryJobTypeView.as_view(), name=
    'country-jobtype-summary'), url('^county/staff/$',
    CountryCountyStaffView.as_view(), name='country-county-staff-summary')]
ward_urls = [url(
    '^(?P<ward_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/facility/numberofstaff/$'
    , WardFacilityStaffView.as_view(), name='ward-facility-staff'), url(
    '^(?P<ward_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$'
    , WardStaffView.as_view(), name='ward-staff')]
constituency_urls = [url(
    '^(?P<constituency_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/ward/numberofstaff/$'
    , ConstituencyWardStaffView.as_view(), name='constituency-ward-staff'),
    url(
    '^(?P<constituency_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$'
    , ConstituencyStaffView.as_view(), name='constituency-staff')]
facility_urls = [url(
    '^(?P<facility_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$'
    , FacilityStaffView.as_view(), name='facility-staff'), url(
    '^(?P<facility_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/jobtype/(?P<job_type_id>\\w+)/$'
    , FacilityJobTypeView.as_view(), name='facility-job-type')]
api_urls = [url('^staff/', include(staff_urls)), url('^country/', include(
    country_urls)), url('^wards/', include(ward_urls)), url(
    '^constituencies/', include(constituency_urls)), url('^facility/',
    include(facility_urls))]
urlpatterns = [url('^api/', include(api_urls))]

from django.conf.urls import url, include
from api import *
app_name = 'hr'
staff_urls = [url('^jobtypes/$', JobTypesView.as_view(), name='job-types'),
    url('^cadres/$', CadresView.as_view(), name='cadres')]
country_urls = [url('^jobtypes/$', CountryJobTypeView.as_view(), name=
    'country-jobtype-summary'), url('^county/staff/$',
    CountryCountyStaffView.as_view(), name='country-county-staff-summary')]
ward_urls = [url(
    '^(?P<ward_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/facility/numberofstaff/$'
    , WardFacilityStaffView.as_view(), name='ward-facility-staff'), url(
    '^(?P<ward_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$'
    , WardStaffView.as_view(), name='ward-staff')]
constituency_urls = [url(
    '^(?P<constituency_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/ward/numberofstaff/$'
    , ConstituencyWardStaffView.as_view(), name='constituency-ward-staff'),
    url(
    '^(?P<constituency_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$'
    , ConstituencyStaffView.as_view(), name='constituency-staff')]
facility_urls = [url(
    '^(?P<facility_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$'
    , FacilityStaffView.as_view(), name='facility-staff'), url(
    '^(?P<facility_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/jobtype/(?P<job_type_id>\\w+)/$'
    , FacilityJobTypeView.as_view(), name='facility-job-type')]
api_urls = [url('^staff/', include(staff_urls)), url('^country/', include(
    country_urls)), url('^wards/', include(ward_urls)), url(
    '^constituencies/', include(constituency_urls)), url('^facility/',
    include(facility_urls))]
urlpatterns = [url('^api/', include(api_urls))]

from django.conf.urls import url, include
from api import *

app_name = 'hr'

staff_urls=[
    url(r'^jobtypes/$',JobTypesView.as_view(), name='job-types'),
    url(r'^cadres/$',CadresView.as_view(), name='cadres'),
]

country_urls =[
    url(r'^jobtypes/$',CountryJobTypeView.as_view(), name='country-jobtype-summary'),
    url(r'^county/staff/$',CountryCountyStaffView.as_view(), name='country-county-staff-summary'),
]

ward_urls = [
    url(r'^(?P<ward_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/facility/numberofstaff/$',
        WardFacilityStaffView.as_view(),
        name='ward-facility-staff'),
    url(r'^(?P<ward_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$',
        WardStaffView.as_view(),
        name='ward-staff'),
]

constituency_urls = [
    url(r'^(?P<constituency_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/ward/numberofstaff/$',
        ConstituencyWardStaffView.as_view(),
        name='constituency-ward-staff'),
    url(r'^(?P<constituency_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$',
        ConstituencyStaffView.as_view(),
        name='constituency-staff'),
]


facility_urls =[
    url(r'^(?P<facility_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/$',FacilityStaffView.as_view(), name='facility-staff'),
    url(r'^(?P<facility_id>[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/jobtype/(?P<job_type_id>\w+)/$',FacilityJobTypeView.as_view(), name='facility-job-type'),
]

api_urls=[
    url(r'^staff/', include(staff_urls)),
    url(r'^country/', include(country_urls)),
    url(r'^wards/', include(ward_urls)),
    url(r'^constituencies/', include(constituency_urls)),
    url(r'^facility/', include(facility_urls)),
]

urlpatterns = [
    url(r'^api/', include(api_urls))
]