[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 efcaa57cf0
commit ae2303b733
404 changed files with 24100 additions and 13301 deletions

View File

@@ -0,0 +1,47 @@
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 check_associate_details():
print("🔎 Checking Associate Details in Contact Record...")
client = SuperOfficeClient()
if not client.access_token:
print("❌ Auth failed.")
return
# Use our known test company (if it still exists - oh wait, we deleted it!)
# We need to find ANY contact.
# Search for any contact
print("Searching for a contact...")
contacts = client.search("Contact?$top=1")
if contacts:
cid = contacts[0].get('contactId') or contacts[0].get('ContactId')
print(f"✅ Found Contact ID: {cid}")
# Fetch Full Details
print("Fetching details...")
details = client.get_contact(cid)
assoc = details.get('Associate')
print("--- Associate Object ---")
print(json.dumps(assoc, indent=2))
if assoc and 'GroupIdx' in assoc:
print(f"✅ SUCCESS: GroupIdx is available: {assoc['GroupIdx']}")
else:
print("❌ FAILURE: GroupIdx is MISSING in Contact details.")
else:
print("❌ No contacts found in system.")
if __name__ == "__main__":
check_associate_details()