<?php

define('DEBUG', false);
define('SSL_CERT', true);

if (DEBUG) {
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
}

date_default_timezone_set("Europe/Rome");

// $to = 'a.dagostino@armosia.com';


require_once 'protected/ExportManager.php';

$date = date('Y-m-d', strtotime('yesterday'));

if (isset($_GET['date']))
    $date = $_GET['date'];

echo "[" . date('Y-m-d H:i:s') . "] Starting export for date $date \n";

// // ExportManager::esportaAnagrafica('2023-SPONSORSHIP-CALCIO', $date, '2023-sponsorship-calcio');
// ExportManager::esportaAnagraficaCalcio2('2023-SPONSORSHIP-CALCIO-2', $date, '2023-sponsorship-calcio-2');
// ExportManager::esportaAnagrafica('2023-SPONSORSHIP-MANESKIN', $date, '2023-sponsorship-maneskin', true);
// ExportManager::esportaAnagraficaAmici22('2023-SPONSORSHIP-AMICI-22', $date, '2023-sponsorship-amici22');
// // ExportManager::esportaGiocateSerieA('2023-SPONSORSHIP-CALCIO', $date, '2023-sponsorship-calcio');
// // ExportManager::esportaGiocateBIC('2023-SPONSORSHIP-CALCIO', $date, '2023-sponsorship-calcio');
// ExportManager::esportaGiocateCalcio2('2023-SPONSORSHIP-CALCIO-2', $date, '2023-sponsorship-calcio-2');
// ExportManager::esportaGiocateManeskin('2023-SPONSORSHIP-MANESKIN', $date, '2023-sponsorship-maneskin');
// ExportManager::esportaGiocateAmici22('2023-SPONSORSHIP-AMICI-22', $date, '2023-sponsorship-amici22');

