Skip to content

Commit

Permalink
KAZOO-545: forgot to include the view update
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anderson committed Mar 10, 2013
1 parent ef5a500 commit 8ece4e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions whistle_apps/apps/callflow/priv/couchdb/views/attributes.json
Expand Up @@ -29,6 +29,9 @@
},
"sip_username": {
"map": "function (doc) {if (doc.pvt_deleted) return;if (doc.hotdesk && doc.hotdesk.users && Object.keys(doc.hotdesk.users).length) {var owners = Object.keys(doc.hotdesk.users);} else if (doc.owner_id) {var owners = new Array();owners.push(doc.owner_id);} else {var owners = new Array();}if (doc.sip && doc.sip.username && doc.sip.method == 'password' && !doc.pvt_deleted) {emit(doc.sip.username, owners);} else if (doc.pvt_type === 'sys_info' && !doc.pvt_deleted) {for (i in doc.servers) {var auth = doc.servers[i].auth;if (auth.auth_user && auth.auth_method == 'password') {emit(auth.auth_user, owners);}}}}"
},
"groups": {
"map": "function (doc) {if (doc.pvt_type != 'group' || doc.pvt_deleted || !doc.endpoints) return;emit(null, doc.endpoints);}"
}
}
}

0 comments on commit 8ece4e7

Please sign in to comment.