from django.conf.urls import url

from .views import (
    IndexView, TweetsView, AccountsView, HastagsView, musicfans, persons,
    summary, accounts, hashtags, locations, quotes, polarities, tweets,
    LocationsView, QuotesView, PolaritiesView, organizations, locations_ent,
    musicfans_by_id, persons_spotify, TopicsView, TopicDetailView,
    search_tweets, search, persons_by_dates, PersonSearch, SearchView
)

urlpatterns = [
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^summary/$', summary, name='summary'),
    url(r'^search/$', search, name='search'),
    url(r'^accounts/$', accounts, name='accounts'),
    url(r'^hashtags/$', hashtags, name='hashtags'),
    url(r'^locations/$', locations, name='locations'),
    url(r'^quotes/$', quotes, name='quotes'),
    url(r'^polarities/$', polarities, name='polarities'),
    url(r'^tweets/$', tweets, name='tweets'),
    url(r'^tweets/search/$', search_tweets, name='search_tweets'),
    url(r'^musicfans/$', musicfans, name='musicfans'),
    url(r'^musicfans/(?P<topic_id>\w+)/$', musicfans_by_id, name='musicfans_by_id'),
    url(r'^persons/$', persons, name='persons'),
    url(r'^persons/search/$', persons_by_dates, name='persons_by_dates'),
    url(r'^persons_spotify/$', persons_spotify, name='persons_spotify'),
    url(r'^organizations/$', organizations, name='organizations'),
    url(r'^locations_ent/$', locations_ent, name='locations_ent'),
    url(r'^ver-tweets/$', TweetsView.as_view(), name='tweets-view'),
    url(
        r'^ver-polaridades/$',
        PolaritiesView.as_view(),
        name='polarities-view'
    ),
    url(
        r'^ver-cuentas-involucradas/$',
        AccountsView.as_view(),
        name='accounts-view'
    ),
    url(
        r'^ver-hastags/$',
        HastagsView.as_view(),
        name='hashtags-view'
    ),
    url(
        r'^ver-ubicaciones/$',
        LocationsView.as_view(),
        name='locations-view'
    ),
    url(
        r'^ver-citas/$',
        QuotesView.as_view(),
        name='quotes-view'
    ),
    url(
        r'^ver-topicos/$',
        TopicsView.as_view(),
        name='topics-view'
    ),
    url(
        r'^detalle-topico/(?P<id>[-_\w]+)/$',
        TopicDetailView.as_view(),
        name='topic-detail-view'
    ),
    url(
        r'^buscar-persona/$',
        PersonSearch.as_view(),
        name='person-search-view'
    ),
    url(
        r'^busqueda/$',
        SearchView.as_view(),
        name='search-view'
    ),
]
