Contents will be displayed here...
dummy

Need support? Drop us an email

dummy

24 x 7 Every Day

Available for You

dummy

Have a question? call us now

Copyright @ 2019, Safe Care Ambulance, LLC,  8998 Route 18, Old Bridge, NJ 08857, Privacy Policy

Designed and Powered by Be Wise, LLC Powered by Be Wise, LLC

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","modified_at":"1586332002898","modified_by":"1580295343903"}); // let prevPayload_1 = `{"_id":"5dfb4587544b890019f47771","object":"pages","app_name":"safecare_ambulance","token":"1576748405504","type":"content","template":"1586331958569","title":"404 page","slug":"404-page","status":"draft","meta_title":"404 page | Safecare ambulance","excerpt":"","contents":"
\r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","modified_at":"1586332002898","modified_by":"1580295343903"}`; let template = ``; // prevPayload_1 = JSON.parse(prevPayload_1); // prevPayload = prevPayload.replace(/\\/g, ''); // prevPayload = JSON.parse(decodeEntities(prevPayload)); prevPayload = JSON.parse(prevPayload); if(template!=''){ template = JSON.parse(decodeEntities(template)); } //var itemKeysArr = prevPayload.objs; var itemKeysArr = ''; //Do We Need it? itemKeysArr = $.parseJSON('[' + itemKeysArr + ']'); if (typeof itemKeysArr !== 'undefined' && itemKeysArr.length > 0) { for (let i=0; i 0) { for (let i=0; i`+`
$(function(){ref_url_inheritence();})`+``)($scope,function(clonedElement){ customFunctionsCall(function(result){ var allFuncsDefs = ''; result.data.forEach( function(element) { allFuncsDefs += element.html + '\n'; }); appendJsToScript(allFuncsDefs) }); var pureRawJs = ''; // Find logicJs of presets from template html $(document).find('.logic_js').each(function(){ pureRawJs += $(this).text(); }); // Find logicJs of presets from object html $(clonedElement).find('.logic_js').each(function(){ pureRawJs += $(this).text(); }); $scope.$watch(function() { return $http.pendingRequests.length > 0; }, function(hasPending) { console.log("hasPending", hasPending); // setTimeout(function(){ // hasPending = false; // var buildCustomLogic = eval($scope.item.logic_builder_js); // }, 2000); if (!hasPending) { let jsToExecute = pureRawJs + $scope.item.logic_builder_js; // var buildCustomLogicPresets = eval(pureRawJs); console.log("jsToExecute", jsToExecute); var buildCustomLogic = eval(jsToExecute); } }); }); console.log('SCOPE',$scope); //$scope.apimodules = {"_id":"5d8b54c98a9fae00140ccf77","object":"j-book","app_name":"j_book_project_3","token":"1569412275230","type":"content","template":"1569413508651","title":"NT","author":"j-author^author-name^Isaac Asimov","summary":"NAyyarTech","series-name":"nt","page-count":"1"}; }]); function decodeEntities(encodedString) { var textArea = document.createElement('textarea'); textArea.innerHTML = encodedString; return textArea.value; } ngApp.filter('safeHtml', function ($sce) { return function (val) { if(val != undefined){ if(val.length == 1){ return $sce.trustAsHtml(val[0].innerHTML); }else{ return $sce.trustAsHtml(val); } } }; }); function appendJsToScript(code){ var s = document.createElement('script'); s.type = 'text/javascript'; try { s.appendChild(document.createTextNode(code)); document.body.appendChild(s); } catch (e) { s.text = code; document.body.appendChild(s); } } function customFunctionsCall(successFn, errorFn) { $.ajax({ url: 'https://owlapplicationbuilder.com/system/designer/get_functional_logic', method: 'GET', async: false, error: function (res, st, err) { // showalert(res.responseJSON.message, 'alert-danger'); }, beforeSend: function () { // showalert('Please wait...', 'alert-info'); }, complete: function () { }, success: function (response) { if ($.isFunction(successFn)) { successFn.call(this, response); } } }); }