"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchIndexStatusEffect = fetchIndexStatusEffect; var _effects = require("redux-saga/effects"); var _actions = require("../actions"); var _fetch_effect = require("./fetch_effect"); var _index_status = require("../api/index_status"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ function* fetchIndexStatusEffect() { yield (0, _effects.takeLeading)(_actions.indexStatusAction.get, (0, _fetch_effect.fetchEffectFactory)(_index_status.fetchIndexStatus, _actions.indexStatusAction.success, _actions.indexStatusAction.fail)); }