Moved ChatService class methods into a Client module to clean the ChatService class. This will also allow to use the Client module in future services.

Other Changes

* Converted create_chat and fetch_chat into instance methods instead of class methods to maintain the same level of abstraction.
* Modified the ChatService specs to reflect this change. Added test for fetch chat.
* VCR is still pending.

Files Modified / Added

modified:   support_me-main/app/services/chat_service.rb
new file:   support_me-main/app/services/client.rb
modified:   support_me-main/log/test.log
modified:   support_me-main/spec/services/chat_service_spec.rb
Modified the demo_controller, the chats_controller and the customer_controller to reflect the changes of the ChatService.

Files Modified

modified:   support_me-main/app/controllers/admin/chats_controller.rb
modified:   support_me-main/app/controllers/customers_controller.rb
modified:   support_me-main/app/controllers/demo_controller.rb
modified:   support_me-main/app/services/chat_service.rb
modified:   support_me-main/log/test.log