<?php
defined('ABSPATH') OR die('Access denied!');
/**
 */
    function o365_get_all_plugins_info() {
        $office365ActivatedPlugins = array(
            'o365-wp-flow' => array( 
                                    "file" => 'o365-wp-flow.php' 
                                ),
            'o365-powerbi' => array( 
                                    "file" => 'o365-powerbi.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-user-auth' => array( 
                                    "file" => 'o365-user-auth.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-restrict' => array( 
                                    "file" => 'o365-wp-restrict.php' 
                                ),
            'o365-powerapps' => array( 
                                    "file" => 'o365-powerapps.php.php' 
                                ),
            'o365-wp-ms-search' => array( 
                                    "file" => 'o365-wp-ms-search.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-flow-forms' => array( 
                                    "file" => 'o365-wp-flow-forms.php' 
                                ),
            'o365-wp-flow-media' => array( 
                                    "file" => 'o365-wp-flow-media.php' 
                                ),
            'o365-wp-flow-posts' => array( 
                                    "file" => 'o365-wp-flow-posts.php' 
                                ),
            'o365-wp-flow-users' => array( 
                                    "file" => 'o365-wp-flow-users.php' 
                                ),
            'o365-wp-ms-booking' => array( 
                                    "file" => 'o365-wp-ms-booking.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-sp-display' => array( 
                                    "file" => 'o365-wp-sp-display.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-flow-events' => array( 
                                    "file" => 'o365-wp-flow-events.php' 
                                ),
            'o365-wp-static-site' => array( 
                                    "file" => 'o365-wp-static-site.php' 
                                ),
            'o365-office-add-ins' => array( 
                                    "file" => 'o365-office-add-ins.php' 
                                ),
            'o365-wp-code-insert' => array( 
                                    "file" => 'o365-wp-code-insert.php' 
                                ),
            'o365-wp-crm-display' => array( 
                                    "file" => 'o365-wp-crm-display.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-flow-bp-bpress' => array( 
                                    "file" => 'o365-wp-flow-bp-bpress.php' 
                                ),
            'o365-wp-yammer-display' => array( 
                                    "file" => 'o365-wp-yammer-display.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            "o365-user-authentication" => array( 
                                    "file"=> "o365-user-auth-online.php",
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-persons-display' => array( 
                                    "file" => 'o365-wp-persons-display.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-outlook-display' => array( 
                                    "file" => 'o365-wp-outlook-display.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-azure-adb2c' => array( 
                                    "file" => 'o365-adb2c-authentication.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-flow-woocommerce' => array( 
                                    "file" => 'o365-wp-flow-woocommerce.php' 
                                ),
            'o365-wp-sp-video-display' => array( 
                                    "file" => 'o365-wp-sp-video-display.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-onedrive-display' => array( 
                                    "file" => 'o365-wp-onedrive-display.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-flow-bulk-actions' => array( 
                                    "file" => 'o365-wp-flow-bulk-actions.php' 
                                ),
            'o365-user-multiple-roles' => array( 
                                    "file" => 'o365-user-multiple-roles.php' 
                                ),
            'o365-wp-sp-calendar-display' => array( 
                                    "file" => 'o365-wp-sp-calendar-display.php',
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes" 
                                ),
            'o365-wp-static-woocommerce-addon' => array( 
                                    "file" => 'o365-wp-static-woocommerce-addon.php' 
                                ),
            'o365-wp-outlook-booking' => array( 
                                    "file" => 'o365-wp-outlook-booking.php', 
                                    "access_token_used" => 'yes',
                                    "revoke_token"  => "yes"
                                ),
        );

        return $office365ActivatedPlugins;
    }

    function get_access_token_dependent_plugins() {
        $AccessTokenDependentPlugins = array(
            'o365-user-auth' => array( "file" => 'o365-user-auth.php', "access_token_used" => 'yes' ),
            'o365-wp-ms-search' => array( "file" => 'o365-wp-ms-search.php', "access_token_used" => 'yes' ),
            'o365-wp-ms-booking' => array( "file" => 'o365-wp-ms-booking.php', "access_token_used" => 'yes' ),
            'o365-wp-sp-display' => array( "file" => 'o365-wp-sp-display.php', "access_token_used" => 'yes' ),
            'o365-wp-crm-display' => array( "file" => 'o365-wp-crm-display.php', "access_token_used" => 'yes' ),
            'o365-wp-yammer-display' => array( "file" => 'o365-wp-yammer-display.php', "access_token_used" => 'yes' ),
            "o365-user-authentication" => array( "file"=> "o365-user-auth-online.php", "access_token_used" => 'yes' ),
            'o365-wp-persons-display' => array( "file" => 'o365-wp-persons-display.php', "access_token_used" => 'yes' ),
            'o365-wp-outlook-display' => array( "file" => 'o365-wp-outlook-display.php', "access_token_used" => 'yes' ),
            'o365-wp-azure-adb2c' => array( "file" => 'o365-adb2c-authentication.php', "access_token_used" => 'yes' ),
            'o365-wp-sp-video-display' => array( "file" => 'o365-wp-sp-video-display.php', "access_token_used" => 'yes' ),
            'o365-wp-onedrive-display' => array( "file" => 'o365-wp-onedrive-display.php', "access_token_used" => 'yes' ),
            'o365-wp-sp-calendar-display' => array( "file" => 'o365-wp-sp-calendar-display.php', "access_token_used" => 'yes' ),
            'o365-wp-outlook-booking' => array( "file" => 'o365-wp-outlook-booking.php', "access_token_used" => 'yes' ),
        );

        return $AccessTokenDependentPlugins;
    }
?>