-restify = require "restify"
-
 request = require "request"
 
 paths = require "../paths"

      url = "/app/#{dataHelpers.getAppId()}/service_providers/#{@uid}/resources.json"

      steroidsCli.debug "PROVIDER", "GETting from URL: #{url}"
      @legacyClient.get url, (err, req, res, obj) =>

        if err?
          steroidsCli.debug "PROVIDER", "Getting resources for provider #{@name} ID: #{@typeId} from cloud returned failure: #{err} #{JSON.stringify(obj)}"

          return

        if res.statusCode != 200
          steroidsCli.debug "PROVIDER", "Getting current data configuration from cloud returned failure: #{body}"
          reject new CloudReadError body
          return

