         $scope.flashMessage = data.message
 
         hideFlash = ()->
-            console.log "FUNCIONAAAA"
             $scope.isFlashWarnVisible = false
             $scope.isFlashErrorVisible = false
             $scope.isFlashSuccessVisible = false

MainController = ($scope, resource, $timeout) ->
    resource.getUser("me").then (result) ->
        $scope.user = result

    $scope.addTaskButton = ()->
        $scope.showTaskDialog = true

    $scope.closeTaskButton = ()->
        $scope.showTaskDialog = false

    $scope.addTripButton = ()->
        $scope.showTripDialog = true

    $scope.closeTripButton = ()->
        $scope.showTripDialog = false

    $scope.addCardButton = ()->
        $scope.showCardForm = true

    $scope.closeCardButton = ()->
        $scope.showCardForm = false

    return

module = angular.module("mrfogg.controllers.main", [])
module.controller("MainController", ["$scope","resource", "$timeout", "$routeParams", MainController])
module.controller("ContainerController", ["$scope", ContainerController])
module.controller("UserListController", ["$scope", "$rootScope", "resource", UserListController])
module.controller("TooltipController", ["$scope", "$document", TooltipController])
