2018-10-04 19:10:43 +02:00
|
|
|
<?php
|
2019-05-11 05:32:07 +02:00
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2021-01-03 22:54:54 +01:00
|
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2021-04-26 05:01:59 +02:00
|
|
|
use App\Events\Account\AccountCreated;
|
2020-06-22 00:34:02 +02:00
|
|
|
use App\Events\Client\ClientWasArchived;
|
2019-04-20 03:19:43 +02:00
|
|
|
use App\Events\Client\ClientWasCreated;
|
2020-06-22 00:34:02 +02:00
|
|
|
use App\Events\Client\ClientWasDeleted;
|
|
|
|
use App\Events\Client\ClientWasRestored;
|
|
|
|
use App\Events\Client\ClientWasUpdated;
|
|
|
|
use App\Events\Client\DesignWasDeleted;
|
|
|
|
use App\Events\Client\DesignWasRestored;
|
|
|
|
use App\Events\Client\DesignWasUpdated;
|
2020-07-08 14:02:16 +02:00
|
|
|
use App\Events\Company\CompanyDocumentsDeleted;
|
2019-07-10 03:50:49 +02:00
|
|
|
use App\Events\Contact\ContactLoggedIn;
|
2020-07-17 06:44:34 +02:00
|
|
|
use App\Events\Credit\CreditWasArchived;
|
|
|
|
use App\Events\Credit\CreditWasCreated;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Events\Credit\CreditWasDeleted;
|
2020-12-09 11:05:26 +01:00
|
|
|
use App\Events\Credit\CreditWasEmailed;
|
2020-06-30 01:35:17 +02:00
|
|
|
use App\Events\Credit\CreditWasEmailedAndFailed;
|
2020-03-03 10:44:26 +01:00
|
|
|
use App\Events\Credit\CreditWasMarkedSent;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Events\Credit\CreditWasRestored;
|
2020-07-17 06:44:34 +02:00
|
|
|
use App\Events\Credit\CreditWasUpdated;
|
2020-08-12 04:02:21 +02:00
|
|
|
use App\Events\Credit\CreditWasViewed;
|
2020-06-22 00:34:02 +02:00
|
|
|
use App\Events\Design\DesignWasArchived;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Events\Expense\ExpenseWasArchived;
|
|
|
|
use App\Events\Expense\ExpenseWasCreated;
|
|
|
|
use App\Events\Expense\ExpenseWasDeleted;
|
|
|
|
use App\Events\Expense\ExpenseWasRestored;
|
|
|
|
use App\Events\Expense\ExpenseWasUpdated;
|
2020-11-09 11:17:20 +01:00
|
|
|
use App\Events\Invoice\InvoiceReminderWasEmailed;
|
2020-07-17 03:28:54 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasArchived;
|
2020-04-09 01:35:40 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasCancelled;
|
2019-05-15 07:03:18 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasCreated;
|
2020-04-04 12:32:42 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasDeleted;
|
2019-12-22 11:28:41 +01:00
|
|
|
use App\Events\Invoice\InvoiceWasEmailed;
|
2021-01-20 02:59:39 +01:00
|
|
|
use App\Events\Invoice\InvoiceWasEmailedAndFailed;
|
2019-04-24 03:49:41 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasMarkedSent;
|
2019-11-20 06:41:49 +01:00
|
|
|
use App\Events\Invoice\InvoiceWasPaid;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasRestored;
|
2020-04-09 01:35:40 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasReversed;
|
2019-05-15 07:03:18 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasUpdated;
|
2020-07-17 03:18:40 +02:00
|
|
|
use App\Events\Invoice\InvoiceWasViewed;
|
2020-03-04 12:09:43 +01:00
|
|
|
use App\Events\Misc\InvitationWasViewed;
|
2020-07-17 03:28:54 +02:00
|
|
|
use App\Events\Payment\PaymentWasArchived;
|
2019-05-13 08:18:46 +02:00
|
|
|
use App\Events\Payment\PaymentWasCreated;
|
2019-11-19 11:23:56 +01:00
|
|
|
use App\Events\Payment\PaymentWasDeleted;
|
2020-11-12 04:04:27 +01:00
|
|
|
use App\Events\Payment\PaymentWasEmailed;
|
|
|
|
use App\Events\Payment\PaymentWasEmailedAndFailed;
|
2020-02-19 21:44:12 +01:00
|
|
|
use App\Events\Payment\PaymentWasRefunded;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Events\Payment\PaymentWasRestored;
|
2020-07-17 03:28:54 +02:00
|
|
|
use App\Events\Payment\PaymentWasUpdated;
|
2020-02-19 21:44:12 +01:00
|
|
|
use App\Events\Payment\PaymentWasVoided;
|
2020-04-28 01:50:54 +02:00
|
|
|
use App\Events\Quote\QuoteWasApproved;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Events\Quote\QuoteWasArchived;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Events\Quote\QuoteWasCreated;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Events\Quote\QuoteWasDeleted;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Events\Quote\QuoteWasEmailed;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Events\Quote\QuoteWasRestored;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Events\Quote\QuoteWasUpdated;
|
|
|
|
use App\Events\Quote\QuoteWasViewed;
|
2021-04-13 01:52:17 +02:00
|
|
|
use App\Events\Subscription\SubscriptionWasArchived;
|
|
|
|
use App\Events\Subscription\SubscriptionWasCreated;
|
|
|
|
use App\Events\Subscription\SubscriptionWasDeleted;
|
|
|
|
use App\Events\Subscription\SubscriptionWasRestored;
|
|
|
|
use App\Events\Subscription\SubscriptionWasUpdated;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Events\Task\TaskWasArchived;
|
|
|
|
use App\Events\Task\TaskWasCreated;
|
|
|
|
use App\Events\Task\TaskWasDeleted;
|
|
|
|
use App\Events\Task\TaskWasRestored;
|
|
|
|
use App\Events\Task\TaskWasUpdated;
|
2019-06-03 23:46:46 +02:00
|
|
|
use App\Events\User\UserLoggedIn;
|
2021-01-14 04:44:52 +01:00
|
|
|
use App\Events\User\UserWasArchived;
|
2019-06-12 06:22:05 +02:00
|
|
|
use App\Events\User\UserWasCreated;
|
2020-03-24 10:15:30 +01:00
|
|
|
use App\Events\User\UserWasDeleted;
|
2021-01-14 04:44:52 +01:00
|
|
|
use App\Events\User\UserWasRestored;
|
|
|
|
use App\Events\User\UserWasUpdated;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Events\Vendor\VendorWasArchived;
|
2020-11-03 06:44:50 +01:00
|
|
|
use App\Events\Vendor\VendorWasCreated;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Events\Vendor\VendorWasDeleted;
|
|
|
|
use App\Events\Vendor\VendorWasRestored;
|
|
|
|
use App\Events\Vendor\VendorWasUpdated;
|
2020-07-17 02:31:19 +02:00
|
|
|
use App\Listeners\Activity\ArchivedClientActivity;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Listeners\Activity\ClientUpdatedActivity;
|
2019-05-13 08:18:46 +02:00
|
|
|
use App\Listeners\Activity\CreatedClientActivity;
|
2020-07-17 06:44:34 +02:00
|
|
|
use App\Listeners\Activity\CreatedCreditActivity;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Listeners\Activity\CreatedExpenseActivity;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Listeners\Activity\CreatedQuoteActivity;
|
2021-04-13 01:52:17 +02:00
|
|
|
use App\Listeners\Activity\CreatedSubscriptionActivity;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Listeners\Activity\CreatedTaskActivity;
|
|
|
|
use App\Listeners\Activity\CreatedVendorActivity;
|
2020-07-17 06:44:34 +02:00
|
|
|
use App\Listeners\Activity\CreditArchivedActivity;
|
2020-07-17 02:31:19 +02:00
|
|
|
use App\Listeners\Activity\DeleteClientActivity;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Listeners\Activity\DeleteCreditActivity;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Listeners\Activity\ExpenseArchivedActivity;
|
|
|
|
use App\Listeners\Activity\ExpenseDeletedActivity;
|
|
|
|
use App\Listeners\Activity\ExpenseRestoredActivity;
|
|
|
|
use App\Listeners\Activity\ExpenseUpdatedActivity;
|
2020-12-28 07:04:24 +01:00
|
|
|
use App\Listeners\Activity\PaymentArchivedActivity;
|
2019-05-15 07:03:18 +02:00
|
|
|
use App\Listeners\Activity\PaymentCreatedActivity;
|
2019-11-19 11:23:56 +01:00
|
|
|
use App\Listeners\Activity\PaymentDeletedActivity;
|
2020-02-19 21:44:12 +01:00
|
|
|
use App\Listeners\Activity\PaymentRefundedActivity;
|
2020-07-17 03:28:54 +02:00
|
|
|
use App\Listeners\Activity\PaymentUpdatedActivity;
|
2020-02-19 21:44:12 +01:00
|
|
|
use App\Listeners\Activity\PaymentVoidedActivity;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Listeners\Activity\QuoteUpdatedActivity;
|
2020-07-17 02:31:19 +02:00
|
|
|
use App\Listeners\Activity\RestoreClientActivity;
|
2021-04-13 01:52:17 +02:00
|
|
|
use App\Listeners\Activity\SubscriptionArchivedActivity;
|
|
|
|
use App\Listeners\Activity\SubscriptionDeletedActivity;
|
|
|
|
use App\Listeners\Activity\SubscriptionRestoredActivity;
|
|
|
|
use App\Listeners\Activity\SubscriptionUpdatedActivity;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Listeners\Activity\TaskArchivedActivity;
|
|
|
|
use App\Listeners\Activity\TaskDeletedActivity;
|
|
|
|
use App\Listeners\Activity\TaskRestoredActivity;
|
|
|
|
use App\Listeners\Activity\TaskUpdatedActivity;
|
2020-07-17 06:44:34 +02:00
|
|
|
use App\Listeners\Activity\UpdatedCreditActivity;
|
2020-11-03 11:04:15 +01:00
|
|
|
use App\Listeners\Activity\VendorArchivedActivity;
|
|
|
|
use App\Listeners\Activity\VendorDeletedActivity;
|
|
|
|
use App\Listeners\Activity\VendorRestoredActivity;
|
|
|
|
use App\Listeners\Activity\VendorUpdatedActivity;
|
2019-07-10 03:50:49 +02:00
|
|
|
use App\Listeners\Contact\UpdateContactLastLogin;
|
2021-04-28 02:02:31 +02:00
|
|
|
use App\Listeners\Credit\CreditCreatedNotification;
|
2020-12-09 11:05:26 +01:00
|
|
|
use App\Listeners\Credit\CreditEmailedNotification;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Listeners\Credit\CreditRestoredActivity;
|
2020-08-12 04:02:21 +02:00
|
|
|
use App\Listeners\Credit\CreditViewedActivity;
|
2020-03-09 21:05:23 +01:00
|
|
|
use App\Listeners\Document\DeleteCompanyDocuments;
|
2019-05-15 07:19:18 +02:00
|
|
|
use App\Listeners\Invoice\CreateInvoiceActivity;
|
2019-11-20 06:41:49 +01:00
|
|
|
use App\Listeners\Invoice\CreateInvoiceHtmlBackup;
|
2019-08-29 06:07:04 +02:00
|
|
|
use App\Listeners\Invoice\CreateInvoicePdf;
|
2020-07-17 03:28:54 +02:00
|
|
|
use App\Listeners\Invoice\InvoiceArchivedActivity;
|
2020-08-12 04:02:21 +02:00
|
|
|
use App\Listeners\Invoice\InvoiceCancelledActivity;
|
2021-04-28 02:02:31 +02:00
|
|
|
use App\Listeners\Invoice\InvoiceCreatedNotification;
|
2020-04-09 01:35:40 +02:00
|
|
|
use App\Listeners\Invoice\InvoiceDeletedActivity;
|
2019-12-22 11:28:41 +01:00
|
|
|
use App\Listeners\Invoice\InvoiceEmailActivity;
|
2021-01-04 13:38:00 +01:00
|
|
|
use App\Listeners\Invoice\InvoiceEmailFailedActivity;
|
2021-01-14 04:44:52 +01:00
|
|
|
use App\Listeners\Invoice\InvoiceEmailedNotification;
|
2021-01-20 02:59:39 +01:00
|
|
|
use App\Listeners\Invoice\InvoiceFailedEmailNotification;
|
2020-08-12 03:45:40 +02:00
|
|
|
use App\Listeners\Invoice\InvoicePaidActivity;
|
2020-11-09 11:17:20 +01:00
|
|
|
use App\Listeners\Invoice\InvoiceReminderEmailActivity;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Listeners\Invoice\InvoiceRestoredActivity;
|
2020-08-12 04:02:21 +02:00
|
|
|
use App\Listeners\Invoice\InvoiceReversedActivity;
|
2020-07-17 03:18:40 +02:00
|
|
|
use App\Listeners\Invoice\InvoiceViewedActivity;
|
2019-05-15 07:19:18 +02:00
|
|
|
use App\Listeners\Invoice\UpdateInvoiceActivity;
|
2021-02-22 01:18:52 +01:00
|
|
|
use App\Listeners\Mail\MailSentListener;
|
2020-03-04 12:09:43 +01:00
|
|
|
use App\Listeners\Misc\InvitationViewedListener;
|
2021-01-04 13:38:00 +01:00
|
|
|
use App\Listeners\Payment\PaymentEmailFailureActivity;
|
2021-01-14 04:44:52 +01:00
|
|
|
use App\Listeners\Payment\PaymentEmailedActivity;
|
2020-03-02 11:22:37 +01:00
|
|
|
use App\Listeners\Payment\PaymentNotification;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Listeners\Payment\PaymentRestoredActivity;
|
2020-10-29 22:43:23 +01:00
|
|
|
use App\Listeners\Quote\QuoteApprovedActivity;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Listeners\Quote\QuoteArchivedActivity;
|
2021-04-28 02:02:31 +02:00
|
|
|
use App\Listeners\Quote\QuoteCreatedNotification;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Listeners\Quote\QuoteDeletedActivity;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Listeners\Quote\QuoteEmailActivity;
|
2020-12-09 10:52:08 +01:00
|
|
|
use App\Listeners\Quote\QuoteEmailedNotification;
|
2020-07-22 09:53:14 +02:00
|
|
|
use App\Listeners\Quote\QuoteRestoredActivity;
|
2020-07-20 01:02:31 +02:00
|
|
|
use App\Listeners\Quote\QuoteViewedActivity;
|
2020-04-28 01:50:54 +02:00
|
|
|
use App\Listeners\Quote\ReachWorkflowSettings;
|
2018-10-24 05:50:15 +02:00
|
|
|
use App\Listeners\SendVerificationNotification;
|
2021-01-14 04:44:52 +01:00
|
|
|
use App\Listeners\User\ArchivedUserActivity;
|
|
|
|
use App\Listeners\User\CreatedUserActivity;
|
2020-03-24 10:15:30 +01:00
|
|
|
use App\Listeners\User\DeletedUserActivity;
|
2021-01-14 04:44:52 +01:00
|
|
|
use App\Listeners\User\RestoredUserActivity;
|
2019-06-03 23:46:46 +02:00
|
|
|
use App\Listeners\User\UpdateUserLastLogin;
|
2021-01-14 04:44:52 +01:00
|
|
|
use App\Listeners\User\UpdatedUserActivity;
|
2018-10-04 19:10:43 +02:00
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
2021-02-22 01:18:52 +01:00
|
|
|
use Illuminate\Mail\Events\MessageSending;
|
|
|
|
use Illuminate\Mail\Events\MessageSent;
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
2021-04-26 05:01:59 +02:00
|
|
|
AccountCreated::class =>[
|
|
|
|
],
|
2021-02-22 01:18:52 +01:00
|
|
|
MessageSending::class =>[
|
|
|
|
],
|
|
|
|
MessageSent::class => [
|
|
|
|
MailSentListener::class,
|
|
|
|
],
|
2019-06-12 06:22:05 +02:00
|
|
|
UserWasCreated::class => [
|
2021-01-14 04:44:52 +01:00
|
|
|
CreatedUserActivity::class,
|
2018-10-24 05:50:15 +02:00
|
|
|
SendVerificationNotification::class,
|
2019-04-20 03:19:43 +02:00
|
|
|
],
|
2020-03-24 10:15:30 +01:00
|
|
|
UserWasDeleted::class => [
|
|
|
|
DeletedUserActivity::class,
|
|
|
|
],
|
2021-01-14 04:44:52 +01:00
|
|
|
UserWasArchived::class => [
|
|
|
|
ArchivedUserActivity::class,
|
|
|
|
],
|
2019-06-03 23:46:46 +02:00
|
|
|
UserLoggedIn::class => [
|
|
|
|
UpdateUserLastLogin::class,
|
|
|
|
],
|
2021-01-14 04:44:52 +01:00
|
|
|
UserWasUpdated::class => [
|
|
|
|
UpdatedUserActivity::class,
|
|
|
|
],
|
|
|
|
UserWasRestored::class => [
|
|
|
|
RestoredUserActivity::class,
|
|
|
|
],
|
2019-07-10 03:50:49 +02:00
|
|
|
ContactLoggedIn::class => [
|
|
|
|
UpdateContactLastLogin::class,
|
|
|
|
],
|
2019-05-13 08:18:46 +02:00
|
|
|
PaymentWasCreated::class => [
|
|
|
|
PaymentCreatedActivity::class,
|
2020-03-02 11:22:37 +01:00
|
|
|
PaymentNotification::class,
|
2019-05-13 08:18:46 +02:00
|
|
|
],
|
2019-11-19 11:23:56 +01:00
|
|
|
PaymentWasDeleted::class => [
|
2019-11-20 06:41:49 +01:00
|
|
|
PaymentDeletedActivity::class,
|
2019-11-19 11:23:56 +01:00
|
|
|
],
|
2020-07-17 03:28:54 +02:00
|
|
|
PaymentWasArchived::class => [
|
|
|
|
PaymentArchivedActivity::class,
|
|
|
|
],
|
|
|
|
PaymentWasUpdated::class => [
|
|
|
|
PaymentUpdatedActivity::class,
|
|
|
|
],
|
2020-02-19 21:44:12 +01:00
|
|
|
PaymentWasRefunded::class => [
|
|
|
|
PaymentRefundedActivity::class,
|
|
|
|
],
|
|
|
|
PaymentWasVoided::class => [
|
|
|
|
PaymentVoidedActivity::class,
|
|
|
|
],
|
2020-07-22 09:53:14 +02:00
|
|
|
PaymentWasRestored::class =>[
|
|
|
|
PaymentRestoredActivity::class,
|
|
|
|
],
|
2020-06-22 00:34:02 +02:00
|
|
|
// Clients
|
|
|
|
ClientWasCreated::class =>[
|
|
|
|
CreatedClientActivity::class,
|
2019-04-20 03:19:43 +02:00
|
|
|
],
|
2020-06-22 00:34:02 +02:00
|
|
|
ClientWasArchived::class =>[
|
2020-07-17 02:31:19 +02:00
|
|
|
ArchivedClientActivity::class,
|
2019-04-20 03:19:43 +02:00
|
|
|
],
|
2020-06-22 00:34:02 +02:00
|
|
|
ClientWasUpdated::class =>[
|
2020-11-03 11:04:15 +01:00
|
|
|
ClientUpdatedActivity::class,
|
2019-04-20 03:19:43 +02:00
|
|
|
],
|
2020-06-22 00:34:02 +02:00
|
|
|
ClientWasDeleted::class =>[
|
2020-07-17 02:31:19 +02:00
|
|
|
DeleteClientActivity::class,
|
2020-06-22 00:34:02 +02:00
|
|
|
],
|
|
|
|
ClientWasRestored::class =>[
|
2020-07-17 02:31:19 +02:00
|
|
|
RestoreClientActivity::class,
|
2019-04-20 03:19:43 +02:00
|
|
|
],
|
2020-06-24 13:49:06 +02:00
|
|
|
// Documents
|
|
|
|
DocumentWasCreated::class =>[
|
|
|
|
],
|
|
|
|
DocumentWasArchived::class =>[
|
|
|
|
],
|
|
|
|
DocumentWasUpdated::class =>[
|
|
|
|
],
|
|
|
|
DocumentWasDeleted::class =>[
|
|
|
|
],
|
|
|
|
DocumentWasRestored::class =>[
|
|
|
|
],
|
2020-07-17 06:44:34 +02:00
|
|
|
CreditWasCreated::class => [
|
|
|
|
CreatedCreditActivity::class,
|
2021-04-28 02:02:31 +02:00
|
|
|
CreditCreatedNotification::class,
|
2020-07-17 06:44:34 +02:00
|
|
|
],
|
2020-07-20 01:02:31 +02:00
|
|
|
CreditWasDeleted::class => [
|
|
|
|
DeleteCreditActivity::class,
|
|
|
|
],
|
2020-07-17 06:44:34 +02:00
|
|
|
CreditWasUpdated::class => [
|
|
|
|
UpdatedCreditActivity::class,
|
2021-01-13 11:12:14 +01:00
|
|
|
CreateInvoicePdf::class,
|
2020-07-17 06:44:34 +02:00
|
|
|
],
|
2020-06-30 01:35:17 +02:00
|
|
|
CreditWasEmailedAndFailed::class => [
|
|
|
|
],
|
|
|
|
CreditWasEmailed::class => [
|
2020-12-09 11:05:26 +01:00
|
|
|
CreditEmailedNotification::class,
|
2020-06-30 01:35:17 +02:00
|
|
|
],
|
2020-03-03 10:44:26 +01:00
|
|
|
CreditWasMarkedSent::class => [
|
|
|
|
],
|
2020-07-17 06:44:34 +02:00
|
|
|
CreditWasArchived::class => [
|
|
|
|
CreditArchivedActivity::class,
|
|
|
|
],
|
2020-07-22 09:53:14 +02:00
|
|
|
CreditWasRestored::class => [
|
|
|
|
CreditRestoredActivity::class,
|
|
|
|
],
|
2020-08-12 04:02:21 +02:00
|
|
|
CreditWasViewed::class => [
|
2020-09-06 11:38:10 +02:00
|
|
|
CreditViewedActivity::class,
|
2020-08-12 04:02:21 +02:00
|
|
|
],
|
2020-06-22 00:34:02 +02:00
|
|
|
//Designs
|
|
|
|
DesignWasUpdated::class => [
|
|
|
|
],
|
2020-11-03 11:04:15 +01:00
|
|
|
DesignWasArchived::class => [
|
|
|
|
],
|
2020-06-22 00:34:02 +02:00
|
|
|
DesignWasDeleted::class => [
|
|
|
|
],
|
|
|
|
DesignWasRestored::class => [
|
|
|
|
],
|
2020-11-03 11:04:15 +01:00
|
|
|
ExpenseWasCreated::class => [
|
|
|
|
CreatedExpenseActivity::class,
|
|
|
|
],
|
|
|
|
ExpenseWasUpdated::class => [
|
|
|
|
ExpenseUpdatedActivity::class,
|
|
|
|
],
|
|
|
|
ExpenseWasArchived::class => [
|
|
|
|
ExpenseArchivedActivity::class,
|
|
|
|
],
|
|
|
|
ExpenseWasDeleted::class => [
|
|
|
|
ExpenseDeletedActivity::class,
|
|
|
|
],
|
|
|
|
ExpenseWasRestored::class => [
|
|
|
|
ExpenseRestoredActivity::class
|
|
|
|
],
|
2020-03-03 10:44:26 +01:00
|
|
|
//Invoices
|
2019-04-24 07:18:48 +02:00
|
|
|
InvoiceWasMarkedSent::class => [
|
2019-11-20 06:41:49 +01:00
|
|
|
CreateInvoiceHtmlBackup::class,
|
2019-05-15 07:03:18 +02:00
|
|
|
],
|
|
|
|
InvoiceWasUpdated::class => [
|
2019-05-15 07:19:18 +02:00
|
|
|
UpdateInvoiceActivity::class,
|
2019-08-29 06:07:04 +02:00
|
|
|
CreateInvoicePdf::class,
|
2019-05-15 07:03:18 +02:00
|
|
|
],
|
|
|
|
InvoiceWasCreated::class => [
|
2019-05-15 07:19:18 +02:00
|
|
|
CreateInvoiceActivity::class,
|
2021-04-28 02:02:31 +02:00
|
|
|
InvoiceCreatedNotification::class,
|
2020-02-15 10:06:30 +01:00
|
|
|
// CreateInvoicePdf::class,
|
2019-04-24 03:49:41 +02:00
|
|
|
],
|
2019-11-20 06:41:49 +01:00
|
|
|
InvoiceWasPaid::class => [
|
2020-08-12 03:45:40 +02:00
|
|
|
InvoicePaidActivity::class,
|
2020-09-21 04:26:10 +02:00
|
|
|
CreateInvoicePdf::class,
|
2019-12-22 11:28:41 +01:00
|
|
|
],
|
2020-07-17 03:47:37 +02:00
|
|
|
InvoiceWasViewed::class => [
|
2020-07-17 03:18:40 +02:00
|
|
|
InvoiceViewedActivity::class,
|
|
|
|
],
|
2019-12-22 11:28:41 +01:00
|
|
|
InvoiceWasEmailed::class => [
|
|
|
|
InvoiceEmailActivity::class,
|
2020-03-04 12:09:43 +01:00
|
|
|
InvoiceEmailedNotification::class,
|
2019-12-22 11:28:41 +01:00
|
|
|
],
|
|
|
|
InvoiceWasEmailedAndFailed::class => [
|
|
|
|
InvoiceEmailFailedActivity::class,
|
2021-01-20 02:59:39 +01:00
|
|
|
InvoiceFailedEmailNotification::class,
|
2019-12-22 11:28:41 +01:00
|
|
|
],
|
2020-11-09 11:17:20 +01:00
|
|
|
InvoiceReminderWasEmailed::class => [
|
|
|
|
InvoiceReminderEmailActivity::class,
|
|
|
|
],
|
2020-04-04 12:32:42 +02:00
|
|
|
InvoiceWasDeleted::class => [
|
2020-04-09 01:35:40 +02:00
|
|
|
InvoiceDeletedActivity::class,
|
2020-09-21 04:26:10 +02:00
|
|
|
CreateInvoicePdf::class,
|
2020-04-09 01:35:40 +02:00
|
|
|
],
|
2020-07-17 03:28:54 +02:00
|
|
|
InvoiceWasArchived::class => [
|
|
|
|
InvoiceArchivedActivity::class,
|
|
|
|
],
|
2020-07-22 09:53:14 +02:00
|
|
|
InvoiceWasRestored::class => [
|
|
|
|
InvoiceRestoredActivity::class,
|
|
|
|
],
|
2020-04-09 01:35:40 +02:00
|
|
|
InvoiceWasReversed::class => [
|
2020-08-12 04:02:21 +02:00
|
|
|
InvoiceReversedActivity::class,
|
2020-09-21 04:26:10 +02:00
|
|
|
CreateInvoicePdf::class,
|
2020-04-09 01:35:40 +02:00
|
|
|
],
|
|
|
|
InvoiceWasCancelled::class => [
|
2020-08-12 04:02:21 +02:00
|
|
|
InvoiceCancelledActivity::class,
|
2020-04-04 12:32:42 +02:00
|
|
|
],
|
2020-03-04 12:09:43 +01:00
|
|
|
InvitationWasViewed::class => [
|
2020-09-06 11:38:10 +02:00
|
|
|
InvitationViewedListener::class,
|
2020-03-09 21:05:23 +01:00
|
|
|
],
|
2020-11-12 04:04:27 +01:00
|
|
|
PaymentWasEmailed::class => [
|
|
|
|
PaymentEmailedActivity::class,
|
|
|
|
],
|
|
|
|
PaymentWasEmailedAndFailed::class => [
|
|
|
|
PaymentEmailFailureActivity::class,
|
|
|
|
],
|
2020-07-08 14:02:16 +02:00
|
|
|
CompanyDocumentsDeleted::class => [
|
2020-03-09 21:05:23 +01:00
|
|
|
DeleteCompanyDocuments::class,
|
2020-03-04 12:09:43 +01:00
|
|
|
],
|
2020-04-28 01:50:54 +02:00
|
|
|
QuoteWasApproved::class => [
|
|
|
|
ReachWorkflowSettings::class,
|
2020-10-29 22:43:23 +01:00
|
|
|
QuoteApprovedActivity::class,
|
2020-04-28 01:50:54 +02:00
|
|
|
],
|
2020-07-20 01:02:31 +02:00
|
|
|
QuoteWasCreated::class => [
|
|
|
|
CreatedQuoteActivity::class,
|
2021-04-28 02:02:31 +02:00
|
|
|
QuoteCreatedNotification::class,
|
2020-07-20 01:02:31 +02:00
|
|
|
],
|
|
|
|
QuoteWasUpdated::class => [
|
|
|
|
QuoteUpdatedActivity::class,
|
2021-01-13 11:12:14 +01:00
|
|
|
CreateInvoicePdf::class,
|
2020-07-20 01:02:31 +02:00
|
|
|
],
|
|
|
|
QuoteWasEmailed::class => [
|
|
|
|
QuoteEmailActivity::class,
|
2020-12-09 10:52:08 +01:00
|
|
|
QuoteEmailedNotification::class,
|
2020-07-20 01:02:31 +02:00
|
|
|
],
|
|
|
|
QuoteWasViewed::class => [
|
|
|
|
QuoteViewedActivity::class,
|
|
|
|
],
|
2020-07-22 09:53:14 +02:00
|
|
|
QuoteWasArchived::class => [
|
|
|
|
QuoteArchivedActivity::class,
|
|
|
|
],
|
|
|
|
QuoteWasDeleted::class => [
|
|
|
|
QuoteDeletedActivity::class,
|
|
|
|
],
|
|
|
|
QuoteWasRestored::class => [
|
|
|
|
QuoteRestoredActivity::class,
|
|
|
|
],
|
2020-11-03 11:04:15 +01:00
|
|
|
TaskWasCreated::class => [
|
|
|
|
CreatedTaskActivity::class,
|
|
|
|
],
|
|
|
|
TaskWasUpdated::class => [
|
|
|
|
TaskUpdatedActivity::class,
|
|
|
|
],
|
|
|
|
TaskWasArchived::class => [
|
|
|
|
TaskArchivedActivity::class,
|
|
|
|
],
|
|
|
|
TaskWasDeleted::class => [
|
|
|
|
TaskDeletedActivity::class,
|
|
|
|
],
|
|
|
|
TaskWasRestored::class => [
|
|
|
|
TaskRestoredActivity::class,
|
|
|
|
],
|
2021-04-13 01:52:17 +02:00
|
|
|
SubscriptionWasCreated::class => [
|
|
|
|
CreatedSubscriptionActivity::class,
|
|
|
|
],
|
|
|
|
SubscriptionWasUpdated::class => [
|
|
|
|
SubscriptionUpdatedActivity::class,
|
|
|
|
],
|
|
|
|
SubscriptionWasArchived::class => [
|
|
|
|
SubscriptionArchivedActivity::class,
|
|
|
|
],
|
|
|
|
SubscriptionWasDeleted::class => [
|
|
|
|
SubscriptionDeletedActivity::class,
|
|
|
|
],
|
|
|
|
SubscriptionWasRestored::class => [
|
|
|
|
SubscriptionRestoredActivity::class,
|
|
|
|
],
|
2020-11-03 06:44:50 +01:00
|
|
|
VendorWasCreated::class => [
|
|
|
|
CreatedVendorActivity::class,
|
2020-11-03 11:04:15 +01:00
|
|
|
],
|
|
|
|
VendorWasArchived::class => [
|
|
|
|
VendorArchivedActivity::class,
|
|
|
|
],
|
|
|
|
VendorWasDeleted::class => [
|
|
|
|
VendorDeletedActivity::class,
|
|
|
|
],
|
|
|
|
VendorWasRestored::class => [
|
|
|
|
VendorRestoredActivity::class,
|
|
|
|
],
|
|
|
|
VendorWasUpdated::class => [
|
|
|
|
VendorUpdatedActivity::class,
|
|
|
|
],
|
2020-11-03 06:44:50 +01:00
|
|
|
|
2018-10-21 00:26:21 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The subscriber classes to register.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $subscribe = [
|
|
|
|
|
2018-10-04 19:10:43 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any events for your application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2019-06-05 02:43:23 +02:00
|
|
|
public function boot()
|
2020-04-04 12:32:42 +02:00
|
|
|
{
|
|
|
|
parent::boot();
|
|
|
|
}
|
2018-10-04 19:10:43 +02:00
|
|
|
}
|