* create basic useEndpointData for call endpoints using hooks
* remove cache
* create base for useEndpointData test
* create basic useEndpointData for call endpoints using hooks
* remove cache
* create base for useEndpointData test
* fix preset
* update tests
* change order
* create ErrorResult and add error to return
* update tests
* Chore: Hooks - create custom hook usePermissions
* minor tweak
* Change usage of usePermissiosn on LivechatEditView
* Create getPermissionsSelector
* Simplify selector
* Simplify userRoles
* First render with permissions array length of false
* Move roles state closer to each other
* useSubscription (not working, but looking cool)
* at least it's working now
* working
* cleanup
* solve ts return
* Change it to useSubscriptionRoles only and check for diff on the state
* Remove IAppState
* Minor tweak to work properly useSubscriptionRoles
Co-authored-by: Diego Mello <diegolmello@gmail.com>