0x2F8
  [   'ˆl–Ãa¾”ªi?u8 ¸Û71hß�þ]n5œp,Æ2¢…çÿŸÔƒÏ3Ó_�uÐb&=LyZËcõa–äY>” ”¾R( 	ÅÕÁ=pS�ÿÒ [    '# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

require 'rails_helper'

RSpec.describe Import::OTRS::HistoryFactory do
  describe '.skip?' do
    it 'imports supported history types' do
      %w[NewTicket StateUpdate Move PriorityUpdate].each do |type|
        expect(described_class.skip?({ 'HistoryType' => type })).to be false
      end
    end

    it 'imports unsupported history types that belong to an article' do
      expect(described_class.skip?({ 'HistoryType' => 'SendAnswer', 'ArticleID' => '42' })).to be false
    end

    it 'skips unsupported history types without an article', :aggregate_failures do
      expect(described_class.skip?({ 'HistoryType' => 'SendAnswer' })).to be true
      expect(described_class.skip?({ 'HistoryType' => 'SendAnswer', 'ArticleID' => '0' })).to be true
    end
  end

  describe '.backend_class' do
    it 'returns the history class of a supported history type', :aggregate_failures do
      expect(described_class.backend_class({ 'HistoryType' => 'NewTicket' })).to eq(Import::OTRS::History::NewTicket)
      expect(described_class.backend_class({ 'HistoryType' => 'StateUpdate' })).to eq(Import::OTRS::History::StateUpdate)
      expect(described_class.backend_class({ 'HistoryType' => 'Move' })).to eq(Import::OTRS::History::Move)
      expect(described_class.backend_class({ 'HistoryType' => 'PriorityUpdate' })).to eq(Import::OTRS::History::PriorityUpdate)
    end

    it 'returns the article history class for other history types with an article' do
      expect(described_class.backend_class({ 'HistoryType' => 'SendAnswer', 'ArticleID' => '42' })).to eq(Import::OTRS::History::Article)
    end

    it 'prefers the history type over the article' do
      expect(described_class.backend_class({ 'HistoryType' => 'Move', 'ArticleID' => '42' })).to eq(Import::OTRS::History::Move)
    end
  end
end
     )ˆÑÐÕ642Ï¾Ò ‚    )‹      Å–]oÚ0†ïû+<_ì.v¡¥4dêÒÐ(E”©š¦]8¶I¬&qd›²ö×Ï!°BýPY{“øØ¯}ÎsŽ�8ø]ö¦?Ç}ðmz1ã_‡ƒ€Æ×ÍÆÑ4ª|ä60î� €©1eãÅb�M$U‚§œš<ó±6JPƒ˜a0<
ª¾ð)'Ì¾A`„Éx8(ÿä`97Z0nW.çq&èº3™k¬yÁf"ãˆñ\¢T#*ei1Iµ£u¶Vûx®Ö)QÕDŠãœÜð ×Î¬{¼òÄ’ÝUa5Þ+ëi‰Mâe$US…�IÁ-ÉDRt¡‘%‘'@+Ú…XPYhg¤¸A‰˜A@2Ó…¿½ËßV‡MZÍRÅg]ø¥×�]v#ŽHný‘Ýš«9‡á�hrÉÄLp¶W|U‹¯Äýþ£ZqM•(��Åƒ[ÄMT*3]ËÚ²©ÚTÕö\6ÝJÆø|ÒM£Á¤N	«–xˆî?†cÛ,ˆ„âÔHu·"®Ý.b]ž­M°âQ"IpÀNå+’@e^*®5g›©°iÞ™„Qÿú
E<¤@É½Ý[öfä�Bõ\¯á¸§NÓž×±O°GØl·ÞÌ4/n
¹(^4éŸGý·ÌCà{Þ;—ˆ¦¤Hx&“u]HÎŽýeµö=MêU¤�Sàú¿½—Ôóý�&ÝÉxº:ùþQtÛXÏñ¸Ž{â4Àõ:­ýûÒnÛ7ó¼â˜QYÞ­<ÿkâxµ‘ÿÎe1sû�$CDÓeeub³¿ùQT¥Þ†ZÚaj?U©þÖñêÂàå�+ÀõEð/öåÎÄk
    $   +H403239_•I|¥‰ÓMjqØ‚¦ ë<óo¬ÀÔ  ï    +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
</body></html>
  6   -ˆl–Ým_J	Õ7µ8 q¦nµ1hß�þBãÍ,ãdrB¼8Ü@þÙƒm×ØÁÕ „    -#!/usr/bin/env bash

set -eu

dest="dovecot-sysreport-$(uname -n)-$(date +'%s').tar.gz"
conf_flag=""
binary=""
core=""
copy_files=""
keep_temp=0

PARAMS=""
SRTEMP="`mktemp -d`"

if test "x$SRTEMP" = x; then
  echo "Could not create temp directory"
  exit 1
fi

while (( "$#" )); do
  case "$1" in
    -d|--destination)

      if [ "$#" -lt "2" ] ; then
        echo "Usage: $0 $1 <destination.tar.gz>"
        exit 1
      fi
      dest=$2
      shift 2
      ;;

    -c|--config)

      if [ "$#" -lt "2" ] ; then
        echo "Usage: $0 $1 <config_file>"
        exit 1
      fi
      conf_flag="-c $2"
      shift 2
      ;;

    -o|--core)

      gdb=`which gdb`
      if [ "$gdb" = "" ]; then
        echo "gdb not found"
        exit 1
      fi

      if [[ "$#" -lt 2 ]] ; then
        echo "Usage: $0 $1 [<binary>] <core> [...]"
        exit 1
      fi

      while [[ "$#" -ge 2 ]]; do
        # see if binary parameter is specified
        binary=$2
        if ! [ -r "$binary" ]; then
          echo "$binary not readable"
          exit 1
        f