console.log("Inside fetch data");
return new Promise(function(resolve, reject) {
console.log("Inside fetch data promise");
if ((!page.isSupported()) && (!page.isWebsiteReferral())) {
reject(); // did not load page data
}
var url = page.getRealUrl();
console.log("Inside fetch data get real url");
var isAdmin = ($.inArray(parseInt(client.userId), p.defines.adminUsers) >= 0) && (p.services.isInStaging());
console.log("Inside here and isAdmin found")