{"size": 948, "ext": "js", "max_stars_repo_path": "public_html/js/app/usuario/logout.js", "max_stars_repo_name": "hec3555/trolleyes-client", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public_html/js/app/usuario/logout.js", "max_issues_repo_name": "hec3555/trolleyes-client", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public_html/js/app/usuario/logout.js", "max_forks_repo_name": "hec3555/trolleyes-client", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.8571428571, "max_line_length": 132, "alphanum_fraction": 0.4978902954}
'use strict';

moduleUsuario.controller('usuarioLogoutController', ['$scope', '$http', '$location', 'toolService', '$routeParams','sessionService',
    function ($scope, $http, $location, toolService, oSessionService) {
        
            $scope.ob = "usuario";
        
       
            
            $http({
                method: 'GET',
                withCredentials: true,
                url: 'http://localhost:8081/trolleyes/json?ob=usuario&op=logout'
            }).then(function (response) {
                $scope.status = response.status;
                oSessionService.setSessionInactive();
                oSessionService.setUserName("");
                $location.url("/");
            }, function (response) {
                $scope.msgError= response.data.message || 'Request failed';
                $scope.status = response.status;
                $scope.mensaje = true;
                
            });
        


    }]);