Add user information to the olark buddy list.
This commit is contained in:
parent
223d2ebaf1
commit
3040d0c546
1 changed files with 10 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue