ComplianceDiagnosticDataClassification.psm1

Import-Module "$PSScriptRoot\ComplianceDiagnosticUtils.psm1"


#region Classification
function Confirm-ClassificationCommandsPresent {
    # Check if Classification Commands are present
    $command = Get-Command Get-DlpSensitiveInformationType -ErrorAction SilentlyContinue
    if ($command -eq $null) {
        return $false
    }
    
    $command = Get-Command Get-DlpSensitiveInformationTypeRulePackage -ErrorAction SilentlyContinue
    if ($command -eq $null) {
        return $false
    }
    
    $command = Get-Command Get-DlpKeywordDictionary -ErrorAction SilentlyContinue
    if ($command -eq $null) {
        return $false
    }
    
    return $true
}

function Initialize-ClassificationTab{
    $global:ClassificationControlVariables.ClassificationFiddlerFiles = $null
    $global:ClassificationControlVariables.ClassificationReproFiles = $null
}

function Initialize-EdmTab{
    $global:ClassificationControlVariables.ClassificationEdmReproFiles = $null
    $global:ClassificationControlVariables.ClassificationEdmSchemaFiles = $null
    $global:ClassificationControlVariables.ClassificationEdmTraceFiles = $null
    $global:ClassificationControlVariables.ClassificationEdmConfigFiles = $null
    $global:ClassificationControlVariables.ClassificationEdmFiddlerFiles = $null
}

function Initialize-LATab{
    $global:ClassificationControlVariables.ClassificationLAFiddlerFiles = $null
}


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

        # Collect diagnostic data from user
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent = New-Object Windows.Controls.StackPanel
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.HorizontalAlignment = [Windows.HorizontalAlignment]::Center
    $global:ClassificationControlVariables.ClassificationSupportPanelTemplate = Get-TemplateGrid
    
    $ClassificationPanelGrid = New-Object Windows.Controls.Grid
    $ClassificationTopTabControl = Get-TopTabControl
    $ClassificationPanelGrid.Children.Add($ClassificationTopTabControl.TopTabControl) > $null

    $global:ClassificationControlVariables.ClassificationSupportPanelTemplate = Get-TemplateGrid


    $clsDiagscrollViewer = New-Object Windows.Controls.ScrollViewer
    $clsDiagscrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $clsDiagscrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $clsDiagscrollViewer.Content = $global:ClassificationControlVariables.ClassificationSupportPanelTemplate.Grid
    $ClassificationTopTabControl.GatherSupportDataTabItem.Content = $clsDiagscrollViewer

    $ClassificationSupportButton = Get-Button -ButtonName "Classification" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left"
    $global:ClassificationControlVariables.ClassificationSupportPanelTemplate.Column1.Children.Add($ClassificationSupportButton) > $null

    $EDMSupportButton = Get-Button -ButtonName "EDM" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left"
    $global:ClassificationControlVariables.ClassificationSupportPanelTemplate.Column1.Children.Add($EDMSupportButton) > $null

    $LabelAnalyticsSupportButton = Get-Button -ButtonName "Activity/Content Explorer" -Margin '10,50,10,10' -width 200 -HorizontalAlignment "Left"
    $global:ClassificationControlVariables.ClassificationSupportPanelTemplate.Column1.Children.Add($LabelAnalyticsSupportButton) > $null

    $ClassificationSupportButton.Add_Click({    
        Initialize-ClassificationTab
        Get-ClassificationSupportTemplate
    })

    $EDMSupportButton.Add_Click({
        Initialize-EdmTab
        Get-EDMSupportTemplate
    })

    $LabelAnalyticsSupportButton.Add_Click({
        Initialize-LATab
        Get-LabelAnalyticsSupportTemplate
    })

    $global:ClassificationControlVariables.ClassificationSupportPanelTemplate.Column2.Children.Add($global:ClassificationControlVariables.ClassificationSupportDataTabContent ) > $null

    $TabObject.Content = $ClassificationPanelGrid
}

