Advertisement
Guest User

Untitled

a guest
Apr 9th, 2021
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace app;
  15.  
  16. class CampaignSchedules extends \Illuminate\Database\Eloquent\Model
  17. {
  18. protected $fillable = ['parent_id', 'paused_reason', 'track_duplicate', 'unsubscribe_header', 'name', 'type', 'status', 'trigger_id', 'autoresponder_id', 'list_ids', 'segment_ids', 'campaign_ids', 'split_test_on', 'split_test_ids', 'smtp_ids', 'smtp_sequence', 'sending_pattern', 'masked_domain', 'masked_domain_ids', 'send_campaign', 'send_datetime', 'from_name', 'sender_option', 'from_attributes', 'notification_email', 'hourly_speed', 'unsub_show', 'track_opens', 'track_clicks', 'campaign_type', 'evergreen_data', 'user_id', 'is_save_criteria', 'is_running', 'thread_no', 'emails_sent', 'threads', 'start_datetime', 'end_datetime', 'thread_settings', 'current_smtp'];
  19.  
  20. static public function getCampaignScheduleId($triggerId, $autoresponderId = NULL)
  21. {
  22. $campaignSchedule = self::where('trigger_id', '=', $triggerId)->when($autoresponderId, function($query) use($autoresponderId) {
  23. return $query->where('autoresponder_id', '=', $autoresponderId);
  24. })->first();
  25.  
  26. if ($campaignSchedule === NULL) {
  27. return NULL;
  28. }
  29. else {
  30. return $campaignSchedule->id;
  31. }
  32. }
  33. }
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement