define(["views","methods"], function(routeViews,routeMethods) { // https://www15.cradle2careertx.xyz/portal/admin/ // https://www15.cradle2careertx.xyz/portal/sponsor/ // https://www15.cradle2careertx.xyz/portal/email/ // https://www15.cradle2careertx.xyz/portal/dashboard/ function AppManager(app,afsconfig,afspayments){ let self = this; self._props_ = {}; self.container = {}; self.container.views = {}; self.routeViews = routeViews; self.app = app; self.afsconfig = afsconfig; self.domain = afsconfig.managed_domain; self.afspayments = afspayments; let notif = []; for(let i=0; i < afsconfig.notifications.length; i++){ // console.log(afsconfig.notifications[i].json.reference_acct + " | " + afsconfig.user.email) if(afsconfig.notifications[i].json.reference_acct==afsconfig.user.email){ notif.push(afsconfig.notifications[i]); } } self.sponsorships = notif; self.sponsor = {}; } // mmmmm function ___add_request_object(self){ if(self.sponsor.afssponsorship.sponsorship.json["request"]==undefined){ self.sponsor.afssponsorship.sponsorship.json["request"] = { "url":"core/php/request.php", "onsubmit":"api_submit_form_become_a_member", "dataupload":"api_upload_data", "fileupload":"api_upload_file", "savedirectory": "sponsors/files" }; } } function __remove_file_input(self){ let $el = $("#image_logo_upload"); $el.wrap('