/*

Sweet Alert functions
The four functions below are just convenience methods

ex. Swangular.alert("This is a warning message");
function swal_alert(message, customOptions) {
        var options = angular.extend(
          {
            title: 'Alert',
            text: message,
            type: 'warning',
            showCancelButton: false
          },
          customOptions
        );

        return $q.when(swal(options));
      }