<?php

require_once __DIR__ . '/../helpers/response.php';
require_once __DIR__ . '/../config/database.php';
require_once __DIR__ . '/../services/SicService.php';
require_once __DIR__ . '/../controllers/SyncController.php';

$_GET['r'] = 'sync/peliculas';

try {
    $controller = new SyncController();
    $controller->syncPeliculas();
} catch (Exception $e) {
    echo date('Y-m-d H:i:s') . " Error: " . $e->getMessage() . PHP_EOL;
}