Creating a provider to enable the configuration os default values of SweetAlert.
This provider has a function called "setDefaults" to receive an object with default values of SweetAlert and store it in a variable called "defaultSwal".
On the factory "SweetAlert", this provider is imported as a dependency and the function "setDefault" of swal is called with the variable "defaultSwal" of provider as a parameter.
Creating a provider to enable the configuration os default values of SweetAlert. This provider has a function called "setDefaults" to receive an object with default values of SweetAlert and store it in a variable called "defaultSwal".
On the factory "SweetAlert", this provider is imported as a dependency and the function "setDefault" of swal is called with the variable "defaultSwal" of provider as a parameter.