added same capabilities for .csv export as tickets services functions added in previous commit for .pdf