f试ssefahahå�¯èƒ½å�¡å�¡å�¡é©¬å�¡å�¡è®¡ç®—机视觉事实上事实上飒飒飒gjâ—�â—�â—�â—�hfkttkgdgkmcuocucocucocé¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶uco朵朵å�¯å�¯æ”¾2å·�峨2555555666369🌹 �����ѩ�����һ����dddf2qevf2fv69666 ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!extension.json000064400000000177152666204140007466 0ustar00{ "name": "Hubspot", "type": "extension", "version": "2.0.0", "description": "Hubspot extension for magicai" } System/.DS_Store000064400000014004152666204140007520 0ustar00Bud1bwspblob¸Httpbwspblob¸bplist00Ö ]ShowStatusBar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowSidebar  _{{222, 406}, {920, 436}} #/;R_klmnoŠ ‹HttpvSrnlong  @€ @€ @€ @ EDSDB `€ @€ @€ @System/Services/HubspotService.php000064400000003073152666204140013302 0ustar00hubspot = Factory::createWithAccessToken($accessToken); } public function getCrmContacts(): array|string { try { return $this->hubspot->crm()->contacts()->basicApi()->getPage(); } catch (ApiException $e) { return [ 'status' => 'error', 'code' => $e->getCode(), 'message' => $e->getMessage(), 'details' => json_decode($e->getResponseBody(), true), ]; } } public function createCrmContacts($email, $name, $surname): array|string { $contactInput = new SimplePublicObjectInput([ 'properties' => [ 'email' => $email, 'firstname' => $name, 'lastname' => $surname, ], ]); try { return $this->hubspot->crm()->contacts()->basicApi()->create($contactInput); } catch (ApiException $e) { return [ 'status' => 'error', 'code' => $e->getCode(), 'message' => $e->getMessage(), 'details' => json_decode($e->getResponseBody(), true), ]; } } } System/Http/Controllers/HubspotController.php000064400000001767152666204140015477 0ustar00validate(['hubspot_access_token' => 'required']); setting([ 'hubspot_crm_contact_register' => $request->has('hubspot_crm_contact_register'), 'hubspot_access_token' => $request->get('hubspot_access_token'), ])->save(); return back()->with([ 'message' => __('Saved Successfully'), 'type' => 'success', ]); } } System/HubspotServiceProvider.php000064400000002755152666204140013240 0ustar00registerViews() ->registerRoutes(); } public function registerViews(): static { $this->loadViewsFrom([__DIR__ . '/../resources/views'], 'hubspot'); return $this; } private function registerRoutes(): void { $this->router() ->group([ 'prefix' => LaravelLocalization::setLocale(), 'middleware' => ['web', 'auth', 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath'], ], function (Router $router) { $router ->prefix('dashboard/admin') ->middleware('admin') ->name('dashboard.admin.') ->group(function (Router $router) { $router->resource('hubspot', HubspotController::class)->only(['index', 'store']); }); }); } private function router(): Router|Route { return $this->app['router']; } } resources/views/index.blade.php000064400000005766152666204140012625 0ustar00@extends('panel.layout.settings') @section('title', __('Hubspot')) @section('titlebar_subtitle', __('Take advantage of our HubSpot integration to simplify your business processes and increase customer satisfaction.')) @section('content')
@csrf

{{ __('Hubspot Settings') }}

@endsection __MACOSX/._System000064400000000243152666204140007465 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/._resources000064400000000243152666204140010213 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Services/._HubspotService.php000064400000000243152666204140015003 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/._.DS_Store000064400000000243152666204140011225 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/._HubspotServiceProvider.php000064400000000243152666204140014733 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/._Http000064400000000243152666204140010404 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/._Services000064400000000243152666204140011250 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Http/Controllers/._HubspotController.php000064400000000243152666204140017170 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/System/Http/._Controllers000064400000000243152666204140012712 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/resources/views/._index.blade.php000064400000000243152666204140014313 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/resources/._views000064400000000243152666204140011350 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç__MACOSX/._extension.json000064400000000243152666204140011165 0ustar00Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜç