maintenance()
Usage
maintenance(commandName, parameters)
Description
Allows an admin user to execute a maintenance command from within a scripting context.
Example
${maintenance('rebuildIndex')}
JavaScript Example
{
Structr.maintenance('rebuildIndex', { type: 'Article' });
}