Accept -Action
The takeover action is executed on the server after a user has taken over a ticket in the incoming list. For example, the following script can be used to create an outgoing email for a ticket that was not created by an email:
if(task.getSource().isEmpty())
{
var box = helper.getMailboxById(2);
if(box!=null)
task.setSourcemailbox(box);
}