I've created an application-level (global) custom view that needs to get the current user's preferences and teams. JavaScript console in my browser shows me that at the time of the view's initialize function, app.events is not available, app.user is a…