"use strict";

import _ from "lodash";

const DONE = "_DONE";

export default function(actionTypes, asyncActionTypes){

  var types = _.reduce(actionTypes, (result, key) => {
    result[key] = key;
    return result
  }, {});

  types = _.reduce(asyncActionTypes, (result, key) => {
    result[key] = key;
    result[`${key}${DONE}`] = `${key}${DONE}`;
    return result
  }, types);

  types.DONE = DONE;

  return types;
}
@@ -90,30 +90,18 @@
 tion
-Types, asyncActionType
+s, request
 s)%7B%0A
@@ -126,28 +126,24 @@
 educe(action
-Type
 s, (result, 
@@ -227,23 +227,15 @@
 uce(
-asyncActionType
+request
 s, (

Simplify names