download(archive) {
    this.updateNotification({
      text: this.$translate.instant('streams_archives_preparing_download', {
        filename: archive.filename,
      }),
      type: 'info',
      archive,
    });
    this.CucControllerHelper.scrollPageToTop();
    this.archiveDownload = this.CucControllerHelper.request.getHashLoader({
      loaderFunction: () => this.LogsStreamsArchivesService
        .getDownloadUrl(this.serviceName, this.streamId, archive.archiveId),
    });

    this.archiveDownload.load()
      .then((urlInfo) => {
        this.removeNotification(archive);
        this.CucControllerHelper.constructor.downloadUrl(urlInfo.url);
      });
  }
/**
   * Gets the URL for an archive and downloads it
   *
   * @param {any} archive
   * @memberof LogsStreamsArchivesHomeCtrl
   */
Gets the URL for an archive and downloads it
@param {any} archive
@memberof LogsStreamsArchivesHomeCtrl
Gets the URL for an archive and downloads it @param { any } archive @memberof LogsStreamsArchivesHomeCtrl
download(archive) {
    this.updateNotification({
      text: this.$translate.instant('streams_archives_preparing_download', {
        filename: archive.filename,
      }),
      type: 'info',
      archive,
    });
    this.CucControllerHelper.scrollPageToTop();
    this.archiveDownload = this.CucControllerHelper.request.getHashLoader({
      loaderFunction: () => this.LogsStreamsArchivesService
        .getDownloadUrl(this.serviceName, this.streamId, archive.archiveId),
    });
    this.archiveDownload.load()
      .then((urlInfo) => {
        this.removeNotification(archive);
        this.CucControllerHelper.constructor.downloadUrl(urlInfo.url);
      });
  }
download ( archive ) { this . updateNotification ( { text : this . $translate . instant ( 'streams_archives_preparing_download' , { filename : archive . filename , } ) , type : 'info' , archive , } ) ; this . CucControllerHelper . scrollPageToTop ( ) ; this . archiveDownload = this . CucControllerHelper . request . getHashLoader ( { loaderFunction : ( ) => this . LogsStreamsArchivesService . getDownloadUrl ( this . serviceName , this . streamId , archive . archiveId ) , } ) ; this . archiveDownload . load ( ) . then ( ( urlInfo ) => { this . removeNotification ( archive ) ; this . CucControllerHelper . constructor . downloadUrl ( urlInfo . url ) ; } ) ; }
Gets the URL for an archive and downloads it
 @param {any} archive
 @memberof LogsStreamsArchivesHomeCtrl
Gets the URL for an archive and downloads it @param { any } archive @memberof LogsStreamsArchivesHomeCtrl