From 274e071f02d0dd323f283544560bda34f0e6e612 Mon Sep 17 00:00:00 2001 From: Oleh Makodym Date: Mon, 23 Sep 2024 15:04:03 +0200 Subject: [PATCH] Adding Mobile product and Mobile-related location --- lib/zendesk_apps_support/location.rb | 3 ++- lib/zendesk_apps_support/product.rb | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/zendesk_apps_support/location.rb b/lib/zendesk_apps_support/location.rb index 90f66d82..5ffaa196 100644 --- a/lib/zendesk_apps_support/location.rb +++ b/lib/zendesk_apps_support/location.rb @@ -65,7 +65,8 @@ def self.all Location.new(id: 23, name: 'call_log_editor', product_code: Product::SELL.code, visible: true), Location.new(id: 24, name: 'email_editor', product_code: Product::SELL.code, visible: true), Location.new(id: 25, name: 'top_bar', product_code: Product::SELL.code, visible: true), - Location.new(id: 26, name: 'visit_editor', product_code: Product::SELL.code, visible: true) + Location.new(id: 26, name: 'visit_editor', product_code: Product::SELL.code, visible: true), + Location.new(id: 27, name: 'ticket_details', product_code: Product::MOBILE.code, visible: true) ].freeze end end diff --git a/lib/zendesk_apps_support/product.rb b/lib/zendesk_apps_support/product.rb index 9fd1fe8a..a0e69026 100644 --- a/lib/zendesk_apps_support/product.rb +++ b/lib/zendesk_apps_support/product.rb @@ -20,12 +20,14 @@ def self.all Product.new(code: 1, name: 'support', legacy_name: 'zendesk'), Product.new(code: 2, name: 'chat', legacy_name: 'zopim'), Product.new(code: 3, name: 'standalone_chat', legacy_name: 'lotus_box'), - Product.new(code: 4, name: 'sell', legacy_name: 'sell') + Product.new(code: 4, name: 'sell', legacy_name: 'sell'), + Product.new(code: 5, name: 'mobile', legacy_name: 'mobile') ].freeze SUPPORT = find_by!(name: 'support') CHAT = find_by!(name: 'chat') STANDALONE_CHAT = find_by!(name: 'standalone_chat') SELL = find_by!(name: 'sell') + MOBILE = find_by!(name: 'mobile') end end