<?php

namespace Database\Seeders;

use App\Classes\Jobs\FetchContainersStatusUpdateFromVTPortalJob;
use App\Classes\Jobs\FetchDeliveryListFromVTPortalJob;
use App\Classes\Jobs\FetchLoadedContainersFromVTPortalJob;
use App\Classes\Jobs\FetchPackingListFromVTPortalJob;
use App\Classes\Jobs\FetchWarehouseReceiveListFromVTPortalJob;
use App\Classes\Modules\PackingLists\Processors\FetchContainersStatusUpdateFromVTPortalProcessor;
use Illuminate\Database\Seeder;

class OrdersTableSeeder extends Seeder
{


    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        FetchWarehouseReceiveListFromVTPortalJob::withChain([
            new FetchLoadedContainersFromVTPortalJob,
            new FetchPackingListFromVTPortalJob,
            new FetchContainersStatusUpdateFromVTPortalJob,
            new FetchDeliveryListFromVTPortalJob
        ])->dispatch();
    }

}
