[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,41 @@
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 find_latest_roboplanet():
print("🔎 Searching for the latest Roboplanet (Group 52) Account...")
client = SuperOfficeClient()
if not client.access_token:
print("❌ Auth failed.")
return
# DIAGNOSTIC: Search for Account of Associate 528 (RCGO)
endpoint = "Contact?$filter=associateId eq 528&$orderby=contactId desc&$top=1&$select=contactId,name,Associate"
print(f"📡 Diagnostic Query: {endpoint}")
try:
results = client.search(endpoint)
if results and len(results) > 0:
contact = results[0]
print("\n✅ FOUND ACCOUNT FOR RCGO (528):")
print(json.dumps(contact, indent=2))
# Check GroupIdx
# Usually flat like "Associate": {"GroupIdx": 52...}
else:
print("\n❌ NO ACCOUNTS FOUND for RCGO (528).")
except Exception as e:
print(f"❌ Error: {e}")
if __name__ == "__main__":
find_latest_roboplanet()