function mapWithFirebaseAndDispatch(
  firebase,
  dispatch,
  actions,
  reverseActions
) {
  const withFirebaseAndDispatch = createWithFirebaseAndDispatch(
    firebase,
    dispatch
  )
  const withDispatchAndFirebase = createWithFirebaseAndDispatch(
    firebase,
    dispatch,
    true
  )
  return {
    ...mapValues(actions, withFirebaseAndDispatch),
    ...mapValues(reverseActions, withDispatchAndFirebase)
  }
}
Map each action with Firebase and Dispatch. Includes aliasing of actions.
@param {object} firebase - Internal firebase instance
@param {Function} dispatch - Redux's dispatch function
@param {object} actions - Action functions to map with firebase and dispatch
@param {object} reverseActions - Action functions to map with dispatch and firebase (i.e. reverse arg order)
@returns {object} Actions mapped with firebase and dispatch