text: var AppDispatcher = require("../dispatchers/AppDispatcher");
  var Constants = require("../constants/Constants.js");
  
  module.exports = {
    pinPost: function(id) {
      AppDispatcher.dispatch({
        actionType: Constants.PIN_POST,
        pinId: id
      });
    },
    unpinPost: function(id) {
      AppDispatcher.dispatch({
        actionType: Constants.UNPIN_POST,
        pinId: id
      });
    },
    showPost: function(id) {
      AppDispatcher.dispatch({
        actionType: Constants.SHOW_POST,
        pinId: id
      });
    },
    newPost: function() {
      AppDispatcher.dispatch({
        actionType: Constants.SHOW_NEW_POST_DIALOG,
      });
    },
    hideModal: function() {
      AppDispatcher.dispatch({
        actionType: Constants.HIDE_MODAL,
      });
    },
    postPost: function(post) {
      AppDispatcher.dispatch({
        actionType: Constants.NEW_POST,
        post: post
      });
    }
  };
  
  