async function manage(organization) {
        if (authentication.user.Role !== PAID_ADMIN_ROLE) {
            return;
        }
        const { PublicKey, PrivateKey } = await loadkeys();
        if (PublicKey) {
            set('keyStatus', 0);
            const info = await keyInfo(PrivateKey || PublicKey);
            set('organizationKeyInfo', info);
        }

        if (!PrivateKey) {
            set('keyStatus', 1);
            return checkActivation(organization);
        }

        try {
            const key = await decryptPrivateKey(PrivateKey, authentication.getPassword());
            set('organizationKey', key);
        } catch (e) {
            set('keyStatus', 2);
            console.error(e);
        }
        checkActivation(organization);
    }
/**
     * Manage user orga and find if we need to setup the orga
     * or if we found dirty Addresses
     * @param  {Object} organization
     * @return {Promise}
     */
Manage user orga and find if we need to setup the orga
or if we found dirty Addresses
@param  {Object} organization
@return {Promise}
Manage user orga and find if we need to setup the orga or if we found dirty Addresses @param { Object } organization @return { Promise }
async function manage(organization) {
        if (authentication.user.Role !== PAID_ADMIN_ROLE) {
            return;
        }
        const { PublicKey, PrivateKey } = await loadkeys();
        if (PublicKey) {
            set('keyStatus', 0);
            const info = await keyInfo(PrivateKey || PublicKey);
            set('organizationKeyInfo', info);
        }
        if (!PrivateKey) {
            set('keyStatus', 1);
            return checkActivation(organization);
        }
        try {
            const key = await decryptPrivateKey(PrivateKey, authentication.getPassword());
            set('organizationKey', key);
        } catch (e) {
            set('keyStatus', 2);
            console.error(e);
        }
        checkActivation(organization);
    }
async function manage ( organization ) { if ( authentication . user . Role !== PAID_ADMIN_ROLE ) { return ; } const { PublicKey , PrivateKey } = await loadkeys ( ) ; if ( PublicKey ) { set ( 'keyStatus' , 0 ) ; const info = await keyInfo ( PrivateKey || PublicKey ) ; set ( 'organizationKeyInfo' , info ) ; } if ( ! PrivateKey ) { set ( 'keyStatus' , 1 ) ; return checkActivation ( organization ) ; } try { const key = await decryptPrivateKey ( PrivateKey , authentication . getPassword ( ) ) ; set ( 'organizationKey' , key ) ; } catch ( e ) { set ( 'keyStatus' , 2 ) ; console . error ( e ) ; } checkActivation ( organization ) ; }
Manage user orga and find if we need to setup the orga
 or if we found dirty Addresses
 @param  {Object} organization
 @return {Promise}
Manage user orga and find if we need to setup the orga or if we found dirty Addresses @param { Object } organization @return { Promise }