getViews (params) {
    return new Promise((resolve, reject) => {
      Vue.axios.get('api/views', { params }).then((response) => {
        store.commit('setViews', response.data.data);
        resolve(response.data);
      }).catch((err) => {
        reject(err);
      });
    });
  }
Gets views
@param {Object} params     Query params object to search for views
@returns {Promise} Promise A promise object that signals the completion
                           or rejection of the request.