Add user information to the olark buddy list.

This commit is contained in:
yackob03 2014-01-10 14:29:18 -05:00
parent 223d2ebaf1
commit 3040d0c546

View file

@ -298,6 +298,16 @@ quayApp = angular.module('quay', ['ngRoute', 'chieffancypants.loadingBar', 'rest
'$created': new Date()
})
if (window.olark !== undefined) {
olark('api.visitor.getDetails', function(details) {
if (details.fullName === null) {
olark('api.visitor.updateFullName', {fullName: userResponse.username});
}
});
olark('api.visitor.updateEmailAddress', {emailAddress: userResponse.email});
olark('api.chat.updateVisitorStatus', {snippet: 'username: ' + userResponse.username});
}
CookieService.putPermanent('quay.loggedin', 'true');
}