ComplianceDiagnosticMIP.psm1

Import-Module "$PSScriptRoot\ComplianceDiagnosticUtils.psm1"

function Confirm-MipLabelCommandsPresent {
    # Check if MIP Label Commands are present
    $command = Get-Command Get-Label -ErrorAction SilentlyContinue
    if ($command -eq $null) {
        return $false
    }
    
    $command = Get-Command Get-LabelPolicy -ErrorAction SilentlyContinue
    if ($command -eq $null) {
        return $false
    }
    
    return $true
}

function Initialize-MipTab{
    $global:MipControlVariables.fileData = $null
}

function Get-MIPLabelTabContent ($TabObject){
    [Parameter(Mandatory=$true)]
    [Windows.Controls.TabItem] $TabObject

    $GetLabelPolicyButton = Get-Button -ButtonName "Analyze User Policy Configs"

    $GetUserLabelButton = Get-Button -ButtonName "Analyze User Label" -Margin "10,50,10,10"

    $GetUserPolicyButton = Get-Button -ButtonName "Analyze User Policies" -Margin "10,50,10,10"

    $mipPanelGrid = New-Object Windows.Controls.Grid
    $mipLabelTopTabControl = Get-TopTabControl
    $mipPanelGrid.Children.Add($mipLabelTopTabControl.TopTabControl) > $null
    
    $global:ContextScopeVariables.mipLabelsOutput = New-Object Windows.Controls.StackPanel

    $outputPanelTemplate = Get-TemplateGrid

    $outputPanelTemplate.Column1.Children.Add($GetLabelPolicyButton) > $null

    $outputPanelTemplate.Column1.Children.Add($GetUserLabelButton) > $null

    $outputPanelTemplate.Column1.Children.Add($GetUserPolicyButton) > $null

    $MipLabelsDiagnosticTabContent = New-Object Windows.Controls.StackPanel
    $MipLabelsDiagnosticTabContent.HorizontalAlignment = [Windows.HorizontalAlignment]::Center
    $MipLabelsDiagnosticTabContent.VerticalAlignment = [Windows.VerticalAlignment]::Top
    $MipLabelsDiagnosticTabContent.Margin = New-Object Windows.Thickness 0, 70, 0, 0 
    $MipLabelsDiagnosticTabContent.Children.Add($global:ContextScopeVariables.mipLabelsOutput) > $null

    $scrollViewer = New-Object Windows.Controls.ScrollViewer
    $scrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $scrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $outputPanelTemplate.Column2.Children.Add($MipLabelsDiagnosticTabContent) > $null
    $scrollViewer.Content = $outputPanelTemplate.Grid
    # $mipLabelTopTabControl.DiagnosticsTabItem.Content = $scrollViewer
    
    # NOTE: The variables that we use in event functions will be null if they are passed as local scope
    $GetLabelPolicyButton.Add_Click({    
        Show-AnalyzeMIPPanel -mipLabelsOutput $global:ContextScopeVariables.mipLabelsOutput -inputParam "PolicyConfig" 
    })
   
    $GetUserLabelButton.Add_Click({    
        Show-AnalyzeMIPPanel -mipLabelsOutput $global:ContextScopeVariables.mipLabelsOutput -inputParam "User Label" 
    })

    $GetUserPolicyButton.Add_Click({    
        Show-AnalyzeMIPPanel -mipLabelsOutput $global:ContextScopeVariables.mipLabelsOutput -inputParam "User Policy" 
    })
    
    
    # Collect diagnostic data from user
    $global:MipControlVariables.MipLabelsSupportDataTabContent = New-Object Windows.Controls.StackPanel
    $global:MipControlVariables.MipLabelsSupportDataTabContent.HorizontalAlignment = [Windows.HorizontalAlignment]::Center


    $SupportPanelTemplate = Get-TemplateGrid

    $MipLabelDiagButton = Get-Button -ButtonName "MIP Labels" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left"
    $SupportPanelTemplate.Column1.Children.Add($MipLabelDiagButton) > $null

     # Define Gather Support data in a table format and pinning all the Controlds to Table Grid$tableGrid = New-Object System.Windows.Controls.Grid
    $tableGrid = Get-Table -columns 4 -rows 7

    $AffectedClientLabel = Show-Text -Text "Affected Client" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 1 -Control $AffectedClientLabel


    $AffectedClientCombo = @('Outlook For Web','Outlook Windows application', 'Word Online', 'Excel Online', 'Power Point Online', 'Word Application', 'Excel Application','Power Point Application', 'MIP SDK')
    $global:MipControlVariables.AffectedClientCombobox = Get-ComboBox  -Margin "0,5,10,5" -Width 400 -HorizontalAlignment "Left"
    $global:MipControlVariables.AffectedClientCombobox.ItemsSource = $AffectedClientCombo
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $global:MipControlVariables.AffectedClientCombobox

    $ImpactedUserLabel = Show-Text -Text "Impacted User" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 1 -Control $ImpactedUserLabel

    $global:MipControlVariables.ImpactedUserTextBox = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $global:MipControlVariables.ImpactedUserTextBox
        
    $dateTimeLabel = Show-Text -Text "Date & Time of issue (UTC)" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 1 -Control $dateTimeLabel

    $dateTimeButton = Get-Button -ButtonName "Select date & Time" -Margin "0,0,10,0" -HorizontalAlignment "Left" -height 30 -width 220
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 2 -Control $dateTimeButton

    $global:ContextScopeVariables["MipLabelsDateTimeLabel"] = Show-Text -Text "UTC Date Time" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 3 -Control $global:ContextScopeVariables["MipLabelsDateTimeLabel"]
    
    $dateTimeButton.Add_Click({
        $global:ContextScopeVariables.DateTimeProp = "MipLabelsDateTime"
        $global:ContextScopeVariables["MipLabelsDateTime"] = ""
        Get-DateTimePickerDialog 
    })
    
    $ImpactedLabel = Show-Text -Text "Impacted Label" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 1 -Control $ImpactedLabel

    GetGlobalLabelPol
   
    $global:MipControlVariables.ImpactedLabelCombobox = Get-ComboBox -Margin "0,0,10,0" -Width 400 -HorizontalAlignment "Left"
    $global:MipControlVariables.ImpactedLabelCombobox.ItemsSource = $global:ContextScopeVariables.labelDropDown
    #$global:MipControlVariables.ImpactedLabelCombobox.SelectionMode = "Multiple"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $global:MipControlVariables.ImpactedLabelCombobox

    $scopedLabelPolicyLabel = Show-Text -Text "Scoped Label Policy" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 1 -Control $scopedLabelPolicyLabel

    $global:MipControlVariables.scopedLabelPolicyCombobox = Get-ComboBox -Margin "0,0,10,0" -Width 400 -HorizontalAlignment "Left"
    $global:MipControlVariables.scopedLabelPolicyCombobox.ItemsSource = $global:ContextScopeVariables.labelpolicyDropDown
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 2 -Control $global:MipControlVariables.scopedLabelPolicyCombobox

    $BrowseAttachLabel = Show-Text -Text "Attach Screenshot/ PSR/ Fiddler Trace" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 1 -Control $BrowseAttachLabel

    $BrowseAttachButton = Get-FileButton `
        -GlobalScopeName "MipControlVariables" `
        -GlobalVariableName "BrowsedFileLabel" `
        -GlobalFileListName "fileData" `
        -ButtonName "Browse Supporting Files" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 2 -Control $BrowseAttachButton

    $global:MipControlVariables.BrowsedFileLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    $mipFilesScrollViewer = New-Object Windows.Controls.ScrollViewer
    $mipFilesScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $mipFilesScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $mipFilesScrollViewer.Content = $global:MipControlVariables.BrowsedFileLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 6 -column 2 -Control $mipFilesScrollViewer

    $tableGrid.Margin = New-Object System.Windows.Thickness(10,30,10,10)
    $tableGrid.HorizontalAlignment = "Center"

    $global:MipControlVariables.MipLabelsSupportDataTabContent.Children.Add($tableGrid) > $null

    $SupportPanelTemplate.Column2.Children.Add($global:MipControlVariables.MipLabelsSupportDataTabContent ) > $null

    $DiagscrollViewer = New-Object Windows.Controls.ScrollViewer
    $DiagscrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $DiagscrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $DiagscrollViewer.Content = $SupportPanelTemplate.Grid
    $mipLabelTopTabControl.GatherSupportDataTabItem.Content = $DiagscrollViewer

    $global:MipControlVariables.MipLabelsSupportDataTabContent.Visibility = "hidden"

    $MipLabelDiagButton.Add_Click({
        Initialize-MipTab
        $global:MipControlVariables.MipLabelsSupportDataTabContent.Visibility = "visible"
    })
    
    $GetLabelPolicyExport = Get-Button -ButtonName "Export Support Data" 
    $GetLabelPolicyExport.Margin = New-Object System.Windows.Thickness(10,50,10,10)
    $global:MipControlVariables.MipLabelsSupportDataTabContent.Children.Add($GetLabelPolicyExport) > $null
    
    $GetLabelPolicyExport.Add_Click({
    
        # Create a new SaveFileDialog object
        $Folder = Get-ExportFolder("ExportedMIPData")
        if (!$Folder) {
            return
        }
        $filePath = $Folder + "\"+"MIPLabelPolicyExport.xmla"
        
        $supportData=@{}
        $supportData["Policies"] = $global:ContextScopeVariables.labelpolicy
        $supportData["Labels"] = $global:ContextScopeVariables.Labels
        $supportData["ImpactedClient"] = $global:MipControlVariables.AffectedClientCombobox.Text
        $supportData["ImpactedUser"] = $global:MipControlVariables.ImpactedUserTextBox.Text
        $supportData["ImpactedLabel"] = $global:MipControlVariables.ImpactedLabelCombobox.Text
        $supportData["ScopedLabelPolicy"] = $global:MipControlVariables.scopedLabelPolicyCombobox.Text
        $supportData["DateTime"] = $global:ContextScopeVariables["MipLabelsDateTime"]

        try {
            # Copy the files to the destination folder
            $supportData["SupportingFiles"] = Get-FileName($global:MipControlVariables.fileData)
            foreach ($file in $global:MipControlVariables.fileData) {
                # $destinationFile = Join-Path $zipFilePath (Split-Path $file -Leaf)
                Copy-Item $file $Folder -Force
            }

            # Save the object as an XMLA file
          # $supportData | Export-Clixml -Path $filePath

            CleanAndShowFolder -Folder $Folder -supportData $supportData -filePath $filePath
        }
        catch {
            [System.Windows.MessageBox]::Show("Failed to create zip file. Error message: $_", "Error", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
        }
    })
    $TabObject.Content = $mipPanelGrid
}

function GetGlobalLabelPol {
    [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Wait)
    Write-Host "Getting sensitivity labels in your organization."
    $labels = Get-Label
    if ($labels -ne $null)
    {
        $labels | ForEach-Object { $_.ObjectCategory = $_.DisplayName } 
        $labels | Where-Object {$_.ParentLabelDisplayName} | ForEach-Object { $_.ObjectCategory = $_.ParentLabelDisplayName+" - "+$_.DisplayName }
        $labels | Foreach-Object { Add-Member -InputObject $_ -MemberType NoteProperty -Name "EffectiveDisplayName" -Value $_.ObjectCategory -Force}
        $global:ContextScopeVariables.Labels = $labels
        if ($global:ContextScopeVariables.Labels.GetType().Name -eq "PSObject")
        {
            $global:ContextScopeVariables.labelDropDown = @( $global:ContextScopeVariables.Labels.EffectiveDisplayName )
        }
        else
        {
            $global:ContextScopeVariables.labelDropDown = $global:ContextScopeVariables.Labels.EffectiveDisplayName
        }
    }
    
    Write-Host "Getting sensitivity label policies in your organization."
    $global:ContextScopeVariables.labelpolicy = Get-LabelPolicy -WarningAction SilentlyContinue
    if ($global:ContextScopeVariables.labelpolicy -ne $null)
    {
        if ($global:ContextScopeVariables.labelpolicy.GetType().Name -eq "PSObject")
        {
            $global:ContextScopeVariables.labelpolicyDropDown = @( $global:ContextScopeVariables.labelpolicy.Name )
        }
        else
        {
            $global:ContextScopeVariables.labelpolicyDropDown = $global:ContextScopeVariables.labelpolicy.Name
        }
    }
    
    [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Arrow)
    return $global:ContextScopeVariables.Labels,$global:ContextScopeVariables.labelpolicy
}

function Show-AnalyzeMIPPanel($mipLabelsOutput,$inputParam){    
    [Parameter(Mandatory=$true)]
    [Windows.Controls.StackPanel] $mipLabelsOutput
    [Parameter(Mandatory=$true)]
    [string] $inputParam

    $textBoxControl = Get-TextCollectionControl -butttonName "Fetch User Configs" -labelText "Enter User Email ID"

    $mipLabelsOutput.Children.Clear()
    $mipLabelsOutput.Children.Add($textBoxControl.control) > $null
    $global:ContextScopeVariables.mipLabelTextBox = $textBoxControl.textBox
    $global:ContextScopeVariables.inputparam = $inputParam
    $textBoxControl.button.height = 25
    $textBoxControl.button.Add_Click({    
        GetLabelPolicy -mipLabelsOutput $global:ContextScopeVariables.mipLabelsOutput -UserEmailID $global:ContextScopeVariables.mipLabelTextBox.Text -inputparam $global:ContextScopeVariables.inputparam
    })
}

Export-ModuleMember -Function *

# SIG # Begin signature block
# MIIoPgYJKoZIhvcNAQcCoIIoLzCCKCsCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDB+GxPicqG/MoI
# QF3AuRBDThG7XNCcF1no1oH+P89ikKCCDYUwggYDMIID66ADAgECAhMzAAADri01
# UchTj1UdAAAAAAOuMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH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