fcf.module({
  name: "fcfManagement:templates/pages/access/tabs/groups.receive.js",
  dependencies: [],
  module: function(){
    var self = this;
    return {
      receive: function(a_fields, a_files, a_request){
        if (a_fields.action == "remove" && a_fields.id) {
          return fcf.application.getStorage().query(
            {
              type: "DELETE",
              from: "___fcf___groups",
              where: [{type: "=", args:[{function: "key"}, {value: a_fields.id}]}],
            }
          );
        } else {
          return "ok";
        }
      }
    }
  }
});
