# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
# --
# $Id: Config.pm.dist,v 1.23 2010/01/13 22:25:00 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
#  Note:
#
#  -->> OTRS does have a lot of config settings. For more settings
#       (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
#       LDAP, PostMaster, Session, Preferences, ...) see
#       Kernel/Config/Defaults.pm and copy your wanted lines into "this"
#       config file. This file will not be changed on update!
#
# --

package Kernel::Config;

sub Load {
    my $Self = shift;
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
    #                                                      #
    #         Start of your own config options!!!          #
    #                                                      #
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #

    # ---------------------------------------------------- #
    # database settings                                    #
    # ---------------------------------------------------- #
    # DatabaseHost
    # (The database host.)
    $Self->{DatabaseHost} = '192.168.13.121';
    # Database
    # (The database name.)
    $Self->{Database} = 'otrs';
    # DatabaseUser
    # (The database user.)
    $Self->{DatabaseUser} = 'otrs';
    # DatabasePw
    # (The password of database user. You also can use bin/otrs.CryptPassword.pl
    # for crypted passwords.)
    $Self->{DatabasePw} = '7osoW2dd';
    # DatabaseDSN
    # (The database DSN for MySQL ==> more: "man DBD::mysql")
    $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";

    # (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
    # if you want to use a local socket connection
#    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
    # if you want to use a tcpip connection
#    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";

    # ---------------------------------------------------- #
    # fs root directory
    # ---------------------------------------------------- #
    $Self->{Home} = '/opt/otrs';

    # ---------------------------------------------------- #
    # insert your own config settings "here"               #
    # config settings taken from Kernel/Config/Defaults.pm #
    # ---------------------------------------------------- #
    # $Self->{SessionUseCookie} = 0;
    # $Self->{CheckMXRecord} = 0;

    # ---------------------------------------------------- #

    # ---------------------------------------------------- #
    # data inserted by installer                           #
    # ---------------------------------------------------- #
    # $DIBI$

    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
    #                                                      #
    #           End of your own config options!!!          #
    #                                                      #
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #

    # ==== by fisher - begin here ====
    
    # send mail over smtp (default - via /usr/bin/mail)
    $Self->{'SendmailModule'} =  'Kernel::System::Email::SMTP';
    $Self->{'FQDN'} =  'otrs.tmassive.com';
    $Self->{'SendmailModule::Host'} =  '62.149.7.203';
    $Self->{'AdminEmail'} =  'fisher@tpaba.org.ua';
    $Self->{'Organization'} =  'T-Massive Computing';
    $Self->{'DefaultCharset'} =  'utf-8';
    #$Self->{'SwitchToUser'} =  '0';
    #$Self->{'NotificationSenderEmail'} =  'otrs@<OTRS_CONFIG_FQDN>';
    $Self->{'NotificationSenderEmail'} =  'otrs@tmassive.com';
    $Self->{'Charset'} = 'UTF-8';

    # liteweigth generator for TicketNumber
    $Self->{'Ticket::NumberGenerator'} = 'Kernel::System::Ticket::Number::AutoIncrement';
    # my module. hurray, it works
    #$Self->{'Ticket::NumberGenerator'} = 'Kernel::System::Ticket::Number::ClientIdTicketId';

    # footer in customer.pl
    $Self->{'CustomerHeadline'} = 'Clustrx';
    # need to be == 1
    $Self->{'CustomerGroupSupport'} = '1';
    # logo need to put here, this is hardcoded in otrs (as /otrs-web/ in URL)
    $Self->{'CustomerLogo'} = {'URL' => 'skins/Customer/default/img/tmc-logo-small.png'};
    # don't show the "create account" link in login screen for customer
    $Self->{'CustomerPanelCreateAccount'} = 0;

    # don't know what it does, copypaste
    $Self->{'Ticket::Frontend::NoteSetState'} = 1;
    $Self->{'Ticket::DefaultNextNoteStateType'} = [qw(new open closed removed)];

    # this is something configured with the webinterface, I take it from cache
    $Self->{'Ticket::StateAfterPending'} = {
	'pending auto close+' => 'closed successful',
	'pending auto close-' => 'closed unsuccessful'
    };

    $Self->{'PostmasterDefaultQueue'} =  'Service Desk T-Massive Computing';

    $Self->{'Ticket::Frontend::CustomerTicketZoom'}->{'StateType'} =  [
	'open',
	'closed',
	'removed',
	'pending reminder',
	'merged',
	'new'
    ];
=commented-out
    delete $Self->{'Ticket::Frontend::CustomerTicketMessage'}->{'QueueDefault'};
    $Self->{'Ticket::StateAfterPending'} = {
	'pending auto close+' => 'closed successful',
	'pending auto close-' => 'closed unsuccessful'
    };

    delete $Self->{'Ticket::Frontend::CustomerTicketMessage'}->{'QueueDefault'};
    $Self->{'PostmasterDefaultQueue'} = "\x{412}\x{43d}\x{435}\x{448}\x{43d}\x{438}\x{435} \x{437}\x{430}\x{44f}\x{432}\x{43a}\x{438}";
    $Self->{'Ticket::StateAfterPending'} = {
	'pending auto close+' => 'closed successful',
	'pending auto close-' => 'closed unsuccessful'
    };
=cut

    # install mode off.
    $Self->{'SecureMode'} = '1';

    # ==== by fisher - end here ====
}

# ---------------------------------------------------- #
# needed system stuff (don't edit this)                #
# ---------------------------------------------------- #
use strict;
use warnings;

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.23 $)[1];

use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');

# -----------------------------------------------------#

1;
