getIntegrations () {
    return new Promise((resolve, reject) => {
      fetch('api/integration').then((response) => {
        if (!response.ok) { // test for bad response code
          throw new Error(response.statusText);
        }
        return response.json();
      }).then((response) => {
        store.commit('SET_INTEGRATIONS', response.integrations);
        if (!store.state.selectedIntegrations) {
          // if integrations have not been initialized, set them!
          store.commit('SET_SELECTED_INTEGRATIONS', Object.keys(response.integrations));
        }
        return resolve(response.integrations);
      }).catch((err) => { // this catches an issue within the ^ .then
        store.commit('SET_INTEGRATIONS_ERROR', err);
        return reject(err);
      });
    });
  }
Fetches the list of integrations that are configured.
@returns {Promise} - The promise that either resolves the request or rejects in error