From b34a7df2e11d0d498dc5ccc2ac626aa35c21a227 Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Mon, 11 Jul 2016 13:24:27 +0200 Subject: [PATCH] MT#21193 use Sipwise::Base in api modules which implies, among others, strict and warnings. these should never be omitted and are one of the most frequent complaints of perlcritic currently. as a result TryCatch can be removed (imported by Sipwise::Base). also, "no Moose" is removed (has no effect). Change-Id: I901b6a9f0f6d426f62b73e68f2c5ad6365c1eeef --- lib/NGCP/Panel/Controller/API/Admins.pm | 4 ++-- lib/NGCP/Panel/Controller/API/ApplyRewrites.pm | 6 +++--- lib/NGCP/Panel/Controller/API/AutoAttendants.pm | 6 +++--- lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BalanceIntervals.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BillingFees.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BillingFeesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BillingNetworks.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BillingProfiles.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BillingZones.pm | 6 +++--- lib/NGCP/Panel/Controller/API/BillingZonesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CCMapEntries.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CFDestinationSets.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CFMappings.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CFMappingsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CFTimeSets.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CallControls.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CallForwards.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CallForwardsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CallLists.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CallListsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Calls.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CallsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Contracts.pm | 6 +++--- lib/NGCP/Panel/Controller/API/ContractsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerBalances.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerContacts.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm | 5 +++-- lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm | 5 +++-- lib/NGCP/Panel/Controller/API/CustomerLocations.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerPreferences.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Customers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/CustomersItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm | 6 +++--- lib/NGCP/Panel/Controller/API/DomainPreferences.pm | 6 +++--- lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Domains.pm | 6 +++--- lib/NGCP/Panel/Controller/API/DomainsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/EmailTemplates.pm | 6 +++--- lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/FaxRecordings.pm | 6 +++--- lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Faxes.pm | 6 +++--- lib/NGCP/Panel/Controller/API/FaxesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/FaxserverSettings.pm | 6 +++--- lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Interceptions.pm | 6 +++--- lib/NGCP/Panel/Controller/API/InterceptionsItem.pm | 5 +++-- lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm | 6 +++--- lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Invoices.pm | 6 +++--- lib/NGCP/Panel/Controller/API/InvoicesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/LnpCarriers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/LnpNumbers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm | 5 +++-- lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm | 5 +++-- lib/NGCP/Panel/Controller/API/MaliciousCalls.pm | 6 +++--- lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/NcosLevels.pm | 6 +++--- lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/NcosPatterns.pm | 6 +++--- lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm | 6 +++--- .../Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceModelsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDevices.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PeeringGroups.pm | 7 +++---- lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm | 5 +++-- lib/NGCP/Panel/Controller/API/PeeringRules.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm | 6 +++--- .../Panel/Controller/API/PeeringServerPreferenceDefs.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm | 6 +++--- .../Panel/Controller/API/PeeringServerPreferencesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PeeringServers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/PeeringServersItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/ProfilePackages.pm | 6 +++--- lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm | 6 +++--- lib/NGCP/Panel/Controller/API/ProfilePreferences.pm | 6 +++--- lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Reminders.pm | 6 +++--- lib/NGCP/Panel/Controller/API/RemindersItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Resellers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/ResellersItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/RewriteRuleSets.pm | 6 +++--- lib/NGCP/Panel/Controller/API/RewriteRuleSetsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/RewriteRules.pm | 6 +++--- lib/NGCP/Panel/Controller/API/RewriteRulesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Root.pm | 7 +++---- lib/NGCP/Panel/Controller/API/RtcApps.pm | 5 +++-- lib/NGCP/Panel/Controller/API/RtcAppsItem.pm | 4 +++- lib/NGCP/Panel/Controller/API/RtcNetworks.pm | 5 +++-- lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm | 4 +++- lib/NGCP/Panel/Controller/API/RtcSessions.pm | 4 +++- lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm | 4 +++- lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SoundFiles.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SoundFilesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SoundHandles.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SoundSets.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SoundSetsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SpeedDials.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm | 6 +++--- .../Panel/Controller/API/SubscriberRegistrationsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Subscribers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SubscribersItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SystemContacts.pm | 6 +++--- lib/NGCP/Panel/Controller/API/SystemContactsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/TopupCash.pm | 6 +++--- lib/NGCP/Panel/Controller/API/TopupLogs.pm | 6 +++--- lib/NGCP/Panel/Controller/API/TopupLogsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/TopupVouchers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/TrustedSources.pm | 6 +++--- lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm | 6 +++--- lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/VoicemailSettings.pm | 6 +++--- lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Voicemails.pm | 6 +++--- lib/NGCP/Panel/Controller/API/VoicemailsItem.pm | 6 +++--- lib/NGCP/Panel/Controller/API/Vouchers.pm | 6 +++--- lib/NGCP/Panel/Controller/API/VouchersItem.pm | 6 +++--- lib/NGCP/Panel/Role/API.pm | 4 ++-- lib/NGCP/Panel/Role/API/Admins.pm | 4 +++- lib/NGCP/Panel/Role/API/ApplyRewrites.pm | 3 ++- lib/NGCP/Panel/Role/API/AutoAttendants.pm | 3 ++- lib/NGCP/Panel/Role/API/BalanceIntervals.pm | 3 ++- lib/NGCP/Panel/Role/API/BillingFees.pm | 3 ++- lib/NGCP/Panel/Role/API/BillingNetworks.pm | 3 ++- lib/NGCP/Panel/Role/API/BillingProfiles.pm | 3 ++- lib/NGCP/Panel/Role/API/BillingZones.pm | 3 ++- lib/NGCP/Panel/Role/API/CCMapEntries.pm | 3 ++- lib/NGCP/Panel/Role/API/CFDestinationSets.pm | 3 ++- lib/NGCP/Panel/Role/API/CFMappings.pm | 3 ++- lib/NGCP/Panel/Role/API/CFTimeSets.pm | 3 ++- lib/NGCP/Panel/Role/API/CallControls.pm | 3 ++- lib/NGCP/Panel/Role/API/CallForwards.pm | 3 ++- lib/NGCP/Panel/Role/API/CallLists.pm | 3 ++- lib/NGCP/Panel/Role/API/Calls.pm | 3 ++- lib/NGCP/Panel/Role/API/Contracts.pm | 3 ++- lib/NGCP/Panel/Role/API/CustomerBalances.pm | 3 ++- lib/NGCP/Panel/Role/API/CustomerContacts.pm | 3 ++- lib/NGCP/Panel/Role/API/CustomerFraudEvents.pm | 4 +++- lib/NGCP/Panel/Role/API/CustomerLocations.pm | 3 ++- lib/NGCP/Panel/Role/API/CustomerZoneCosts.pm | 3 ++- lib/NGCP/Panel/Role/API/Customers.pm | 3 ++- lib/NGCP/Panel/Role/API/Domains.pm | 4 ++-- lib/NGCP/Panel/Role/API/EmailTemplates.pm | 3 ++- lib/NGCP/Panel/Role/API/FaxRecordings.pm | 2 ++ lib/NGCP/Panel/Role/API/Faxes.pm | 5 +++-- lib/NGCP/Panel/Role/API/FaxserverSettings.pm | 3 ++- lib/NGCP/Panel/Role/API/Interceptions.pm | 3 ++- lib/NGCP/Panel/Role/API/InvoiceTemplates.pm | 3 ++- lib/NGCP/Panel/Role/API/Invoices.pm | 3 ++- lib/NGCP/Panel/Role/API/LnpCarriers.pm | 3 ++- lib/NGCP/Panel/Role/API/LnpNumbers.pm | 3 ++- lib/NGCP/Panel/Role/API/MailToFaxSettings.pm | 4 +++- lib/NGCP/Panel/Role/API/MaliciousCalls.pm | 3 ++- lib/NGCP/Panel/Role/API/NcosLevels.pm | 3 ++- lib/NGCP/Panel/Role/API/NcosLnpCarriers.pm | 3 ++- lib/NGCP/Panel/Role/API/NcosPatterns.pm | 3 ++- lib/NGCP/Panel/Role/API/PbxDeviceConfigs.pm | 3 ++- lib/NGCP/Panel/Role/API/PbxDeviceFirmwares.pm | 3 ++- lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm | 3 +++ lib/NGCP/Panel/Role/API/PbxDeviceModels.pm | 3 ++- lib/NGCP/Panel/Role/API/PbxDeviceProfiles.pm | 3 ++- lib/NGCP/Panel/Role/API/PbxDevices.pm | 3 ++- lib/NGCP/Panel/Role/API/PeeringGroups.pm | 3 ++- lib/NGCP/Panel/Role/API/PeeringRules.pm | 3 ++- lib/NGCP/Panel/Role/API/PeeringServers.pm | 3 ++- lib/NGCP/Panel/Role/API/Preferences.pm | 3 ++- lib/NGCP/Panel/Role/API/ProfilePackages.pm | 3 ++- lib/NGCP/Panel/Role/API/Reminders.pm | 3 ++- lib/NGCP/Panel/Role/API/Resellers.pm | 3 ++- lib/NGCP/Panel/Role/API/RewriteRuleSets.pm | 3 ++- lib/NGCP/Panel/Role/API/RewriteRules.pm | 3 ++- lib/NGCP/Panel/Role/API/RtcApps.pm | 4 +++- lib/NGCP/Panel/Role/API/RtcNetworks.pm | 4 +++- lib/NGCP/Panel/Role/API/RtcSessions.pm | 3 ++- lib/NGCP/Panel/Role/API/SoundFiles.pm | 3 ++- lib/NGCP/Panel/Role/API/SoundHandles.pm | 3 ++- lib/NGCP/Panel/Role/API/SoundSets.pm | 3 ++- lib/NGCP/Panel/Role/API/SpeedDials.pm | 3 ++- lib/NGCP/Panel/Role/API/SubscriberProfileSets.pm | 3 ++- lib/NGCP/Panel/Role/API/SubscriberProfiles.pm | 3 ++- lib/NGCP/Panel/Role/API/SubscriberRegistrations.pm | 3 ++- lib/NGCP/Panel/Role/API/Subscribers.pm | 3 ++- lib/NGCP/Panel/Role/API/SystemContacts.pm | 3 ++- lib/NGCP/Panel/Role/API/TopupLogs.pm | 3 ++- lib/NGCP/Panel/Role/API/TrustedSources.pm | 3 ++- lib/NGCP/Panel/Role/API/VoicemailRecordings.pm | 2 ++ lib/NGCP/Panel/Role/API/VoicemailSettings.pm | 3 ++- lib/NGCP/Panel/Role/API/Voicemails.pm | 3 ++- lib/NGCP/Panel/Role/API/Vouchers.pm | 3 ++- lib/NGCP/Panel/Role/Journal.pm | 2 ++ 234 files changed, 635 insertions(+), 540 deletions(-) diff --git a/lib/NGCP/Panel/Controller/API/Admins.pm b/lib/NGCP/Panel/Controller/API/Admins.pm index 1ecf97adc6..12a37d4599 100644 --- a/lib/NGCP/Panel/Controller/API/Admins.pm +++ b/lib/NGCP/Panel/Controller/API/Admins.pm @@ -1,12 +1,13 @@ package NGCP::Panel::Controller::API::Admins; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -210,7 +211,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm b/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm index f33338697e..1001f8d20a 100644 --- a/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm +++ b/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::ApplyRewrites; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -141,7 +142,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/AutoAttendants.pm b/lib/NGCP/Panel/Controller/API/AutoAttendants.pm index ac8bc55dcf..fdcfe672c7 100644 --- a/lib/NGCP/Panel/Controller/API/AutoAttendants.pm +++ b/lib/NGCP/Panel/Controller/API/AutoAttendants.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::AutoAttendants; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Subscriber; use NGCP::Panel::Utils::Preferences; @@ -139,7 +140,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm b/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm index b1bd0adc88..76636f22ad 100644 --- a/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm +++ b/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::AutoAttendantsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -207,7 +208,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm b/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm index 96bde2c06a..a54510793f 100644 --- a/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm +++ b/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::BalanceIntervals; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ProfilePackages qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -191,7 +192,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm b/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm index 66e152cfc0..5c741f0373 100644 --- a/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm +++ b/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Controller::API::BalanceIntervalsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -243,5 +244,4 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; diff --git a/lib/NGCP/Panel/Controller/API/BillingFees.pm b/lib/NGCP/Panel/Controller/API/BillingFees.pm index b534152da3..e9391376a8 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFees.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFees.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::BillingFees; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use NGCP::Panel::Utils::Billing; @@ -259,7 +260,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm b/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm index e3605c909b..e87aa09c0d 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::BillingFeesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -205,7 +206,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingNetworks.pm b/lib/NGCP/Panel/Controller/API/BillingNetworks.pm index f3d0074a7a..6b2a638655 100644 --- a/lib/NGCP/Panel/Controller/API/BillingNetworks.pm +++ b/lib/NGCP/Panel/Controller/API/BillingNetworks.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::BillingNetworks; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::Reseller qw(); use NGCP::Panel::Utils::BillingNetworks qw(); use Path::Tiny qw(path); @@ -229,7 +230,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm b/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm index c92a82de4a..3fce4970cc 100644 --- a/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::BillingNetworksItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::Reseller qw(); use Path::Tiny qw(path); @@ -231,7 +232,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm index 1100eae484..601b19e495 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::BillingProfiles; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Reseller qw(); use NGCP::Panel::Utils::Billing qw(); @@ -241,7 +242,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm b/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm index 9b3e94fc1f..85d3ba4b8a 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::BillingProfilesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -207,7 +208,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingZones.pm b/lib/NGCP/Panel/Controller/API/BillingZones.pm index afacf33cdc..26c172fab2 100644 --- a/lib/NGCP/Panel/Controller/API/BillingZones.pm +++ b/lib/NGCP/Panel/Controller/API/BillingZones.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::BillingZones; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); require Catalyst::ActionRole::ACL; @@ -219,7 +220,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm b/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm index b4c4e2044f..c218376544 100644 --- a/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::BillingZonesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -231,7 +232,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CCMapEntries.pm b/lib/NGCP/Panel/Controller/API/CCMapEntries.pm index c53c27ab59..939ecc05a4 100644 --- a/lib/NGCP/Panel/Controller/API/CCMapEntries.pm +++ b/lib/NGCP/Panel/Controller/API/CCMapEntries.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CCMapEntries; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -139,7 +140,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm b/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm index 457fd555df..48894a4efc 100644 --- a/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CCMapEntriesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -236,7 +237,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm b/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm index b46e31b73f..9228b61f02 100644 --- a/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CFDestinationSets; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; require Catalyst::ActionRole::ACL; require Catalyst::ActionRole::CheckTrailingSlash; @@ -253,7 +254,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm index 89f7a14754..7afa73c27f 100644 --- a/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CFDestinationSetsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -233,7 +234,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFMappings.pm b/lib/NGCP/Panel/Controller/API/CFMappings.pm index 298279fe83..06b77f5fdc 100644 --- a/lib/NGCP/Panel/Controller/API/CFMappings.pm +++ b/lib/NGCP/Panel/Controller/API/CFMappings.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CFMappings; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; require Catalyst::ActionRole::ACL; require Catalyst::ActionRole::CheckTrailingSlash; @@ -150,7 +151,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm b/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm index 7a6cf281bc..50d8c66d49 100644 --- a/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CFMappingsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -206,7 +207,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFTimeSets.pm b/lib/NGCP/Panel/Controller/API/CFTimeSets.pm index 9328b4596c..664d158eae 100644 --- a/lib/NGCP/Panel/Controller/API/CFTimeSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFTimeSets.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CFTimeSets; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; require Catalyst::ActionRole::ACL; require Catalyst::ActionRole::CheckTrailingSlash; @@ -236,7 +237,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm index 77d3809881..6503ee5189 100644 --- a/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CFTimeSetsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -233,7 +234,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallControls.pm b/lib/NGCP/Panel/Controller/API/CallControls.pm index 07df33833b..4292b1419f 100644 --- a/lib/NGCP/Panel/Controller/API/CallControls.pm +++ b/lib/NGCP/Panel/Controller/API/CallControls.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CallControls; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -140,7 +141,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallForwards.pm b/lib/NGCP/Panel/Controller/API/CallForwards.pm index a32423553b..7bc82ea027 100644 --- a/lib/NGCP/Panel/Controller/API/CallForwards.pm +++ b/lib/NGCP/Panel/Controller/API/CallForwards.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CallForwards; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -155,7 +156,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm b/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm index a804edf569..f8b40c9b80 100644 --- a/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CallForwardsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -243,7 +244,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallLists.pm b/lib/NGCP/Panel/Controller/API/CallLists.pm index 64f11b89d1..80feb1231d 100644 --- a/lib/NGCP/Panel/Controller/API/CallLists.pm +++ b/lib/NGCP/Panel/Controller/API/CallLists.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CallLists; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -326,6 +327,5 @@ sub end : Private { $self->log_response($c); return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallListsItem.pm b/lib/NGCP/Panel/Controller/API/CallListsItem.pm index aeafd083e7..d3d4ad1623 100644 --- a/lib/NGCP/Panel/Controller/API/CallListsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallListsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::CallListsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use DateTime::TimeZone; @@ -112,7 +113,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Calls.pm b/lib/NGCP/Panel/Controller/API/Calls.pm index a19eef0f0b..e6515fb478 100644 --- a/lib/NGCP/Panel/Controller/API/Calls.pm +++ b/lib/NGCP/Panel/Controller/API/Calls.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Controller::API::Calls; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); @@ -8,7 +10,6 @@ use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -170,7 +171,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallsItem.pm b/lib/NGCP/Panel/Controller/API/CallsItem.pm index 3640ed5514..e7131700b3 100644 --- a/lib/NGCP/Panel/Controller/API/CallsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::CallsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -98,7 +99,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Contracts.pm b/lib/NGCP/Panel/Controller/API/Contracts.pm index 9e75b495e4..999956aac8 100644 --- a/lib/NGCP/Panel/Controller/API/Contracts.pm +++ b/lib/NGCP/Panel/Controller/API/Contracts.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::Contracts; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Contract; use NGCP::Panel::Utils::ProfilePackages qw(); @@ -278,7 +279,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ContractsItem.pm b/lib/NGCP/Panel/Controller/API/ContractsItem.pm index 2e66e23bfb..de9a0c765d 100644 --- a/lib/NGCP/Panel/Controller/API/ContractsItem.pm +++ b/lib/NGCP/Panel/Controller/API/ContractsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::ContractsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Contract qw(); @@ -259,7 +260,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerBalances.pm b/lib/NGCP/Panel/Controller/API/CustomerBalances.pm index e442293886..bdff01d2d2 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerBalances.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerBalances.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerBalances; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ProfilePackages qw(); use Path::Tiny qw(path); @@ -209,7 +210,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm index 6527fb8c52..0c158780b0 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::CustomerBalancesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -210,7 +211,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerContacts.pm b/lib/NGCP/Panel/Controller/API/CustomerContacts.pm index 67b186f1b4..62ab2afa12 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerContacts.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerContacts.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerContacts; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -222,7 +223,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm index c2da3cfdbd..1d7f57db7b 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::CustomerContactsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -234,7 +235,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm index c93ace7416..8d72404c65 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm @@ -1,12 +1,14 @@ package NGCP::Panel::Controller::API::CustomerFraudEvents; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + #use namespace::sweep; use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use MooseX::ClassAttribute qw(class_has); use Path::Tiny qw(path); require Catalyst::ActionRole::ACL; require Catalyst::ActionRole::CheckTrailingSlash; @@ -149,7 +151,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm index 06c769b21b..aba6851ee2 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm @@ -1,8 +1,10 @@ package NGCP::Panel::Controller::API::CustomerFraudEventsItem; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use MooseX::ClassAttribute qw(class_has); use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -104,7 +106,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerLocations.pm b/lib/NGCP/Panel/Controller/API/CustomerLocations.pm index c149f9967a..264cdc5156 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerLocations.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerLocations.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerLocations; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ContractLocations qw(); use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -206,7 +207,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm index 56bc53e676..d09e9c9298 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerLocationsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::Reseller qw(); use Path::Tiny qw(path); @@ -226,7 +227,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm index f00643a1d9..078ae6160f 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerPreferenceDefs; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Preferences; use Path::Tiny qw(path); @@ -109,7 +110,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm index e45fff0d39..b62e7d18e9 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerPreferences; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -138,7 +139,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm index c13c6bc558..24140de4cd 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerPreferencesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -208,7 +209,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm b/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm index 09126f0b3b..bdedb9efee 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerZoneCosts; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; require Catalyst::ActionRole::ACL; require Catalyst::ActionRole::CheckTrailingSlash; @@ -165,7 +166,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm index a882d4462c..4f554aa256 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomerZoneCostsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -103,7 +104,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Customers.pm b/lib/NGCP/Panel/Controller/API/Customers.pm index d6809ab78a..0698f9ed03 100644 --- a/lib/NGCP/Panel/Controller/API/Customers.pm +++ b/lib/NGCP/Panel/Controller/API/Customers.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::Customers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Contract; use NGCP::Panel::Utils::ProfilePackages qw(); @@ -335,7 +336,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CustomersItem.pm b/lib/NGCP/Panel/Controller/API/CustomersItem.pm index 83764021e5..50112bb2be 100644 --- a/lib/NGCP/Panel/Controller/API/CustomersItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomersItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::CustomersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Contract qw(); @@ -257,7 +258,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm index 0f43456453..8e5b8420df 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::DomainPreferenceDefs; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Preferences; use Path::Tiny qw(path); @@ -109,7 +110,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferences.pm b/lib/NGCP/Panel/Controller/API/DomainPreferences.pm index ffe02d6c4a..e80c2bcf6b 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferences.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::DomainPreferences; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -129,7 +130,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm index 99559665fa..a3c85aad14 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::DomainPreferencesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -187,7 +188,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Domains.pm b/lib/NGCP/Panel/Controller/API/Domains.pm index d995cb065b..7ab7e5b656 100644 --- a/lib/NGCP/Panel/Controller/API/Domains.pm +++ b/lib/NGCP/Panel/Controller/API/Domains.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::Domains; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -250,7 +251,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/DomainsItem.pm b/lib/NGCP/Panel/Controller/API/DomainsItem.pm index a5d99acf05..60a3fb7e74 100644 --- a/lib/NGCP/Panel/Controller/API/DomainsItem.pm +++ b/lib/NGCP/Panel/Controller/API/DomainsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::DomainsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -165,7 +166,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/EmailTemplates.pm b/lib/NGCP/Panel/Controller/API/EmailTemplates.pm index 9f93ba0615..253165c6d4 100644 --- a/lib/NGCP/Panel/Controller/API/EmailTemplates.pm +++ b/lib/NGCP/Panel/Controller/API/EmailTemplates.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::EmailTemplates; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -196,7 +197,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm b/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm index d2cc7f13cb..5f8baea427 100644 --- a/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::EmailTemplatesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -206,7 +207,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxRecordings.pm b/lib/NGCP/Panel/Controller/API/FaxRecordings.pm index 087d3f31fe..aa9e9554bb 100644 --- a/lib/NGCP/Panel/Controller/API/FaxRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/FaxRecordings.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::FaxRecordings; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -77,7 +78,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm index 912a0839f4..cffa9642bc 100644 --- a/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::FaxRecordingsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -95,7 +96,6 @@ sub end : Private { #$self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Faxes.pm b/lib/NGCP/Panel/Controller/API/Faxes.pm index 41c487d790..61ab69870f 100644 --- a/lib/NGCP/Panel/Controller/API/Faxes.pm +++ b/lib/NGCP/Panel/Controller/API/Faxes.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Controller::API::Faxes; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); @@ -8,7 +10,6 @@ use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -210,7 +211,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxesItem.pm b/lib/NGCP/Panel/Controller/API/FaxesItem.pm index d5c565588f..8b22e53e34 100644 --- a/lib/NGCP/Panel/Controller/API/FaxesItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::FaxesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::Subscriber; @@ -119,7 +120,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm b/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm index a6334b81aa..f53e2a45b0 100644 --- a/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm +++ b/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::FaxserverSettings; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -171,7 +172,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm b/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm index 720da55ace..0b087764e7 100644 --- a/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::FaxserverSettingsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -208,7 +209,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Interceptions.pm b/lib/NGCP/Panel/Controller/API/Interceptions.pm index 300049f01d..ff77afc275 100644 --- a/lib/NGCP/Panel/Controller/API/Interceptions.pm +++ b/lib/NGCP/Panel/Controller/API/Interceptions.pm @@ -1,12 +1,13 @@ package NGCP::Panel::Controller::API::Interceptions; -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Interception; use Path::Tiny qw(path); @@ -256,7 +257,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm b/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm index 3cebb99c79..d63e4965b4 100644 --- a/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm +++ b/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm @@ -1,9 +1,11 @@ package NGCP::Panel::Controller::API::InterceptionsItem; + +use Sipwise::Base; no Moose; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::Interception; @@ -265,7 +267,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm b/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm index a7804eed88..2779c4b588 100644 --- a/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm +++ b/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::InvoiceTemplates; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -146,7 +147,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm b/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm index 7f06cd9967..c84187b914 100644 --- a/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm +++ b/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::InvoiceTemplatesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -98,7 +99,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Invoices.pm b/lib/NGCP/Panel/Controller/API/Invoices.pm index 8f0b52c292..fc429490a4 100644 --- a/lib/NGCP/Panel/Controller/API/Invoices.pm +++ b/lib/NGCP/Panel/Controller/API/Invoices.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::Invoices; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -192,7 +193,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/InvoicesItem.pm b/lib/NGCP/Panel/Controller/API/InvoicesItem.pm index 1fae8ab8ee..83c1e625e8 100644 --- a/lib/NGCP/Panel/Controller/API/InvoicesItem.pm +++ b/lib/NGCP/Panel/Controller/API/InvoicesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::InvoicesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -98,7 +99,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/LnpCarriers.pm b/lib/NGCP/Panel/Controller/API/LnpCarriers.pm index 170b0eb5ec..87ff71d047 100644 --- a/lib/NGCP/Panel/Controller/API/LnpCarriers.pm +++ b/lib/NGCP/Panel/Controller/API/LnpCarriers.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::LnpCarriers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Reseller qw(); use Path::Tiny qw(path); @@ -209,7 +210,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm b/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm index 07c235ee52..1fbe2cd17e 100644 --- a/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm +++ b/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::LnpCarriersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -204,7 +205,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/LnpNumbers.pm b/lib/NGCP/Panel/Controller/API/LnpNumbers.pm index c0342cd759..1b0edd41ce 100644 --- a/lib/NGCP/Panel/Controller/API/LnpNumbers.pm +++ b/lib/NGCP/Panel/Controller/API/LnpNumbers.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::LnpNumbers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -271,7 +272,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm b/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm index 4480f98b3f..053fe69768 100644 --- a/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm +++ b/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::LnpNumbersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -198,7 +199,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm b/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm index fa3188b1b5..6f9ca9ff2c 100644 --- a/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm +++ b/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Controller::API::MailToFaxSettings; use NGCP::Panel::Utils::Generic qw(:all); -use TryCatch; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); @@ -170,7 +172,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm b/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm index 502240e76a..91cf6dacaf 100644 --- a/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm @@ -1,7 +1,9 @@ package NGCP::Panel::Controller::API::MailToFaxSettingsItem; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + #use namespace::sweep; -use TryCatch; use boolean qw(true); @@ -237,7 +239,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm b/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm index c78930614a..83afb15cba 100644 --- a/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm +++ b/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::MaliciousCalls; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -150,7 +151,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm b/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm index 630cd907cf..7e9cf37686 100644 --- a/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm +++ b/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::MaliciousCallsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -115,7 +116,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosLevels.pm b/lib/NGCP/Panel/Controller/API/NcosLevels.pm index 746198aa64..a8897917e7 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLevels.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLevels.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::NcosLevels; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -196,7 +197,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm b/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm index b1c28f3ab9..19a978fd9d 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::NcosLevelsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -210,7 +211,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm b/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm index 2bc6c8bf80..9a755a7aa7 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::NcosLnpCarriers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -213,7 +214,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm b/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm index 11d372d2bd..825b94e91e 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::NcosLnpCarriersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -199,7 +200,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosPatterns.pm b/lib/NGCP/Panel/Controller/API/NcosPatterns.pm index 60b2167c8d..49681d8b7d 100644 --- a/lib/NGCP/Panel/Controller/API/NcosPatterns.pm +++ b/lib/NGCP/Panel/Controller/API/NcosPatterns.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::NcosPatterns; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -208,7 +209,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm b/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm index 1ebd15e00c..aea1b0ee5b 100644 --- a/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::NcosPatternsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -199,7 +200,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm index 791cdbbac7..6a6782c279 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceConfigFiles; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -82,7 +83,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm index 6cec04a86d..c34871f308 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::PbxDeviceConfigFilesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -92,7 +93,6 @@ sub end : Private { #$self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm index 2eed20e9b9..835e574f96 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceConfigs; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -225,7 +226,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm index fca5863f6f..dd7d8ae019 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::PbxDeviceConfigsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -159,7 +160,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm index ea99cfd35c..1354a3c94c 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceFirmwareBinaries; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -82,7 +83,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm index 5c41eb871b..4b4f278c43 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::PbxDeviceFirmwareBinariesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -92,7 +93,6 @@ sub end : Private { #$self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm index 1d8f37a6d8..5cdc7fb761 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceFirmwares; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -225,7 +226,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm index a38fd7d5d6..21dc7b6d2f 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::PbxDeviceFirmwaresItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -159,7 +160,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm index 030cbf8328..080fd78ef1 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceModelImages.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceModelImages; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -91,7 +92,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm index 99ee1c6b34..fe3b90529a 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceModelImagesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::PbxDeviceModelImagesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -106,7 +107,6 @@ sub end : Private { #$self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm index 895ead147a..ba2f3b896a 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceModels.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceModels; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use Data::Dumper; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::DeviceBootstrap; @@ -330,7 +331,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceModelsItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceModelsItem.pm index d1fe87d59a..ac11630d79 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceModelsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceModelsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceModelsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -220,7 +221,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm index 8e2b7671ab..6cf57fbc67 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceProfiles; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; require Catalyst::ActionRole::ACL; require Catalyst::ActionRole::CheckTrailingSlash; @@ -222,7 +223,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm index 9891f47daa..6e815eed2e 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDeviceProfilesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -212,7 +213,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDevices.pm b/lib/NGCP/Panel/Controller/API/PbxDevices.pm index ea22fbd146..b1b72b256b 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevices.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevices.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDevices; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::DeviceBootstrap; require Catalyst::ActionRole::ACL; @@ -288,7 +289,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm index 196af7d30e..bfb505377e 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PbxDevicesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -208,7 +209,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringGroups.pm b/lib/NGCP/Panel/Controller/API/PeeringGroups.pm index d6ffc88103..83928ec7ed 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringGroups.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringGroups.pm @@ -1,17 +1,17 @@ package NGCP::Panel::Controller::API::PeeringGroups; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); # -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Peering; use Path::Tiny qw(path); -use TryCatch; use Safe::Isa qw($_isa); use parent qw/Catalyst::Controller NGCP::Panel::Role::API::PeeringGroups/;#Catalyst::Controller require Catalyst::ActionRole::ACL; @@ -196,7 +196,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm b/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm index 0d73d18b91..c9c9724ba8 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm @@ -1,10 +1,12 @@ package NGCP::Panel::Controller::API::PeeringGroupsItem; + +use Sipwise::Base; + use NGCP::Panel::Utils::Generic qw(:all); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -192,7 +194,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringRules.pm b/lib/NGCP/Panel/Controller/API/PeeringRules.pm index ea27fa2809..f0838db5c9 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringRules.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringRules.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PeeringRules; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Peering; use Path::Tiny qw(path); @@ -217,7 +218,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm index 9b25ef8b56..fe192fe97c 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::PeeringRulesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -198,7 +199,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferenceDefs.pm index e10db3a861..d5e3392a63 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferenceDefs.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PeeringServerPreferenceDefs; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Preferences; use Path::Tiny qw(path); @@ -109,7 +110,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm index 9643c42d6b..9216c55da9 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PeeringServerPreferences; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -130,7 +131,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm index 3b6310c528..6ce840da28 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PeeringServerPreferencesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -214,7 +215,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringServers.pm b/lib/NGCP/Panel/Controller/API/PeeringServers.pm index 7788cf03b4..abc39fc793 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServers.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServers.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::PeeringServers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Peering; use Path::Tiny qw(path); @@ -236,7 +237,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm b/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm index 07f225561f..05c06df347 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::PeeringServersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -198,7 +199,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePackages.pm b/lib/NGCP/Panel/Controller/API/ProfilePackages.pm index 85aa2519be..01ba248fd4 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePackages.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePackages.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::ProfilePackages; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::Reseller qw(); use NGCP::Panel::Utils::ProfilePackages qw(); use Path::Tiny qw(path); @@ -248,7 +249,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm b/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm index 5c3444b49f..53fdaa6ada 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::ProfilePackagesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -233,7 +234,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm index 7af202373c..d14a74d28f 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::ProfilePreferenceDefs; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Preferences; use Path::Tiny qw(path); @@ -109,7 +110,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm index 26696eeacf..a54a19dcfc 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::ProfilePreferences; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -129,7 +130,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm index 5c56ac4d2c..ac96d6ceb2 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::ProfilePreferencesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -208,7 +209,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Reminders.pm b/lib/NGCP/Panel/Controller/API/Reminders.pm index 23519f4cb1..159afa5200 100644 --- a/lib/NGCP/Panel/Controller/API/Reminders.pm +++ b/lib/NGCP/Panel/Controller/API/Reminders.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::Reminders; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -224,7 +225,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RemindersItem.pm b/lib/NGCP/Panel/Controller/API/RemindersItem.pm index ee9dda482d..0850a986a2 100644 --- a/lib/NGCP/Panel/Controller/API/RemindersItem.pm +++ b/lib/NGCP/Panel/Controller/API/RemindersItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::RemindersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -225,7 +226,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Resellers.pm b/lib/NGCP/Panel/Controller/API/Resellers.pm index b4e9e30b87..ba1cb901f5 100644 --- a/lib/NGCP/Panel/Controller/API/Resellers.pm +++ b/lib/NGCP/Panel/Controller/API/Resellers.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Controller::API::Resellers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use JSON qw(); use boolean qw(true); use Data::HAL qw(); @@ -8,7 +10,6 @@ use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Reseller; use NGCP::Panel::Utils::Rtc; @@ -227,7 +228,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/ResellersItem.pm b/lib/NGCP/Panel/Controller/API/ResellersItem.pm index 07945d7cea..f23194e59a 100644 --- a/lib/NGCP/Panel/Controller/API/ResellersItem.pm +++ b/lib/NGCP/Panel/Controller/API/ResellersItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::ResellersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -205,7 +206,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RewriteRuleSets.pm b/lib/NGCP/Panel/Controller/API/RewriteRuleSets.pm index 724ea51a4b..a828820739 100644 --- a/lib/NGCP/Panel/Controller/API/RewriteRuleSets.pm +++ b/lib/NGCP/Panel/Controller/API/RewriteRuleSets.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::RewriteRuleSets; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Rewrite; use Path::Tiny qw(path); @@ -261,7 +262,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RewriteRuleSetsItem.pm b/lib/NGCP/Panel/Controller/API/RewriteRuleSetsItem.pm index 8e96854bdf..5283d9f42d 100644 --- a/lib/NGCP/Panel/Controller/API/RewriteRuleSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RewriteRuleSetsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::RewriteRuleSetsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Rewrite; @@ -212,7 +213,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RewriteRules.pm b/lib/NGCP/Panel/Controller/API/RewriteRules.pm index 75decc1b15..24cabf3486 100644 --- a/lib/NGCP/Panel/Controller/API/RewriteRules.pm +++ b/lib/NGCP/Panel/Controller/API/RewriteRules.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::RewriteRules; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Rewrite; require Catalyst::ActionRole::ACL; @@ -228,7 +229,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RewriteRulesItem.pm b/lib/NGCP/Panel/Controller/API/RewriteRulesItem.pm index 007d3d6848..c4075c7f2f 100644 --- a/lib/NGCP/Panel/Controller/API/RewriteRulesItem.pm +++ b/lib/NGCP/Panel/Controller/API/RewriteRulesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::RewriteRulesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Rewrite; @@ -211,7 +212,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Root.pm b/lib/NGCP/Panel/Controller/API/Root.pm index 7eb1074b3c..201b264193 100644 --- a/lib/NGCP/Panel/Controller/API/Root.pm +++ b/lib/NGCP/Panel/Controller/API/Root.pm @@ -1,16 +1,16 @@ package NGCP::Panel::Controller::API::Root; - use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use Encode qw(encode); use Clone qw/clone/; use HTTP::Headers qw(); use HTTP::Response qw(); use HTTP::Status qw(:constants); -use MooseX::ClassAttribute qw(class_has); use File::Find::Rule; use JSON qw(to_json); use Safe::Isa qw($_isa); -use TryCatch; use parent qw/Catalyst::Controller NGCP::Panel::Role::API/; require Catalyst::ActionRole::ACL; require Catalyst::ActionRole::CheckTrailingSlash; @@ -411,6 +411,5 @@ sub end : Private { return 1; } -no Moose; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcApps.pm b/lib/NGCP/Panel/Controller/API/RtcApps.pm index 612ddf6bb8..47190efc44 100644 --- a/lib/NGCP/Panel/Controller/API/RtcApps.pm +++ b/lib/NGCP/Panel/Controller/API/RtcApps.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Controller::API::RtcApps; use NGCP::Panel::Utils::Generic qw(:all); -use TryCatch; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); @@ -131,7 +133,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm b/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm index 63125afafe..78b3c8b426 100644 --- a/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm @@ -1,5 +1,8 @@ package NGCP::Panel::Controller::API::RtcAppsItem; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); @@ -229,7 +232,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcNetworks.pm b/lib/NGCP/Panel/Controller/API/RtcNetworks.pm index c1dafa0662..3c534b5449 100644 --- a/lib/NGCP/Panel/Controller/API/RtcNetworks.pm +++ b/lib/NGCP/Panel/Controller/API/RtcNetworks.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Controller::API::RtcNetworks; use NGCP::Panel::Utils::Generic qw(:all); -use TryCatch; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); @@ -131,7 +133,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm b/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm index 4a186181bf..54beb49c6d 100644 --- a/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm @@ -1,5 +1,8 @@ package NGCP::Panel::Controller::API::RtcNetworksItem; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); @@ -229,7 +232,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcSessions.pm b/lib/NGCP/Panel/Controller/API/RtcSessions.pm index 3c76ca4ab9..8d0496cc99 100644 --- a/lib/NGCP/Panel/Controller/API/RtcSessions.pm +++ b/lib/NGCP/Panel/Controller/API/RtcSessions.pm @@ -1,6 +1,9 @@ package NGCP::Panel::Controller::API::RtcSessions; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); @@ -189,7 +192,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm b/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm index 805521e601..edb7f47624 100644 --- a/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm @@ -1,6 +1,9 @@ package NGCP::Panel::Controller::API::RtcSessionsItem; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + + use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); @@ -116,7 +119,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm b/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm index 70fa18e064..c78dbabe67 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SoundFileRecordings; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -82,7 +83,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm index c81c487368..3b59e49991 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::SoundFileRecordingsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -98,7 +99,6 @@ sub end : Private { #$self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundFiles.pm b/lib/NGCP/Panel/Controller/API/SoundFiles.pm index caf2cb65a1..8778e1ae3c 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFiles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFiles.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SoundFiles; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -182,7 +183,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm b/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm index d6b64b2aa4..ac5d2d1cf7 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::SoundFilesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -166,7 +167,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundHandles.pm b/lib/NGCP/Panel/Controller/API/SoundHandles.pm index 71e10226da..8eaba7be29 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandles.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SoundHandles; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -148,7 +149,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm index a190a4dc62..d67bf79a3f 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::SoundHandlesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -98,7 +99,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundSets.pm b/lib/NGCP/Panel/Controller/API/SoundSets.pm index b09dacddb2..b8cfb9ccc5 100644 --- a/lib/NGCP/Panel/Controller/API/SoundSets.pm +++ b/lib/NGCP/Panel/Controller/API/SoundSets.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SoundSets; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -260,7 +261,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm b/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm index 016ed28369..d9d8f84c4a 100644 --- a/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::SoundSetsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -241,7 +242,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SpeedDials.pm b/lib/NGCP/Panel/Controller/API/SpeedDials.pm index 4b8c03db90..355a1efbb2 100644 --- a/lib/NGCP/Panel/Controller/API/SpeedDials.pm +++ b/lib/NGCP/Panel/Controller/API/SpeedDials.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SpeedDials; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Subscriber; use NGCP::Panel::Utils::Preferences; @@ -153,7 +154,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm b/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm index d07569fb9e..beb40ab5a6 100644 --- a/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SpeedDialsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); @@ -207,7 +208,6 @@ sub end : Private { return 1; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm index 5827349105..cb90caf90f 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SubscriberPreferenceDefs; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Preferences; use Path::Tiny qw(path); @@ -109,7 +110,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm index 46aaf4e8d3..79a7b07bb3 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SubscriberPreferences; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ProfilePackages qw(); use Path::Tiny qw(path); @@ -172,7 +173,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm index ebd7e02504..3caeb78d80 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SubscriberPreferencesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ProfilePackages qw(); @@ -224,7 +225,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm index 0ec72c3f5a..66ccfde9a4 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SubscriberProfileSets; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -220,7 +221,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm index 65308a839f..82a4f0d9be 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::SubscriberProfileSetsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -254,7 +255,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm index 85b36cba0e..1a0226c4a5 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SubscriberProfiles; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -258,7 +259,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm index 1ca594ae48..5392c49106 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::SubscriberProfilesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -248,7 +249,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm index 2fe2185566..e38840f7c3 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SubscriberRegistrations; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -190,6 +191,5 @@ sub end : Private { $self->log_response($c); } -no Moose; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm index 0f466d42aa..5befdd95cf 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::SubscriberRegistrationsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -199,7 +200,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Subscribers.pm b/lib/NGCP/Panel/Controller/API/Subscribers.pm index f577fad12a..fda353031a 100644 --- a/lib/NGCP/Panel/Controller/API/Subscribers.pm +++ b/lib/NGCP/Panel/Controller/API/Subscribers.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::Subscribers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::Subscriber; use NGCP::Panel::Utils::Preferences; @@ -443,7 +444,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SubscribersItem.pm b/lib/NGCP/Panel/Controller/API/SubscribersItem.pm index 4c0aa4a165..d966a517ff 100644 --- a/lib/NGCP/Panel/Controller/API/SubscribersItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscribersItem.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SubscribersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); use Clone qw/clone/; -use TryCatch; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ProfilePackages qw(); @@ -274,7 +275,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SystemContacts.pm b/lib/NGCP/Panel/Controller/API/SystemContacts.pm index 8a3ad82055..36d25ce3c0 100644 --- a/lib/NGCP/Panel/Controller/API/SystemContacts.pm +++ b/lib/NGCP/Panel/Controller/API/SystemContacts.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::SystemContacts; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -193,7 +194,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm b/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm index 78a4cae207..b3d4da633e 100644 --- a/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::SystemContactsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -233,7 +234,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/TopupCash.pm b/lib/NGCP/Panel/Controller/API/TopupCash.pm index c0320fc862..bcd1c95db3 100644 --- a/lib/NGCP/Panel/Controller/API/TopupCash.pm +++ b/lib/NGCP/Panel/Controller/API/TopupCash.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::TopupCash; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ProfilePackages; use NGCP::Panel::Utils::Voucher; @@ -179,7 +180,6 @@ sub get_form { return NGCP::Panel::Form::Topup::CashAPI->new(ctx => $c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/TopupLogs.pm b/lib/NGCP/Panel/Controller/API/TopupLogs.pm index 2cc40f60d9..2d678561be 100644 --- a/lib/NGCP/Panel/Controller/API/TopupLogs.pm +++ b/lib/NGCP/Panel/Controller/API/TopupLogs.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::TopupLogs; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; #use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -250,5 +251,4 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; diff --git a/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm b/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm index 47d2c32dcb..8ce8d1011d 100644 --- a/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm +++ b/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::TopupLogsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; #use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -98,7 +99,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/TopupVouchers.pm b/lib/NGCP/Panel/Controller/API/TopupVouchers.pm index daf3bd84bd..4cc09409d6 100644 --- a/lib/NGCP/Panel/Controller/API/TopupVouchers.pm +++ b/lib/NGCP/Panel/Controller/API/TopupVouchers.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::TopupVouchers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::Voucher; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ProfilePackages; @@ -181,7 +182,6 @@ sub get_form { return NGCP::Panel::Form::Topup::VoucherAPI->new(ctx => $c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/TrustedSources.pm b/lib/NGCP/Panel/Controller/API/TrustedSources.pm index 55832011b0..326ef0ce2f 100644 --- a/lib/NGCP/Panel/Controller/API/TrustedSources.pm +++ b/lib/NGCP/Panel/Controller/API/TrustedSources.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::TrustedSources; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -212,7 +213,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm b/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm index ee8fb00a7b..49dd3da2c0 100644 --- a/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm +++ b/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::TrustedSourcesItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -225,7 +226,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm b/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm index 61a44f4f3a..13e38ff921 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::VoicemailRecordings; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -77,7 +78,6 @@ sub end : Private { return; } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm index 118b5157a6..b6cafdc80d 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::VoicemailRecordingsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -90,6 +91,5 @@ sub end : Private { #$self->log_response($c); } -no Moose; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm b/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm index eb0e2d5c76..fc53b2e978 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::VoicemailSettings; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -150,7 +151,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm index 3337fa8ad8..a3d59202bf 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::VoicemailSettingsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -200,7 +201,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Voicemails.pm b/lib/NGCP/Panel/Controller/API/Voicemails.pm index 14ad966d5c..02d023b08a 100644 --- a/lib/NGCP/Panel/Controller/API/Voicemails.pm +++ b/lib/NGCP/Panel/Controller/API/Voicemails.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::Voicemails; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -158,7 +159,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm index 5e81fbc111..37446a0efa 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::VoicemailsItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use NGCP::Panel::Utils::Subscriber; @@ -200,7 +201,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/Vouchers.pm b/lib/NGCP/Panel/Controller/API/Vouchers.pm index 3cb3120215..1fd6b7c3a7 100644 --- a/lib/NGCP/Panel/Controller/API/Vouchers.pm +++ b/lib/NGCP/Panel/Controller/API/Vouchers.pm @@ -1,13 +1,14 @@ package NGCP::Panel::Controller::API::Vouchers; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use boolean qw(true); use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use Path::Tiny qw(path); use Safe::Isa qw($_isa); @@ -216,7 +217,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/VouchersItem.pm b/lib/NGCP/Panel/Controller/API/VouchersItem.pm index 15faade2a4..d22ac33d75 100644 --- a/lib/NGCP/Panel/Controller/API/VouchersItem.pm +++ b/lib/NGCP/Panel/Controller/API/VouchersItem.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Controller::API::VouchersItem; use NGCP::Panel::Utils::Generic qw(:all); -no Moose; + +use Sipwise::Base; + use HTTP::Headers qw(); use HTTP::Status qw(:constants); -use TryCatch; use NGCP::Panel::Utils::DateTime; use NGCP::Panel::Utils::ValidateJSON qw(); use Path::Tiny qw(path); @@ -212,7 +213,6 @@ sub end : Private { $self->log_response($c); } -no Moose; 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Role/API.pm b/lib/NGCP/Panel/Role/API.pm index 4558d9fb39..195c62033e 100644 --- a/lib/NGCP/Panel/Role/API.pm +++ b/lib/NGCP/Panel/Role/API.pm @@ -1,5 +1,6 @@ package NGCP::Panel::Role::API; -no Moose; + +use Sipwise::Base; use NGCP::Panel::Utils::Generic qw(:all); use boolean qw(true); @@ -10,7 +11,6 @@ use JSON::Pointer; use JSON::Pointer::Exception qw(); use HTTP::Status qw(:constants); use Scalar::Util qw/blessed/; -use TryCatch; use DateTime::Format::HTTP qw(); use DateTime::Format::RFC3339 qw(); use Types::Standard qw(InstanceOf); diff --git a/lib/NGCP/Panel/Role/API/Admins.pm b/lib/NGCP/Panel/Role/API/Admins.pm index 42469a4494..f969346c62 100644 --- a/lib/NGCP/Panel/Role/API/Admins.pm +++ b/lib/NGCP/Panel/Role/API/Admins.pm @@ -1,9 +1,11 @@ package NGCP::Panel::Role::API::Admins; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/ApplyRewrites.pm b/lib/NGCP/Panel/Role/API/ApplyRewrites.pm index 1009b9a76d..93e9f99fc8 100644 --- a/lib/NGCP/Panel/Role/API/ApplyRewrites.pm +++ b/lib/NGCP/Panel/Role/API/ApplyRewrites.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::ApplyRewrites; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/AutoAttendants.pm b/lib/NGCP/Panel/Role/API/AutoAttendants.pm index 5457ae38c4..62eea392e9 100644 --- a/lib/NGCP/Panel/Role/API/AutoAttendants.pm +++ b/lib/NGCP/Panel/Role/API/AutoAttendants.pm @@ -1,9 +1,10 @@ package NGCP::Panel::Role::API::AutoAttendants; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/BalanceIntervals.pm b/lib/NGCP/Panel/Role/API/BalanceIntervals.pm index e93d9d2a3d..732c5aa988 100644 --- a/lib/NGCP/Panel/Role/API/BalanceIntervals.pm +++ b/lib/NGCP/Panel/Role/API/BalanceIntervals.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::BalanceIntervals; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/BillingFees.pm b/lib/NGCP/Panel/Role/API/BillingFees.pm index 7133079562..df0a23cf50 100644 --- a/lib/NGCP/Panel/Role/API/BillingFees.pm +++ b/lib/NGCP/Panel/Role/API/BillingFees.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::BillingFees; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/BillingNetworks.pm b/lib/NGCP/Panel/Role/API/BillingNetworks.pm index d0b7d3d64e..8153cca8a8 100644 --- a/lib/NGCP/Panel/Role/API/BillingNetworks.pm +++ b/lib/NGCP/Panel/Role/API/BillingNetworks.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::BillingNetworks; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/BillingProfiles.pm b/lib/NGCP/Panel/Role/API/BillingProfiles.pm index 74b04d20c2..0931edb0e2 100644 --- a/lib/NGCP/Panel/Role/API/BillingProfiles.pm +++ b/lib/NGCP/Panel/Role/API/BillingProfiles.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::BillingProfiles; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/BillingZones.pm b/lib/NGCP/Panel/Role/API/BillingZones.pm index 8f81a4a590..a2d6d1fbfb 100644 --- a/lib/NGCP/Panel/Role/API/BillingZones.pm +++ b/lib/NGCP/Panel/Role/API/BillingZones.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::BillingZones; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CCMapEntries.pm b/lib/NGCP/Panel/Role/API/CCMapEntries.pm index e94faaee78..515434ebfd 100644 --- a/lib/NGCP/Panel/Role/API/CCMapEntries.pm +++ b/lib/NGCP/Panel/Role/API/CCMapEntries.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CCMapEntries; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CFDestinationSets.pm b/lib/NGCP/Panel/Role/API/CFDestinationSets.pm index aefece13a9..a10c6a8172 100644 --- a/lib/NGCP/Panel/Role/API/CFDestinationSets.pm +++ b/lib/NGCP/Panel/Role/API/CFDestinationSets.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CFDestinationSets; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CFMappings.pm b/lib/NGCP/Panel/Role/API/CFMappings.pm index 7e19a626f1..a2a596d4c0 100644 --- a/lib/NGCP/Panel/Role/API/CFMappings.pm +++ b/lib/NGCP/Panel/Role/API/CFMappings.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CFMappings; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CFTimeSets.pm b/lib/NGCP/Panel/Role/API/CFTimeSets.pm index 7209865544..d38a9bf694 100644 --- a/lib/NGCP/Panel/Role/API/CFTimeSets.pm +++ b/lib/NGCP/Panel/Role/API/CFTimeSets.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CFTimeSets; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CallControls.pm b/lib/NGCP/Panel/Role/API/CallControls.pm index ade7dc3c65..b84a27fb78 100644 --- a/lib/NGCP/Panel/Role/API/CallControls.pm +++ b/lib/NGCP/Panel/Role/API/CallControls.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CallControls; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CallForwards.pm b/lib/NGCP/Panel/Role/API/CallForwards.pm index 1e3b3cc72c..f9daa8da80 100644 --- a/lib/NGCP/Panel/Role/API/CallForwards.pm +++ b/lib/NGCP/Panel/Role/API/CallForwards.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CallForwards; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CallLists.pm b/lib/NGCP/Panel/Role/API/CallLists.pm index 8eac2b24df..42af795979 100644 --- a/lib/NGCP/Panel/Role/API/CallLists.pm +++ b/lib/NGCP/Panel/Role/API/CallLists.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CallLists; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Calls.pm b/lib/NGCP/Panel/Role/API/Calls.pm index f8e033c5bd..b1b7475327 100644 --- a/lib/NGCP/Panel/Role/API/Calls.pm +++ b/lib/NGCP/Panel/Role/API/Calls.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Calls; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Contracts.pm b/lib/NGCP/Panel/Role/API/Contracts.pm index eaf3cb8044..00a68d2382 100644 --- a/lib/NGCP/Panel/Role/API/Contracts.pm +++ b/lib/NGCP/Panel/Role/API/Contracts.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Contracts; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CustomerBalances.pm b/lib/NGCP/Panel/Role/API/CustomerBalances.pm index 2f8af3f09a..c03ae1017c 100644 --- a/lib/NGCP/Panel/Role/API/CustomerBalances.pm +++ b/lib/NGCP/Panel/Role/API/CustomerBalances.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CustomerBalances; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CustomerContacts.pm b/lib/NGCP/Panel/Role/API/CustomerContacts.pm index 23ee18d194..f433cc446a 100644 --- a/lib/NGCP/Panel/Role/API/CustomerContacts.pm +++ b/lib/NGCP/Panel/Role/API/CustomerContacts.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CustomerContacts; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CustomerFraudEvents.pm b/lib/NGCP/Panel/Role/API/CustomerFraudEvents.pm index 30875e920c..ebf1da3e42 100644 --- a/lib/NGCP/Panel/Role/API/CustomerFraudEvents.pm +++ b/lib/NGCP/Panel/Role/API/CustomerFraudEvents.pm @@ -1,8 +1,10 @@ package NGCP::Panel::Role::API::CustomerFraudEvents; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CustomerLocations.pm b/lib/NGCP/Panel/Role/API/CustomerLocations.pm index 463ae0df41..85f90a1662 100644 --- a/lib/NGCP/Panel/Role/API/CustomerLocations.pm +++ b/lib/NGCP/Panel/Role/API/CustomerLocations.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::CustomerLocations; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/CustomerZoneCosts.pm b/lib/NGCP/Panel/Role/API/CustomerZoneCosts.pm index 712bd95d31..a692272303 100644 --- a/lib/NGCP/Panel/Role/API/CustomerZoneCosts.pm +++ b/lib/NGCP/Panel/Role/API/CustomerZoneCosts.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Role::API::CustomerZoneCosts; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; @@ -10,7 +12,6 @@ use Data::HAL qw(); use DateTime::Format::Strptime; use HTTP::Status qw(:constants); use JSON::Types; -use TryCatch; use NGCP::Panel::Utils::Contract; sub datetime_format { diff --git a/lib/NGCP/Panel/Role/API/Customers.pm b/lib/NGCP/Panel/Role/API/Customers.pm index c795e0805a..e1ffeeab72 100644 --- a/lib/NGCP/Panel/Role/API/Customers.pm +++ b/lib/NGCP/Panel/Role/API/Customers.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Customers; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Domains.pm b/lib/NGCP/Panel/Role/API/Domains.pm index 4bf5423175..6b37e2cdf9 100644 --- a/lib/NGCP/Panel/Role/API/Domains.pm +++ b/lib/NGCP/Panel/Role/API/Domains.pm @@ -1,11 +1,11 @@ package NGCP::Panel::Role::API::Domains; use NGCP::Panel::Utils::Generic qw(:all); -use parent 'NGCP::Panel::Role::API'; +use Sipwise::Base; +use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/EmailTemplates.pm b/lib/NGCP/Panel/Role/API/EmailTemplates.pm index b1afc6b478..2e69b82adf 100644 --- a/lib/NGCP/Panel/Role/API/EmailTemplates.pm +++ b/lib/NGCP/Panel/Role/API/EmailTemplates.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::EmailTemplates; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/FaxRecordings.pm b/lib/NGCP/Panel/Role/API/FaxRecordings.pm index c30a8d6b3a..e8b5a89609 100644 --- a/lib/NGCP/Panel/Role/API/FaxRecordings.pm +++ b/lib/NGCP/Panel/Role/API/FaxRecordings.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Role::API::FaxRecordings; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; diff --git a/lib/NGCP/Panel/Role/API/Faxes.pm b/lib/NGCP/Panel/Role/API/Faxes.pm index a4a2f2c878..4ac35dc01b 100644 --- a/lib/NGCP/Panel/Role/API/Faxes.pm +++ b/lib/NGCP/Panel/Role/API/Faxes.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Faxes; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); @@ -73,7 +74,7 @@ sub resource_from_item { my %resource = (); $resource{id} = int($item->id); - $resource->{time} = $datetime_fmt->format_datetime($item->time); + $resource{time} = $datetime_fmt->format_datetime($item->time); $resource{subscriber_id} = int($item->provisioning_voip_subscriber->voip_subscriber->id); foreach(qw/direction caller callee reason status quality filename/){ $resource{$_} = $item->$_; diff --git a/lib/NGCP/Panel/Role/API/FaxserverSettings.pm b/lib/NGCP/Panel/Role/API/FaxserverSettings.pm index 460a8c7d03..e998672878 100644 --- a/lib/NGCP/Panel/Role/API/FaxserverSettings.pm +++ b/lib/NGCP/Panel/Role/API/FaxserverSettings.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::FaxserverSettings; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Interceptions.pm b/lib/NGCP/Panel/Role/API/Interceptions.pm index b378fc446a..a6081c7005 100644 --- a/lib/NGCP/Panel/Role/API/Interceptions.pm +++ b/lib/NGCP/Panel/Role/API/Interceptions.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Role::API::Interceptions; +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/InvoiceTemplates.pm b/lib/NGCP/Panel/Role/API/InvoiceTemplates.pm index d4fc47fe59..4b2631ee80 100644 --- a/lib/NGCP/Panel/Role/API/InvoiceTemplates.pm +++ b/lib/NGCP/Panel/Role/API/InvoiceTemplates.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::InvoiceTemplates; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Invoices.pm b/lib/NGCP/Panel/Role/API/Invoices.pm index 90b1ea88fb..90d74c16cb 100644 --- a/lib/NGCP/Panel/Role/API/Invoices.pm +++ b/lib/NGCP/Panel/Role/API/Invoices.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Invoices; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/LnpCarriers.pm b/lib/NGCP/Panel/Role/API/LnpCarriers.pm index cb21f9eea0..f0132b6ee8 100644 --- a/lib/NGCP/Panel/Role/API/LnpCarriers.pm +++ b/lib/NGCP/Panel/Role/API/LnpCarriers.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::LnpCarriers; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/LnpNumbers.pm b/lib/NGCP/Panel/Role/API/LnpNumbers.pm index 514a5130a9..4daa1c9ae5 100644 --- a/lib/NGCP/Panel/Role/API/LnpNumbers.pm +++ b/lib/NGCP/Panel/Role/API/LnpNumbers.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::LnpNumbers; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/MailToFaxSettings.pm b/lib/NGCP/Panel/Role/API/MailToFaxSettings.pm index 267d00928a..746a3cabfb 100644 --- a/lib/NGCP/Panel/Role/API/MailToFaxSettings.pm +++ b/lib/NGCP/Panel/Role/API/MailToFaxSettings.pm @@ -1,9 +1,11 @@ package NGCP::Panel::Role::API::MailToFaxSettings; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/MaliciousCalls.pm b/lib/NGCP/Panel/Role/API/MaliciousCalls.pm index b7c1fe24dd..03fe3a59b8 100644 --- a/lib/NGCP/Panel/Role/API/MaliciousCalls.pm +++ b/lib/NGCP/Panel/Role/API/MaliciousCalls.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::MaliciousCalls; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/NcosLevels.pm b/lib/NGCP/Panel/Role/API/NcosLevels.pm index d9a93cf7c8..5afb5960b3 100644 --- a/lib/NGCP/Panel/Role/API/NcosLevels.pm +++ b/lib/NGCP/Panel/Role/API/NcosLevels.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::NcosLevels; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/NcosLnpCarriers.pm b/lib/NGCP/Panel/Role/API/NcosLnpCarriers.pm index e19998d69c..9e5899d561 100644 --- a/lib/NGCP/Panel/Role/API/NcosLnpCarriers.pm +++ b/lib/NGCP/Panel/Role/API/NcosLnpCarriers.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::NcosLnpCarriers; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/NcosPatterns.pm b/lib/NGCP/Panel/Role/API/NcosPatterns.pm index cdeb8b65f1..e6928727ae 100644 --- a/lib/NGCP/Panel/Role/API/NcosPatterns.pm +++ b/lib/NGCP/Panel/Role/API/NcosPatterns.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::NcosPatterns; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/PbxDeviceConfigs.pm b/lib/NGCP/Panel/Role/API/PbxDeviceConfigs.pm index 78fac2f9ba..43c1e60257 100644 --- a/lib/NGCP/Panel/Role/API/PbxDeviceConfigs.pm +++ b/lib/NGCP/Panel/Role/API/PbxDeviceConfigs.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::PbxDeviceConfigs; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/PbxDeviceFirmwares.pm b/lib/NGCP/Panel/Role/API/PbxDeviceFirmwares.pm index a76e5fd4c2..c54d935abc 100644 --- a/lib/NGCP/Panel/Role/API/PbxDeviceFirmwares.pm +++ b/lib/NGCP/Panel/Role/API/PbxDeviceFirmwares.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::PbxDeviceFirmwares; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm b/lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm index e9390a6c2b..c62bbb2d34 100644 --- a/lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm +++ b/lib/NGCP/Panel/Role/API/PbxDeviceModelImages.pm @@ -1,5 +1,8 @@ package NGCP::Panel::Role::API::PbxDeviceModelImages; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; sub get_form { diff --git a/lib/NGCP/Panel/Role/API/PbxDeviceModels.pm b/lib/NGCP/Panel/Role/API/PbxDeviceModels.pm index fec7edb544..72f945c52b 100644 --- a/lib/NGCP/Panel/Role/API/PbxDeviceModels.pm +++ b/lib/NGCP/Panel/Role/API/PbxDeviceModels.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::PbxDeviceModels; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/PbxDeviceProfiles.pm b/lib/NGCP/Panel/Role/API/PbxDeviceProfiles.pm index b16c08b2f9..d37beabd4b 100644 --- a/lib/NGCP/Panel/Role/API/PbxDeviceProfiles.pm +++ b/lib/NGCP/Panel/Role/API/PbxDeviceProfiles.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::PbxDeviceProfiles; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/PbxDevices.pm b/lib/NGCP/Panel/Role/API/PbxDevices.pm index 3d902831e7..ac964186ed 100644 --- a/lib/NGCP/Panel/Role/API/PbxDevices.pm +++ b/lib/NGCP/Panel/Role/API/PbxDevices.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::PbxDevices; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/PeeringGroups.pm b/lib/NGCP/Panel/Role/API/PeeringGroups.pm index 1d0e861521..878f06655f 100644 --- a/lib/NGCP/Panel/Role/API/PeeringGroups.pm +++ b/lib/NGCP/Panel/Role/API/PeeringGroups.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Role::API::PeeringGroups; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/PeeringRules.pm b/lib/NGCP/Panel/Role/API/PeeringRules.pm index 4502b8dcb8..2939d68489 100644 --- a/lib/NGCP/Panel/Role/API/PeeringRules.pm +++ b/lib/NGCP/Panel/Role/API/PeeringRules.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::PeeringRules; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/PeeringServers.pm b/lib/NGCP/Panel/Role/API/PeeringServers.pm index 65a1e9d04c..5179f74e4a 100644 --- a/lib/NGCP/Panel/Role/API/PeeringServers.pm +++ b/lib/NGCP/Panel/Role/API/PeeringServers.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::PeeringServers; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Preferences.pm b/lib/NGCP/Panel/Role/API/Preferences.pm index f0bf677e90..96ed8023d3 100644 --- a/lib/NGCP/Panel/Role/API/Preferences.pm +++ b/lib/NGCP/Panel/Role/API/Preferences.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Preferences; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/ProfilePackages.pm b/lib/NGCP/Panel/Role/API/ProfilePackages.pm index 4ed2267cb2..fc46baeac2 100644 --- a/lib/NGCP/Panel/Role/API/ProfilePackages.pm +++ b/lib/NGCP/Panel/Role/API/ProfilePackages.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::ProfilePackages; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Reminders.pm b/lib/NGCP/Panel/Role/API/Reminders.pm index d4384d8413..3c011dc748 100644 --- a/lib/NGCP/Panel/Role/API/Reminders.pm +++ b/lib/NGCP/Panel/Role/API/Reminders.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Reminders; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Resellers.pm b/lib/NGCP/Panel/Role/API/Resellers.pm index a3a1f96fec..90caeffc11 100644 --- a/lib/NGCP/Panel/Role/API/Resellers.pm +++ b/lib/NGCP/Panel/Role/API/Resellers.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Resellers; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/RewriteRuleSets.pm b/lib/NGCP/Panel/Role/API/RewriteRuleSets.pm index 45ada505e1..96fe088045 100644 --- a/lib/NGCP/Panel/Role/API/RewriteRuleSets.pm +++ b/lib/NGCP/Panel/Role/API/RewriteRuleSets.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::RewriteRuleSets; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/RewriteRules.pm b/lib/NGCP/Panel/Role/API/RewriteRules.pm index 872215d53c..fc1c6486e2 100644 --- a/lib/NGCP/Panel/Role/API/RewriteRules.pm +++ b/lib/NGCP/Panel/Role/API/RewriteRules.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::RewriteRules; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/RtcApps.pm b/lib/NGCP/Panel/Role/API/RtcApps.pm index 399532ee13..0dbf37e9ba 100644 --- a/lib/NGCP/Panel/Role/API/RtcApps.pm +++ b/lib/NGCP/Panel/Role/API/RtcApps.pm @@ -1,8 +1,10 @@ package NGCP::Panel::Role::API::RtcApps; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/RtcNetworks.pm b/lib/NGCP/Panel/Role/API/RtcNetworks.pm index b8248c6e5c..faa4547e1c 100644 --- a/lib/NGCP/Panel/Role/API/RtcNetworks.pm +++ b/lib/NGCP/Panel/Role/API/RtcNetworks.pm @@ -1,8 +1,10 @@ package NGCP::Panel::Role::API::RtcNetworks; use NGCP::Panel::Utils::Generic qw(:all); + +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/RtcSessions.pm b/lib/NGCP/Panel/Role/API/RtcSessions.pm index 390f58e3cc..03c91f373b 100644 --- a/lib/NGCP/Panel/Role/API/RtcSessions.pm +++ b/lib/NGCP/Panel/Role/API/RtcSessions.pm @@ -1,10 +1,11 @@ package NGCP::Panel::Role::API::RtcSessions; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/SoundFiles.pm b/lib/NGCP/Panel/Role/API/SoundFiles.pm index 21bd27f168..901a4c835b 100644 --- a/lib/NGCP/Panel/Role/API/SoundFiles.pm +++ b/lib/NGCP/Panel/Role/API/SoundFiles.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::SoundFiles; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/SoundHandles.pm b/lib/NGCP/Panel/Role/API/SoundHandles.pm index f2d7c9a18c..7352a3f517 100644 --- a/lib/NGCP/Panel/Role/API/SoundHandles.pm +++ b/lib/NGCP/Panel/Role/API/SoundHandles.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::SoundHandles; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/SoundSets.pm b/lib/NGCP/Panel/Role/API/SoundSets.pm index 40d3a155c0..0dea5f187c 100644 --- a/lib/NGCP/Panel/Role/API/SoundSets.pm +++ b/lib/NGCP/Panel/Role/API/SoundSets.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::SoundSets; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/SpeedDials.pm b/lib/NGCP/Panel/Role/API/SpeedDials.pm index 05a0b86c2f..d89e3a7855 100644 --- a/lib/NGCP/Panel/Role/API/SpeedDials.pm +++ b/lib/NGCP/Panel/Role/API/SpeedDials.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::SpeedDials; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/SubscriberProfileSets.pm b/lib/NGCP/Panel/Role/API/SubscriberProfileSets.pm index 679c13ab36..b8aa3eef46 100644 --- a/lib/NGCP/Panel/Role/API/SubscriberProfileSets.pm +++ b/lib/NGCP/Panel/Role/API/SubscriberProfileSets.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::SubscriberProfileSets; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/SubscriberProfiles.pm b/lib/NGCP/Panel/Role/API/SubscriberProfiles.pm index ecaf50bd49..a78de62f28 100644 --- a/lib/NGCP/Panel/Role/API/SubscriberProfiles.pm +++ b/lib/NGCP/Panel/Role/API/SubscriberProfiles.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::SubscriberProfiles; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/SubscriberRegistrations.pm b/lib/NGCP/Panel/Role/API/SubscriberRegistrations.pm index e9de547c01..c82aceb354 100644 --- a/lib/NGCP/Panel/Role/API/SubscriberRegistrations.pm +++ b/lib/NGCP/Panel/Role/API/SubscriberRegistrations.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::SubscriberRegistrations; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Subscribers.pm b/lib/NGCP/Panel/Role/API/Subscribers.pm index 794eae8c30..d4c8ac24d3 100644 --- a/lib/NGCP/Panel/Role/API/Subscribers.pm +++ b/lib/NGCP/Panel/Role/API/Subscribers.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Subscribers; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/SystemContacts.pm b/lib/NGCP/Panel/Role/API/SystemContacts.pm index 72ec5bb3ea..0d337d7ed5 100644 --- a/lib/NGCP/Panel/Role/API/SystemContacts.pm +++ b/lib/NGCP/Panel/Role/API/SystemContacts.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::SystemContacts; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/TopupLogs.pm b/lib/NGCP/Panel/Role/API/TopupLogs.pm index aa5214971c..9ac7b93e86 100644 --- a/lib/NGCP/Panel/Role/API/TopupLogs.pm +++ b/lib/NGCP/Panel/Role/API/TopupLogs.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::TopupLogs; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/TrustedSources.pm b/lib/NGCP/Panel/Role/API/TrustedSources.pm index f80af23756..68fb6f7010 100644 --- a/lib/NGCP/Panel/Role/API/TrustedSources.pm +++ b/lib/NGCP/Panel/Role/API/TrustedSources.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::TrustedSources; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/VoicemailRecordings.pm b/lib/NGCP/Panel/Role/API/VoicemailRecordings.pm index cbfed8a79e..b26b97c0ea 100644 --- a/lib/NGCP/Panel/Role/API/VoicemailRecordings.pm +++ b/lib/NGCP/Panel/Role/API/VoicemailRecordings.pm @@ -1,6 +1,8 @@ package NGCP::Panel::Role::API::VoicemailRecordings; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; diff --git a/lib/NGCP/Panel/Role/API/VoicemailSettings.pm b/lib/NGCP/Panel/Role/API/VoicemailSettings.pm index f3802a4465..f43e81a431 100644 --- a/lib/NGCP/Panel/Role/API/VoicemailSettings.pm +++ b/lib/NGCP/Panel/Role/API/VoicemailSettings.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::VoicemailSettings; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Voicemails.pm b/lib/NGCP/Panel/Role/API/Voicemails.pm index 16f6705e16..53e01888b7 100644 --- a/lib/NGCP/Panel/Role/API/Voicemails.pm +++ b/lib/NGCP/Panel/Role/API/Voicemails.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Voicemails; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/API/Vouchers.pm b/lib/NGCP/Panel/Role/API/Vouchers.pm index e215a3a59d..ffc9bdf8e4 100644 --- a/lib/NGCP/Panel/Role/API/Vouchers.pm +++ b/lib/NGCP/Panel/Role/API/Vouchers.pm @@ -1,11 +1,12 @@ package NGCP::Panel::Role::API::Vouchers; use NGCP::Panel::Utils::Generic qw(:all); +use Sipwise::Base; + use parent 'NGCP::Panel::Role::API'; use boolean qw(true); -use TryCatch; use Data::HAL qw(); use Data::HAL::Link qw(); use HTTP::Status qw(:constants); diff --git a/lib/NGCP/Panel/Role/Journal.pm b/lib/NGCP/Panel/Role/Journal.pm index 353f1b5e72..5c37b5405d 100644 --- a/lib/NGCP/Panel/Role/Journal.pm +++ b/lib/NGCP/Panel/Role/Journal.pm @@ -1,5 +1,7 @@ package NGCP::Panel::Role::Journal; +use Sipwise::Base; + use NGCP::Panel::Utils::Journal; sub add_create_journal_item_hal {