//= require bluebird
//= require babel/polyfill
//= require bugsnag
//= require bind-polyfill
//= require jquery
//= require jquery.monkeypatch
//= require jquery_ujs
//= require jquery.ui.draggable
//= require jquery.ui.droppable
//= require jquery.bt
//= require jquery.icheck
//= require jquery.easydropdown
//= require jquery.metronomePlaybackMode
//= require jquery.cookie
//= require fingerprint2.min
//= require influxdb-latest
//= require howler.core.js
//= require classnames
//= require reflux
//= require AAC_underscore
//= require AAA_Log
//= require globals
//= require AAB_message_factory
//= require jam_rest
//= require ga
//= require layout
//= require jamkazam
//= require utils
//= require subscription_utils
//= require webcam_viewer
//= require JamServer
//= require react
//= require react_ujs
//= require react-init
//= require react-components
//= require playbackControls

function initializeInfluxDB() {
  window.stats = new InfluxDB({
    "host" : gon.global.influxdb_host,
    "port" : gon.global.influxdb_port,
    "username" : gon.global.influxdb_username,
    "password" : gon.global.influxdb_password,
    "database" : gon.global.influxdb_database
  });

  window.stats.write = window.stats.writePoint;
}

initializeInfluxDB()