Finalize SuperOffice production migration and multi-campaign architecture (v1.8)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import sys
|
||||
import os
|
||||
from superoffice_client import SuperOfficeClient
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Configuration
|
||||
WEBHOOK_NAME = "Gemini Connector Hook"
|
||||
TARGET_URL = "https://floke-ai.duckdns.org/connector/webhook?token=changeme" # Token match .env
|
||||
WEBHOOK_NAME = "Gemini Connector Production"
|
||||
TARGET_URL = f"https://floke-ai.duckdns.org/connector/webhook?token={os.getenv('WEBHOOK_TOKEN', 'changeme')}"
|
||||
EVENTS = [
|
||||
"contact.created",
|
||||
"contact.changed",
|
||||
@@ -13,6 +14,7 @@ EVENTS = [
|
||||
]
|
||||
|
||||
def register():
|
||||
load_dotenv("../.env")
|
||||
print("🚀 Initializing SuperOffice Client...")
|
||||
try:
|
||||
client = SuperOfficeClient()
|
||||
|
||||
Reference in New Issue
Block a user