anchor.diff:              unique_clicks: []
             }
           };
  -        var mailchimpAutomations = requestMailchimpAutomations('automations');
  -        Promise.resolve(mailchimpAutomations).then(function(res) {
  -
  -          response = res.body.automations;
  -          for( i=0; i<res.body.automations.length; i++ ) {
  -
  -            // Data for Datatable
  -            mc_automataions.push({
  +
  +        var mcAutomations = requestMCAutomations('automations');
  +        Promise.resolve(mcAutomations).then(function(res) {
  +
  +          var response = res.body.automations;
  +          for( i=0; i<response.length; i++ ) {
  +
  +            // Data Array for Datatable
  +            mc_automations.push({
                 id: response[i].id,
                 titel: response[i].settings.title,
                 emails_sent: response[i].emails_sent,
  
positive.code:         datatable_graetzls();
        }
        if ( page == 'page_mailings' ) {
          datatable_mailchimp('automations');
        }
      }
  
  
negative.code:           }]
          }
        });
  
  
      } // USers Chart
  
  
      // Mailing Chart
      var mailingChart = function(labeldata, sent, opens, clicks) {
  
        if (typeof chartTopArea !== 'undefined') {
          chartTopArea.destroy();
        }
  
        var chartcolor0 = 'rgba(237, 129, 117, 0.5)';
        var chartcolor1 = 'rgba(131, 199, 189, 0.5)';
        chartTopArea = new Chart(topchart, {
          type: 'bar',
          data: {
            labels: ["Sent", "Opens", "Clicks"],
            datasets: [
              {
                label: labeldata[0],
                data: [
                  sent[0],
                  opens[0],
                  clicks[0]
                ],
                backgroundColor: chartcolor0,
                yAxisID: "mailing"
              },
              {
                label: labeldata[1],
                data: [
                  sent[1],
                  opens[1],
                  clicks[1]
                ],
                backgroundColor: chartcolor1,
                yAxisID: "mailing"
              }
            ]
          },
          // Chart Options
          options: {
            scales: {
              yAxes: [{
                id: "mailing"
              }]
            }
          }
        });
  
    }
  
  