Sidecar Logo

utils/slack.js

Created: 2025-10-20T22:01:41.819Z Modified: 2025-12-10T23:22:22.780Z

Configuration

/**
 * Sidecar Config for utils/slack.js
 */
module.exports = {
  title: "slack.js",
  description: "Auto-generated draft",
  created: "2025-10-20T22:01:41.819Z",
  modified: "2025-12-10T23:22:22.780Z",
};

Route Flow Map

--- title: "Route Flow: ssutil /src/utils/slack.js " --- flowchart TD subgraph ALL ["ALL"] hono_all_webhookList_map_async__webhookUrl_______________return_await_sendToSlack_webhookUrl__blocks___________["ALL webhookList.map(async (webhookUrl) => { return await sendToSlack(webhookUrl, blocks); })"] style hono_all_webhookList_map_async__webhookUrl_______________return_await_sendToSlack_webhookUrl__blocks___________ fill:#5E377B,color:#fff,stroke:#B4976A end extractMustacheVariables{{"extractMustacheVariables"}} style extractMustacheVariables fill:#161b22,color:#fff,stroke:#c2a35d sendToSlack{{"sendToSlack"}} style sendToSlack fill:#161b22,color:#fff,stroke:#c2a35d sendSlackMessage{{"sendSlackMessage"}} style sendSlackMessage fill:#161b22,color:#fff,stroke:#c2a35d prepareSlackTemplateData{{"prepareSlackTemplateData"}} style prepareSlackTemplateData fill:#161b22,color:#fff,stroke:#c2a35d sendBulkSlackMessage{{"sendBulkSlackMessage"}} style sendBulkSlackMessage fill:#161b22,color:#fff,stroke:#c2a35d addSlackTemplate{{"addSlackTemplate"}} style addSlackTemplate fill:#161b22,color:#fff,stroke:#c2a35d listSlackTemplates{{"listSlackTemplates"}} style listSlackTemplates fill:#161b22,color:#fff,stroke:#c2a35d getSlackTemplate{{"getSlackTemplate"}} style getSlackTemplate fill:#161b22,color:#fff,stroke:#c2a35d getSlackTemplateVariables{{"getSlackTemplateVariables"}} style getSlackTemplateVariables fill:#161b22,color:#fff,stroke:#c2a35d validateSlackTemplateData{{"validateSlackTemplateData"}} style validateSlackTemplateData fill:#161b22,color:#fff,stroke:#c2a35d sendSlackMessage --> sendToSlack sendBulkSlackMessage --> sendSlackMessage addSlackTemplate --> extractMustacheVariables linkStyle default stroke:#c2a35d,stroke-width:2px,color:#fff classDef default color:#fff

AST Code Structure

--- title: "AST Structure: ssutil /src/utils/slack.js " --- %%{init: { 'flowchart': { 'nodeSpacing': 20, 'rankSpacing': 30 }, 'themeVariables': { 'fontSize': '11px' } } }%% graph LR n0["SF"] n2["mustache"] style n2 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 n3["ID: mustache"] n0 --> n3 n3 --> n2 style n3 stroke-dasharray:5,stroke:#B4976A n5["../config/common_constants.js"] style n5 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n5 cursor:pointer,stroke-width:2px,stroke:#B4976A n6["ID: jsonheaders"] n0 --> n6 n6 --> n5 style n6 stroke-dasharray:5,stroke:#B4976A n8["../templates/slack/blocks_lead_v1.txt"] style n8 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n8 cursor:pointer,stroke-width:2px,stroke:#B4976A n9["ID: default"] n0 --> n9 n9 --> n8 style n9 stroke-dasharray:5,stroke:#B4976A n11["../templates/slack/blocks_segment_v1.txt"] style n11 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n11 cursor:pointer,stroke-width:2px,stroke:#B4976A n12["ID: default"] n0 --> n12 n12 --> n11 style n12 stroke-dasharray:5,stroke:#B4976A n14["../templates/slack/blocks_segment_v2.txt"] style n14 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n14 cursor:pointer,stroke-width:2px,stroke:#B4976A n15["ID: default"] n0 --> n15 n15 --> n14 style n15 stroke-dasharray:5,stroke:#B4976A n17["../templates/slack/blocks_nonUS_v1.txt"] style n17 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n17 cursor:pointer,stroke-width:2px,stroke:#B4976A n18["ID: default"] n0 --> n18 n18 --> n17 style n18 stroke-dasharray:5,stroke:#B4976A n20["../templates/slack/blocks_pausemessage_v1.txt"] style n20 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n20 cursor:pointer,stroke-width:2px,stroke:#B4976A n21["ID: default"] n0 --> n21 n21 --> n20 style n21 stroke-dasharray:5,stroke:#B4976A n23["../templates/slack/blocks_unpausemessage_v1.txt"] style n23 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n23 cursor:pointer,stroke-width:2px,stroke:#B4976A n24["ID: default"] n0 --> n24 n24 --> n23 style n24 stroke-dasharray:5,stroke:#B4976A n26["../templates/slack/blocks_testchannel_v1.txt"] style n26 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n26 cursor:pointer,stroke-width:2px,stroke:#B4976A n27["ID: default"] n0 --> n27 n27 --> n26 style n27 stroke-dasharray:5,stroke:#B4976A n29["../templates/slack/blocks_signup_v1.txt"] style n29 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1 style n29 cursor:pointer,stroke-width:2px,stroke:#B4976A n30["ID: default"] n0 --> n30 n30 --> n29 style n30 stroke-dasharray:5,stroke:#B4976A n31["FD: extractMustacheVariables"] n0 --> n31 n232["FD: sendToSlack"] n0 --> n232 subgraph sub241 ["Safe Boundary"] end n299["FD: sendSlackMessage"] n0 --> n299 subgraph sub314 ["Safe Boundary"] end n424["FD: prepareSlackTemplateData"] n0 --> n424 n842["FD: sendBulkSlackMessage"] n0 --> n842 n863["FD: addSlackTemplate"] n0 --> n863 n906["FD: listSlackTemplates"] n0 --> n906 n915["FD: getSlackTemplate"] n0 --> n915 n927["FD: getSlackTemplateVariables"] n0 --> n927 n947["FD: validateSlackTemplateData"] n0 --> n947 style n0 fill:#5E377B,color:#fff,stroke:#B4976A linkStyle default stroke:#c2a35d,stroke-width:1px,opacity:0.6 click n5 "../config/common_constants.html" "View Documentation" click n8 "../templates/slack/blocks_lead_v1.txt" "View Documentation" click n11 "../templates/slack/blocks_segment_v1.txt" "View Documentation" click n14 "../templates/slack/blocks_segment_v2.txt" "View Documentation" click n17 "../templates/slack/blocks_nonUS_v1.txt" "View Documentation" click n20 "../templates/slack/blocks_pausemessage_v1.txt" "View Documentation" click n23 "../templates/slack/blocks_unpausemessage_v1.txt" "View Documentation" click n26 "../templates/slack/blocks_testchannel_v1.txt" "View Documentation" click n29 "../templates/slack/blocks_signup_v1.txt" "View Documentation"
CE CallExpressionFD FunctionDeclarationID ImportDeclarationSF SourceFileTS TryStatement