   @SHOW: { DEFAULT: 0, NOT: 1, SHOW: 2 }
   @NULLFUNC: () ->
 
-  constructor: (@auth, @$http, @$q, @observer, @Ticket, @Project, @Base64) ->
+  constructor: (@auth, @$http, @$q, @observer, @Ticket, @Project, @Base64, @Analytics) ->
     @url = auth.url
 
   _timeEntryData:

    config = @setBasicConfig config, @auth
    config.headers = "Content-Type": "application/xml"
    @$http(config)
      .success((params...) ->
        Analytics.sendEvent 'internal', 'submitTime', 'success', config.hours
        success(params))
      .error((params...) ->
        console.debug data
        Analytics.sendException("Error: submitTime")
        error(params))


  ###

            id:  issueId
        else
          console.debug data
          @Analytics.sendException("Error: getIssuesById")
        error(data, status))


