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