 (ns ow.starbuck.message-router
-  #_(:refer-clojure :rename {compile compile-clj})
-  #_#?(:cljs (:require-macros [cljs.core.async.macros :refer [go go-loop]]))
-  (:require #_[com.stuartsierra.component :as c]
-            #_#?(:clj  [clojure.core.async :refer [put! >! <! go go-loop pub sub chan close! timeout alts! promise-chan]]
-               :cljs [cljs.core.async :refer [put! >! <! pub sub chan close! timeout alts! promise-chan]])
-            [taoensso.timbre :refer [trace debug info warn error fatal]]
+  (:require [taoensso.timbre :refer [trace debug info warn error fatal]]
             ;;;[clara.rules :as cr]
 
             ;;;[clojure.walk :refer [macroexpand-all]]

                msgs)
           (apply concat)
           (remove #(nil? (:comp %)))))
    (throw (ex-info "next component undefined in transition" {:transition transition}))))

(defn- handle-events [eventhandlers msg]
  (let [{:keys [msg evmsgs]}

                              (update :evmsgs #(conj % evmsg)))
                          (update s :evmsgs #(conj % evmsg))))
                      s)
                    (warn "next component undefined in eventhandler" {:eventhandler eventhandler})))
                {:msg msg
                 :evmsgs []}
                eventhandlers)]
