# Path: xbeewifiapp/apps/dashboard/views.py
# def placeholder(request):
# def socket_test(request):
# def monitor_receiver(request):
# def monitor_setup(request, device_id):
# def monitor_devicecore_setup(request):
# def api_root(request, format=None):
# def login_user(request):
# def logout_user(request):
#     def get_queryset(self):
#     def pre_save(self, obj):
#     def get_queryset(self):
#     def get(self, request, format=None):
#     def post(self, request, format=None):
#     def get(self, request, device_id=None, format=None):
#     def put(self, request, device_id):
#     def get(self, request, device_id=None, format=None):
#     def put(self, request, device_id=None):
#     def get(self, request, device_id, settings_group, format=None):
#     def put(self, request, device_id, settings_group, format=None):
#     def put(self, request, device_id=None):
#     def post(self, request, device_id):
#     def get(self, request, device_id=None, format=None):
#     def get(self, request, device_id=None, stream_id=None, format=None):
# class DashboardsViewSet(viewsets.ModelViewSet):
# class UserViewSet(viewsets.ReadOnlyModelViewSet):
# class DevicesList(APIView):
# class DevicesDetail(APIView):
# class DeviceIO(APIView):
# class DeviceConfig(APIView):
# class DeviceConfigGroup(APIView):
# class DeviceConfigStock(APIView):
# class DeviceSerial(APIView):
# class DevicesDatastreamList(APIView):
# class DevicesDatapointList(APIView):


from django.conf.urls import patterns, include, url
from django.contrib.auth.views import logout_then_login
from django.views.generic.base import TemplateView
from rest_framework import routers
from xbeewifiapp.apps.dashboard import views
from xbeewifiapp.libs.digi.forms import DeviceCloudAuthenticationForm
from socketio import sdjango
rest_api_patterns = patterns(
    'django.contrib.auth.views',
    url(r'^login$', 'login',
        {
            'template_name': 'rest_framework/login.html',
            'authentication_form': DeviceCloudAuthenticationForm
        }, name='login'),
    url(r'^logout$', 'logout',
        {
            'template_name': 'rest_framework/login.html'
        }, name='logout'),
)


urlpatterns = patterns(
    '',
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),

    #(r'^dashboard/', include('apps.dashboard.urls')),
    url(r'^logout$', logout_then_login, name='logout'),
)

# Dashboard Non-API Views
urlpatterns += patterns(
    'xbeewifiapp.apps.dashboard.views',
    url(r'^$', TemplateView.as_view(template_name='index.html'),

# Path: xbeewifiapp/apps/dashboard/views.py
# def placeholder(request):
# def socket_test(request):
# def monitor_receiver(request):
# def monitor_setup(request, device_id):
# def monitor_devicecore_setup(request):
# def api_root(request, format=None):
# def login_user(request):
# def logout_user(request):
#     def get_queryset(self):
#     def pre_save(self, obj):
#     def get_queryset(self):
#     def get(self, request, format=None):
#     def post(self, request, format=None):
#     def get(self, request, device_id=None, format=None):
#     def put(self, request, device_id):
#     def get(self, request, device_id=None, format=None):
#     def put(self, request, device_id=None):
#     def get(self, request, device_id, settings_group, format=None):
#     def put(self, request, device_id, settings_group, format=None):
#     def put(self, request, device_id=None):
#     def post(self, request, device_id):
#     def get(self, request, device_id=None, format=None):
#     def get(self, request, device_id=None, stream_id=None, format=None):
# class DashboardsViewSet(viewsets.ModelViewSet):
# class UserViewSet(viewsets.ReadOnlyModelViewSet):
# class DevicesList(APIView):
# class DevicesDetail(APIView):
# class DeviceIO(APIView):
# class DeviceConfig(APIView):
# class DeviceConfigGroup(APIView):
# class DeviceConfigStock(APIView):
# class DeviceSerial(APIView):
# class DevicesDatastreamList(APIView):
# class DevicesDatapointList(APIView):


# Path: xbeewifiapp/urls.py
from django.conf.urls import patterns, include, url
from django.contrib.auth.views import logout_then_login
from django.views.generic.base import TemplateView
from rest_framework import routers
from xbeewifiapp.apps.dashboard import views
from xbeewifiapp.libs.digi.forms import DeviceCloudAuthenticationForm
from socketio import sdjango

rest_api_patterns = patterns(
    'django.contrib.auth.views',
    url(r'^login$', 'login',
        {
            'template_name': 'rest_framework/login.html',
            'authentication_form': DeviceCloudAuthenticationForm
        }, name='login'),
    url(r'^logout$', 'logout',
        {
            'template_name': 'rest_framework/login.html'
        }, name='logout'),
)


urlpatterns = patterns(
    '',
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),

    #(r'^dashboard/', include('apps.dashboard.urls')),
    url(r'^logout$', logout_then_login, name='logout'),
)

# Dashboard Non-API Views
urlpatterns += patterns(
    'xbeewifiapp.apps.dashboard.views',
    url(r'^$', TemplateView.as_view(template_name='index.html'),

        name="dashboard"),