SPOCSoMInterface.psm1

if(-not(Get-InstalledModule -Name "Microsoft.Online.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){
    Throw "Missing dependent Microsoft Online PowerShell module. Install it via 'Install-Module Microsoft.Online.SharePoint.PowerShell'"
    Exit
}

if(-not(Get-InstalledModule -Name "SharePointPnPPowerShellOnline" -ErrorAction SilentlyContinue)){
    Throw "Missing dependent SharePointPnPPowerShellOnline module. Install it via 'Install-Module SharePointPnPPowerShellOnline'"
    Exit
}

#Import-Module "$psScriptRoot\Microsoft.Online.SharePoint.PowerShell\Microsoft.Online.SharePoint.PowerShell.dll" -DisableNameChecking

. $psScriptRoot\Connect-SPOCSOM.ps1
. $psScriptRoot\Connect-SPCSOM.ps1
. $psScriptRoot\Disconnect-SPOCSOM.ps1
. $psScriptRoot\Get-SPAllFolderItems.ps1
. $psScriptRoot\Get-SPOAllWebs.ps1
. $psScriptRoot\Get-SPOCSOMObjectProperties.ps1
. $psScriptRoot\Get-SPOListItems.ps1
. $psScriptRoot\Get-SPOObjectRoleAssignments.ps1
. $psScriptRoot\Get-SPOSubWebs.ps1
. $psScriptRoot\Get-SPOWeb.ps1
. $psScriptRoot\Get-SPOWEbList.ps1
. $psScriptRoot\Initialize-SPObjectPermissions.ps1
. $psScriptRoot\Initialize-SPOCSOMCollections.ps1
. $psScriptRoot\Initialize-SPOCSOMObjectProperty.ps1
. $psScriptRoot\Split-SPOItemURL.ps1

Update-FormatData -AppendPath ($psScriptRoot + "\SPClient.Format.ps1xml")

#Import-Module "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.UserProfiles.dll"