From c2fecefa55b22b6dd565375801c4a89a4a1acf01 Mon Sep 17 00:00:00 2001
From: 1sonhador <1sonhador@gmail.com>
Date: Thu, 30 Oct 2025 10:00:46 +0000
Subject: [PATCH] refactor: Remove BetZoo and WDMI references, standardize to
MoneyFlix
- Replace "BetZoo CRM" with "MoneyFlix" in Advertising module description
- Replace "Betzoo" option with "MoneyFlix" in ErrorMonitoring project filter
- Update GoogleSheetsService to use environment variable for credentials path
- Update CDN config from betzoo.app to moneyflix.com
- Remove WDMI-specific checks in layouts (topbar, sidebar, main, public-blank)
- Update database profile examples from wdmi_importer to moneyflix_importer
- Keep BitReport references (company/product name)
---
crm/Core/Database/Migration.php | 2 +-
crm/Core/Database/Migrations/AddRawRequestToRedirectStats.php | 1 +
crm/Modules/Advertising/Module.php | 2 +-
crm/Modules/Advertising/Services/GoogleSheetsService.php | 4 ++--
crm/Modules/Advertising/config.php | 4 ++--
crm/Modules/ErrorMonitoring/Views/errors.php | 2 +-
crm/Views/layouts/main.php | 2 +-
crm/Views/layouts/public-blank.php | 2 +-
crm/Views/layouts/sidebar.php | 4 ++--
crm/Views/layouts/topbar.php | 4 ++--
crm/config.env.example | 4 ++--
11 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/crm/Core/Database/Migration.php b/crm/Core/Database/Migration.php
index 99510e9..5fa9537 100644
--- a/crm/Core/Database/Migration.php
+++ b/crm/Core/Database/Migration.php
@@ -38,7 +38,7 @@ abstract class Migration
/**
* Set the connection profile for this migration
- * Available profiles: 'crm', 'wdmi_importer', 'legacy'
+ * Available profiles: 'crm', 'moneyflix_importer', 'legacy'
*/
protected function setConnectionProfile(string $profile): void
{
diff --git a/crm/Core/Database/Migrations/AddRawRequestToRedirectStats.php b/crm/Core/Database/Migrations/AddRawRequestToRedirectStats.php
index 66c5953..73ff294 100644
--- a/crm/Core/Database/Migrations/AddRawRequestToRedirectStats.php
+++ b/crm/Core/Database/Migrations/AddRawRequestToRedirectStats.php
@@ -42,5 +42,6 @@ class AddRawRequestToRedirectStats extends Migration
+
diff --git a/crm/Modules/Advertising/Module.php b/crm/Modules/Advertising/Module.php
index 58452e8..b441bd8 100644
--- a/crm/Modules/Advertising/Module.php
+++ b/crm/Modules/Advertising/Module.php
@@ -11,7 +11,7 @@ class Module
return [
'name' => 'Advertising',
'version' => '1.0.0',
- 'description' => 'Sistema completo de publicidade e tracking para BetZoo CRM',
+ 'description' => 'Sistema completo de publicidade e tracking para MoneyFlix',
'author' => 'BitReport Unip. LDA',
'enabled' => true,
'dependencies' => ['Core', 'Analytics', 'GeoAnalytics'],
diff --git a/crm/Modules/Advertising/Services/GoogleSheetsService.php b/crm/Modules/Advertising/Services/GoogleSheetsService.php
index 76d73d1..af85c70 100644
--- a/crm/Modules/Advertising/Services/GoogleSheetsService.php
+++ b/crm/Modules/Advertising/Services/GoogleSheetsService.php
@@ -50,8 +50,8 @@ class GoogleSheetsService
private function initializeGoogleClient(): void
{
try {
- // Use the same Google Sheets setup as script-builder
- $credentialsPath = __DIR__ . '/../../../../projects/script-builder/_offline/betzoobimby-f78a5a64b868.json';
+ // Google Sheets credentials path (configure in environment if needed)
+ $credentialsPath = getenv('GOOGLE_CREDENTIALS_PATH') ?: __DIR__ . '/../../../../config/google-credentials.json';
$credentialsPath = realpath($credentialsPath);
if (!$credentialsPath || !file_exists($credentialsPath)) {
diff --git a/crm/Modules/Advertising/config.php b/crm/Modules/Advertising/config.php
index 7b4b74e..3edab23 100644
--- a/crm/Modules/Advertising/config.php
+++ b/crm/Modules/Advertising/config.php
@@ -45,8 +45,8 @@ return [
'cdn' => [
'provider' => 'cloudflare',
's3_compatible' => true,
- 'endpoint' => 'https://cdn.betzoo.app',
- 'bucket' => 'betzoo-creatives',
+ 'endpoint' => 'https://cdn.moneyflix.com',
+ 'bucket' => 'moneyflix-creatives',
'region' => 'us-east-1'
],
'google_sheets' => [
diff --git a/crm/Modules/ErrorMonitoring/Views/errors.php b/crm/Modules/ErrorMonitoring/Views/errors.php
index 0ddddbe..45c98a4 100644
--- a/crm/Modules/ErrorMonitoring/Views/errors.php
+++ b/crm/Modules/ErrorMonitoring/Views/errors.php
@@ -36,7 +36,7 @@ use App\Core\View;
diff --git a/crm/Views/layouts/main.php b/crm/Views/layouts/main.php
index 32de052..dbf5898 100644
--- a/crm/Views/layouts/main.php
+++ b/crm/Views/layouts/main.php
@@ -38,7 +38,7 @@ $branding = Branding::get();
-
+