|
@@ -1,4 +1,4 @@
|
|
-module.exports = function create_tool(){
|
|
|
|
|
|
+module.exports = function create_tool() {
|
|
|
|
|
|
var async = require("async");
|
|
var async = require("async");
|
|
var actions = {};
|
|
var actions = {};
|
|
@@ -86,6 +86,12 @@ module.exports = function create_tool(){
|
|
}, cb)
|
|
}, cb)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function list_filter_and_actions() {
|
|
|
|
+ return {
|
|
|
|
+ "filters": filters,
|
|
|
|
+ "actions": actions
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
@@ -93,12 +99,10 @@ module.exports = function create_tool(){
|
|
do_action: do_action,
|
|
do_action: do_action,
|
|
add_filters: add_filters,
|
|
add_filters: add_filters,
|
|
apply_filters: apply_filters,
|
|
apply_filters: apply_filters,
|
|
- apply_filters_map: apply_filters_map
|
|
|
|
|
|
+ apply_filters_map: apply_filters_map,
|
|
|
|
+ list_filter_and_actions: list_filter_and_actions
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+}
|