keymanager, syncmanager

This commit is contained in:
Mo Bitar
2017-01-25 15:52:03 -06:00
parent 13e6ac59a9
commit a76f725f7f
23 changed files with 1088 additions and 721 deletions

View File

@@ -56,7 +56,7 @@ class Extension extends Item {
this.content_type = "Extension";
}
syncProviderAction() {
get syncProviderAction() {
return _.find(this.actions, {sync_provider: true})
}

View File

@@ -1,5 +1,6 @@
class SyncProvider {
constructor(obj) {
this.encrypted = true;
_.merge(this, obj);
}
@@ -28,8 +29,9 @@ class SyncProvider {
return {
enabled: this.enabled,
url: this.url,
encrypted: this.encrypted,
ek: this.ek
primary: this.primary,
keyName: this.keyName,
syncToken: this.syncToken
}
}