code: function show() {
              var args = [].slice.call(arguments, 0);
              if (typeof(args[0]) === 'string') {
                  _swal.apply(undefined, args);
              } else if (typeof(args[0]) === 'object') {
                  var defered = $q.defer();
                  var callback = function (result) {
                      defered.resolve(result);
                  };
  
                  _swal(args[0], callback);
  
                  return defered.promise;
              }
          }
docs: ////////