package pf::UnifiedApi::Controller::Config::Provisionings;

=head1 NAME

pf::UnifiedApi::Controller::Config::Provisionings - 

=cut

=head1 DESCRIPTION

pf::UnifiedApi::Controller::Config::Provisionings



=cut

use strict;
use warnings;

use Mojo::Base qw(pf::UnifiedApi::Controller::Config::Subtype);
has 'config_store_class' => 'pf::ConfigStore::Provisioning';
has 'form_class' => 'pfappserver::Form::Config::Provisioning';
has 'primary_key' => 'provisioning_id';

use pf::ConfigStore::Provisioning;
use pfappserver::Form::Config::Provisioning;
use pfappserver::Form::Config::Provisioning::accept;
use pfappserver::Form::Config::Provisioning::airwatch;
use pfappserver::Form::Config::Provisioning::android;
use pfappserver::Form::Config::Provisioning::deny;
use pfappserver::Form::Config::Provisioning::dpsk;
use pfappserver::Form::Config::Provisioning::google_workspace_chromebook;
use pfappserver::Form::Config::Provisioning::intune;
use pfappserver::Form::Config::Provisioning::jamf;
use pfappserver::Form::Config::Provisioning::kandji;
use pfappserver::Form::Config::Provisioning::mobileconfig;
use pfappserver::Form::Config::Provisioning::mobileiron;
use pfappserver::Form::Config::Provisioning::sentinelone;
use pfappserver::Form::Config::Provisioning::windows;

our %TYPES_TO_FORMS = (
    map { $_ => "pfappserver::Form::Config::Provisioning::$_" } qw(
      accept
      airwatch
      android
      deny
      dpsk
      google_workspace_chromebook
      intune
      jamf
      kandji
      mobileconfig
      mobileiron
      sentinelone
      windows
    )
);

sub type_lookup {
    return \%TYPES_TO_FORMS;
}
 
=head2 fields_to_mask

fields_to_mask

=cut

sub fields_to_mask { qw(access_token refresh_token password passcode private_key applicationSecret access_token) }

=head1 AUTHOR

Inverse inc. <info@inverse.ca>

=head1 COPYRIGHT

Copyright (C) 2005-2023 Inverse inc.

=head1 LICENSE

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
USA.

=cut

1;
