Created
August 10, 2018 19:01
-
-
Save sicktastic/0b6c2f3bef845635d48367617ee3a16c to your computer and use it in GitHub Desktop.
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
window.intercomSettings = { | |
app_id: "APP_ID", | |
hide_default_launcher: true, | |
email: '<%= current_user.email %>', | |
name: '<%= current_user_full_name %>', | |
first_name: '<%= current_user.first_name %>', | |
last_name: '<%= current_user.last_name %>', | |
user_hash: '<%= OpenSSL::HMAC.hexdigest("sha256", ENV["INTERCOM_SECRET"], current_user.id.to_s) %>', | |
created: '<%= current_user.created_at %>', | |
avatar: { | |
type: "avatar", | |
image_url: '<%= current_user.file %>' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment