refresh ({ indicator, source }) {
    return new Promise((resolve, reject) => {
      const { itype, query } = indicator;

      fetch(`api/integration/${itype}/${source}/search`, {
        method: 'POST',
        headers: setReqHeaders({ 'Content-Type': 'application/json' }),
        body: JSON.stringify({ query })
      }).then((response) => {
        if (!response.ok) { // test for bad response code
          throw new Error(response.statusText);
        }
        return response.json();
      }).then((response) => {
        return resolve(response);
      }).catch((err) => { // this catches an issue within the ^ .then
        return reject(err);
      });
    });
  }
Refreshes data for an integration card
@param {Cont3xtIndicator} indicator - Contains the query/itype shown in the integration card
@param {String} source - The integration that was displayed in the card
@returns {Promise} - The promise that either resolves the request or rejects in error