function Get-LabelAnalyticsSupportTemplate(){
    $blueColor = [System.Windows.Media.Color]::FromRgb(63, 119, 206)
    $supportDataHeader = Show-Text -Text "Activity/Content Explorer Support Data collection" -Color $blueColor -fontSize 20

    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Clear()
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($supportDataHeader) > $null

    $tableGrid = Get-Table -columns 4 -rows 6  

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

    $global:ClassificationControlVariables.impactedItemIdentifier = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $global:ClassificationControlVariables.impactedItemIdentifier

    $idHelpText = "Identifier guide:`nEmail: Message id eg: <PH0PR00MB099ASDAASDFBFD99@PH0PR00MB0999.namprd00.prod.outlook.com>`nSharepoint/OD4B: Unique Id GUID or Path of document`nTeams: MessageId of the message or Exact time in UTC`nEndpoint: Document Path eg: C:\Test data\IDEA Data\Dadrdag\SAMPLE.docx"
    $impactedItemHelpLabel = Show-Text -Text $idHelpText -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $impactedItemHelpLabel
    
    $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["LADateTimeLabel"] = 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["LADateTimeLabel"]
    
    $dateTimeButton.Add_Click({
        $global:ContextScopeVariables.DateTimeProp = "LADateTime"
        $global:ContextScopeVariables["LADateTime"] = ""
        Get-DateTimePickerDialog 
    })
    
    $impactedUserLabel = Show-Text -Text "User Id" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 1 -Control $impactedUserLabel

    $global:ClassificationControlVariables.impactedUserIdentifier = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $global:ClassificationControlVariables.impactedUserIdentifier

    $ClassificationLAFiddlerFilesbel = Show-Text -Text "Fiddler or har trace file" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 1 -Control $ClassificationLAFiddlerFilesbel

    $FiddlerFileButton = Get-FileButton `
        -GlobalScopeName "ClassificationControlVariables" `
        -GlobalVariableName "ClassificationLAFiddlerLabel" `
        -GlobalFileListName "ClassificationLAFiddlerFiles" `
        -ButtonName "Browse Supporting Files" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 2 -Control $FiddlerFileButton  
    
    $global:ClassificationControlVariables.ClassificationLAFiddlerLabel = Show-Text -Text "Attached Traces" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 2 -Control $global:ClassificationControlVariables.ClassificationLAFiddlerLabel

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

    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($tableGrid) > $null

    $ClassificationExport = Get-Button -ButtonName "Export Support Data" 
    $ClassificationExport.Margin = New-Object System.Windows.Thickness(10,50,10,10)
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($ClassificationExport) > $null

    $ClassificationExport.Add_Click({
    
        $Folder = Get-ExportFolder("ExportedExplorerData")
        if (!$Folder) {
            return
        }
        $filePath = $Folder + "\"+"LAExplorerExport.xmla"
            
        $supportData=@{}
        $supportData["ImpactedItem"] = $global:ClassificationControlVariables.impactedItemIdentifier.Text
        $supportData["UserId"] = $global:ClassificationControlVariables.impactedUserIdentifier.Text
        # $supportData["Forests"] = Get-ForestInfo
        $supportData["DateTime"] = $global:ContextScopeVariables["LADateTime"]

        try {
            # Copy the files to the destination folder
            $supportData["SupportingFiles"] = Get-FileName($global:ClassificationControlVariables.ClassificationLAFiddlerFiles)
            foreach ($file in $global:ClassificationControlVariables.ClassificationLAFiddlerFiles) {
                # $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)
        }
    })
}

function Get-EDMSupportTemplate(){

    $redColor = [System.Windows.Media.Color]::FromRgb(200, 10, 10)
    $blueColor = [System.Windows.Media.Color]::FromRgb(63, 119, 206)
    $supportDataHeader = Show-Text -Text "EDM Support Data Template" -Color $blueColor -fontSize 20

    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Clear()
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($supportDataHeader) > $null

    $tableGrid = Get-Table -columns 4 -rows 15

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

    $global:ClassificationControlVariables.ImpactedEDM = Get-ComboBox  -Margin "0,5,10,5" -Width 400 -HorizontalAlignment "Left"
    $global:ClassificationControlVariables.ImpactedEDM.ItemsSource = $global:ContextScopeVariables.edmsitsDropDown
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $global:ClassificationControlVariables.ImpactedEDM
    
    ###
    $EDMBaseSITLabel = Show-Text -Text "Base SIT" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 1 -Control $EDMBaseSITLabel

    $global:ClassificationControlVariables.BaseSITEDMCombobox = Get-ComboBox  -Margin "0,5,10,5" -Width 400 -HorizontalAlignment "Left"
    $global:ClassificationControlVariables.BaseSITEDMCombobox.ItemsSource = $global:ContextScopeVariables.sitsDropDown
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $global:ClassificationControlVariables.BaseSITEDMCombobox
    
    $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["EDMDateTimeLabel"] = 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["EDMDateTimeLabel"]
    
    $dateTimeButton.Add_Click({
        $global:ContextScopeVariables.DateTimeProp = "EDMDateTime"
        $global:ContextScopeVariables["EDMDateTime"] = ""
        Get-DateTimePickerDialog 
    })

    ###
    $EDMUploaderVersion = Show-Text -Text "EDM Uploader Version" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left" -ShowHelp $true
    $EDMUploaderVersion.ToolTip = Get-ToolTip -Text "Navigate to EdmUploadAgent.exe file in explorer`nRight Click and select Properties`nSelect Details tab and get the ProductVersion"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 1 -Control $EDMUploaderVersion

    $global:ClassificationControlVariables.EDMUploaderVersion = Get-TextBox -Width 400 -Margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $global:ClassificationControlVariables.EDMUploaderVersion

    ###
    $EDMUploaderError = Show-Text -Text "EDM Uploader Error (If any)" -IsBold $false -margin "0,0,10,0" -VerticalAlignment "Center" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 1 -Control $EDMUploaderError

    $global:ClassificationControlVariables.EDMUploaderErrorMsg = Get-TextBox -Width 400 -height 150 -Margin "0,0,10,0" -HorizontalAlignment "Left"
    $global:ClassificationControlVariables.EDMUploaderErrorMsg.AcceptsReturn = $true
    $global:ClassificationControlVariables.EDMUploaderErrorMsg.TextWrapping = "Wrap"
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 2 -Control $global:ClassificationControlVariables.EDMUploaderErrorMsg
    
    ###
    $SampleFileLabel = Show-Text -Text "Sample Repro file" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 1 -Control $SampleFileLabel

    $SampleFileButton = Get-FileButton `
        -GlobalScopeName "ClassificationControlVariables" `
        -GlobalVariableName "ClassificationEdmReproLabel" `
        -GlobalFileListName "ClassificationEdmReproFiles" `
        -ButtonName "Browse Repro File" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center" `
        -Multiselect $false
    
    Add-ControlToTableAt -TableObj $tableGrid -row 5 -column 2 -Control $SampleFileButton  
    
    $global:ClassificationControlVariables.ClassificationEdmReproLabel = Show-Text -Text "Attached File" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    Add-ControlToTableAt -TableObj $tableGrid -row 6 -column 2 -Control $global:ClassificationControlVariables.ClassificationEdmReproLabel

    ###
    $EDMSchemaLabel = Show-Text -Text "EDM Schema XML" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 1 -Control $EDMSchemaLabel

    $EDMSchemaButton = Get-FileButton `
        -GlobalScopeName "ClassificationControlVariables" `
        -GlobalVariableName "ClassificationEdmSchemaLabel" `
        -GlobalFileListName "ClassificationEdmSchemaFiles" `
        -ButtonName "Browse Schema File" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
        
    Add-ControlToTableAt -TableObj $tableGrid -row 7 -column 2 -Control $EDMSchemaButton

    $global:ClassificationControlVariables.ClassificationEdmSchemaLabel = Show-Text -Text "Attached File" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    Add-ControlToTableAt -TableObj $tableGrid -row 8 -column 2 -Control $global:ClassificationControlVariables.ClassificationEdmSchemaLabel

    ###
    $EDMSTraceLogsLabel = Show-Text -Text "Upload Agent Trace logs" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 9 -column 1 -Control $EDMSTraceLogsLabel

    $TaceLogsButton = Get-FileButton `
        -GlobalScopeName "ClassificationControlVariables" `
        -GlobalVariableName "ClassificationEdmTraceLabel" `
        -GlobalFileListName "ClassificationEdmTraceFiles" `
        -ButtonName "Browse Agent Logs" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 9 -column 2 -Control $TaceLogsButton

    $TraceHelperText = Show-Text -Text "Navigate to the folder containing EdmUploadAgent.exe`nTrace logs could be found inside the TraceLogs folder inside the EdmUploadAgent folder(installed location)" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    Add-ControlToTableAt -TableObj $tableGrid -row 9 -column 3 -Control $TraceHelperText

    $global:ClassificationControlVariables.ClassificationEdmTraceLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    $ClassificationFilesScrollViewer = New-Object Windows.Controls.ScrollViewer
    $ClassificationFilesScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $ClassificationFilesScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $ClassificationFilesScrollViewer.Content = $global:ClassificationControlVariables.ClassificationEdmTraceLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 10 -column 2 -Control $ClassificationFilesScrollViewer
    
    ###
    $UploadAgentConfigLabel = Show-Text -Text "Upload Agent Config File" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 11 -column 1 -Control $UploadAgentConfigLabel

    $ConfigButton = Get-FileButton `
        -GlobalScopeName "ClassificationControlVariables" `
        -GlobalVariableName "ClassificationEdmConfigLabel" `
        -GlobalFileListName "ClassificationEdmConfigFiles" `
        -ButtonName "Browse Config File" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 11 -column 2 -Control $ConfigButton

    $ConfigHelperText = Show-Text -Text "Navigate to the folder containing EdmUploadAgent.exe and attach the EdmUploadAgent.exe.config file from that folder `nC:\Program Files\Microsoft\EdmUploadAgent\EdmUploadAgent.exe.config" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    Add-ControlToTableAt -TableObj $tableGrid -row 11 -column 3 -Control $ConfigHelperText

    $global:ClassificationControlVariables.ClassificationEdmConfigLabel = Show-Text -Text "Attached File" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    Add-ControlToTableAt -TableObj $tableGrid -row 12 -column 2 -Control $global:ClassificationControlVariables.ClassificationEdmConfigLabel
    
    ###
    $EDMBrowseAttachLabel = Show-Text -Text "File Attachment/ Screenshot/ Fiddler /HAR / Other info?" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 13 -column 1 -Control $EDMBrowseAttachLabel

    $EDMBrowseAttachButton = Get-FileButton `
        -GlobalScopeName "ClassificationControlVariables" `
        -GlobalVariableName "ClassificationEdmFiddlerLabel" `
        -GlobalFileListName "ClassificationEdmFiddlerFiles" `
        -ButtonName "Browse Supporting Files" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 13 -column 2 -Control $EDMBrowseAttachButton

    $global:ClassificationControlVariables.ClassificationEdmFiddlerLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    $FilesScrollViewer = New-Object Windows.Controls.ScrollViewer
    $FilesScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $FilesScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $FilesScrollViewer.Content = $global:ClassificationControlVariables.ClassificationEdmFiddlerLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 14 -column 2 -Control $FilesScrollViewer
   
    ###
    $tableGrid.Margin = New-Object System.Windows.Thickness(10,30,10,10)
    $tableGrid.HorizontalAlignment = "Center"

    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($tableGrid) > $null

    $ClassificationExport = Get-Button -ButtonName "Export Support Data" 
    $ClassificationExport.Margin = New-Object System.Windows.Thickness(10,50,10,10)
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($ClassificationExport) > $null

    $ClassificationDisclaimer = Show-Text -Text "*Exporting data would run Test-TextExtraction and Test-DataClassification" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" -Color $redColor
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($ClassificationDisclaimer) > $null
    
    $ClassificationExport.Add_Click({        
        if ($global:ClassificationControlVariables.ClassificationEdmReproFiles -eq $null)
        {
            [System.Windows.MessageBox]::Show("Please select sample file before exporting","Error",0,0)
            return
        }
    
        # Create a new SaveFileDialog object
        $Folder = Get-ExportFolder("ExportedEDMData")
        if (!$Folder) {
            return
        }
        $filePath = $Folder + "\"+"EDMExport.xmla"
        
        $supportData=@{}
        $supportData["ImpactedEDM"] = $global:ClassificationControlVariables.ImpactedEDM.Text
        $supportData["BaseSIT"] = $global:ClassificationControlVariables.BaseSITEDMCombobox.Text
        $supportData["EDMUploaderVersion"] = $global:ClassificationControlVariables.EDMUploaderVersion.Text
        $supportData["EDMUploaderErrorMsg"] = $global:ClassificationControlVariables.EDMUploaderErrorMsg.Text
        $supportData["Forests"] = Get-ForestInfo
        $supportData["DateTime"] = $global:ContextScopeVariables["AlpSPODateTime"]
        
        # Run Test-TextExtraction on exo shell.
        $content = Get-Content $global:ClassificationControlVariables.ClassificationEdmReproFiles -Encoding byte -ReadCount 0
        $scriptBlock = {
            param($content)
            $classificationData = @{}
            $classificationData.TTE = Test-TextExtraction -FileData $content
            $classificationData.exoRuleCollection = Get-ClassificationRuleCollection
            return $classificationData
        }
        $ps = [powershell]::Create().AddScript($scriptBlock)
        $ps.AddArgument($content)

        $cRes = Get-ExoCmdletResult -ps $ps
        $ter = $cRes.TTE

        if($global:ClassificationControlVariables.ImpactedEDM.Text){
            $tdr = Test-DataClassification -TestTextExtractionResults $ter.ExtractedResults  -ClassificationNames $global:ClassificationControlVariables.ImpactedEDM.Text
        }else {
            $tdr = Test-DataClassification -TestTextExtractionResults $ter.ExtractedResults
        }

        if($global:ClassificationControlVariables.BaseSITEDMCombobox.Text){
            $tdrBase = Test-DataClassification -TestTextExtractionResults $ter.ExtractedResults  -ClassificationNames $global:ClassificationControlVariables.BaseSITEDMCombobox.Text
        }

        $supportData["TestTextExtractionResults"] = $ter
        $supportData["EDMTestDataClassificationResults"] = $tdr
        $supportData["BaseSitTestDataClassificationResults"] = $tdrBase
        $supportData["EopRulePackage"] = $global:ContextScopeVariables.sips
        $supportData["ExoRuleCollection"] = $cRes.exoRuleCollection
        $supportData["EopKeywordDict"] = $global:ContextScopeVariables.kwd

        try {
            # Copy the files to the destination folder
            $supportData["ReproFiles"] = Get-FileName($global:ClassificationControlVariables.ClassificationEdmReproFiles)
            foreach ($file in $global:ClassificationControlVariables.ClassificationEdmReproFiles) {
                Copy-Item $file $Folder -Force
            }

            $supportData["SchemaFiles"] = Get-FileName($global:ClassificationControlVariables.ClassificationEdmSchemaFiles)
            # Copy the files to the destination folder
            foreach ($file in $global:ClassificationControlVariables.ClassificationEdmSchemaFiles) {
                Copy-Item $file $Folder -Force
            }

            # Copy the files to the destination folder
            $supportData["UserAgentTraceFiles"] = Get-FileName($global:ClassificationControlVariables.ClassificationEdmTraceFiles)
            foreach ($file in $global:ClassificationControlVariables.ClassificationEdmTraceFiles) {
                Copy-Item $file $Folder -Force
            }

            # Copy the files to the destination folder
            $supportData["EDMConfigFiles"] = Get-FileName($global:ClassificationControlVariables.ClassificationEdmConfigFiles)
            foreach ($file in $global:ClassificationControlVariables.ClassificationEdmConfigFiles) {
                Copy-Item $file $Folder -Force
            }

            # Copy the files to the destination folder
            $supportData["SupportingFiles"] = Get-FileName($global:ClassificationControlVariables.ClassificationEdmFiddlerFiles)
            foreach ($file in $global:ClassificationControlVariables.ClassificationEdmFiddlerFiles) {
                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)
        }
    })
}

function Get-ClassificationSupportTemplate(){

    $redColor = [System.Windows.Media.Color]::FromRgb(200, 10, 10)
    $blueColor = [System.Windows.Media.Color]::FromRgb(63, 119, 206)
    $supportDataHeader = Show-Text -Text "Classification Support Data Template" -Color $blueColor -fontSize 20

    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Clear()

    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($supportDataHeader) > $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 3 -rows 5

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

    $global:ClassificationControlVariables.AffectedClientComboboxClassification = Get-ComboBox  -Margin "0,5,10,5" -Width 400 -HorizontalAlignment "Left"
    $global:ClassificationControlVariables.AffectedClientComboboxClassification.ItemsSource = $global:ContextScopeVariables.sitsDropDown
    Add-ControlToTableAt -TableObj $tableGrid -row 0 -column 2 -Control $global:ClassificationControlVariables.AffectedClientComboboxClassification

    $SampleFileLabel = Show-Text -Text "Sample Repro file" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 1 -Control $SampleFileLabel

    $SampleFileButton = Get-FileButton `
        -GlobalScopeName "ClassificationControlVariables" `
        -GlobalVariableName "ClassificationReproLabel" `
        -GlobalFileListName "ClassificationReproFiles" `
        -ButtonName "Browse Repro File" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center" `
        -Multiselect $false
    Add-ControlToTableAt -TableObj $tableGrid -row 1 -column 2 -Control $SampleFileButton

    $global:ClassificationControlVariables.ClassificationReproLabel = Show-Text -Text "Attached File" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    Add-ControlToTableAt -TableObj $tableGrid -row 2 -column 2 -Control $global:ClassificationControlVariables.ClassificationReproLabel

    $ClsBrowseAttachLabel = Show-Text -Text "File Attachment/ Screenshot/ Fiddler /HAR / Other info?" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 1 -Control $ClsBrowseAttachLabel

    $ClsBrowseAttachButton = Get-FileButton `
        -GlobalScopeName "ClassificationControlVariables" `
        -GlobalVariableName "ClassificationFiddlerLabel" `
        -GlobalFileListName "ClassificationFiddlerFiles" `
        -ButtonName "Browse Supporting Files" `
        -Margin "0,0,10,0" `
        -HorizontalAlignment "Left" `
        -height 30 `
        -width 220 `
        -VerticalAlignment "Center"
    Add-ControlToTableAt -TableObj $tableGrid -row 3 -column 2 -Control $ClsBrowseAttachButton

    $global:ClassificationControlVariables.ClassificationFiddlerLabel = Show-Text -Text "Attached Files" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" 
    $FilesScrollViewer = New-Object Windows.Controls.ScrollViewer
    $FilesScrollViewer.VerticalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $FilesScrollViewer.HorizontalScrollBarVisibility = [Windows.Controls.ScrollBarVisibility]::Auto
    $FilesScrollViewer.Content = $global:ClassificationControlVariables.ClassificationFiddlerLabel
    Add-ControlToTableAt -TableObj $tableGrid -row 4 -column 2 -Control $FilesScrollViewer
   
    $tableGrid.Margin = New-Object System.Windows.Thickness(10,30,10,10)
    $tableGrid.HorizontalAlignment = "Center"

    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($tableGrid) > $null

    $ClassificationExport = Get-Button -ButtonName "Export Support Data" 
    $ClassificationExport.Margin = New-Object System.Windows.Thickness(10,50,10,10)
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($ClassificationExport) > $null

    $ClassificationDisclaimer = Show-Text -Text "*Exporting data would run Test-TextExtraction and Test-DataClassification" -IsBold $false -margin "0,0,10,0" -HorizontalAlignment "Left" -Color $redColor
    $global:ClassificationControlVariables.ClassificationSupportDataTabContent.Children.Add($ClassificationDisclaimer) > $null

    
    $ClassificationExport.Add_Click({        
        if ($global:ClassificationControlVariables.ClassificationReproFiles -eq $null)
        {
            [System.Windows.MessageBox]::Show("Please select sample file before exporting","Error",0,0)
            return
        }
    
        # Create a new SaveFileDialog object
        $Folder = Get-ExportFolder("ExportedClassificationData")
        if (!$Folder) {
            return
        }
        $filePath = $Folder + "\"+"ClassificationExport.xmla"
            
        $supportData=@{}
        $supportData["ImpactedSIT"] = $global:ClassificationControlVariables.AffectedClientComboboxClassification.Text
                
        # Run Test-TextExtraction on exo shell.
        $content = Get-Content $global:ClassificationControlVariables.ClassificationReproFiles -Encoding byte -ReadCount 0
        $scriptBlock = {
            param($content)
            $classificationData = @{}
            $classificationData.TTE = Test-TextExtraction -FileData $content
            $classificationData.exoRuleCollection = Get-ClassificationRuleCollection
            return $classificationData
        }
        $ps = [powershell]::Create().AddScript($scriptBlock)
        $ps.AddArgument($content)

        $cRes = Get-ExoCmdletResult -ps $ps
        $ter = $cRes.TTE
        
        if($global:ClassificationControlVariables.AffectedClientComboboxClassification.Text){
            $tdr = Test-DataClassification -TestTextExtractionResults $ter.ExtractedResults  -ClassificationNames $global:ClassificationControlVariables.AffectedClientComboboxClassification.Text
        }else {
            $tdr = Test-DataClassification -TestTextExtractionResults $ter.ExtractedResults
        }
        $supportData["TestTextExtractionResults"] = $ter
        $supportData["TestDataClassificationResults"] = $tdr
        $supportData["EopRulePackage"] = Get-DlpSensitiveInformationTypeRulePackage
        $supportData["ExoRuleCollection"] = $cRes.exoRuleCollection
        $supportData["EopKeywordDict"] = Get-DlpKeywordDictionary    

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

            # Copy the files to the destination
            $supportData["ReproFileName"] = Get-FileName($global:ClassificationControlVariables.ClassificationReproFiles)
            foreach ($file in $global:ClassificationControlVariables.ClassificationReproFiles) {
                # $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)
        }
    })
}

function GetGlobalTenantSits {
    [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Wait)
    Write-Host "Getting Sensitive information types in your organization."
    $global:ContextScopeVariables.sits = Get-DlpSensitiveInformationType
    
    if ($global:ContextScopeVariables.sits.GetType().Name -eq "PSObject")
    {
        $global:ContextScopeVariables.sitsDropDown = @( $global:ContextScopeVariables.sits.Name )
    }
    else
    {
        $global:ContextScopeVariables.sitsDropDown = $global:ContextScopeVariables.sits.Name
    }
    
    $edmSits = $global:ContextScopeVariables.sits| ? {$_.Type -eq "ExactMatch"}
    if ($edmSits -ne $null)
    {
        if ($edmSits.GetType().Name -eq "PSObject")
        {
            $global:ContextScopeVariables.edmsitsDropDown = @( $edmSits.Name )
        }
        else
        {
            $global:ContextScopeVariables.edmsitsDropDown = $edmSits.Name
        }
    }
    
    Write-Host "Getting Sensitive information rule packages in your organization."
    $global:ContextScopeVariables.sips = Get-DlpSensitiveInformationTypeRulePackage
    
    if ($global:ContextScopeVariables.sips.GetType().Name -eq "PSObject")
    {
        $global:ContextScopeVariables.sipsDropDown = @( $global:ContextScopeVariables.sips.Name )
    }
    else
    {
        $global:ContextScopeVariables.sipsDropDown = $global:ContextScopeVariables.sips.Name
    }
    
    Write-Host "Getting Keyword dictionaries in your organization."
    $global:ContextScopeVariables.kwd = Get-DlpKeywordDictionary
    [System.Windows.Input.Mouse]::SetCursor([System.Windows.Input.Cursors]::Arrow)
}

Export-ModuleMember -Function *
# SIG # Begin signature block
# MIIoOwYJKoZIhvcNAQcCoIIoLDCCKCgCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBw7PDDhvu/O/24
# 2TurZWDp8huaMk/ricTvRpXmycdSOaCCDYUwggYDMIID66ADAgECAhMzAAADri01
# UchTj1UdAAAAAAOuMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjMxMTE2MTkwODU5WhcNMjQxMTE0MTkwODU5WjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
# AQD0IPymNjfDEKg+YyE6SjDvJwKW1+pieqTjAY0CnOHZ1Nj5irGjNZPMlQ4HfxXG
# yAVCZcEWE4x2sZgam872R1s0+TAelOtbqFmoW4suJHAYoTHhkznNVKpscm5fZ899
# QnReZv5WtWwbD8HAFXbPPStW2JKCqPcZ54Y6wbuWV9bKtKPImqbkMcTejTgEAj82
# 6GQc6/Th66Koka8cUIvz59e/IP04DGrh9wkq2jIFvQ8EDegw1B4KyJTIs76+hmpV
# M5SwBZjRs3liOQrierkNVo11WuujB3kBf2CbPoP9MlOyyezqkMIbTRj4OHeKlamd
# WaSF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