   ###
    set basic configs for $http.
   ###
-  setBasicConfig: (config, auth) ->
+  _setBasicConfig: (config, auth) ->
     config.headers = "Content-Type": Redmine.CONTENT_TYPE
     config.timeout = config.timeout or Redmine.AJAX_TIME_OUT
     if auth.apiKey? and auth.apiKey.length > 0

      method: "POST"
      url: @auth.url + "/issues/#{@_timeEntryData.time_entry.issue_id}/time_entries.json"
      data: Redmine.JSONtoXML @_timeEntryData
    config = @setBasicConfig config, @auth
    config.headers = "Content-Type": "application/xml"
    @$http(config)
      .success((data) =>

      method: "GET"
      url: @auth.url + "/queries.json"
      params: params
    config = @_setBasicConfig config, @auth
    @$http(config)
      .success((args...) =>
        args[0].url = @auth.url
