<?php

namespace Modules\Bitrix\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

use Modules\Main\Models\Deal\Deal;
use Modules\Main\Models\Agent\Agent;
class SendDealAgent extends BitrixSender
{
    use HasFactory;
    public function __construct(Deal $deal)
    {
        $this->data = [
            'spId'      => $deal->bitrixId(),
            'contactId' => $deal->agent->bitrixId(),
            'type'      => 'agent'
        ];
    }
}
