           console.error err
           return callback err
 
-        exchange.publish '', event, { type: EVENT_TYPE }, (errored, err) =>
+        exchange.publish '', event, { type: EVENT_TYPE }, (errored, err) ->
           return callback err
 
     if mqClient.readyEmitted then sendMessage()

    category: 'NewAccount', label: 'VerifyAccount'
  }

  @identifyAndTrack = (username, event, eventProperties = {}, callback = ->) ->
    @identify username, {}, (err) =>
      return callback err  if err

      @track username, event, eventProperties, callback


  @identify = (username, traits = {}, callback = ->) ->

    return  unless KONFIG.sendEventsToSegment



  errMQClientNotSet = new Error 'Tracker: RabbitMQ client not set'

  @track = (username, event, options = {}, callback = -> ) ->

    return callback null  unless KONFIG.sendEventsToSegment

