{"size": 607, "ext": "js", "max_stars_repo_path": "client/app/license/license-feature-availability.js", "max_stars_repo_name": "TedKac/ovh-manager-dedicated", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/app/license/license-feature-availability.js", "max_issues_repo_name": "TedKac/ovh-manager-dedicated", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/app/license/license-feature-availability.js", "max_forks_repo_name": "TedKac/ovh-manager-dedicated", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.2916666667, "max_line_length": 168, "alphanum_fraction": 0.6622734761}
angular.module('Module.license').service('licenseFeatureAvailability', class {
  constructor(constants) {
    'ngInject';

    this.target = constants.target;
  }

  allowLicenseAgoraOrder() {
    return this.allow('US');
  }

  allowLicenseTypeAgoraOrder(licenseType) {
    return this.allowLicenseAgoraOrder() && _.includes(['CLOUDLINUX', 'CPANEL', 'DIRECTADMIN', 'SQLSERVER', 'WINDOWS', 'WORKLIGHT', 'PLESK', 'VIRTUOZZO'], licenseType);
  }

  allow(...args) {
    return Array.from(args).indexOf(this.target) > -1;
  }

  deny(...args) {
    return Array.from(args).indexOf(this.target) === -1;
  }
});
