<?php

namespace App\Listeners;

use App\Events\IntegrationSyncHistory as EventsIntegrationSyncHistory;
use App\Models\IntegrationSyncHistory;
use Illuminate\Contracts\Queue\ShouldQueue;

class CreateIntegrationSyncHistory implements ShouldQueue
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return void
     */
    public function handle(EventsIntegrationSyncHistory $event)
    {     
       IntegrationSyncHistory::create($event->syncLog);
    }
}
