Is there any method to get current pos profile name?

I am generating a report which has a filter based on pos profile. I want to set current pos profile as default in that field. How do I do this?

to set default use following in JavaScript if you want to set specific POS profile as default.

“default”: “posprofile”,

else you can write a function to fetch the pos profile.

Thanks Adnan. But I know that. I want to set current pos profile as default and I don’t know how to get it. Do you have any idea how to get current POS Profile. Is there any built in method like “frappe.defaults.get_user_default(“Company”)” which gets user default company???