#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package Support::SaleImporter::Command::List;
use strict;
use warnings;

use lib '/app/tools/common/lib';
use RSApache::Response::XSLT;
use Common::DB::Item::Client;

use lib '/app/tools/support/lib';
use Support::SaleImporter::ServiceList::RPS;

use base 'Support::Command';

sub cmd  { return 'importer' }
sub area { return 'client'; }

use constant kTemplate => "/app/tools/support/templates/sale_importer/sale_importer_list.xsl";

sub execute {
    my ($self) = @_;

    my $response = $self->SUPER::execute();
    return $response if $response;

    $self->{xml}{Form} = Support::SaleImporter::ServiceList::RPS->new();

    $response = RSApache::Response::XSLT->new( $self->{xml}, kTemplate );
    return $response;
}

1;
