define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var DownloadsService = /** @class */ (function () {
        function DownloadsService($http, $q, API_URL, API_DOWNLOADS_ENDPOINT) {
            this.$http = $http;
            this.$q = $q;
            this.API_URL = API_URL;
            this.API_DOWNLOADS_ENDPOINT = API_DOWNLOADS_ENDPOINT;
        }
        DownloadsService.prototype.get = function () {
            var deferred = this.$q.defer();
            this.$http
                .get(this.API_URL + "/" + this.API_DOWNLOADS_ENDPOINT, {
                cache: true
            })
                .then(function (response) {
                deferred.resolve(response);
            });
            return deferred.promise;
        };
        return DownloadsService;
    }());
    exports.DownloadsService = DownloadsService;
});
//# sourceMappingURL=downloads.service.js.map