"use strict";

var AWS = require("aws-sdk");

var _require = require("./aws"),
  AwsWrapper = _require.AwsWrapper;

function getWasabi(options) {
  var wasabiEndpoint = new AWS.Endpoint("s3.wasabisys.com");
  var wasabi = new AWS.S3({
    endpoint: wasabiEndpoint,
    accessKeyId: options.accessKeyId,
    secretAccessKey: options.secretAccessKey
  });

  return new AwsWrapper(wasabi);
}

module.exports = {
  getWasabi: getWasabi
};
