functions/Get-WUGDeviceGroup.ps1

<#
.SYNOPSIS
Retrieves device groups from WhatsUp Gold by GroupId or based on specified search criteria.
 
.DESCRIPTION
The `Get-WUGDeviceGroup` function retrieves device groups from WhatsUp Gold using the REST API. It allows you to:
 
- Retrieve specific device groups by their `GroupId` using the `/api/v1/device-groups/{groupId}` endpoint.
- Search for device groups based on criteria such as name (`SearchValue`), group type (`GroupType`), and view level (`View`) using the `/api/v1/device-groups/-` endpoint.
 
The function supports pagination and handles large result sets efficiently.
 
.PARAMETER GroupId
Specifies one or more GroupId(s) of the device groups to retrieve. When this parameter is used, the function retrieves the specified device groups using the `/api/v1/device-groups/{groupId}` endpoint. This parameter belongs to the 'ByGroupId' parameter set.
 
.PARAMETER SearchValue
Specifies a search value to filter device groups by name. The function uses the `/api/v1/device-groups/-` endpoint to search for device groups whose names contain the specified value. This parameter belongs to the 'BySearch' parameter set.
 
.PARAMETER View
Specifies the level of detail for the device group information returned. Valid options are:
 
- `summary`: Returns basic information about the device groups.
- `detail`: Returns detailed information, including group type, monitor state, and device counts.
 
Default value is `detail`. This parameter is available in both parameter sets.
 
.PARAMETER GroupType
Specifies the type of device groups to retrieve. Valid options are:
 
- `all`: Retrieves all types of device groups.
- `static_group`: Retrieves static device groups.
- `dynamic_group`: Retrieves dynamic device groups.
- `layer2`: Retrieves Layer 2 device groups.
 
Default value is `all`. This parameter belongs to the 'BySearch' parameter set.
 
.PARAMETER Limit
Specifies the maximum number of device groups to return per page. Valid range is 1 to 250. Default is 250. This parameter belongs to the 'BySearch' parameter set.
 
.EXAMPLE
# Example 1: Retrieve specific device groups by GroupId
$groupIds = @(101, 102, 103)
$groups = Get-WUGDeviceGroup -GroupId $groupIds -View 'detail'
 
# Output the groups
$groups | Format-Table
 
.EXAMPLE
# Example 2: Search for device groups with "Server" in the name
$groups = Get-WUGDeviceGroup -SearchValue "Server" -GroupType "static_group" -Limit 100
 
# Output the groups
$groups | Format-Table
 
