{"nodes": [{"id": "root_socialdesk_apps_web_src_app_api_crm_import_route_js", "label": "route.js", "file_type": "code", "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L1"}, {"id": "import_route_post", "label": "POST()", "file_type": "code", "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L8"}], "edges": [{"source": "root_socialdesk_apps_web_src_app_api_crm_import_route_js", "target": "root_socialdesk_apps_web_src_app_api_utils_sql_js", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L1", "weight": 1.0}, {"source": "root_socialdesk_apps_web_src_app_api_crm_import_route_js", "target": "root_socialdesk_apps_web_src_app_api_utils_getprofile_js", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L2", "weight": 1.0}, {"source": "root_socialdesk_apps_web_src_app_api_crm_import_route_js", "target": "utils_getprofile_getsessionprofile", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L2", "weight": 1.0}, {"source": "root_socialdesk_apps_web_src_app_api_crm_import_route_js", "target": "import_route_post", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L8", "weight": 1.0}], "raw_calls": [{"caller_nid": "import_route_post", "callee": "getSessionProfile", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L10"}, {"caller_nid": "import_route_post", "callee": "json", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L11"}, {"caller_nid": "import_route_post", "callee": "json", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L12"}, {"caller_nid": "import_route_post", "callee": "formData", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L14"}, {"caller_nid": "import_route_post", "callee": "get", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L15"}, {"caller_nid": "import_route_post", "callee": "json", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L16"}, {"caller_nid": "import_route_post", "callee": "text", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L18"}, {"caller_nid": "import_route_post", "callee": "split", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L19"}, {"caller_nid": "import_route_post", "callee": "trim", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L19"}, {"caller_nid": "import_route_post", "callee": "json", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L21"}, {"caller_nid": "import_route_post", "callee": "map", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L25"}, {"caller_nid": "import_route_post", "callee": "split", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L25"}, {"caller_nid": "import_route_post", "callee": "toLowerCase", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L25"}, {"caller_nid": "import_route_post", "callee": "get", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L32"}, {"caller_nid": "import_route_post", "callee": "parse", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L36"}, {"caller_nid": "import_route_post", "callee": "json", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L38"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L43"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L44"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L45"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L46"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L46"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L47"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L48"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L48"}, {"caller_nid": "import_route_post", "callee": "includes", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L54"}, {"caller_nid": "import_route_post", "callee": "values", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L54"}, {"caller_nid": "import_route_post", "callee": "find", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L55"}, {"caller_nid": "import_route_post", "callee": "parseRow", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L67"}, {"caller_nid": "import_route_post", "callee": "forEach", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L69"}, {"caller_nid": "import_route_post", "callee": "(() => {\n          const key = Object.entries(mapping).find(([, v]) => v === \"name\")?.[0];\n          return key ? row[key]?.trim() : \"\";\n        })", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L72"}, {"caller_nid": "import_route_post", "callee": "(() => {\n          const key = Object.entries(mapping).find(([, v]) => v === \"email\")?.[0];\n          return key ? row[key]?.trim() || null : null;\n        })", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L76"}, {"caller_nid": "import_route_post", "callee": "(() => {\n          const key = Object.entries(mapping).find(([, v]) => v === \"phone\")?.[0];\n          return key ? row[key]?.trim() || null : null;\n        })", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L80"}, {"caller_nid": "import_route_post", "callee": "(() => {\n          const key = Object.entries(mapping).find(([, v]) => v === \"platform\")?.[0];\n          return key ? row[key]?.trim() || \"direct\" : \"direct\";\n        })", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L84"}, {"caller_nid": "import_route_post", "callee": "(() => {\n          const key = Object.entries(mapping).find(([, v]) => v === \"tags\")?.[0];\n          return key ? row[key]?.trim() : \"\";\n        })", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L88"}, {"caller_nid": "import_route_post", "callee": "filter", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L92"}, {"caller_nid": "import_route_post", "callee": "map", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L92"}, {"caller_nid": "import_route_post", "callee": "split", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L92"}, {"caller_nid": "import_route_post", "callee": "push", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L95"}, {"caller_nid": "import_route_post", "callee": "sql", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L102"}, {"caller_nid": "import_route_post", "callee": "sql", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L106"}, {"caller_nid": "import_route_post", "callee": "stringify", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L108"}, {"caller_nid": "import_route_post", "callee": "push", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L111"}, {"caller_nid": "import_route_post", "callee": "sql", "is_member_call": false, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L114"}, {"caller_nid": "import_route_post", "callee": "stringify", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L116"}, {"caller_nid": "import_route_post", "callee": "push", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L119"}, {"caller_nid": "import_route_post", "callee": "push", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L123"}, {"caller_nid": "import_route_post", "callee": "json", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L128"}, {"caller_nid": "import_route_post", "callee": "error", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L136"}, {"caller_nid": "import_route_post", "callee": "json", "is_member_call": true, "source_file": "/root/socialdesk/apps/web/src/app/api/crm/import/route.js", "source_location": "L137"}]}