This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The currentUser lib stores a model representing the logged in user, and other login state information | |
var currentUser = require('currentUser'); | |
// Logger is a Ti.API.info() wrapper with a bit more flexibility | |
var logger = require('logger'); | |
var messageQueue = []; // put this into local storage at some point to retain recent offline events before crashes | |
var messageInTransit = null; | |
var token = Ti.App.Properties.getString('mixpanel.token'); | |
var systemProperties = { | |
mobile_osname: Ti.Platform.osname, |