# Path: rolodex/views.py
# 	EMPLOYMENT = P2Org_Type.objects.filter(relationship_type='employment').first()
# 	EMPLOYMENT = None
# def secure(view):
# def home(request):
# def new_org(request):
# def edit_org(request, org_slug):
# def delete_org(request, org_slug):
# def search_org(request, org_slug):
# def org_map(request, org_slug):
# def org_network(request, org_slug):
# def adv_org_network(request, org_slug):
# def new_org_relation(request, org_slug):
# def new_org_doc(request, org_slug=None):
# def new_person(request, org_slug=None):
# def new_person_no_org(request, org_slug=None):
# def edit_person(request, person_slug):
# def delete_person(request, person_slug):
# def search_person(request, person_slug):
# def person_map(request, person_slug):
# def person_network(request, person_slug):
# def adv_person_network(request, person_slug):
# def new_person_relation(request, person_slug):
# def new_person_doc(request, person_slug=None):
# def delete_relationship(request):
# def delete_doc(request):
# def add_tag(request):
# def remove_tag(request):
# def search_tag(request, tag_name=None):
# def entity_remote_search(request):
# def person_remote_search(request):
# def org_remote_search(request):
# def org_relate_peep(peeps):
# def hierarchy(snode, tnode):
# def get_info(n):
# def get_relations(nodes):
# def net_compiler(nodes, hops=2):
# def adv_compile(node, hops):
# def user_check(user):
# def logger(user, person=None, org=None):
# 	class Output:
# 
# Path: rolodex/API/router.py

# 
# Path: rolodex/API/views.py
# class RoleViewSet(viewsets.ModelViewSet):
# class ContactRoleViewSet(viewsets.ModelViewSet):
# class P2P_TypeViewSet(viewsets.ModelViewSet):
# class Org2Org_TypeViewSet(viewsets.ModelViewSet):
# class P2Org_TypeViewSet(viewsets.ModelViewSet):
# class PersonViewSet(viewsets.ModelViewSet):
# class OrgViewSet(viewsets.ModelViewSet):
# class ContactViewSet(viewsets.ModelViewSet):
# class P2PViewSet(viewsets.ModelViewSet):
# class Org2OrgViewSet(viewsets.ModelViewSet):
# class Org2PViewSet(viewsets.ModelViewSet):
# class P2OrgViewSet(viewsets.ModelViewSet):
# class GetEmployees(APIView):
# 	def get(self, request, pk):


from django.conf.urls import url, include
from rolodex import views
from rolodex.API import router, views as api_views

    # Doc adds
    url(r'^add-doc/org/(.+)/$', views.new_org_doc, name='rolodex_new_org_doc'),
    url(r'^add-doc/person/(.+)/$', views.new_person_doc, name='rolodex_new_person_doc'),
    url(r'^delete-doc/$', views.delete_doc, name='rolodex_delete_doc'),

    # Relationship maintenance
    url(r'^add-relationship/org/(.+)/$', views.new_org_relation, name='rolodex_new_org_relation'),
    url(r'^add-relationship/person/(.+)/$', views.new_person_relation, name='rolodex_new_person_relation'),
    url(r'^delete-relationship/$', views.delete_relationship, name='rolodex_delete_relation'),

    url(r'^add-tag/$', views.add_tag, name='rolodex_add_tag'),
    url(r'^remove-tag/$', views.remove_tag, name='rolodex_remove_tag'),
    url(r'^search-tag/(.+)/$', views.search_tag, name='rolodex_search_tag'),

    # network graphs
    url(r'^person-map/(.+)/$', views.person_map, name='rolodex_person_map'),
    url(r'^org-map/(.+)/$', views.org_map, name='rolodex_org_map'),
    url(r'^person-network/(.+)/$', views.person_network, name='rolodex_person_network'),
    url(r'^org-network/(.+)/$', views.org_network, name='rolodex_org_network'),
    url(r'^person-network-advanced/person/(.+)/$', views.adv_person_network, name='rolodex_adv_person_network'),
    url(r'^org-network-advanced/org/(.+)/$', views.adv_org_network, name='rolodex_adv_org_network'),

    # bloodhound/selectize remote search
    url(r'^entity-remote/', views.entity_remote_search, name='rolodex_entity_remote_search'),
    url(r'^org-remote/', views.org_remote_search, name='rolodex_org_remote_search'),
    url(r'^person-remote/', views.person_remote_search, name='rolodex_person_remote_search'),

    # api
    url(r'^api/', include(router.router.urls)),