// Anagrafiche
// ExportManager::esportaAnagraficaTMA23('2023-TIM-SPONSORSHIP-TMA', $date, '2023-sponsorship-tma', true);
// ExportManager::esportaAnagraficaXFactor23('2023-TIM-SPONSORSHIP-XFACTOR', $date, '2023-sponsorship-xfactor'); //, true);
// ExportManager::esportaAnagraficaTheKolors23('2023-TIMPARTY-THEKOLORS', $date, '2023-timparty-thekolors', true);
// ExportManager::esportaAnagraficaXFactor23('2023-TIM-SPONSORSHIP-XFACTOR-MILANO', $date, '2023-sponsorship-xfactor-landing', true);
// ExportManager::esportaAnagraficaAmici23('2024-TIM-SPONSORSHIP-AMICI23', $date, '2024-sponsorship-amici23', true);
// ExportManager::esportaAnagraficaCalcio2('2023-TIM-SPONSORSHIP-2024-CALCIO-2', $date, '2023-sponsorship-calcio-2024-2');
// ExportManager::esportaAnagraficaCasaazzurri2024('2024-TIM-SPONSORSHIP-CASAAZZURRI2024', $date, '2024-casaazzurri', true);
// ExportManager::esportaAnagraficaBigmama('2024-TIM-BIGMAMAECLARA-2024', $date, '2024-bigmamaeclara');
// ExportManager::esportaAnagraficaTMA2024('2024-TIM-SPONSORSHIP-TMA', $date, '2024-sponsorship-tma', true);
// ExportManager::esportaAnagraficaManeskin2024('2024-TIM-SPONSORSHIP-MANESKIN', $date, '2024-sponsorship-maneskin', true);
// ExportManager::esportaAnagraficaDucati2024('2024-TIM-SPONSORSHIP-DUCATI', $date, '2024-ducati');
// ExportManager::esportaAnagraficaXFactor2024('2024-TIM-SPONSORSHIP-XFACTOR', $date, '2024-sponsorship-xfactor', true);
// ExportManager::esportaAnagraficaRoseVillain2024('2024-TIMPARTY-ROSEVILLAIN', $date, '2024-rosevillain', true);
// ExportManager::esportaAnagraficaSanremo2025('2025-TIM-SPONSORSHIP-SANREMO', $date, '2025-sanremo');
// ExportManager::esportaAnagraficaCalcio2025('2025-TIM-SPONSORSHIP-CALCIO-2025', $date);
// ExportManager::esportaAnagraficaTMA2025('2025-TIM-SPONSORSHIP-TMA-2025', $date, true);
// ExportManager::esportaAnagraficaDucati2025('2025-TIM-SPONSORSHIP-DUCATI-2025', $date);
// ExportManager::esportaAnagraficaTMN2025('2025-TMN-2025', $date, true);
// ExportManager::esportaAnagraficaCalcio2025_26('2025-TIM-SPONSORSHIP-CALCIO-2025-26', $date);
// ExportManager::esportaAnagraficaXFactor2025('2025-TIM-SPONSORSHIP-XFACTOR', $date, true);
// ExportManager::esportaAnagraficaTMN2025_2('2025-TMN-2025-2', $date, true);
// ExportManager::esportaAnagraficaCalcio2025_26_2('2025-TIM-SPONSORSHIP-CALCIO-2025-26-2', $date);
// ExportManager::esportaAnagraficaTMN2025_3('2025-TMN-2025-3', $date, true);
// ExportManager::esportaAnagraficaMico2026('2026-TIM-SPONSORSHIP-MICO-2026', $date);
// ExportManager::esportaAnagraficaSanremo2026('2026-TIM-SPONSORSHIP-SANREMO', $date);
// ExportManager::esportaAnagraficaCalcio2025_26_3('2025-TIM-SPONSORSHIP-CALCIO-2025-26-3', $date);
// ExportManager::esportaAnagraficaPrimavera2026('2026-TIM-SPONSORSHIP-PRIMAVERA-2026', $date, true);
// ExportManager::esportaAnagraficaIDVP2026('2026-TIM-SPONSORSHIP-IDVP-2026', $date, true);
// ExportManager::esportaAnagraficaMondiali2026('2026-TIMSTAR-MONDIALI-2026', $date);
// ExportManager::esportaAnagraficaNetflix2026('2026-TIMSTAR-NETFLIX-2026', $date, true);
// ExportManager::esportaAnagraficaDucati2026('2026-TIMSTAR-DUCATI-2026', $date);
// ExportManager::esportaAnagraficaSamsung2026('2026-TIMSTAR-SAMSUNG-2026', $date, true);
// ExportManager::esportaAnagraficaApple2026('2026-TIMSTAR-APPLE-2026', $date, true);
// ExportManager::esportaAnagraficaStelle2026('2026-TIMSTAR-STELLE-2026', $date, true);


ExportManager::esportaAnagraficaCinemaStelle2026('2026-TIMSTAR-CINEMASTELLE-2026', $date);

