 
       return false
 
+configureChannels = ->
+  for channel of channelSchemas
+    Backbone.Mediator.addChannelSchemas channelSchemas[channel]
+
+configureDefinitions = ->
+  for definition of definitionSchemas
+    Backbone.Mediator.addDefSchemas definitionSchemas[definition]
app = require 'application'

init = ->
  app.initialize()

  treemaExt = require 'treema-ext'
  treemaExt.setup()
  filepicker.setKey('AvlkNoldcTOU4PvKi2Xm7z')

  # Set up Backbone.Mediator schemas
  configureChannels()
  configureDefinitions()

$ -> init()
  
