         invitation: "/invitation/%s"
         admin: "/project/%s/admin/%s"
         attachment: "/media/attachment-files/%s/%s/%s"
-
-    conditionalUrl = (url, raw) ->
-        return url if raw
-        return "/##{url}"
-
-    # TODO: refactor this.
+    }
+
     $rootScope.urls =
         projectsUrl: ->
             return '/#/'


            return baseUrl + url

    $rootScope.momentFormat = (input, format) ->
        return moment(input).format(format)



    $rootScope.constants.users = {}

assignNavegationUrls = ($rootScope) ->
    conditionalUrl = (url, raw) ->
        return url if raw
        return "/##{url}"

    $rootScope.baseUrls = {
        projects: "/"
        backlog: "/project/%s/backlog"
        kanban: "/project/%s/kanban"
