initLoaders() {
    this.tokens = this.CucControllerHelper.request.getArrayLoader({
      loaderFunction: () => this.LogsTokensService.getTokens(this.serviceName)
        .then(tokens => tokens.map((token) => {
          _.set(token, 'isLoadingCluster', true);
          return token;
        })),
    });
    this.clusters = this.CucControllerHelper.request.getArrayLoader({
      loaderFunction: () => this.LogsTokensService.getClusters(this.serviceName),
    });
    this.tokens.load();
    this.clusters.load();
    this.$q.all([this.clusters.promise, this.tokens.promise])
      .then((result) => {
        const clusters = result[0];
        const tokens = result[1];
        tokens.map((token) => {
          _.set(token, 'cluster', clusters.find(cluster => cluster.clusterId === token.clusterId) || {});
          _.set(token, 'isLoadingCluster', false);
          return token;
        });
      });
  }
/**
   * load tokens array by making API call to get data
   *
   * @memberof LogsTokensCtrl
   */
load tokens array by making API call to get data
@memberof LogsTokensCtrl
load tokens array by making API call to get data @memberof LogsTokensCtrl
initLoaders() {
    this.tokens = this.CucControllerHelper.request.getArrayLoader({
      loaderFunction: () => this.LogsTokensService.getTokens(this.serviceName)
        .then(tokens => tokens.map((token) => {
          _.set(token, 'isLoadingCluster', true);
          return token;
        })),
    });
    this.clusters = this.CucControllerHelper.request.getArrayLoader({
      loaderFunction: () => this.LogsTokensService.getClusters(this.serviceName),
    });
    this.tokens.load();
    this.clusters.load();
    this.$q.all([this.clusters.promise, this.tokens.promise])
      .then((result) => {
        const clusters = result[0];
        const tokens = result[1];
        tokens.map((token) => {
          _.set(token, 'cluster', clusters.find(cluster => cluster.clusterId === token.clusterId) || {});
          _.set(token, 'isLoadingCluster', false);
          return token;
        });
      });
  }
initLoaders ( ) { this . tokens = this . CucControllerHelper . request . getArrayLoader ( { loaderFunction : ( ) => this . LogsTokensService . getTokens ( this . serviceName ) . then ( tokens => tokens . map ( ( token ) => { _ . set ( token , 'isLoadingCluster' , true ) ; return token ; } ) ) , } ) ; this . clusters = this . CucControllerHelper . request . getArrayLoader ( { loaderFunction : ( ) => this . LogsTokensService . getClusters ( this . serviceName ) , } ) ; this . tokens . load ( ) ; this . clusters . load ( ) ; this . $q . all ( [ this . clusters . promise , this . tokens . promise ] ) . then ( ( result ) => { const clusters = result [ 0 ] ; const tokens = result [ 1 ] ; tokens . map ( ( token ) => { _ . set ( token , 'cluster' , clusters . find ( cluster => cluster . clusterId === token . clusterId ) || { } ) ; _ . set ( token , 'isLoadingCluster' , false ) ; return token ; } ) ; } ) ; }
load tokens array by making API call to get data
 @memberof LogsTokensCtrl
load tokens array by making API call to get data @memberof LogsTokensCtrl