getIntegrationViews () {
    const query = {};
    if (store.state.seeAllViews) { query.all = true; }

    return new Promise((resolve, reject) => {
      fetch(`api/views/${paramStr(query)}`, {
        method: 'GET',
        headers: { 'Content-Type': 'application/json' }
      }).then((response) => {
        return response.json();
      }).then((response) => {
        if (response.success) {
          store.commit('SET_VIEWS', response.views);
          return resolve(response.views);
        } else {
          return reject(response.text);
        }
      });
    });
  }
Fetches a list of integration views
@returns {Promise} - The promise that either resolves the request or rejects in error