/* Ubivar API client factory
 * @token [String] required bearer-token from admin interface
 * @version [String] optional, default to 'latest'
 */
module.exports  = function(token, version, resources){
  var _         = require("lodash")

  var Ubivar    = require("./Ubivar")

  resources     = resources || [
      "me"
    , "accounts"
    , "addresses"
    , "login"
    , "logout"
    , "items"
    , "orders"
    , "transactions"
    , "routing"
    , "reviewqueues"
    , "reviewers"
    , "reviewerqueuebindings"
    , "labels"
  ]

  var ubivar    = new Ubivar(token, version, resources)

  _.each(resources, function(resource){
    ubivar.extend(resource)
  })

  return ubivar
}

/* Ubivar API client factory
 * @token [String] required bearer-token from admin interface
 * @version [String] optional, default to 'latest'
 */
module.exports  = function(token, version, resources){
  var _         = require("lodash")

  var Ubivar    = require("./Ubivar")

  resources     = resources || [
      "me"
    , "accounts"
    , "addresses"
    , "login"
    , "logout"
    , "items"
    , "orders"
    , "transactions"
    , "routing"
    , "labels"
  ]

  var ubivar    = new Ubivar(token, version, resources)

  _.each(resources, function(resource){
    ubivar.extend(resource)
  })

  return ubivar
}

Remove review* as resources from ubivar-node binding
Remove review* as resources from ubivar-node binding
