{
  "id": "87921",
  "name": "send-mail-onCompleteCallback",
  "data": {
    "jobName": "send-mail",
    "jobId": "87920",
    "result": {
      "jobResult": {
        "error": false,
        "json": {
          "id": "<20250310183751.0fe9e8dc8f4c7cf4@butterflyhacks.com>",
          "message": "Queued. Thank you."
        },
        "opts": {
          "questionId": "649d67ee324b6d001bdcbcbb",
          "userId": "649d67ee324b6d001bdcbcbb",
          "companyId": "649d67ee324b6d001bdcbcba",
          "notificationTag": "survey_invite_preview",
          "company": {
            "id": 1,
            "_id": "649d67ee324b6d001bdcbcba",
            "subdomain": "ultima",
            "prevSubdomains": null,
            "name": "Ultima",
            "logo": "",
            "language": "en",
            "timezone": "Asia/Jerusalem",
            "auth": null,
            "slack": null,
            "slackInvalid": null,
            "plan": "free",
            "hadSubscriptionBefore": false,
            "trialStartedAt": null,
            "stripeId": null,
            "subscriptionId": null,
            "subscriptionPeriodEndAt": null,
            "createdAt": 1688037358952,
            "updatedAt": 1727194204561,
            "deletedAt": null,
            "updateUsersQuantityAt": null,
            "updateUsersQuantityJobId": null,
            "enableAlex": false,
            "enableBilling": false,
            "imagesHost": null,
            "features": {
              "dashboardPerformance": true
            },
            "customEmailDomains": {},
            "branding": [],
            "workplace": null,
            "sfAccountId": null,
            "service": false,
            "featureMetaData": {
              "syncCompanyStructure": {
                "jobIds": {
                  "hoursBeforePulse": {}
                }
              }
            },
            "defaultPlan": "dashboard",
            "defaultPulseConfig": {
              "customFields": true,
              "allowedLanguages": [
                "en",
                "sp",
                "ari"
              ],
              "generateDirectReportResults": true
            },
            "integrations": {
              "email": {
                "enabled": true
              },
              "available": [
                "email"
              ]
            }
          },
          "isTestNotification": true,
          "lng": "en",
          "to": "klemen@butterfly.ai",
          "sender": "Butterfly Team",
          "replyTo": "support@butterfly.ai",
          "subdomain": "ultima",
          "subject": "Preview: Overall, how happy did you feel this month at Ultima?",
          "assetsHost": "https://assets.caterpillar.ai",
          "companyName": "Ultima",
          "companyBranding": [],
          "showCompanyBranding": false,
          "tags": [
            "email: survey_invite_preview",
            "company: ultima"
          ],
          "template": "buildable",
          "message": [
            {
              "partial": "text",
              "params": {
                "content": "Hi <b>Butterfly Admin</b>,",
                "style": "font-size: 15px; color: #222222;"
              }
            },
            {
              "partial": "text",
              "params": {
                "content": "This is the survey of Mako!",
                "style": "font-size: 15px; color: #222222;"
              }
            },
            {
              "partial": "text",
              "params": {
                "content": "<b>Ultima</b> needs your feedback, take a second to reply:",
                "style": "font-size: 15px; color: #222222;"
              }
            },
            {
              "partial": "text",
              "params": {
                "content": "",
                "style": "font-size: 12px; color: #222222;"
              }
            },
            {
              "partial": "text",
              "params": {
                "content": "<b>Overall, how happy did you feel this month at Ultima?</b> *",
                "style": "font-size: 15px; color: #222222;"
              }
            },
            {
              "partial": "link-menu",
              "params": {
                "items": [
                  {
                    "title": "Very Happy",
                    "link": "https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/c4e495a3-2e6a-4ed3-b26a-6f001ba49e61/5",
                    "emoji": "😀",
                    "imageUrl": "https://assets.caterpillar.ai/email-images/mood-5.v3.png",
                    "altText": "Very Happy",
                    "interactionData": {
                      "id": "bfi/ps/649d6865324b6d001bdcbcc4:649d67ee324b6d001bdcbcbb:1741631871099/preview/5"
                    }
                  },
                  {
                    "title": "Happy",
                    "link": "https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/db2b765f-f970-4f6f-86fd-9a125aad0991/4",
                    "emoji": "🙂",
                    "imageUrl": "https://assets.caterpillar.ai/email-images/mood-4.v3.png",
                    "altText": "Happy",
                    "interactionData": {
                      "id": "bfi/ps/649d6865324b6d001bdcbcc4:649d67ee324b6d001bdcbcbb:1741631871088/preview/4"
                    }
                  },
                  {
                    "title": "Neutral",
                    "link": "https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/5b31682b-5d92-44d7-b97b-dd4e2435bcba/3",
                    "emoji": "😐",
                    "imageUrl": "https://assets.caterpillar.ai/email-images/mood-3.v3.png",
                    "altText": "Neutral",
                    "interactionData": {
                      "id": "bfi/ps/649d6865324b6d001bdcbcc4:649d67ee324b6d001bdcbcbb:1741631871052/preview/3"
                    }
                  },
                  {
                    "title": "Unhappy",
                    "link": "https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/fe282421-d7ea-41b4-bbbb-50613d22a06b/2",
                    "emoji": "🙁",
                    "imageUrl": "https://assets.caterpillar.ai/email-images/mood-2.v3.png",
                    "altText": "Unhappy",
                    "interactionData": {
                      "id": "bfi/ps/649d6865324b6d001bdcbcc4:649d67ee324b6d001bdcbcbb:1741631871025/preview/2"
                    }
                  },
                  {
                    "title": "Very Unhappy",
                    "link": "https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/cbf63c42-26bb-42d7-b063-3ab0011a1813/1",
                    "emoji": "😩",
                    "imageUrl": "https://assets.caterpillar.ai/email-images/mood-1.v3.png",
                    "altText": "Very Unhappy",
                    "interactionData": {
                      "id": "bfi/ps/649d6865324b6d001bdcbcc4:649d67ee324b6d001bdcbcbb:1741631870995/preview/1"
                    }
                  }
                ]
              }
            },
            {
              "partial": "text",
              "params": {
                "content": "* Your answer will always remain anonymous",
                "style": "font-size: 12px; color: #515051;"
              }
            },
            {
              "partial": "text",
              "params": {
                "content": "It will approximately take you 1 Minute to answer the survey",
                "style": "font-size: 12px; color: #515051;"
              }
            }
          ],
          "html": "<!doctype html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\">\n   <head>\n      <!-- NAME: 1 COLUMN -->\n      <!--[if gte mso 15]>\n      <xml>\n         <o:OfficeDocumentSettings>\n            <o:AllowPNG/>\n            <o:PixelsPerInch>96</o:PixelsPerInch>\n         </o:OfficeDocumentSettings>\n      </xml>\n      <![endif]-->\n      <meta charset=\"UTF-8\">\n      <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n      <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n      <title>Preview: Overall, how happy did you feel this month at Ultima?</title>\n      <style type=\"text/css\">\n         p {\n         margin: 10px 0;\n         padding: 0;\n         }\n         table {\n         border-collapse: collapse;\n         }\n         h1,\n         h2,\n         h3,\n         h4,\n         h5,\n         h6 {\n         display: block;\n         margin: 0;\n         padding: 0;\n         }\n         img,\n         a img {\n         border: 0;\n         height: auto;\n         outline: none;\n         text-decoration: none;\n         }\n         body,\n         #bodyTable,\n         #bodyCell {\n         height: 100%;\n         margin: 0;\n         padding: 0;\n         width: 100%;\n         }\n         #outlook a {\n         padding: 0;\n         }\n         img {\n         -ms-interpolation-mode: bicubic;\n         }\n         table {\n         mso-table-lspace: 0pt;\n         mso-table-rspace: 0pt;\n         }\n         .ReadMsgBody {\n         width: 100%;\n         }\n         .ExternalClass {\n         width: 100%;\n         }\n         p,\n         a,\n         li,\n         td,\n         blockquote {\n         mso-line-height-rule: exactly;\n         }\n         a[href^=tel],\n         a[href^=sms] {\n         color: inherit;\n         cursor: default;\n         text-decoration: none;\n         }\n         p,\n         a,\n         li,\n         td,\n         body,\n         table,\n         blockquote {\n         -ms-text-size-adjust: 100%;\n         -webkit-text-size-adjust: 100%;\n         }\n         .ExternalClass,\n         .ExternalClass p,\n         .ExternalClass td,\n         .ExternalClass div,\n         .ExternalClass span,\n         .ExternalClass font {\n         line-height: 100%;\n         }\n         a[x-apple-data-detectors] {\n         color: inherit !important;\n         text-decoration: none !important;\n         font-size: inherit !important;\n         font-family: inherit !important;\n         font-weight: inherit !important;\n         line-height: inherit !important;\n         }\n         #bodyCell {\n         padding: 10px;\n         }\n         .templateContainer {\n         max-width: 600px !important;\n         }\n         a.mcnButton {\n         display: block;\n         }\n         .mcnImage {\n         vertical-align: bottom;\n         }\n         .mcnTextContent {\n         word-break: break-word;\n         }\n         .mcnTextContent img {\n         height: auto !important;\n         }\n         .mcnDividerBlock {\n         table-layout: fixed !important;\n         }\n         body,\n         #bodyTable {\n         background-color: #ebebeb;\n         }\n         #bodyCell {\n         border-top: 0;\n         }\n         .templateContainer {\n         border: 0;\n         }\n         h1 {\n         color: #0d4d54;\n         font-family: Helvetica;\n         font-size: 26px;\n         font-style: normal;\n         font-weight: bold;\n         line-height: 125%;\n         letter-spacing: normal;\n         text-align: left;\n         }\n         h2 {\n         color: #666666;\n         font-family: Helvetica;\n         font-size: 22px;\n         font-style: normal;\n         font-weight: bold;\n         line-height: 125%;\n         letter-spacing: normal;\n         text-align: left;\n         }\n         h3 {\n         color: #666666;\n         font-family: Helvetica;\n         font-size: 20px;\n         font-style: normal;\n         font-weight: bold;\n         line-height: 125%;\n         letter-spacing: normal;\n         text-align: left;\n         }\n         h4 {\n         color: #666666;\n         font-family: Helvetica;\n         font-size: 18px;\n         font-style: normal;\n         font-weight: bold;\n         line-height: 125%;\n         letter-spacing: normal;\n         text-align: left;\n         }\n         #templatePreheader {\n         background-color: #ebebeb;\n         background-image: none;\n         background-repeat: no-repeat;\n         background-position: center;\n         background-size: cover;\n         border-top: 0;\n         border-bottom: 0;\n         padding-top: 9px;\n         padding-bottom: 9px;\n         }\n         #templatePreheader .mcnTextContent,\n         #templatePreheader .mcnTextContent p {\n         color: #656565;\n         font-family: Helvetica;\n         font-size: 12px;\n         line-height: 150%;\n         text-align: left;\n         }\n         #templatePreheader .mcnTextContent a,\n         #templatePreheader .mcnTextContent p a {\n         color: #656565;\n         font-weight: normal;\n         text-decoration: underline;\n         }\n         #templateHeader {\n         background-color: #FFFFFF;\n         background-image: none;\n         background-repeat: no-repeat;\n         background-position: center;\n         background-size: cover;\n         border-top: 0;\n         border-bottom: 0;\n         padding-top: 9px;\n         padding-bottom: 0;\n         }\n         #templateHeader .mcnTextContent,\n         #templateHeader .mcnTextContent p {\n         color: #202020;\n         font-family: Helvetica;\n         font-size: 16px;\n         line-height: 150%;\n         text-align: left;\n         }\n         #templateHeader .mcnTextContent a,\n         #templateHeader .mcnTextContent p a {\n         color: #2BAADF;\n         font-weight: normal;\n         text-decoration: underline;\n         }\n         #templateBody {\n         background-color: #FFFFFF;\n         background-image: none;\n         background-repeat: no-repeat;\n         background-position: center;\n         background-size: cover;\n         border-top: 0;\n         border-bottom: 2px solid #EAEAEA;\n         padding-top: 0;\n         padding-bottom: 9px;\n         }\n         #templateBody .mcnTextContent,\n         #templateBody .mcnTextContent p {\n         color: #666666;\n         font-family: Helvetica;\n         font-size: 16px;\n         line-height: 150%;\n         text-align: left;\n         }\n         #templateBody .mcnTextContent a,\n         #templateBody .mcnTextContent p a {\n         color: #2ce6ce;\n         font-weight: normal;\n         text-decoration: underline;\n         }\n         #templateFooter {\n         background-color: #ebebeb;\n         background-image: none;\n         background-repeat: no-repeat;\n         background-position: center;\n         background-size: cover;\n         border-top: 0;\n         border-bottom: 0;\n         padding-top: 9px;\n         padding-bottom: 9px;\n         }\n         #templateFooter .mcnTextContent,\n         #templateFooter .mcnTextContent p {\n         color: #656565;\n         font-family: Helvetica;\n         font-size: 12px;\n         line-height: 150%;\n         text-align: center;\n         }\n         #templateFooter .mcnTextContent a,\n         #templateFooter .mcnTextContent p a {\n         color: #656565;\n         font-weight: normal;\n         text-decoration: underline;\n         }\n         @media only screen and (min-width: 768px) {\n         .templateContainer {\n         width: 600px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         body,\n         table,\n         td,\n         p,\n         a,\n         li,\n         blockquote {\n         -webkit-text-size-adjust: none !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         body {\n         width: 100% !important;\n         min-width: 100% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         #bodyCell {\n         padding-top: 10px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnImage {\n         width: 100% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnCartContainer,\n         .mcnCaptionTopContent,\n         .mcnRecContentContainer,\n         .mcnCaptionBottomContent,\n         .mcnTextContentContainer,\n         .mcnBoxedTextContentContainer,\n         .mcnImageGroupContentContainer,\n         .mcnCaptionLeftTextContentContainer,\n         .mcnCaptionRightTextContentContainer,\n         .mcnCaptionLeftImageContentContainer,\n         .mcnCaptionRightImageContentContainer,\n         .mcnImageCardLeftTextContentContainer,\n         .mcnImageCardRightTextContentContainer {\n         max-width: 100% !important;\n         width: 100% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnBoxedTextContentContainer {\n         min-width: 100% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnImageGroupContent {\n         padding: 9px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnCaptionLeftContentOuter .mcnTextContent,\n         .mcnCaptionRightContentOuter .mcnTextContent {\n         padding-top: 9px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnImageCardTopImageContent,\n         .mcnCaptionBlockInner .mcnCaptionTopContent:last-child .mcnTextContent {\n         padding-top: 18px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnImageCardBottomImageContent {\n         padding-bottom: 9px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnImageGroupBlockInner {\n         padding-top: 0 !important;\n         padding-bottom: 0 !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnImageGroupBlockOuter {\n         padding-top: 9px !important;\n         padding-bottom: 9px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnTextContent,\n         .mcnBoxedTextContentColumn {\n         padding-right: 18px !important;\n         padding-left: 18px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnImageCardLeftImageContent,\n         .mcnImageCardRightImageContent {\n         padding-right: 18px !important;\n         padding-bottom: 0 !important;\n         padding-left: 18px !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcpreview-image-uploader {\n         display: none !important;\n         width: 100% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         h1 {\n         font-size: 22px !important;\n         line-height: 125% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         h2 {\n         font-size: 20px !important;\n         line-height: 125% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         h3 {\n         font-size: 18px !important;\n         line-height: 125% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         h4 {\n         font-size: 16px !important;\n         line-height: 150% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         .mcnBoxedTextContentContainer .mcnTextContent,\n         .mcnBoxedTextContentContainer .mcnTextContent p {\n         font-size: 14px !important;\n         line-height: 150% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         #templatePreheader {\n         display: block !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         #templatePreheader .mcnTextContent,\n         #templatePreheader .mcnTextContent p {\n         font-size: 14px !important;\n         line-height: 150% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         #templateHeader .mcnTextContent,\n         #templateHeader .mcnTextContent p {\n         font-size: 16px !important;\n         line-height: 150% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         #templateBody .mcnTextContent,\n         #templateBody .mcnTextContent p {\n         font-size: 16px !important;\n         line-height: 150% !important;\n         }\n         }\n         @media only screen and (max-width: 480px) {\n         #templateFooter .mcnTextContent,\n         #templateFooter .mcnTextContent p {\n         font-size: 14px !important;\n         line-height: 150% !important;\n         }\n         }\n         /* CUSTOM STYLES */\n         .muted-text {\n         color: #999999;\n         }\n         .muted-text strong {\n         color: #555555;\n         }\n         .branding-picture+.branding-picture {\n         padding-left: 10px;\n         }\n      </style>\n   </head>\n   <body style=\"height: 100%;margin: 0;padding: 0;width: 100%;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #ebebeb;\">\n      <center>\n         <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" height=\"100%\" width=\"100%\" id=\"bodyTable\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;height: 100%;margin: 0;padding: 0;width: 100%;background-color: #ebebeb;\">\n            <tr>\n               <td align=\"center\" valign=\"top\" id=\"bodyCell\" style=\"mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;height: 100%;margin: 0;padding: 10px;width: 100%;border-top: 0;\">\n                  <!-- BEGIN TEMPLATE // -->\n                  <!--[if gte mso 9]>\n                  <table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"600\" style=\"width:600px;\">\n                     <tr>\n                        <td align=\"center\" valign=\"top\" width=\"600\" style=\"width:600px;\">\n                           <![endif]-->\n                           <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"templateContainer\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;border: 0;max-width: 600px !important;\">\n                              <tr>\n                                 <td valign=\"top\" id=\"templatePreheader\" style=\"background:#ebebeb none no-repeat center/cover;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #ebebeb;background-image: none;background-repeat: no-repeat;background-position: center;background-size: cover;border-top: 0;border-bottom: 0;padding-top: 9px;padding-bottom: 9px;\"></td>\n                              </tr>\n                              <tr>\n                                 <td valign=\"top\" id=\"templateHeader\" style=\"background:#FFFFFF none no-repeat center/cover;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #FFFFFF;background-image: none;background-repeat: no-repeat;background-position: center;background-size: cover;border-top: 0;border-bottom: 0;padding-top: 9px;padding-bottom: 0;\">\n                                    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"mcnTextBlock\" style=\"min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\">\n                                       <tbody class=\"mcnTextBlockOuter\">\n                                          <tr>\n                                             <td valign=\"top\" class=\"mcnTextBlockInner\" style=\"padding-top: 9px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\">\n                                                <!--[if mso]>\n                                                <table align=\"left\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"width:100%;\">\n                                                   <tr>\n                                                      <![endif]-->\n                                                      <!--[if mso]>\n                                                      <td valign=\"top\" width=\"390\" style=\"width:390px;\">\n                                                         <![endif]-->\n                                                          <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"max-width: 390px;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\"\n                                                            width=\"100%\" class=\"mcnTextContentContainer\">\n                                                            <tbody>\n                                                               <tr>\n                                                                  <td valign=\"top\" class=\"mcnTextContent\" style=\"padding: 0px 18px 9px;font-family: Arial, &quot;Helvetica Neue&quot;, Helvetica, sans-serif;font-size: 10px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #202020;line-height: 150%;text-align: left;\">\n                                                                     <a href=\"https://help.butterfly.ai\" target=\"_blank\" style=\"mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #2BAADF;font-weight: normal;text-decoration: underline;\">\n                                                                        <img align=\"none\" alt=\"Butterfly\" height=\"48\" src=\"https://assets.caterpillar.ai/email-images/bf-logo.v1.png\" style=\"width: 48px;height: 48px;margin: 0px;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\"\n                                                                        width=\"48\">\n                                                                     </a>\n                                                                  </td>\n                                                               </tr>\n                                                            </tbody>\n                                                         </table>\n                                                         <!--[if mso]>\n                                                      </td>\n                                                      <![endif]-->\n                                                      <!--[if mso]>\n                                                      <td valign=\"top\" width=\"210\" style=\"width:210px;\">\n                                                         <![endif]-->\n                                                         <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"max-width: 210px;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\"\n                                                            width=\"100%\" class=\"mcnTextContentContainer\">\n                                                            <tbody>\n                                                               <tr>\n                                                                  <td valign=\"top\" class=\"mcnTextContent\" style=\"padding: 0px 18px 9px;font-family: Arial, &quot;Helvetica Neue&quot;, Helvetica, sans-serif;font-size: 10px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #202020;line-height: 150%;text-align: left;\">\n                                                                  </td>\n                                                               </tr>\n                                                            </tbody>\n                                                         </table>\n                                                         <!--[if mso]>\n                                                      </td>\n                                                      <![endif]-->\n                                                      <!--[if mso]>\n                                                   </tr>\n                                                </table>\n                                                <![endif]-->\n                                             </td>\n                                          </tr>\n                                       </tbody>\n                                    </table>\n                                 </td>\n                              </tr>\n                              <tr>\n                                 <td valign=\"top\" id=\"templateBody\" style=\"background:#FFFFFF none no-repeat center/cover;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #FFFFFF;background-image: none;background-repeat: no-repeat;background-position: center;background-size: cover;border-top: 0;border-bottom: 2px solid #EAEAEA;padding-top: 0;padding-bottom: 9px;\">\n                                    <div style=\"padding: 0 18px 0 18px;\">\n    <p style=\"text-align: center; font-family: Helvetica; font-size: 15px; color: #222222;\"><bdo dir=\"auto\">Hi <b>Butterfly Admin</b>,</bdo></p>\n    <p style=\"text-align: center; font-family: Helvetica; font-size: 15px; color: #222222;\"><bdo dir=\"auto\">This is the survey of Mako!</bdo></p>\n    <p style=\"text-align: center; font-family: Helvetica; font-size: 15px; color: #222222;\"><bdo dir=\"auto\"><b>Ultima</b> needs your feedback, take a second to reply:</bdo></p>\n    <p style=\"text-align: center; font-family: Helvetica; font-size: 12px; color: #222222;\"><bdo dir=\"auto\"></bdo></p>\n    <p style=\"text-align: center; font-family: Helvetica; font-size: 15px; color: #222222;\"><bdo dir=\"auto\"><b>Overall, how happy did you feel this month at Ultima?</b> *</bdo></p>\n    <div style=\"margin: 30px 0 30px 0; text-align: center;\">\n        <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\">\n        <tr>\n            <td valign=\"top\" style=\"color: #F2F2F2;font-family: Helvetica;font-size: 14px;font-weight: normal;text-align: center;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;line-height: 150%;\">\n                <a href=\"https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/c4e495a3-2e6a-4ed3-b26a-6f001ba49e61/5\" target=\"_blank\" style=\"display: inline-block; mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #2ce6ce;font-weight: normal;text-decoration: none;\">\n                  <img alt=\"Very Happy\" align=\"none\" height=\"64\" src=\"https://assets.caterpillar.ai/email-images/mood-5.v3.png\" style=\"width: 64px;height: 64px;margin: 0px;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"64\">\n                  <div style=\"text-align: center; color: #003a53; font-weight: bold;\"><bdo dir=\"auto\">Very Happy</bdo></div>\n                </a>\n            </td>\n            <td valign=\"top\" style=\"color: #F2F2F2;font-family: Helvetica;font-size: 14px;font-weight: normal;text-align: center;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;line-height: 150%;\">\n                <a href=\"https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/db2b765f-f970-4f6f-86fd-9a125aad0991/4\" target=\"_blank\" style=\"display: inline-block; mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #2ce6ce;font-weight: normal;text-decoration: none;\">\n                  <img alt=\"Happy\" align=\"none\" height=\"64\" src=\"https://assets.caterpillar.ai/email-images/mood-4.v3.png\" style=\"width: 64px;height: 64px;margin: 0px;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"64\">\n                  <div style=\"text-align: center; color: #003a53; font-weight: bold;\"><bdo dir=\"auto\">Happy</bdo></div>\n                </a>\n            </td>\n            <td valign=\"top\" style=\"color: #F2F2F2;font-family: Helvetica;font-size: 14px;font-weight: normal;text-align: center;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;line-height: 150%;\">\n                <a href=\"https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/5b31682b-5d92-44d7-b97b-dd4e2435bcba/3\" target=\"_blank\" style=\"display: inline-block; mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #2ce6ce;font-weight: normal;text-decoration: none;\">\n                  <img alt=\"Neutral\" align=\"none\" height=\"64\" src=\"https://assets.caterpillar.ai/email-images/mood-3.v3.png\" style=\"width: 64px;height: 64px;margin: 0px;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"64\">\n                  <div style=\"text-align: center; color: #003a53; font-weight: bold;\"><bdo dir=\"auto\">Neutral</bdo></div>\n                </a>\n            </td>\n            <td valign=\"top\" style=\"color: #F2F2F2;font-family: Helvetica;font-size: 14px;font-weight: normal;text-align: center;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;line-height: 150%;\">\n                <a href=\"https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/fe282421-d7ea-41b4-bbbb-50613d22a06b/2\" target=\"_blank\" style=\"display: inline-block; mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #2ce6ce;font-weight: normal;text-decoration: none;\">\n                  <img alt=\"Unhappy\" align=\"none\" height=\"64\" src=\"https://assets.caterpillar.ai/email-images/mood-2.v3.png\" style=\"width: 64px;height: 64px;margin: 0px;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"64\">\n                  <div style=\"text-align: center; color: #003a53; font-weight: bold;\"><bdo dir=\"auto\">Unhappy</bdo></div>\n                </a>\n            </td>\n            <td valign=\"top\" style=\"color: #F2F2F2;font-family: Helvetica;font-size: 14px;font-weight: normal;text-align: center;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;line-height: 150%;\">\n                <a href=\"https://ultima.caterpillar.ai/preview/649d6865324b6d001bdcbcc4/t/cbf63c42-26bb-42d7-b063-3ab0011a1813/1\" target=\"_blank\" style=\"display: inline-block; mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #2ce6ce;font-weight: normal;text-decoration: none;\">\n                  <img alt=\"Very Unhappy\" align=\"none\" height=\"64\" src=\"https://assets.caterpillar.ai/email-images/mood-1.v3.png\" style=\"width: 64px;height: 64px;margin: 0px;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"64\">\n                  <div style=\"text-align: center; color: #003a53; font-weight: bold;\"><bdo dir=\"auto\">Very Unhappy</bdo></div>\n                </a>\n            </td>\n        </tr>\n        </table>\n    </div>\n    <p style=\"text-align: center; font-family: Helvetica; font-size: 12px; color: #515051;\"><bdo dir=\"auto\">* Your answer will always remain anonymous</bdo></p>\n    <p style=\"text-align: center; font-family: Helvetica; font-size: 12px; color: #515051;\"><bdo dir=\"auto\">It will approximately take you 1 Minute to answer the survey</bdo></p>\n</div>\n                                 </td>\n                              </tr>\n                              <tr>\n                        <td align=\"center\" valign=\"top\" id=\"templateFooter\" data-template-container>\n                           <!--[if (gte mso 9)|(IE)]>\n                           <table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"600\" style=\"width:600px;\">\n                              <tr>\n                                 <td align=\"center\" valign=\"top\" width=\"600\" style=\"width:600px;\">\n                                    <![endif]-->\n                                    <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"templateContainer\">\n                                       <tr>\n                                          <td valign=\"top\" class=\"footerContainer\">\n                                             <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"mcnDividerBlock\" style=\"min-width:100%;\">\n                                                <tbody class=\"mcnDividerBlockOuter\">\n                                                   <tr>\n                                                      <td class=\"mcnDividerBlockInner\" style=\"min-width: 100%; padding: 18px;\">\n                                                         <table class=\"mcnDividerContent\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"min-width: 100%;border-top-width: 2px;border-top-style: solid;border-top-color: #00A795;\">\n                                                            <tbody>\n                                                               <tr>\n                                                                  <td>\n                                                                     <span></span>\n                                                                  </td>\n                                                               </tr>\n                                                            </tbody>\n                                                         </table>\n                                                         <!--\n                                                            <td class=\"mcnDividerBlockInner\" style=\"padding: 18px;\">\n                                                            <hr class=\"mcnDividerContent\" style=\"border-bottom-color:none; border-left-color:none; border-right-color:none; border-bottom-width:0; border-left-width:0; border-right-width:0; margin-top:0; margin-right:0; margin-bottom:0; margin-left:0;\" />\n                                                            -->\n                                                      </td>\n                                                   </tr>\n                                                </tbody>\n                                             </table>\n                                             <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"mcnTextBlock\" style=\"min-width:100%;\">\n                                                <tbody class=\"mcnTextBlockOuter\">\n                                                   <tr>\n                                                      <td valign=\"top\" class=\"mcnTextBlockInner\" style=\"padding-top:9px;\">\n                                                         <!--[if mso]>\n                                                         <table align=\"left\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" style=\"width:100%;\">\n                                                            <tr>\n                                                               <![endif]-->\n                                                               <!--[if mso]>\n                                                               <td valign=\"top\" width=\"599\" style=\"width:599px;\">\n                                                                  <![endif]-->\n                                                                  <table align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"max-width:100%; min-width:100%;\" width=\"100%\" class=\"mcnTextContentContainer\">\n                                                                     <tbody>\n                                                                        <tr>\n                                                                           <td valign=\"top\" class=\"mcnTextContent\" style=\"padding: 0px 18px 9px;color: #2B2B2B;font-family: Roboto, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 10px;text-align: center;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tConnecting Companies, Experts, and Researchers, for the Future of Leadership Coaching.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<em>Copyright © 2025 Appynest, All rights reserved.</em>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br> 240 Kent avenue, Brooklyn, NY 11249\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<u>info@butterfly.ai</u>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br> Want to change how you receive these emails?\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://help.butterfly.ai/hc/en-us/articles/115002179471-Unsubscribing-from-Butterfly-emails?u&#x3D;LBWXwDMxvl6zQlHYYPJ5ARpAaXErVq6RAAQE&amp;q&#x3D;ultima\" target=\"_blank\">Unsubscribe</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://www.caterpillar.ai/legal\" target=\"_blank\">Privacy Policy</a> |\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://www.caterpillar.ai/legal\" target=\"_blank\">Terms of Service</a>&nbsp;|\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://help.butterfly.ai\" target=\"_blank\">Support</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br> &nbsp;\n                                                                           </td>\n                                                                        </tr>\n                                                                     </tbody>\n                                                                  </table>\n                                                                  <!--[if mso]>\n                                                               </td>\n                                                               <![endif]-->\n                                                               <!--[if mso]>\n                                                            </tr>\n                                                         </table>\n                                                         <![endif]-->\n                                                      </td>\n                                                   </tr>\n                                                </tbody>\n                                             </table>\n                                          </td>\n                                       </tr>\n                                    </table>\n                                    <!--[if (gte mso 9)|(IE)]>\n                                 </td>\n                              </tr>\n                           </table>\n                           <![endif]-->\n                        </td>\n                              </tr>\n                           </table>\n                           <!--[if gte mso 9]>\n                        </td>\n                     </tr>\n                  </table>\n                  <![endif]-->\n                  <!-- // END TEMPLATE -->\n               </td>\n            </tr>\n         </table>\n      </center>\n   </body>\n</html>\n",
          "text": "Preview: Overall, how happy did you feel this month at Ultima?\n\nView email in the browser:\n\n\nCopyright 2025 Appynest, Inc. All rights reserved.\n",
          "unsubscribe": "https://help.butterfly.ai/hc/en-us/articles/115002179471-Unsubscribing-from-Butterfly-emails?u=LBWXwDMxvl6zQlHYYPJ5ARpAaXErVq6RAAQE&q=ultima",
          "supportHost": "https://help.butterfly.ai",
          "tagType": "other"
        }
      },
      "jobExecutionId": "311c9bad-276d-425a-b586-e7e685eea8a4"
    },
    "identifier": "send-mail-onCompleteCallback"
  },
  "opts": {
    "delay": 0,
    "attempts": 2,
    "removeOnComplete": true,
    "backoff": {
      "type": "retryableErrorRetry"
    },
    "timestamp": 1741631871338
  },
  "progress": 0,
  "delay": 0,
  "timestamp": 1741631871338,
  "attemptsMade": 1,
  "failedReason": "insert into \"external_communications\" (\"_id\", \"companyId\", \"createdAt\", \"deliveryAddress\", \"deliveryAddressHash\", \"deliveryChannel\", \"externalId\", \"foreignId\", \"foreignType\", \"notificationTag\", \"response\", \"status\", \"userId\") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) returning * /*action='87920',application='worker',controller='311c9bad-276d-425a-b586-e7e685eea8a4-onCompleteCallback',route='send-mail-onCompleteCallback'*/ - column \"deliveryAddressHash\" of relation \"external_communications\" does not exist",
  "stacktrace": [
    "error: column \"deliveryAddressHash\" of relation \"external_communications\" does not exist\n    at Parser.parseErrorMessage (/app/.yarn/cache/pg-protocol-npm-1.6.0-089a4b1d3c-e12662d2de.zip/node_modules/pg-protocol/src/parser.ts:369:69)\n    at Parser.handlePacket (/app/.yarn/cache/pg-protocol-npm-1.6.0-089a4b1d3c-e12662d2de.zip/node_modules/pg-protocol/src/parser.ts:188:21)\n    at Parser.parse (/app/.yarn/cache/pg-protocol-npm-1.6.0-089a4b1d3c-e12662d2de.zip/node_modules/pg-protocol/src/parser.ts:103:30)\n    at Socket.<anonymous> (/app/.yarn/cache/pg-protocol-npm-1.6.0-089a4b1d3c-e12662d2de.zip/node_modules/pg-protocol/src/index.ts:7:48)\n    at Socket.emit (events.js:400:28)\n    at Socket.emit (domain.js:475:12)\n    at addChunk (internal/streams/readable.js:293:12)\n    at readableAddChunk (internal/streams/readable.js:267:9)\n    at Socket.Readable.push (internal/streams/readable.js:206:10)\n    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)\n    at TCP.callbackTrampoline (internal/async_hooks.js:130:17)\nFrom previous event:\n    at Client_PG._query (/app/.yarn/cache/knex-npm-0.14.2-2fed8cce7b-da3d5bf6b7.zip/node_modules/knex/lib/dialects/postgres/index.js:280:12)\n    at Client_PG.apply (/app/.yarn/cache/knex-npm-0.14.2-2fed8cce7b-da3d5bf6b7.zip/node_modules/knex/lib/client.js:211:17)\n    at Client_PG.Knex.Client.query (/app/packages/core/src/utils/knex.js:212:18)\n    at /app/.yarn/cache/knex-npm-0.14.2-2fed8cce7b-da3d5bf6b7.zip/node_modules/knex/lib/transaction.js:274:21\nFrom previous event:\n    at Client_PG.trxClient.query (/app/.yarn/cache/knex-npm-0.14.2-2fed8cce7b-da3d5bf6b7.zip/node_modules/knex/lib/transaction.js:271:34)\n    at Runner.<anonymous> (/app/.yarn/cache/knex-npm-0.14.2-2fed8cce7b-da3d5bf6b7.zip/node_modules/knex/lib/runner.js:149:36)\nFrom previous event:\n    at /app/.yarn/cache/knex-npm-0.14.2-2fed8cce7b-da3d5bf6b7.zip/node_modules/knex/lib/runner.js:61:21\n    at processImmediate (internal/timers.js:464:21)\n    at process.topLevelDomainCallback (domain.js:152:15)\nFrom previous event:\n    at Runner.run (/app/.yarn/cache/knex-npm-0.14.2-2fed8cce7b-da3d5bf6b7.zip/node_modules/knex/lib/runner.js:47:31)\n    at Builder.then (/app/.yarn/cache/knex-npm-0.14.2-2fed8cce7b-da3d5bf6b7.zip/node_modules/knex/lib/interface.js:35:43)\n    at insert (/app/packages/core/src/utils/knex-helpers.js:92:6)\n    at Object.create (/app/packages/core/src/models/utils/crud-builder.js:72:18)\n    at ExternalCommunicationModel.create (/app/packages/core/src/models/BaseModel/index.js:180:38)\n    at recordExternalCommunication (/app/services/service.worker/src/jobs/utils/communication-channels/index.js:92:39)\n    at recordCommunicationResult (/app/services/service.worker/src/jobs/utils/communication-channels/index.js:62:11)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)"
  ],
  "returnvalue": null,
  "finishedOn": 1741631871391,
  "processedOn": 1741631871340
}