Custom Module TicketOpenByAgentOrCustomer
This module saves in a dynamic field if the ticket was opened via a customer or attendant.
Run
To create the generic attendant add the event as 'TicketCreate':
Custom module:
Module => Kernel::System::GenericAgent::TicketOpenByAgentOrCustomer::TicketOpenByAgentOrCustomer
DynamicField => Name of the dynamic text field that will receive the value 'Customer' or 'Attendant'
After that, when the generic attendant is executed, the dynamic field will indicate that the ticket was opened via attendant or client: