<?php
return [
  'webhook_help_heading' => 'Process Delivery Reports for ',

  'webhook_help_mailgun' => "
    <ol>
      <li><a href='https://login.mailgun.com/login/' target='_blank' class='link-info'>Login</a> to your Mailgun account</li>
      <li>Navigate to <b>Send >> Webhooks</b></li>
       <li>Click <b>'Add Webhook'</b></li>
      <li>Select the <b>'Event Type'</b> (Permanent Failure, Temporary Failure, Spam Complaints)</li>
      <li>Copy the 'Webhook URL' and paste into the 'URL'
    </ol>",

  'webhook_help_sparkpost' => "
    <ol>
      <li><a href='https://app.sparkpost.com/auth' target='_blank' class='link-info'>Login</a> to your Sparkpost account</li>
      <li>Click on  <b> Webhooks</b></li>
       <li>Enter the name of Webhook</li>
      <li>Copy the <b>'Webhook URL'</b> and paste into the <b>'Target URL'</b></li>
      <li>Select Events <b>Bounce</b>, <b>Spam Complaints</b></li>
      <li>Select <b>'Authentication Type'</b> to <b>Baisc Auth</b></li>
    </ol>",

  'webhook_help_sendgrid' => "
    <ol>
      <li><a href='https://app.sendgrid.com/login/' target='_blank' class='link-info'>Login</a> to your SendGrid account</li>
      <li>Navigate to <b>Settings >> Mail Settings</b></li>
      <li>Turn on Event Webhook, select all actions and insert the 'Webhook URL'</li>
    </ol>",

    'webhook_help_amazon_ses' => "
    <b>Configure Amazon SES to send bounce/complaint information to Amazon SNS</b>
    <ol>
      <li><a href='https://console.aws.amazon.com/ses/' target='_blank' class='link-info'>Login</a> to Amazon SES console</li>
      <li>Click on <strong>Configuration Sets</strong></li>
      <li>Click on the <strong>'Create Configuration Set'</strong> button and define a name e.g <strong>Relayzo-Reports</strong>. (<strong>Note:</strong> This configuration set name will be used later within Relayzo)</li>
      <li>Click on the recently created Configuration Set</li>
      <li>In <strong>'Add Destination'</strong> and choose <strong>SNS</strong> from the dropdown</li>
      <li>Write a name e.g<strong> RelayzoSNS</strong> and select the event types you want to process. 
      <ul>
        <li>Reject</li>
        <li>Bounce</li>
        <li>Complaint</li>
        <li>Rendering Failure</li>
      </ul>
      </li>
      <li>From the Topic dropdown, select <strong>'Create SNS Topic'</strong></li>
      <li>Define a <strong>Topic Name</strong> e.g <strong>Relayzo-SNS-Topic</strong> and <strong>Display Name</strong></li>
      <li>Press <strong>Save</strong></li>
    </ol>
    <br>
    <b>Create a topic and subscription in Amazon SNS</b>
    <ol>
      <li>Now Navigate to <a href='https://console.aws.amazon.com/sns/v3' target='_blank' class='link-info'>Amazon Simple Notification Service (SNS)</a></li>
      <li><strong>Navigate</strong> to Topics</li>
      <li>Click on the <strong>recently created</strong> topic</li>
      <li>Click on <strong>'Create Subscription</strong> button</li>
      <li>Use the correct protocol i.e <strong>HTTP or HTTPS</strong></li>
      <li>For <b>Endpoint</b>, enter the Webhook URL: <strong>APP_URL/callback/amazon</strong> showing within Relayzo.</li>
      <li>Choose <b>Create subscription</b>.</li>
      <li>Select created subscription <b>eg. Relayzo-SNS</b> click <b>Request Confirmation</b></li>
      <li><b>Open</b> a file from <b> <a href='APP_URL/storage/amazonsns.txt' target='_blank' class='link-info'>APP_URL/storage/amazonsns.txt</a></b></li>
      <li><b>Copy</b> all contents from the file</li>
      <li><b>Paste</b> it to browser URL in new window, Once you see the confirmed message in <strong>XML format</strong>, it means the confirmation was successful!</li>
    </ol>

    <h6>You are all set now. Now copy the <strong>Configuration Set Name</strong> e.g <strong>Relayzo-Reports</strong> you created recently and
    paste it to <strong>Configuration Set Name</strong>.<h6>",

    'schedule_speed' => 'Manage the sending speed of this trigger. In case of "Unlimited", system attempts to send as much as it can in the short possible time span, utilizing the available resources.',

];