# Path: rolodex/views.py
# 	EMPLOYMENT = P2Org_Type.objects.filter(relationship_type='employment').first()
# 	EMPLOYMENT = None
# def secure(view):
# def home(request):
# def new_org(request):
# def edit_org(request, org_slug):
# def delete_org(request, org_slug):
# def search_org(request, org_slug):
# def org_map(request, org_slug):
# def org_network(request, org_slug):
# def adv_org_network(request, org_slug):
# def new_org_relation(request, org_slug):
# def new_org_doc(request, org_slug=None):
# def new_person(request, org_slug=None):
# def new_person_no_org(request, org_slug=None):
# def edit_person(request, person_slug):
# def delete_person(request, person_slug):
# def search_person(request, person_slug):
# def person_map(request, person_slug):
# def person_network(request, person_slug):
# def adv_person_network(request, person_slug):
# def new_person_relation(request, person_slug):
# def new_person_doc(request, person_slug=None):
# def delete_relationship(request):
# def delete_doc(request):
# def add_tag(request):
# def remove_tag(request):
# def search_tag(request, tag_name=None):
# def entity_remote_search(request):
# def person_remote_search(request):
# def org_remote_search(request):
# def org_relate_peep(peeps):
# def hierarchy(snode, tnode):
# def get_info(n):
# def get_relations(nodes):
# def net_compiler(nodes, hops=2):
# def adv_compile(node, hops):
# def user_check(user):
# def logger(user, person=None, org=None):
# 	class Output:
# 
# Path: rolodex/API/router.py

# 
# Path: rolodex/API/views.py
# class RoleViewSet(viewsets.ModelViewSet):
# class ContactRoleViewSet(viewsets.ModelViewSet):
# class P2P_TypeViewSet(viewsets.ModelViewSet):
# class Org2Org_TypeViewSet(viewsets.ModelViewSet):
# class P2Org_TypeViewSet(viewsets.ModelViewSet):
# class PersonViewSet(viewsets.ModelViewSet):
# class OrgViewSet(viewsets.ModelViewSet):
# class ContactViewSet(viewsets.ModelViewSet):
# class P2PViewSet(viewsets.ModelViewSet):
# class Org2OrgViewSet(viewsets.ModelViewSet):
# class Org2PViewSet(viewsets.ModelViewSet):
# class P2OrgViewSet(viewsets.ModelViewSet):
# class GetEmployees(APIView):
# 	def get(self, request, pk):


# Path: rolodex/urls.py
from django.conf.urls import url, include
from rolodex import views
from rolodex.API import router, views as api_views


    # Doc adds
    url(r'^add-doc/org/(.+)/$', views.new_org_doc, name='rolodex_new_org_doc'),
    url(r'^add-doc/person/(.+)/$', views.new_person_doc, name='rolodex_new_person_doc'),
    url(r'^delete-doc/$', views.delete_doc, name='rolodex_delete_doc'),

    # Relationship maintenance
    url(r'^add-relationship/org/(.+)/$', views.new_org_relation, name='rolodex_new_org_relation'),
    url(r'^add-relationship/person/(.+)/$', views.new_person_relation, name='rolodex_new_person_relation'),
    url(r'^delete-relationship/$', views.delete_relationship, name='rolodex_delete_relation'),

    url(r'^add-tag/$', views.add_tag, name='rolodex_add_tag'),
    url(r'^remove-tag/$', views.remove_tag, name='rolodex_remove_tag'),
    url(r'^search-tag/(.+)/$', views.search_tag, name='rolodex_search_tag'),

    # network graphs
    url(r'^person-map/(.+)/$', views.person_map, name='rolodex_person_map'),
    url(r'^org-map/(.+)/$', views.org_map, name='rolodex_org_map'),
    url(r'^person-network/(.+)/$', views.person_network, name='rolodex_person_network'),
    url(r'^org-network/(.+)/$', views.org_network, name='rolodex_org_network'),
    url(r'^person-network-advanced/person/(.+)/$', views.adv_person_network, name='rolodex_adv_person_network'),
    url(r'^org-network-advanced/org/(.+)/$', views.adv_org_network, name='rolodex_adv_org_network'),

    # bloodhound/selectize remote search
    url(r'^entity-remote/', views.entity_remote_search, name='rolodex_entity_remote_search'),
    url(r'^org-remote/', views.org_remote_search, name='rolodex_org_remote_search'),
    url(r'^person-remote/', views.person_remote_search, name='rolodex_person_remote_search'),

    # api
    url(r'^api/', include(router.router.urls)),

    url(r'^api/employees/([0-9]+)/$', api_views.GetEmployees.as_view())