// Generated by CoffeeScript 1.12.7
var DrupalFilepicker,
  extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  hasProp = {}.hasOwnProperty;

DrupalFilepicker = (function(superClass) {
  extend(DrupalFilepicker, superClass);

  function DrupalFilepicker() {
    return DrupalFilepicker.__super__.constructor.apply(this, arguments);
  }

  DrupalFilepicker.prototype.readOpts = function() {
    DrupalFilepicker.__super__.readOpts.call(this);
    return this.setDownloadManagerClass(DrupalDownloadManager);
  };

  DrupalFilepicker.prototype.type = function() {
    return 'drupal';
  };

  return DrupalFilepicker;

})(Filepicker);

ez5.session_ready(function() {
  return DrupalFilepicker.session_ready('drupal', 'easydb-drupal-plugin');
});
// Generated by CoffeeScript 1.12.7
var DrupalDownloadManager,
  extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  hasProp = {}.hasOwnProperty;

DrupalDownloadManager = (function(superClass) {
  extend(DrupalDownloadManager, superClass);

  function DrupalDownloadManager() {
    return DrupalDownloadManager.__super__.constructor.apply(this, arguments);
  }

  DrupalDownloadManager.prototype.type = function() {
    return 'drupal';
  };

  DrupalDownloadManager.prototype.getBaseConfig = function() {
    return ez5.session.getBaseConfig("plugin", 'easydb-drupal-plugin')["drupal"] || {};
  };

  return DrupalDownloadManager;

})(FilepickerDownloadManager);
