7:66
      ˆ¾‘äÇò 8àdué’VHßóÄƒh¹ÃÁÀ      251:0
  ]   	ˆl–Ü4ý('ÜZÔâ€vàZ¸ÓJbÑ¿�þZAYÆÈÜ�¸ØÂ&EüÿÅ„�¸Ä_�uÐb&=LyZËcõa–Ãa¾”J_)â‚fãa¸ÔÅ£Ã ?÷     	# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

FactoryBot.define do
  factory :object_manager_attribute, class: 'ObjectManager::Attribute' do
    transient do
      object_name { 'Ticket' }
      additional_data_options { nil }
      default { nil }
    end

    object_lookup_id          { ObjectLookup.by_name(object_name) }
    sequence(:name)           { |n| "internal_name#{n}" }
    sequence(:display)        { |n| "Display Name #{n}" }
    data_option_new           { {} }
    editable                  { true }
    internal                  { false }
    active                    { true }
    add_attribute(:to_create) { true }
    to_migrate                { true }
    to_delete                 { false }
    to_config                 { false }
    position                  { 15 }
    updated_by_id             { 1 }
    created_by_id             { 1 }
    screens do
      {
        'create_top' => {
          '-all-' => {
            'null' => false
          }
        },
        'edit'       => {}
      }
    end

    callback(:after_stub, :before_create) do |object, context|
      next if context.additional_data_options.blank?

      object.data_option ||= {}
      object.data_option.merge! context.additional_data_options
    end

    trait :required_screen do
      screens do
        {
          'create_middle' =>
                             {
                               'ticket.customer'    => {
                                 shown:      true,
                                 required:   true,
                                 item_class: 'column'
                               },
                               'ticket.agent'       => {
                                 shown:      true,
                                 required:   true,
                                 item_class: 'column'
                               },
                               'admin.organization' => {
                                 shown:    true,
                                 required: true,
                               },
                               'admin.group'        => {
                                 shown:      true,
                                 required:   true,
                                 item_class: 'column'
                               },
                             },
          'edit'          =>
                             {
                               'ticket.customer'    => {
                                 shown:    true,
                                 required: true
                               },
                               'ticket.agent'       => {
                                 shown:    true,
                                 required: true
                               },
                               'admin.organization' => {
                                 shown:    true,
                                 required: true,
                               },
                               'admin.group'        => {
                                 shown:      true,
                                 required:   true,
                                 item_class: 'column'
                               },
                             }
        }
      end
    end

    trait :shown_screen do
      screens do
        {
          'create_middle' =>
                             {
                               '-all-' => {
                                 shown: true
                               }
                             },
          'edit'          =>
                             {
                               '-all-' => {
                                 shown: true
                               }
                             }
        }
      end
    end
  end

  factory :object_manager_attribute_text, parent: :object_manager_attribute do
    transient do
      data_option