"""AskWisdom URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
#from django.conf.urls import url
from django.urls import re_path, include
from . import views

# FIXME: are all the below used?
app_name = 'ideatree'
urlpatterns = [
	# ex: /ideatree/
	#url(r'^$', views.index, name='index'),
	re_path(r'^$', views.index, name='index'),

        #re_path(r'^paypal/', include("paypal.standard.ipn.urls")),
	#re_path(r'^stripe/webhook/$', views.stripeEndpoint, name='signout'),

	# signup, password change, login, etc., are handled by allauth.  See main project urls.py.
	re_path(r'^signout/$', views.signout, name='signout'),
	re_path(r'^features/$', views.features, name='features'),
	re_path(r'^shared_or_private/$', views.shared_or_private),
	re_path(r'^advanced_but_simple/$', views.advanced_but_simple),
	re_path(r'^power/$', views.link_or_analyze),
	re_path(r'^videos/$', views.videos, name='videos'),
	re_path(r'^video_how_to_use/$', views.video_how_to_use, name='video_how_to_use'),
	re_path(r'^video_for_project_managers/$', views.video_for_project_managers, name='video_for_project_managers'),
	# re_path(r'^video_inviting_users/$', views.video_inviting_users, name='video_inviting_users'),
	re_path(r'^research/$', views.research, name='research'),
	re_path(r'^idea_selection_paper/$', views.idea_selection_paper, name='idea_selection_paper'),
	re_path(r'^press/$', views.press, name='press'),

	re_path(r'^map/$', views.map, name='map'),
	re_path(r'^map/publish/([0-9]+)/$', views.publish, name='publish'),
	re_path(r'^map/unpublish/$', views.unpublish, name='unpublish'),
	re_path(r'^map/contactus/$', views.contactus, name='contactus'),
	re_path(r'^map/openMap/$', views.openMap, name='openMap'),
	re_path(r'^map/newMap/$', views.newMap, name='newMap'),
	#re_path(r'^map/getNodeShapes/$', views.getNodeShapes, name='getNodeShapes'),
	re_path(r'^map/deleteMap/$', views.deleteMap, name='deleteMap'),
	re_path(r'^map/mapLoader/$', views.mapLoader, name='mapLoader'),
	re_path(r'^map/pull/([0-9]+)/$', views.mapPull, name='mapPull'),
	re_path(r'^map/pullImport/([0-9]+)/$', views.mapPullImport),
	re_path(r'^map/prettify/$', views.prettify, name='prettify'),
	re_path(r'^map/analyze/$', views.analyze, name='analyze'),
	re_path(r'^map/editMapName/$', views.editMapName, name='editMapName'),
	re_path(r'^map/export/$', views.export, name='export'),
	re_path(r'^map/imports/$', views.imports, name='imports'),
	re_path(r'^map/getImport/$', views.getImport, name='getImport'),
	re_path(r'^map/download/$', views.download, name='download'),
	re_path(r'^map/getFileUploadForm/$', views.getFileUploadForm, name='getFileUploadForm'),
	re_path(r'^map/uploadFile/$', views.uploadFile, name='uploadFile'),
	re_path(r'^map/ChangeMessageHandler/$', views.changeMessageHandler, name='changeMessageHandler'),

	re_path(r'^map/commentSummary/$', views.commentSummary, name='commentSummary'),
	re_path(r'^map/mapSummary/$', views.mapSummary, name='mapSummary'),
	re_path(r'^map/tallyVotes/$', views.tallyVotes, name='tallyVotes'),

	re_path(r'^map/shareMap/$', views.shareMap, name='shareMap'),
	re_path(r'^map/searchUsers/$', views.searchUsers, name='searchUsers'),
	re_path(r'^map/addUserToMap/$', views.addUserToMap, name='addUserToMap'),
	re_path(r'^map/removeFromMap/$', views.removeFromMap, name='removeFromMap'),
	#re_path(r'^map/addUserToGroup/$', views.addUserToGroup, name='addUserToGroup'),
	re_path(r'^map/removeFromGroup/$', views.removeFromGroup, name='removeFromGroup'),
	re_path(r'^map/notify/$', views.notify, name='notify'),
	re_path(r'^map/chatWin/$', views.chatWin, name='chatWin'),
	re_path(r'^map/whosLoggedIn/$', views.whosLoggedIn, name='whosLoggedIn'),
	re_path(r'^map/incrementViewers/$', views.incrementViewers, name='incrementViewers'),

	#re_path(r'^map/backup/$', views.backup, name='backup'),

	re_path(r'^map/help/commandSummary/', views.commandSummary, name='commandSummary'),
	re_path(r'^map/help/quickStartHelp/', views.quickStartHelp, name='quickStartHelp'),
	re_path(r'^map/help/prettifyHelp/', views.prettifyHelp, name='prettifyHelp'),
	re_path(r'^map/help/prettifyCircularHelp/', views.prettifyCircularHelp ),
	re_path(r'^map/help/prettifyRadialHelp/', views.prettifyRadialHelp ),
	re_path(r'^map/help/prettifySpringHelp/', views.prettifySpringHelp ),
	re_path(r'^map/help/clusteringHelp/', views.clusteringHelp, name='clusteringHelp'),
	re_path(r'^map/help/teamsHelp/', views.teamsHelp, name='teamsHelp'),
	re_path(r'^map/help/notifyTeamHelp/', views.notifyTeamHelp, name='notifyTeamHelp'),
	re_path(r'^map/help/edgeWeightHelp/', views.edgeWeightHelp, name='edgeWeightHelp'),
	re_path(r'^map/help/conceptVsMindHelp/', views.conceptVsMindHelp, name='conceptVsMindHelp'),
	re_path(r'^map/help/exportHelp/', views.exportHelp, name='exportHelp'),

	re_path(r'^map/createNewEntityProvisional/$', views.createNewEntityProvisional, name='createNewEntityProvisional'),
	re_path(r'^map/changeMessageHandler/$', views.changeMessageHandler, name='changeMessageHandler'),

	re_path(r'^map/nodeDialog/$', views.nodeDialog, name='nodeDialog'),
	re_path(r'^map/nodeComment/$', views.crudNodeComments, name='crudNodeComments'),
	re_path(r'^map/vote/$', views.vote, name='vote'),
	re_path(r'^map/saveMapSettings/$', views.saveMapSettings, name='saveMapSettings'),

	re_path(r'^map/myAccount/$', views.myAccount, name='myAccount'),
	re_path(r'^cancelAccount/$', views.cancelAccount),
	re_path(r'^map/myPendingInvites/$', views.myPendingInvites, name='myPendingInvites'),
	re_path(r'^map/saveExplain/$', views.saveExplain, name='saveExplain'),
	re_path(r'^map/getRemoteSiteTitle/$', views.getRemoteSiteTitle, name='getRemoteSiteTitle'),

	re_path(r'^map/firebaseClientCredentials/$', views.firebaseClientCredentials, name='firebaseClientCredentials'),
	re_path(r'^map/firebaseClientToken/$', views.firebaseClientToken, name='firebaseClientToken'),

	re_path(r'^privacystatement/$', views.privacystatement, name='privacystatement'),
	re_path(r'^terms-of-service/$', views.terms_of_service, name='terms_of_service'),
	re_path(r'^presignup/$', views.presignup, name='presignup'),
	re_path(r'^upgrade/$', views.upgrade),
	re_path(r'^upgradeSuccess/(.+)/$', views.upgradeSuccess),
	re_path(r'^webhook/$', views.stripe_webhook),
	re_path(r'^demoMap/$', views.demoMap, name='demoMap'),

  #re_path(r'^initPerms/$', views.initPerms), # used only at installation, then comment out.
  #re_path(r'^initColors/$', views.initColors), # used only at installation, then comment out.

]
