 moment = require 'moment'
 flux = require 'flux-react'
 
-{TimeStore} = require './time'
+Durations = require '../helpers/durations'
 {CrudConfig, makeSimpleStore, extendConfig} = require './helpers'
-# export the module immediatly before requiring task-step
-# Unfortunantly task-step also needs access to the TaskStore so we export the definition before we require it.
-# The exported object is extended below after the definition
-module.exports = {}
 {TaskStepStore} = require './task-step'
 
 getSteps = (steps) ->


extendConfig(TaskConfig, new CrudConfig())
{actions, store} = makeSimpleStore(TaskConfig)
# Extend the exports with the actual implementation.  The actual export took place at the top of the file
_.extend(module.exports, {TaskActions:actions, TaskStore:store})

      allSteps.length

    isTaskPastDue: (taskId) ->
      Durations.isPastDue( @_get(taskId) )

    isPractice: (taskId) ->
      practices = [
