"""lvmh URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/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.contrib import admin
from django.conf.urls import include
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static

from web.views import _ExcelV2List,_ImportColumnsExcelV2,_ShowImportResults,_Hello, _Inbenta, _Manager, _Chat, _NewEmp, _Delete, _EditEmp, _ExcelV2, _PasswordReset, _Whatsapp, \
    _WhatsappSending, _SendWhats, _WhatsappResults, _WhatsappHistoric, _WhatsappResultsExcel, _Whatsapp_Create, _Whatsapp_New_Template,\
    _Delete_Template, _Whatsapp_Edit, _Lista_Create, _Delete_Lista, _Lista_Edit, _Lista_Empleados, _ListaEmpleadosExcel, _ListaImportExcel,_Dashboard
from web.views import _Edit_Programado
from api.views import WebHook
urlpatterns = [
    url(r'^$', _Hello, name='home'),
    url(r'admin/', admin.site.urls),
    url(r'whook/', WebHook.as_view()),
    url(r'whook', WebHook.as_view()),
    url(r'dashboard/',_Dashboard,name='Dashboard'),
    url(r'api/',include('api.urls')),


    url(r'auth/', include('django.contrib.auth.urls')),
    url(r'^manager', _Manager, name='Manager'),
    url(r'^inbenta', _Inbenta, name='Inbenta'),
    url(r'^chat', _Chat, name='Chat'),
    url(r'^new', _NewEmp, name='New'),
    url(r'^delete_plantilla', _Delete_Template, name='Delete_Plantilla'),
    url(r'^delete_lista', _Delete_Lista, name='Delete_Lista'),

    url(r'^delete', _Delete, name='Delete'),
    url(r'^lista_import_excel/(?P<id>[0-9]+)', _ExcelV2List, name='Lista_Import_Excel'),
    url(r'^import_results/(?P<id>[0-9]+)', _ShowImportResults, name='Import_Results'),

    url(r'^excel', _ExcelV2, name='Excel'),
    url(r'^import_columns_excel/(?P<id>[0-9]+)', _ImportColumnsExcelV2, name='ImportColumnsExcelV2'),
    url(r'^whatsapp_sending/(?P<id>[0-9]+)', _WhatsappSending, name='Whatsapp_Sending'),
    url(r'^whatsapp_excel/(?P<id>[0-9]+)', _WhatsappResultsExcel, name='Whatsapp_Result_Excel'),
    url(r'^whatsapp_edit/(?P<id>[0-9]+)', _Whatsapp_Edit, name='Whatsapp_Edit'),
    url(r'^lista_edit/(?P<id>[0-9]+)', _Lista_Edit, name='Lista_Edit'),
    url(r'^lista_emp_excel/(?P<id>[0-9]+)', _ListaEmpleadosExcel, name='Lista_Empleados_Excel'),

    url(r'^lista_empleados/(?P<id>[0-9]+)', _Lista_Empleados, name='Lista_Empleados'),

    url(r'^whatsapp_results/(?P<id>[0-9]+)', _WhatsappResults, name='Whatsapp_Result'),
    url(r'^sendwhats', _SendWhats, name='SendWhats'),
    url(r'^whatsapp_historic', _WhatsappHistoric, name='Whatsapp_Historic'),
    url(r'^whatsapp_create', _Whatsapp_Create, name='Whatsapp_Create'),
    url(r'^whatsapp_new_template', _Whatsapp_New_Template, name='Whatsapp_New_Template'),

    url(r'^lista_create', _Lista_Create, name='Lista_Create'),

    url(r'^whatsapp', _Whatsapp, name='Whatsapp'),
    url(r'^whatsapp/', _Whatsapp),
    url(r'^edit_programado/(?P<id>[0-9]+)', _Edit_Programado),


    url(r'edit/(?P<id>[0-9]+)', _EditEmp, name='Edit'),

]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
