diff --git a/.env.example b/.env.example index 627d1398c..a3881cb3b 100644 --- a/.env.example +++ b/.env.example @@ -33,9 +33,6 @@ DB_NAME=quepid QUEPID_DOMAIN=localhost -INTERCOM_APP_ID= -INTERCOM_API_KEY= - # Used to insert web links if populated. TC_URL= PRIVACY_URL= diff --git a/Gemfile b/Gemfile index c18144e92..69b76a776 100644 --- a/Gemfile +++ b/Gemfile @@ -24,7 +24,6 @@ gem 'devise_invitable', '~> 2.0' gem 'faraday-retry' gem 'foreman' gem 'importmap-rails', '~> 2.1' -gem 'intercom-rails' gem 'jbuilder', '~> 2.7' gem 'jquery-rails' gem 'jquery-ui-rails' # Can we narrow the widgets to load faster? diff --git a/Gemfile.lock b/Gemfile.lock index 46858a8a5..c42f6e8f6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -218,9 +218,6 @@ GEM actionpack (>= 6.0.0) activesupport (>= 6.0.0) railties (>= 6.0.0) - intercom-rails (1.0.5) - activesupport (> 4.0) - jwt (~> 2.0) io-console (0.8.0) irb (1.15.1) pp (>= 0.6.0) @@ -574,7 +571,6 @@ DEPENDENCIES faraday-retry foreman importmap-rails (~> 2.1) - intercom-rails jbuilder (~> 2.7) jquery-rails jquery-ui-rails diff --git a/app.json b/app.json index 8690206d1..3663e0af0 100644 --- a/app.json +++ b/app.json @@ -21,12 +21,6 @@ "FORCE_SSL": { "required": true }, - "INTERCOM_API_KEY": { - "required": true - }, - "INTERCOM_APP_ID": { - "required": true - }, "LANG": { "required": true }, diff --git a/config/initializers/intercom.rb b/config/initializers/intercom.rb deleted file mode 100644 index 307f4dc1e..000000000 --- a/config/initializers/intercom.rb +++ /dev/null @@ -1,118 +0,0 @@ -# frozen_string_literal: true - -IntercomRails.config do |config| - # == Intercom app_id - # - config.app_id = ENV.fetch('INTERCOM_APP_ID', nil) - - # == Intercom session_duration - # - # config.session_duration = 300000 - # == Intercom secret key - # This is required to enable Identity Verification, you can find it on your Setup - # guide in the "Identity Verification" step. - # - config.api_secret = ENV.fetch('INTERCOM_API_SECRET', nil) - - # == Enabled Environments - # Which environments is auto inclusion of the Javascript enabled for - # - config.enabled_environments = config.app_id.present? ? %w[development production staging] : [] - - # == Current user method/variable - # The method/variable that contains the logged in user in your controllers. - # If it is `current_user` or `@user`, then you can ignore this - # - # config.user.current = Proc.new { current_user } - # config.user.current = [Proc.new { current_user }] - - # == Include for logged out Users - # If set to true, include the Intercom messenger on all pages, regardless of whether - # The user model class (set below) is present. - # config.include_for_logged_out_users = true - - # == User model class - # The class which defines your user model - # - # config.user.model = Proc.new { User } - - # == Lead/custom attributes for non-signed up users - # Pass additional attributes to for potential leads or - # non-signed up users as an an array. - # Any attribute contained in config.user.lead_attributes can be used - # as custom attribute in the application. - # config.user.lead_attributes = %w(ref_data utm_source) - - # == Exclude users - # A Proc that given a user returns true if the user should be excluded - # from imports and Javascript inclusion, false otherwise. - # - # config.user.exclude_if = Proc.new { |user| user.deleted? } - - # == User Custom Data - # A hash of additional data you wish to send about your users. - # You can provide either a method name which will be sent to the current - # user object, or a Proc which will be passed the current user. - # - # config.user.custom_data = { - # :plan => Proc.new { |current_user| current_user.plan.name }, - # :favorite_color => :favorite_color - # } - - # == Current company method/variable - # The method/variable that contains the current company for the current user, - # in your controllers. 'Companies' are generic groupings of users, so this - # could be a company, app or group. - # - # config.company.current = Proc.new { current_company } - # - # Or if you are using devise you can just use the following config - # - # config.company.current = Proc.new { current_user.company } - - # == Exclude company - # A Proc that given a company returns true if the company should be excluded - # from imports and Javascript inclusion, false otherwise. - # - # config.company.exclude_if = Proc.new { |app| app.subdomain == 'demo' } - - # == Company Custom Data - # A hash of additional data you wish to send about a company. - # This works the same as User custom data above. - # - # config.company.custom_data = { - # :number_of_messages => Proc.new { |app| app.messages.count }, - # :is_interesting => :is_interesting? - # } - - # == Company Plan name - # This is the name of the plan a company is currently paying (or not paying) for. - # e.g. Messaging, Free, Pro, etc. - # - # config.company.plan = Proc.new { |current_company| current_company.plan.name } - - # rubocop:disable Layout/LineLength - # == Company Monthly Spend - # This is the amount the company spends each month on your app. If your company - # has a plan, it will set the 'total value' of that plan appropriately. - # - # config.company.monthly_spend = Proc.new { |current_company| current_company.plan.price } - # config.company.monthly_spend = Proc.new { |current_company| (current_company.plan.price - current_company.subscription.discount) } - # rubocop:enable Layout/LineLength - - # == Custom Style - # By default, Intercom will add a button that opens the messenger to - # the page. If you'd like to use your own link to open the messenger, - # uncomment this line and clicks on any element with id 'Intercom' will - # open the messenger. - # - # config.inbox.style = :custom - # - # If you'd like to use your own link activator CSS selector - # uncomment this line and clicks on any element that matches the query will - # open the messenger - # config.inbox.custom_activator = '.intercom' - # - # If you'd like to hide default launcher button uncomment this line - # config.hide_default_launcher = true -end