var AppConstants = require('../constants/AppConstants.js'); var AppDispatcher = require('../dispatchers/AppDispatcher.js'); var ActionTypes = AppConstants.ActionTypes; module.exports = { recieve_created_customer: function(data){ console.log('recieve_created_customer: ' + JSON.stringify(data)); AppDispatcher.handleServerAction({ type: ActionTypes.RECIEVE_CREATED_CUSTOMER, data: data }); }, recieve_error: function(data){ console.log('recieve_error: ' + JSON.stringify(data)); AppDispatcher.handleServerAction({ type: ActionTypes.RECIEVE_ERROR, data: data }) } };