(function() {

  window.gateway = {
    get: function(href, callback) {
      return jQuery.ajax({
        type: 'GET',
        url: href,
        success: function(data) {
          return callback(data);
        },
        error: function(jqXHR, textStatus, errorThrown) {
          return typeof console !== "undefined" && console !== null ? console.log('get ' + href + " : " + textStatus + " : " + errorThrown + " :\n" + jqXHR.responseText) : void 0;
        },
        cache: false,
        async: false
      });
    },
    post: function(href, body, callback, block) {
      return jQuery.ajax({
        type: 'POST',
        url: href,
        processData: false,
        data: JSON.stringify(body),
        contentType: 'application/json',
        success: function(data) {
          return callback(data);
        },
        error: function(jqXHR, textStatus, errorThrown) {
          return typeof console !== "undefined" && console !== null ? console.log('call ' + body + ' ' + href + " : " + textStatus + " : " + errorThrown + " :\n" + jqXHR.responseText) : void 0;
        },
        cache: false,
        async: false
      });
    },
    redirect: function(url) {
      return window.location.assign(url);
    }
  };

}).call(this);
(function() {



}).call(this);

