text: var Dispatcher = require("./Dispatcher");
  var SurveyConstants = require("./SurveyConstants");
  
  var SurveyActions = {
    save: function(survey) {
      Dispatcher.dispatch({
        actionType: SurveyConstants.SAVE_SURVEY,
        survey: survey
      });
    },
  
    delete: function(id) {
      Dispatcher.dispatch({
        actionType: SurveyConstants.DELETE_SURVEY,
        id: id
      });
    },
  
    record: function(results) {
      Dispatcher.dispatch({
        actionType: SurveyConstants.RECORD_SURVEY,
        results: results
      });
    }
  }
  
  module.exports = SurveyActions;
  