"use strict";
Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.getService = getService, exports.postService = postService;
var _amosRequest = _interopRequireDefault(require("amos-processor/lib/fetch/amosRequest"));

function _interopRequireDefault(e) {
  return e && e.__esModule ? e : {
    default: e
  }
}
var commonPost = function(e, t) {
    return (0, _amosRequest.default)(e, {
      method: "POST",
      body: t,
      reject: function() {}
    })
  },
  commonGet = function(e, t) {
    return (0, _amosRequest.default)(e, {
      method: "GET",
      body: t,
      reject: function() {}
    })
  },
  commonPut = function(e, t) {
    return (0, _amosRequest.default)(e, {
      method: "PUT",
      body: t,
      reject: function() {}
    })
  },
  commonDel = function(e, t) {
    return (0, _amosRequest.default)(e, {
      method: "DELETE",
      body: t,
      reject: function() {}
    })
  };

function getService(e, t) {
  return (0, _amosRequest.default)(e, {
    method: "GET",
    body: t,
    reject: function() {}
  })
}

function postService(e, t) {
  return (0, _amosRequest.default)(e, {
    method: "POST",
    body: t,
    reject: function() {}
  })
}
