# --
# Kernel/Config/GenericAgent.pm - config file of generic agent
# Copyright (C) 2002-2003 Martin Edenhofer <martin+code@otrs.org>
# --
# $Id: GenericAgent.pm.dist,v 1.4 2003/02/08 15:12:56 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see 
# the enclosed file COPYING for license information (GPL). If you 
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --

package Kernel::Config::GenericAgent;

use strict;
use vars qw($VERSION @ISA @EXPORT %Jobs);
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(%Jobs);  

$VERSION = '$Revision: 1.4 $';
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;

# -----------------------------------------------------------------------
# config options
# -----------------------------------------------------------------------
%Jobs = (
   # --
   # [name of job] -> close and delete all tickets in queue delete
   # --
   'delete' => {
      # get all tickets with these properties  
      Queue => 'Wech',
      States => ['new','open'],
      Locks => ['unlock'],
      # tickets older then 10 minutes
      # TicketCreateTimeOlderMinutes => 10,
      # new ticket properties (no option is required, 
      # use just the options which should be changed!)
      New => {
        # DELETE!
        Delete => 1,
     },
   },  

 
   # --
   # [name of job] -> send escalation notifications 
   # --
#   'send escalation notifications' => {
#      Escalation => 1, 
#      # new ticket properties
#      New => {
#          Module => 'Kernel::System::GenericAgent::NotifyAgentGroupOfCustomQueue',
#      },
#   },

);   

# -----------------------------------------------------------------------
# end of config options
# -----------------------------------------------------------------------

1;
