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