 { default: User } = require '../models/user'
 { default: Courses } = require '../models/courses-map'
 { default: Offerings } = require '../models/offerings';
+{ default: CourseCreate } = require '../models/course/create';
 
 BOOTSTRAPED_MODELS = {
   user:    User.bootstrap,

  )

  connectRead(CourseListingActions, url: 'user/courses')
  connectCreate(NewCourseActions,
    pattern: 'courses/{id}/clone', trigger: 'clone', data: NewCourseStore.requestPayload
  )
  connectCreate(NewCourseActions, url: 'courses', data: NewCourseStore.requestPayload)

  connectRead(ReferenceBookActions, pattern: 'ecosystems/{id}/readings')
  connectRead(ReferenceBookPageActions, pattern: 'pages/{id}')

   )
  connectModelRead(Offerings.constructor, 'fetch', url: 'offerings', onSuccess: 'onLoaded')

  connectModelCreate(CourseCreate, 'save', onSuccess: 'onCreated')

start = (bootstrapData) ->
  for storeId, action of BOOTSTRAPED_MODELS
