"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: !0
}), exports.getService = getService, exports.postService = postService;

var _amosRequest = _interopRequireDefault(require("amos-processor/lib/fetch/amosRequest")), commonPost = function(e, t) {
  return (0, _amosRequest.default)(e, {
    method: "POST",
    body: t,
    reject: function(e) {}
  });
}, commonGet = function(e, t) {
  return (0, _amosRequest.default)(e, {
    method: "GET",
    body: t,
    reject: function(e) {}
  });
}, commonPut = function(e, t) {
  return (0, _amosRequest.default)(e, {
    method: "PUT",
    body: t,
    reject: function(e) {}
  });
}, commonDel = function(e, t) {
  return (0, _amosRequest.default)(e, {
    method: "DELETE",
    body: t,
    reject: function(e) {}
  });
};

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

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