diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a261f29
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+dist/*
diff --git a/CreateOpm.sh b/CreateOpm.sh
index 2061e94..2aa36cb 100755
--- a/CreateOpm.sh
+++ b/CreateOpm.sh
@@ -1,5 +1,5 @@
#!/bin/bash
LOCAL="$PWD"
cd /opt/otrs
-bin/otrs.Console.pl Dev::Package::Build "$LOCAL"/QueuesPanel.sopm "$LOCAL"/
+bin/otrs.Console.pl Dev::Package::Build "$LOCAL"/src/QueuesPanel.sopm "$LOCAL"/dist/
cd $LOCAL
diff --git a/CreateOpmUFSC.sh b/CreateOpmUFSC.sh
deleted file mode 100755
index 5a8e52e..0000000
--- a/CreateOpmUFSC.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-LOCAL="$PWD"
-cd /opt/otrs
-bin/otrs.Console.pl Dev::Package::Build "$LOCAL"/QueuePanelUFSC.sopm "$LOCAL"/
-cd $LOCAL
diff --git a/Kernel/Config/Files/QueuesPanel.xml b/Kernel/Config/Files/QueuesPanel.xml
deleted file mode 100755
index 3d69cc1..0000000
--- a/Kernel/Config/Files/QueuesPanel.xml
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-
- FrontendModuleRegistration for QueuesPanel module.
- Ticket
- Frontend::Customer::ModuleRegistration
-
-
- Module for choosing main queues to open tickets
- QueuesPanel
-
- Queues panel
- Queues panel
- Action=QueuesPanel
- QueuesPanel
- Menu
- 8400
-
-
-
-
- thirdparty/hColumns/jquery.hcolumns.min.js
- QueuesPanel.css
- hColumns/hcolumns.css
- hColumns/hcolumns-intro.css
- hColumns/reset.css
-
-
-
-
-
-
- FrontendModuleRegistration for QueuesPanelPublic module.
- Framework
- Frontend::Public::ModuleRegistration
-
-
- Module for choosing main queues to open tickets
- QueuesPanel
-
- Queues panel
- Queues panel
- Action=QueuesPanelPublic
- QueuesPanel
- Menu
- 8400
-
-
-
- thirdparty/hColumns/jquery.hcolumns.min.js
- QueuesPanel.css
- hColumns/hcolumns.css
- hColumns/hcolumns-intro.css
- hColumns/reset.css
-
-
-
-
-
-
-
- Message to let the user choose a queue.
- Ticket
- Frontend::Customer::QueuesPanel
-
- Escolha o local para o qual deseja atendimento
-
-
-
-
- Message to let the user choose a queue.
- Ticket
- Frontend::Customer::QueuesPanel
-
- Escolha o local para o qual deseja atendimento
-
-
-
-
- Queues IDs to not show in panel (comma separated).
- Ticket
- Frontend::Customer::QueuesPanel
-
-
-
-
-
-
- Customer footer/header suffix, if used.
- Ticket
- Frontend::Customer::QueuesPanel
-
-
-
-
-
-
- Extra queues to show in panel. Format: One per Line, Name|URL
- Ticket
- Frontend::Customer::QueuesPanel
-
-
-
-
-
-
- Extra queues to show in panel, for public access. Format: One per Line, Name|URL
- Ticket
- Frontend::Customer::QueuesPanel
-
-
-
-
-
-
- Extra JS if necessary
- Ticket
- Frontend::Customer::QueuesPanel
-
-
-
-
-
-
-
-
- Base URL to call to create ticket, queue ID added to the end
- Ticket
- Frontend::Customer::QueuesPanel
-
- /otrs/customer.pl?Action=NewTicketWizard;QueueID=
-
-
-
-
- Base URL to call to create ticket, queue ID added to the end
- Ticket
- Frontend::Customer::QueuesPanel
-
- /otrs/public.pl?Action=NewTicketWizardPublic;QueueID=
-
-
-
-
-
\ No newline at end of file
diff --git a/Kernel/Language/pt_BR_QueuesPanel.pm b/Kernel/Language/pt_BR_QueuesPanel.pm
deleted file mode 100755
index dd19d66..0000000
--- a/Kernel/Language/pt_BR_QueuesPanel.pm
+++ /dev/null
@@ -1,38 +0,0 @@
-# Kernel/Modules/pt_BR_QueuesPanel.pm - translations for QueuesPanel
-#
-# Copyright (C) 2014 SeTIC - UFSC - http://setic.ufsc.br/
-# Version 01/08/2015 - Adjustments for OTRS 4
-#
-# --
-# 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.
-# --
-package Kernel::Language::pt_BR_QueuesPanel;
-
-use strict;
-use warnings;
-use utf8;
-
-sub Data {
- my $Self = shift;
-
- $Self->{Translation}->{'The following maintenances are in progress'} = 'As seguintes manutenções estão ocorrendo';
- $Self->{Translation}->{'Started at: '} = 'Iniciada em:';
- $Self->{Translation}->{'Queues panel'} = 'Novo chamado';
- $Self->{Translation}->{'Choose the service to ask for support'} = 'Escolha o serviço para o qual deseja suporte';
- $Self->{Translation}->{'Message to let the user choose a queue.'} = 'Mensagem para o usuário escolher a fila';
- $Self->{Translation}->{'Queues IDs to not show in panel (comma separated).'} = 'IDs das filas que não devem aparecer no painel (separados por vírgula)';
- $Self->{Translation}->{'Customer footer/header suffix, if used.'} = 'Sufixo personalizado de cabeçalho/rodapé, se usado';
- $Self->{Translation}->{'Base URL to call to create ticket, queue ID added to the end'} = 'URl para criar ticket - id da fila adicionado ao final';
- $Self->{Translation}->{'Extra queues to show in panel. Format: One per Line, Name|URL'} = 'Filas extra, com URLs especiais. Formato: Nome|URL';
- $Self->{Translation}->{'Extra queues to show in panel, for public access. Format: One per Line, Name|URL'} = 'Filas extra no modo público, com URLs especiais. Formato: Nome|URL';
-
-
-
-
-
-
- return 1;
-}
-1;
\ No newline at end of file
diff --git a/Kernel/Language/pt_BR_QueuesPanelPublic.pm b/Kernel/Language/pt_BR_QueuesPanelPublic.pm
deleted file mode 100755
index 3e6fc0f..0000000
--- a/Kernel/Language/pt_BR_QueuesPanelPublic.pm
+++ /dev/null
@@ -1,27 +0,0 @@
-# Kernel/Modules/pt_BR_QueuesPanelPublic.pm - translations for QueuesPanelPublic
-#
-# Copyright (C) 2014 SeTIC - UFSC - http://setic.ufsc.br/
-# Version 01/08/2015 - Adjustments for OTRS 4
-#
-# --
-# --
-# 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.
-# --
-package Kernel::Language::pt_BR_QueuesPanelPublic;
-
-use strict;
-use warnings;
-use utf8;
-
-sub Data {
- my $Self = shift;
-
- $Self->{Translation}->{'The following maintenances are in progress'} = 'As seguintes manutenções estão ocorrendo';
- $Self->{Translation}->{'Started at: '} = 'Iniciada em:';
- $Self->{Translation}->{'Queues panel'} = 'Novo chamado';
- $Self->{Translation}->{'Choose the service to ask for support'} = 'Escolha o serviço para o qual deseja suporte';
- return 1;
-}
-1;
\ No newline at end of file
diff --git a/Kernel/Modules/QueuesPanel.pm b/Kernel/Modules/QueuesPanel.pm
deleted file mode 100755
index cdbbdcc..0000000
--- a/Kernel/Modules/QueuesPanel.pm
+++ /dev/null
@@ -1,71 +0,0 @@
-# --
-# Kernel/Modules/QueuesPanel.pm - frontend module for choosing top queues
-#
-# Copyright (C) SeTIC - UFSC - http://setic.ufsc.br/
-# Version 01/08/2015 - Support for OTRS 4.0.3
-#
-# --
-# 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.
-# --
-package Kernel::Modules::QueuesPanel;
-
-use strict;
-use warnings;
-
-use Kernel::System::VariableCheck qw(:all);
-
-our @ObjectDependencies = (
-"Kernel::System::Web::Request",
-"Kernel::System::DB",
-"Kernel::Output::HTML::Layout",
-"KerneL::System::Log",
-"Kernel::Config",
-"Kernel::System::Queue",
-"Kernel::System::QueuesPanel");
-
-sub new {
- my ( $Type, %Param ) = @_;
-
- # allocate new hash for object
- my $Self = {%Param};
- bless( $Self, $Type );
-
- return $Self;
-}
-
-sub Run {
- my ( $Self, %Param ) = @_;
- my %Data = ();
-
- my $ConfigObject = $Kernel::OM->Get("Kernel::Config");
- my $LayoutObject = $Kernel::OM->Get("Kernel::Output::HTML::Layout");
-
- $Self->{Config} = $ConfigObject->Get("Ticket::Frontend::Customer::QueuesPanel");
- my $msgChooseService = $Self->{Config}->{"MessageChooseQueue"};
- my $ignoreQueuesIDs = $Self->{Config}->{"IgnoreQueuesIDs"};
- my $customHeaderFooterID = $Self->{Config}->{"CustomHeaderFooterID"};
- my $extraQueues = $Self->{Config}->{"ExtraQueues"};
- my $URL = $Self->{Config}->{"NewTicketURL"};
- my $customJS = $Self->{Config}->{"CustomJS"};
-
- my $queuesPanelBuilder = $Kernel::OM->Get("Kernel::System::QueuesPanel");
-
- $Data{"CustomJS"} = $customJS;
- $Data{"QueueJS"} = $queuesPanelBuilder->BuildQueuesJS(IgnoreQueuesIDs => $ignoreQueuesIDs, ExtraQueues => $extraQueues, URL => $URL);
-
- $Data{MsgChooseQueue} = $msgChooseService;
-
- # build output
- my $Output = $LayoutObject->CustomerHeader( Type => $customHeaderFooterID, Title => $LayoutObject->{LanguageObject}->Translate("Queues panel") );
-
- $Output .= $LayoutObject->Output(
- Data => \%Data,
- TemplateFile => 'QueuesPanel',
- );
- $Output .= $LayoutObject->CustomerFooter(Type => $customHeaderFooterID);
- return $Output;
-}
-
-1;
diff --git a/Kernel/Modules/QueuesPanelPublic.pm b/Kernel/Modules/QueuesPanelPublic.pm
deleted file mode 100755
index 7cd6a09..0000000
--- a/Kernel/Modules/QueuesPanelPublic.pm
+++ /dev/null
@@ -1,91 +0,0 @@
-# --
-# Kernel/Modules/QueuesPanelPublic.pm - frontend module for choosing top queues
-#
-# Copyright (C) SeTIC - UFSC - http://setic.ufsc.br/
-# Version 01/12/2015 - Support for OTRS 4.0.3
-#
-# --
-# 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.
-# --
-package Kernel::Modules::QueuesPanelPublic;
-
-use strict;
-use warnings;
-
-use Kernel::System::VariableCheck qw(:all);
-
-our @ObjectDependencies = (
-"Kernel::System::Web::Request", # OLD ParamObject
-"Kernel::System::DB",
-"Kernel::Output::HTML::Layout",
-"KerneL::System::Log",
-"Kernel::Config",
-"Kernel::System::Queue",
-"Kernel::System::QueuesPanel");
-
-sub new {
- my ( $Type, %Param ) = @_;
-
- # allocate new hash for object
- my $Self = {%Param};
- bless( $Self, $Type );
-
- return $Self;
-}
-
-sub Run {
- my ( $Self, %Param ) = @_;
- my %Data = ();
-
- my $ParamObject = $Kernel::OM->Get("Kernel::System::Web::Request");
- my $LayoutObject = $Kernel::OM->Get("Kernel::Output::HTML::Layout");
- my $ConfigObject = $Kernel::OM->Get("Kernel::Config");
-
- ## Se recebeu o ticket, significa que usuario já está autenticado
- if ( $ParamObject->GetParam( Param => "ticket" ) ) {
- my $retorno = $LayoutObject->Redirect( OP => "Action=QueuesPanel", );
- $retorno =~ s/public/customer/g;
- return $retorno;
- }
-
- ## Se tiver parametro para tentar autenticar, repassa ao CAS com gateway
- if ( $ParamObject->GetParam( Param => "autenticar" ) ) {
- my $url =
- $ConfigObject->Get('Customer::AuthModule::CAS::CASUrl')
- . "/login?gateway=true&service="
- . "https://"
- . $ENV{SERVER_NAME}
- . $ENV{SCRIPT_NAME}
- . "?Action=QueuesPanelPublic";
- return $LayoutObject->Redirect( ExtURL => $url, );
- }
-
- $Self->{Config} = $Self->{ConfigObject}->Get("Ticket::Frontend::Customer::QueuesPanel");
- my $msgChooseService = $Self->{Config}->{"MessageChooseQueuePublic"};
- my $ignoreQueuesIDs = $Self->{Config}->{"IgnoreQueuesIDs"};
- my $customHeaderFooterID = $Self->{Config}->{"CustomHeaderFooterID"};
- my $extraQueues = $Self->{Config}->{"ExtraQueuesPublic"};
- my $URL = $Self->{Config}->{"NewTicketURLPublic"};
- my $customJS = $Self->{Config}->{"CustomJS"};
-
- my $queuesPanelBuilder = $Kernel::OM->Get("Kernel::System::QueuesPanel");
-
- $Data{"CustomJS"} = $customJS;
- $Data{"QueueJS"} = $queuesPanelBuilder->BuildQueuesJS(IgnoreQueuesIDs => $ignoreQueuesIDs, ExtraQueues => $extraQueues, URL => $URL);
- $Data{MsgChooseQueue} = $msgChooseService;
-
- # build output
- my $Output =
- $LayoutObject->CustomerHeader( Type => $customHeaderFooterID, Title => $LayoutObject->{LanguageObject}->Translate("New ticket") );
-
- $Output .= $LayoutObject->Output(
- Data => \%Data,
- TemplateFile => 'QueuesPanel',
- );
- $Output .= $LayoutObject->CustomerFooter(Type => $customHeaderFooterID);
- return $Output;
-}
-
-1;
diff --git a/Kernel/Output/HTML/Templates/Standard/CustomerFooterQPUFSC.tt b/Kernel/Output/HTML/Templates/Standard/CustomerFooterQPUFSC.tt
deleted file mode 100755
index cff9cf1..0000000
--- a/Kernel/Output/HTML/Templates/Standard/CustomerFooterQPUFSC.tt
+++ /dev/null
@@ -1,33 +0,0 @@
-# --
-# CustomerFooterQPUFSC.tt - Footer para Queues Panel na UFSC
-# Copyright (C) 2001-2014 OTRS AG, http://otrs.com/
-# --
-# 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.
-# --
-
-