[30388f42] Infrastructure Hardening: Repaired CE/Connector DB schema, fixed frontend styling build, implemented robust echo shield in worker v2.1.1, and integrated Lead Engine into gateway.

This commit is contained in:
2026-03-07 14:08:42 +00:00
parent 35c30bc39a
commit d1b77fd2f6
415 changed files with 24100 additions and 13301 deletions

View File

@@ -0,0 +1,35 @@
import sys
import os
import json
# Absolute path setup
current_dir = os.path.dirname(os.path.abspath(__file__))
connector_dir = os.path.abspath(os.path.join(current_dir, '..'))
sys.path.insert(0, connector_dir)
from superoffice_client import SuperOfficeClient
def debug_names():
print("🔎 Debugging Associate Names...")
client = SuperOfficeClient()
if not client.access_token:
print("❌ Auth failed.")
return
endpoint = "Contact?$orderby=contactId desc&$top=5&$select=name,Associate/Name"
print(f"📡 Querying: {endpoint}")
contacts = client.search(endpoint)
if contacts:
for c in contacts:
cname = c.get('name')
assoc = c.get('Associate') or {}
aname = assoc.get('Name')
print(f" 🏢 Contact: {cname}")
print(f" 👉 Associate Name: '{aname}'")
else:
print("❌ No contacts found.")
if __name__ == "__main__":
debug_names()