diff --git a/src/modules/crud/decision.api.ts b/src/modules/crud/decision.api.ts index 3ad6470..5249552 100644 --- a/src/modules/crud/decision.api.ts +++ b/src/modules/crud/decision.api.ts @@ -107,13 +107,11 @@ export class DecisionApi implements Api { } getCipher(password: string) { - return BI.Providers.getProvider('dec.provider.cipher') - .getCipher(password); + return Dec.Utils['getTransCipherText'](password); } getPlain(cipher: string) { - return BI.Providers.getProvider('dec.provider.cipher') - .getPlain(cipher); + return Dec.Utils['getPlainText'](cipher); } getHyperlink(name: string) { diff --git a/types/globals.d.ts b/types/globals.d.ts index 4d1c456..f936556 100644 --- a/types/globals.d.ts +++ b/types/globals.d.ts @@ -13,6 +13,7 @@ declare const Dec: { connected: boolean; }; system: {}; + Utils: {}, personal: { username: string; };