.NOTES
Author: Jason Alberino (jason@wug.ninja)
Created: 2023-04-15
Last Modified: 2024-09-28
Reference:
- [WhatsUp Gold REST API - Get Device Group by ID](https://docs.ipswitch.com/NM/WhatsUpGold2024/02_Guides/rest_api/index.html#operation/DeviceGroup_GetDeviceGroup)
- [WhatsUp Gold REST API - List Device Groups](https://docs.ipswitch.com/NM/WhatsUpGold2024/02_Guides/rest_api/index.html#operation/DeviceGroup_ListGroups)
 
This function uses parameter sets to distinguish between retrieving device groups by `GroupId` and searching with other parameters:
 
- **ByGroupId Parameter Set**: Uses the `/api/v1/device-groups/{groupId}` endpoint to retrieve specific device groups.
- **BySearch Parameter Set**: Uses the `/api/v1/device-groups/-` endpoint to search for device groups based on criteria.
 
#>

function Get-WUGDeviceGroup {
    [CmdletBinding(DefaultParameterSetName = 'BySearch')]
    param (
        [Parameter(Mandatory = $true, Position = 0, ParameterSetName = 'ByGroupId')][int[]]$GroupId,
        [Parameter(ParameterSetName = 'BySearch')][string]$SearchValue,
        [Parameter(ParameterSetName = 'ByGroupId')][Parameter(ParameterSetName = 'BySearch')][ValidateSet("summary", "detail")][string]$View = 'detail',
        [Parameter(ParameterSetName = 'BySearch')][ValidateSet("all", "static_group", "dynamic_group", "layer2")][string]$GroupType = 'all',
        [Parameter(ParameterSetName = 'BySearch')][ValidateRange(1, 250)][int]$Limit = 250
    )

    begin {
        Write-Debug "Initializing Get-WUGDeviceGroup function."
        Write-Debug "ParameterSetName: $($PSCmdlet.ParameterSetName)"
        Write-Debug "GroupId: $GroupId"
        Write-Debug "SearchValue: $SearchValue"
        Write-Debug "View: $View"
        Write-Debug "GroupType: $GroupType"
        Write-Debug "Limit: $Limit"
        # Initialize the output collection
        $allGroups = @()
        # Base URI
        $baseUri = "${global:WhatsUpServerBaseURI}/api/v1/device-groups"
    }

    process {
        if ($PSCmdlet.ParameterSetName -eq 'ByGroupId') {
            Write-Debug "ParameterSet: ByGroupId"

            $totalGroups = $GroupId.Count
            $currentGroupIndex = 0

            foreach ($id in $GroupId) {
                $currentGroupIndex++
                $percentComplete = [Math]::Round(($currentGroupIndex / $totalGroups) * 100)

                Write-Progress -Activity "Fetching group information" -Status "Processing Group ID $id ($currentGroupIndex of $totalGroups)" -PercentComplete $percentComplete

                # Construct the URI for each group ID
                $uri = "${baseUri}/${id}?view=${View}"
                Write-Debug "Fetching group info from URI: $uri"

                # Make the API request
                try {
                    $response = Get-WUGAPIResponse -Uri $uri -Method 'GET'
                    $deviceGroup = $response.data

                    # Format the output object based on the 'View' parameter
                    if ($View -eq 'detail') {
                        $groupObject = [PSCustomObject]@{
                            Id                    = $deviceGroup.id
                            ParentGroupId         = $deviceGroup.parentGroupId
                            Name                  = $deviceGroup.name
                            Description           = $deviceGroup.description
                            GroupType             = $deviceGroup.details.groupType
                            MonitorState          = $deviceGroup.details.monitorState
                            ChildrenCount         = $deviceGroup.details.childrenCount
                            DeviceChildrenCount   = $deviceGroup.details.deviceChildrenCount
                            DeviceDescendantCount = $deviceGroup.details.deviceDescendantCount
                        }
                    }
                    else {
                        $groupObject = [PSCustomObject]@{
                            Id            = $deviceGroup.id
                            ParentGroupId = $deviceGroup.parentGroupId
                            Name          = $deviceGroup.name
                        }
                    }

                    # Add the group object to the output collection
                    $allGroups += $groupObject
                }
                catch {
                    Write-Error "Error getting device group with ID ${id}: $_"
                }
            }

            # Clear progress
            Write-Progress -Activity "Fetching group information" -Completed
        }
        elseif ($PSCmdlet.ParameterSetName -eq 'BySearch') {
            Write-Debug "ParameterSet: BySearch"

            # Build query parameters
            $queryParams = @{}
            if ($View) { $queryParams['view'] = $View }
            if ($SearchValue) { $queryParams['search'] = $SearchValue }
            if ($GroupType) { $queryParams['groupType'] = $GroupType }
            if ($Limit) { $queryParams['limit'] = $Limit }

            # Build the query string
            $queryString = ($queryParams.GetEnumerator() | ForEach-Object { "$($_.Key)=$($_.Value)" }) -join '&'
            $searchUri = "${baseUri}/-?$queryString"
            Write-Debug "Search URI: $searchUri"

            $currentPageId = $null
            $pageNumber = 0

            do {
                # Check if there is a current page ID and modify the URI accordingly
                if ($null -ne $currentPageId) {
                    $currentUri = "$searchUri&pageId=$currentPageId"
                }
                else {
                    $currentUri = $searchUri
                }

                Write-Debug "Fetching groups from URI: $currentUri"

                try {
                    $result = Get-WUGAPIResponse -Uri $currentUri -Method 'GET'
                    Write-Debug "Result from Get-WUGAPIResponse: $result"

                    if ($null -ne $result.data.groups) {
                        foreach ($group in $result.data.groups) {
                            if ($View -eq 'detail') {
                                $groupObject = [PSCustomObject]@{
                                    Id                    = $group.id
                                    ParentGroupId         = $group.parentGroupId
                                    Name                  = $group.name
                                    Description           = $group.description
                                    GroupType             = $group.details.groupType
                                    MonitorState          = $group.details.monitorState
                                    ChildrenCount         = $group.details.childrenCount
                                    DeviceChildrenCount   = $group.details.deviceChildrenCount
                                    DeviceDescendantCount = $group.details.deviceDescendantCount
                                }
                            }
                            else {
                                $groupObject = [PSCustomObject]@{
                                    Id            = $group.id
                                    ParentGroupId = $group.parentGroupId
                                    Name          = $group.name
                                }
                            }
                            $allGroups += $groupObject
                        }
                    }

                    $currentPageId = $result.paging.nextPageId
                    $pageNumber++

                    # Update progress
                    if ($null -ne $result.paging.totalPages -and $result.paging.totalPages -gt 0) {
                        $percentComplete = ($pageNumber / $result.paging.totalPages) * 100
                        Write-Progress -Activity "Retrieving device groups" -Status "Page $pageNumber of $($result.paging.totalPages)" -PercentComplete $percentComplete
                    } else {
                        Write-Progress -Activity "Retrieving device groups" -Status "Processing page $pageNumber" -PercentComplete (($pageNumber % 100))
                    }
                }
                catch {
                    Write-Error "Error fetching device groups: $_"
                    break # Ensure exit from loop on error
                }
            } while ($null -ne $currentPageId)

            # Clear progress
            Write-Progress -Activity "Retrieving device groups" -Completed
        }
        else {
            Write-Error "Invalid parameter set."
        }
    }

    end {
        Write-Debug "Completed Get-WUGDeviceGroup function"
        return $allGroups
    }
}


    # SIG # Begin signature block
    # MIIVvgYJKoZIhvcNAQcCoIIVrzCCFasCAQExDzANBglghkgBZQMEAgEFADB5Bgor
    # BgEEAYI3Ag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AgECAhBiHW0M
    # UgGeO5B5FSCJIRwKMA0GCSqGSIb3DQEBDAUAMFYxCzAJBgNVBAYTAkdCMRgwFgYD
    # VQQKEw9TZWN0aWdvIExpbWl0ZWQxLTArBgNVBAMTJFNlY3RpZ28gUHVibGljIENv
    # ZGUgU2lnbmluZyBSb290IFI0NjAeFw0yMTAzMjIwMDAwMDBaFw0zNjAzMjEyMzU5
    # NTlaMFQxCzAJBgNVBAYTAkdCMRgwFgYDVQQKEw9TZWN0aWdvIExpbWl0ZWQxKzAp
    # BgNVBAMTIlNlY3RpZ28gUHVibGljIENvZGUgU2lnbmluZyBDQSBSMzYwggGiMA0G
    # CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCbK51T+jU/jmAGQ2rAz/V/9shTUxjI
    # ztNsfvxYB5UXeWUzCxEeAEZGbEN4QMgCsJLZUKhWThj/yPqy0iSZhXkZ6Pg2A2NV
    # DgFigOMYzB2OKhdqfWGVoYW3haT29PSTahYkwmMv0b/83nbeECbiMXhSOtbam+/3
    # 6F09fy1tsB8je/RV0mIk8XL/tfCK6cPuYHE215wzrK0h1SWHTxPbPuYkRdkP05Zw
    # mRmTnAO5/arnY83jeNzhP06ShdnRqtZlV59+8yv+KIhE5ILMqgOZYAENHNX9SJDm
    # +qxp4VqpB3MV/h53yl41aHU5pledi9lCBbH9JeIkNFICiVHNkRmq4TpxtwfvjsUe
    # dyz8rNyfQJy/aOs5b4s+ac7IH60B+Ja7TVM+EKv1WuTGwcLmoU3FpOFMbmPj8pz4
    # 4MPZ1f9+YEQIQty/NQd/2yGgW+ufflcZ/ZE9o1M7a5Jnqf2i2/uMSWymR8r2oQBM
    # dlyh2n5HirY4jKnFH/9gRvd+QOfdRrJZb1sCAwEAAaOCAWQwggFgMB8GA1UdIwQY
    # MBaAFDLrkpr/NZZILyhAQnAgNpFcF4XmMB0GA1UdDgQWBBQPKssghyi47G9IritU
    # pimqF6TNDDAOBgNVHQ8BAf8EBAMCAYYwEgYDVR0TAQH/BAgwBgEB/wIBADATBgNV
    # HSUEDDAKBggrBgEFBQcDAzAbBgNVHSAEFDASMAYGBFUdIAAwCAYGZ4EMAQQBMEsG
    # A1UdHwREMEIwQKA+oDyGOmh0dHA6Ly9jcmwuc2VjdGlnby5jb20vU2VjdGlnb1B1
    # YmxpY0NvZGVTaWduaW5nUm9vdFI0Ni5jcmwwewYIKwYBBQUHAQEEbzBtMEYGCCsG
    # AQUFBzAChjpodHRwOi8vY3J0LnNlY3RpZ28uY29tL1NlY3RpZ29QdWJsaWNDb2Rl
    # U2lnbmluZ1Jvb3RSNDYucDdjMCMGCCsGAQUFBzABhhdodHRwOi8vb2NzcC5zZWN0
    # aWdvLmNvbTANBgkqhkiG9w0BAQwFAAOCAgEABv+C4XdjNm57oRUgmxP/BP6YdURh
    # w1aVcdGRP4Wh60BAscjW4HL9hcpkOTz5jUug2oeunbYAowbFC2AKK+cMcXIBD0Zd
    # OaWTsyNyBBsMLHqafvIhrCymlaS98+QpoBCyKppP0OcxYEdU0hpsaqBBIZOtBajj
    # cw5+w/KeFvPYfLF/ldYpmlG+vd0xqlqd099iChnyIMvY5HexjO2AmtsbpVn0OhNc
    # WbWDRF/3sBp6fWXhz7DcML4iTAWS+MVXeNLj1lJziVKEoroGs9Mlizg0bUMbOalO
    # hOfCipnx8CaLZeVme5yELg09Jlo8BMe80jO37PU8ejfkP9/uPak7VLwELKxAMcJs
    # zkyeiaerlphwoKx1uHRzNyE6bxuSKcutisqmKL5OTunAvtONEoteSiabkPVSZ2z7
    # 6mKnzAfZxCl/3dq3dUNw4rg3sTCggkHSRqTqlLMS7gjrhTqBmzu1L90Y1KWN/Y5J
    # KdGvspbOrTfOXyXvmPL6E52z1NZJ6ctuMFBQZH3pwWvqURR8AgQdULUvrxjUYbHH
    # j95Ejza63zdrEcxWLDX6xWls/GDnVNueKjWUH3fTv1Y8Wdho698YADR7TNx8X8z2
    # Bev6SivBBOHY+uqiirZtg0y9ShQoPzmCcn63Syatatvx157YK9hlcPmVoa1oDE5/
    # L9Uo2bC5a4CH2RwwggZkMIIEzKADAgECAhEA6IUbK/8zRw2NKvPg4jKHsTANBgkq
    # hkiG9w0BAQwFADBUMQswCQYDVQQGEwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1p
    # dGVkMSswKQYDVQQDEyJTZWN0aWdvIFB1YmxpYyBDb2RlIFNpZ25pbmcgQ0EgUjM2
    # MB4XDTIzMDQxOTAwMDAwMFoXDTI2MDcxODIzNTk1OVowVTELMAkGA1UEBhMCVVMx
    # FDASBgNVBAgMC0Nvbm5lY3RpY3V0MRcwFQYDVQQKDA5KYXNvbiBBbGJlcmlubzEX
    # MBUGA1UEAwwOSmFzb24gQWxiZXJpbm8wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAw
    # ggIKAoICAQC2JA01BehqpO3INejKVsKScaS9sd0Hjoz1tceFig6Yyu2glTKimH9n
    # r9l5438Cjpc1x+n42gMfnS5Cza4tZUWr1usOq3d0TljKFOOSW8Uve1J+PC0f/Hxp
    # DbI8hE38ICDmgv8EozBOgo4lPm/rDHVTHgiRZvy1H8gPTuE13ck2sevVslku2E2F
    # 8wst5Kb12OqngF96RXptEeM0iTipPhfNinWCa8e58+mbt1dHCbX46593DRd3yQv+
    # rvPkIh9QkMGmumfjV5lv1S3iqf/Vg6XP9R3lTPMWNO2IEzIjk12t817rU3xYyf2Q
    # 4dlA/i1bRpFfjEVcxQiZJdQKnQlqd3hOk0tr8bxTI3RZxgOLRgC8mA9hgcnJmreM
    # WP4CwXZUKKX13pMqzrX/qiSUsB+Mvcn7LHGEo9pJIBgMItZW4zn4uPzGbf53EQUW
    # nPfUOSBdgkRAdkb/c7Lkhhc1HNPWlUqzS/tdopI7+TzNsYr7qEckXpumBlUSONoJ
    # n2V1zukFbgsBq0mRWSZf+ut3OVGo7zSYopsMXSIPFEaBcxNuvcZQXv6YdXEsDpvG
    # mysbgVa/7uP3KwH9h79WeFU/TiGEISH5B59qTg26+GMRqhyZoYHj7wI36omwSNja
    # tUo5cYz4AEYTO58gceMcztNO45BynLwPbZwZ0bxPN2wL1ruIYd+ewQIDAQABo4IB
    # rjCCAaowHwYDVR0jBBgwFoAUDyrLIIcouOxvSK4rVKYpqhekzQwwHQYDVR0OBBYE
    # FJHuVIzRubayI0tfw82Q7Q/47iu9MA4GA1UdDwEB/wQEAwIHgDAMBgNVHRMBAf8E
    # AjAAMBMGA1UdJQQMMAoGCCsGAQUFBwMDMEoGA1UdIARDMEEwNQYMKwYBBAGyMQEC
    # AQMCMCUwIwYIKwYBBQUHAgEWF2h0dHBzOi8vc2VjdGlnby5jb20vQ1BTMAgGBmeB
    # DAEEATBJBgNVHR8EQjBAMD6gPKA6hjhodHRwOi8vY3JsLnNlY3RpZ28uY29tL1Nl
    # Y3RpZ29QdWJsaWNDb2RlU2lnbmluZ0NBUjM2LmNybDB5BggrBgEFBQcBAQRtMGsw
    # RAYIKwYBBQUHMAKGOGh0dHA6Ly9jcnQuc2VjdGlnby5jb20vU2VjdGlnb1B1Ymxp
    # Y0NvZGVTaWduaW5nQ0FSMzYuY3J0MCMGCCsGAQUFBzABhhdodHRwOi8vb2NzcC5z
    # ZWN0aWdvLmNvbTAjBgNVHREEHDAagRhqYXNvbi5hbGJlcmlub0BnbWFpbC5jb20w
    # DQYJKoZIhvcNAQEMBQADggGBAET0EFH0r+hqoQWr4Ha9UDuEv28rTgV2aao1nFRg
    # GZ/5owM7x9lxappLUbgQFfeIzzAsp3gwTKMYf47njUjvOBZD9zV/3I/vaLmY2enm
    # MXZ48Om9GW4pNmnvsef2Ub1/+dRzgs8UFX5wBJcfy4OWP3t0OaKJkn+ZltgFF1cu
    # L/RPiWSRcZuhh7dIWgoPQrVx8BtC8pkh4F5ECxogQnlaDNBzGYf1UYNfEQOFec31
    # UK8oENwWx5/EaKFrSi9Y4tu6rkpH0idmYds/1fvqApGxujhvCO4Se8Atfc98icX4
    # DWkc1QILREHiVinmoO3smmjB5wumgP45p9OVJXhI0D0gUFQfOSappa5eO2lbnNVG
    # 90rCsADmVpDDmNt2qPG01luBbX6VtWMP2thjP5/CWvUy6+xfrhlqvwZyZt3SKtuf
    # FWkqnNWMnmgtBNSmBF5+q8w5SJW+24qrncKJWSIim/nRtC11XnoI9SXlaucS3Nlb
    # crQVicXOtbhksEqMTn52i8NOfzGCAxswggMXAgEBMGkwVDELMAkGA1UEBhMCR0Ix
    # GDAWBgNVBAoTD1NlY3RpZ28gTGltaXRlZDErMCkGA1UEAxMiU2VjdGlnbyBQdWJs
    # aWMgQ29kZSBTaWduaW5nIENBIFIzNgIRAOiFGyv/M0cNjSrz4OIyh7EwDQYJYIZI
    # AWUDBAIBBQCggYQwGAYKKwYBBAGCNwIBDDEKMAigAoAAoQKAADAZBgkqhkiG9w0B
    # CQMxDAYKKwYBBAGCNwIBBDAcBgorBgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIBFTAv
    # BgkqhkiG9w0BCQQxIgQgIhAnJo50vt41hoPEtqYGRkuT74UsCngv/6VaO5KVidEw
    # DQYJKoZIhvcNAQEBBQAEggIAPagP+BBhJXQf53pBXeNUURxXjfos3Fw0lP4Fli7b
    # Y9WZuPpYSRwjni7Z0dPbqn+idTZ4RZXDOdIy76OolkkB474KWVuW39dJWpiSIsgo
    # vy/QcJ7uLp5VQJG42VLyDG7HEVJiv+7YAZn+gknfTf8yQvLM5XJdopXXDDYUPjTc
    # DrzbEaEVfs0oalYNG1wPJV8zahdEp2AoYFkUFzPTVSlRYWzR2HyJSJ6SVLVIaVzr
    # DHfvPxB5ZrFeWfMKCKdXk6hLC180WYAdZbF4JiNsSsCp7iw42r0OFsMbb7wgwMxZ
    # DUE0F0LnmY5oB4hxi3qYQObx8VZjDHSt7X1xRn22ayuSVmHc1JMChFRHqsinw99f
    # /lTr4tnev0FhSbarAn2a1PCz+qUXo1pG1CqqEPUy3RZW3uv3pK/3lW8m2YLothZi
    # vHttdVaXYNNew1fTtXLTJ+jV6PlItZvX4eBJztFVYbiFrERq2pIy+XoT+R+zVjNZ
    # rtvv/hai8sF28ERzJf5z3PmfUgXnqIC3/aJWWDU0Zc36Vu7O4Whoq5FbwDUuiSTF
    # VYFQ12CYmb7zClmLkTWlCdXlzoUlIeeYbMfarCrxyFo2NcELRm88x38qmZpBhQJJ
    # nYC4bpOBklr6hs78PRN5CnnwW4v5aTtTAtT48xiZGspYMo/xGBLV/tThIudDBfv2
    # Av4=
    # SIG # End signature block

# SIG # Begin signature block
# MIIVvgYJKoZIhvcNAQcCoIIVrzCCFasCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDzw/FRyuqh3srk
# rlHhEenQk/ddl8UlstFFPXswGWH9XqCCEfkwggVvMIIEV6ADAgECAhBI/JO0YFWU
# jTanyYqJ1pQWMA0GCSqGSIb3DQEBDAUAMHsxCzAJBgNVBAYTAkdCMRswGQYDVQQI
# DBJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcMB1NhbGZvcmQxGjAYBgNVBAoM
# EUNvbW9kbyBDQSBMaW1pdGVkMSEwHwYDVQQDDBhBQUEgQ2VydGlmaWNhdGUgU2Vy
# dmljZXMwHhcNMjEwNTI1MDAwMDAwWhcNMjgxMjMxMjM1OTU5WjBWMQswCQYDVQQG
# EwJHQjEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMS0wKwYDVQQDEyRTZWN0aWdv
# IFB1YmxpYyBDb2RlIFNpZ25pbmcgUm9vdCBSNDYwggIiMA0GCSqGSIb3DQEBAQUA
# A4ICDwAwggIKAoICAQCN55QSIgQkdC7/FiMCkoq2rjaFrEfUI5ErPtx94jGgUW+s
# hJHjUoq14pbe0IdjJImK/+8Skzt9u7aKvb0Ffyeba2XTpQxpsbxJOZrxbW6q5KCD
# J9qaDStQ6Utbs7hkNqR+Sj2pcaths3OzP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