var my_department = [];
for (var i = 0; i < aggregations.all_outdept_name.buckets.length; iPP) {
if (aggregations.all_outdept_name.buckets[i].key == "") continue;
var department_obj = {
value: aggregations.all_outdept_name.buckets[i].key,
label: aggregations.all_outdept_name.buckets[i].key,
count: aggregations.all_outdept_name.buckets[i].doc_count
}
my_department.push(department_obj);
}
_this.department = my_department;