// Giocate
// ExportManager::esportaGiocateTMA23('2023-TIM-SPONSORSHIP-TMA', $date, '2023-sponsorship-tma');
// ExportManager::esportaGiocateTheKolors23('2023-TIMPARTY-THEKOLORS', $date, '2023-timparty-thekolors', true);
// ExportManager::esportaGiocateXFactor23('2023-TIM-SPONSORSHIP-XFACTOR-MILANO', $date, '2023-sponsorship-xfactor-landing', true);
// ExportManager::esportaGiocateAmici23('2024-TIM-SPONSORSHIP-AMICI23', $date, '2024-sponsorship-amici23', true);
// ExportManager::esportaGiocateCalcio2('2023-TIM-SPONSORSHIP-2024-CALCIO-2', $date, '2023-sponsorship-calcio-2024-2');
// ExportManager::esportaGiocateCasaazzurri2024('2024-TIM-SPONSORSHIP-CASAAZZURRI2024', $date, '2024-casaazzurri', true);
// ExportManager::esportaGiocateBigmama('2024-TIM-BIGMAMAECLARA-2024', $date, '2024-bigmamaeclara');
// ExportManager::esportaGiocateTMA2024('2024-TIM-SPONSORSHIP-TMA', $date, '2024-sponsorship-tma', true);
// ExportManager::esportaGiocateManeskin2024('2024-TIM-SPONSORSHIP-MANESKIN', $date, '2024-sponsorship-maneskin', true);
// ExportManager::esportaGiocateDucati2024('2024-TIM-SPONSORSHIP-DUCATI', $date, '2024-ducati');
// ExportManager::esportaGiocateXFactor2024('2024-TIM-SPONSORSHIP-XFACTOR', $date, '2024-sponsorship-xfactor', true);
// ExportManager::esportaGiocateRoseVillain2024('2024-TIMPARTY-ROSEVILLAIN', $date, '2024-rosevillain', true);
// ExportManager::esportaGiocateSanremo2025('2025-TIM-SPONSORSHIP-SANREMO', $date, '2025-sanremo');
// ExportManager::esportaGiocateCalcio2025('2025-TIM-SPONSORSHIP-CALCIO-2025', $date);
// ExportManager::esportaGiocateTMA2025('2025-TIM-SPONSORSHIP-TMA-2025', $date, true);
// ExportManager::esportaGiocateDucati2025('2025-TIM-SPONSORSHIP-DUCATI-2025', $date);
// ExportManager::esportaGiocateTMN2025('2025-TMN-2025', $date, true);
// ExportManager::esportaGiocateCalcio2025_26('2025-TIM-SPONSORSHIP-CALCIO-2025-26', $date);
// ExportManager::esportaGiocateXFactor2025('2025-TIM-SPONSORSHIP-XFACTOR', $date, true);
// ExportManager::esportaGiocateTMN2025_2('2025-TMN-2025-2', $date, true);
// ExportManager::esportaGiocateCalcio2025_26_2('2025-TIM-SPONSORSHIP-CALCIO-2025-26-2', $date);
// ExportManager::esportaGiocateTMN2025_3('2025-TMN-2025-3', $date, true);
// ExportManager::esportaGiocateMico2026('2026-TIM-SPONSORSHIP-MICO-2026', $date);
// ExportManager::esportaGiocateSanremo2026('2026-TIM-SPONSORSHIP-SANREMO', $date);
// ExportManager::esportaGiocateCalcio2025_26_3('2025-TIM-SPONSORSHIP-CALCIO-2025-26-3', $date);
// ExportManager::esportaGiocatePrimavera2026('2026-TIM-SPONSORSHIP-PRIMAVERA-2026', $date, true);
// ExportManager::esportaGiocateIDVP2026('2026-TIM-SPONSORSHIP-IDVP-2026', $date, true);
// ExportManager::esportaGiocateMondiali2026('2026-TIMSTAR-MONDIALI-2026', $date);
// ExportManager::esportaGiocateNetflix2026('2026-TIMSTAR-NETFLIX-2026', $date, true);
// ExportManager::esportaGiocateDucati2026('2026-TIMSTAR-DUCATI-2026', $date, true);
// ExportManager::esportaGiocateDucati2026('2026-TIMSTAR-DUCATI-2026', $date);
// ExportManager::esportaGiocateSamsung2026('2026-TIMSTAR-SAMSUNG-2026', $date, true);
// ExportManager::esportaGiocateApple2026('2026-TIMSTAR-APPLE-2026', $date, true);
// ExportManager::esportaGiocateStelle2026('2026-TIMSTAR-STELLE-2026', $date, true);


ExportManager::esportaGiocateCinemaStelle2026('2026-TIMSTAR-CINEMASTELLE-2026', $date);




echo "[" . date('Y-m-d H:i:s') . "] OK $date \n";
