     opts
 
 
-  @setMqClient = (m)-> mqClient = m
+  @setMqClient = (m) -> mqClient = m
+
+

    unless mqClient
      return console.error 'RabbitMQ client not found for class `Tracker` @sent-hil'

    sendMessage =->
      mqClient.exchange "#{exchangeName}", exchangeOpts, (exchange) =>
        unless exchange
          return console.error "Exchange not found to queue: #{exchangeName} @sent-hil"

        exchange.publish '', mail, type:EVENT_TYPE
        exchange.close()

    if mqClient.readyEmitted then sendMessage()

bongo    = require 'bongo'
{ argv } = require 'optimist'

KONFIG        = require('koding-config-manager').load("main.#{argv.c}")
{ socialapi } = KONFIG
exchangeName  = "#{socialapi.eventExchangeName}:0"
exchangeOpts  = { autoDelete: no, durable:yes, type :'fanout' }

Analytics = require('analytics-node')
analytics = new Analytics(KONFIG.segment)
