Editing the app.js File
  • 20 Jun 2024
  • 7 Minutes to read
  • Dark
    Light

Editing the app.js File

  • Dark
    Light

Article summary

The app.js file lets you inject scripts in the <head> of every page on the Members Portal.

No need to wrap the page with <script>, we automatically do it for you.

The file has access to the global jQuery variable $ .

$(function() {
...
})

You can also access a read-only state of the app using the global variable nexudus.

{
   "appStore":{
      "isLoadingLegalStatus":false,
      "hasLoadedLegalStatus":false,
      "legalStatus":null,
      "isLoadingAcceptTerms":false,
      "hasLoadedAcceptTerms":false,
      "acceptTerms":null,
      "isLoadingHomePage":false,
      "hasLoadedHomePage":false,
      "homePage":{
         "Gallery":[

         ]
      },
      "isLoadingBusinesses":false,
      "hasLoadedBusinesses":false,
      "businesses":[

      ],
      "isLoadingNetworks":false,
      "hasLoadedNetworks":false,
      "networks":[

      ],
      "isLoadingBusiness":false,
      "hasLoadedBusiness":true,
      "business":{
         "Name":"Kalkio Space - East Side",
         "WebAddress":"kalkiospace",
         "Address":"1-3 Brixton Road, \r\nSW9 6DE\r\nLondon",
         "Phone":null,
         "Fax":null,
         "EmailContact":null,
         "WebContact":null,
         "CookiePolicyUrl":null,
         "PrivacyPolicyUrl":null,
         "Quote":null,
         "NativeHomeUrl":"https://kalkiospace.spaces.nexudus.com",
         "NativeHomeUrlWithLanguage":"https://kalkiospace.spaces.nexudus.com/en",
         "HomeUrl":"https://kalkiospace.spaces.nexudus.com",
         "HomeUrlWithLanguage":"https://kalkiospace.spaces.nexudus.com/en",
         "TransactionFee":1,
         "Country":{
            "Name":"United States",
            "Id":1221,
            "IdString":"1221",
            "UpdatedOn":"/Date(1327329350000)/",
            "CreatedOn":"/Date(1327329350000)/",
            "UniqueId":"e5ea470a-1440-4b37-ac9c-1949b6a70830",
            "IsNull":false,
            "Context":null
         },
         "Currency":{
            "Name":"US Dollar (USD)",
            "Code":"USD",
            "Format":"$0.00",
            "Id":3004,
            "IdString":"3004",
            "UpdatedOn":"/Date(1369493356000)/",
            "CreatedOn":"/Date(1327329350000)/",
            "UniqueId":"29fe8a0f-fb71-4b42-a3eb-c2f29cfcd8e2",
            "IsNull":false,
            "Context":null
         },
         "SimpleTimeZone":{
            "Name":"GMT Standard Time",
            "Iana":"Europe/London",
            "TimeOffset":"0",
            "UsesSummerTime":true,
            "OffsetInMinutes":60,
            "Id":2023,
            "IdString":"2023",
            "UpdatedOn":"/Date(1368283882000)/",
            "CreatedOn":"/Date(1327329350000)/",
            "UniqueId":"12d47167-0964-42e8-aab6-e58f441ae9b3",
            "IsNull":false,
            "Context":null
         },
         "Businesses":[

         ],
         "AboutUs":null,
         "ShortIntroduction":null,
         "BillingName":"Kalkio Space",
         "BillingAddress":"1-3 Brixton Road",
         "BillingCity":"London",
         "BillingPostCode":"SW9 6DE",
         "BillingBankName":"",
         "BillingAccountCode":"",
         "BillingSortCode":"",
         "TermsAndConditions":"Terms",
         "Longitude":0,
         "Latitude":0,
         "IsChildLocation":true,
         "HasLogo":true,
         "HasBanner":true,
         "Id":1004930927,
         "IdString":"1004930927",
         "UpdatedOn":"/Date(1595669078000)/",
         "CreatedOn":"/Date(1556472205000)/",
         "UniqueId":"a596d492-5f26-4645-a971-600ccf9a61e2",
         "IsNull":false,
         "Context":null
      },
      "isLoadingCustomPages":false,
      "hasLoadedCustomPages":true,
      "customPages":[
         {
            "Name":"About us.js",
            "Title":"About us",
            "Description":null,
            "Visibility":"Public",
            "Permalink":"about-us",
            "HasImage":false,
            "FileLanguage":{
               "Name":"English",
               "Culture":"en",
               "IsRtl":false,
               "Id":1004932929,
               "IdString":"1004932929",
               "UpdatedOn":"/Date(1556472209000)/",
               "CreatedOn":"/Date(1556472209000)/",
               "UniqueId":"5b1341a2-b888-4c3e-8ae7-e5e9ede4e590",
               "IsNull":false,
               "Context":null
            },
            "IsPasswordProtected":false,
            "Id":1356092761,
            "IdString":"1356092761",
            "UpdatedOn":"/Date(1595508540000)/",
            "CreatedOn":"/Date(1595508416000)/",
            "UniqueId":"78c36b87-4fae-4ad0-bd40-4e083496241b",
            "IsNull":false,
            "Context":null
         },
         {
            "Name":"FAQ.htm",
            "Title":"FAQ",
            "Description":"..."
            "Visibility":"Public",
            "Permalink":"faq",
            "HasImage":false,
            "FileLanguage":{
               "Name":"English",
               "Culture":"en",
               "IsRtl":false,
               "Id":1004932929,
               "IdString":"1004932929",
               "UpdatedOn":"/Date(1556472209000)/",
               "CreatedOn":"/Date(1556472209000)/",
               "UniqueId":"5b1341a2-b888-4c3e-8ae7-e5e9ede4e590",
               "IsNull":false,
               "Context":null
            },
            "IsPasswordProtected":false,
            "Id":1102644660,
            "IdString":"1102644660",
            "UpdatedOn":"/Date(1595349137000)/",
            "CreatedOn":"/Date(1562659654000)/",
            "UniqueId":"f51c5610-3854-4b50-99d8-ad6262e52fb7",
            "IsNull":false,
            "Context":null
         },
         {
            "Name":"HomeDashboard.js",
            "Title":null,
            "Description":null,
            "Visibility":"Private",
            "Permalink":"homedashboard",
            "HasImage":false,
            "FileLanguage":{
               "Name":"English",
               "Culture":"en",
               "IsRtl":false,
               "Id":1004932929,
               "IdString":"1004932929",
               "UpdatedOn":"/Date(1556472209000)/",
               "CreatedOn":"/Date(1556472209000)/",
               "UniqueId":"5b1341a2-b888-4c3e-8ae7-e5e9ede4e590",
               "IsNull":false,
               "Context":null
            },
            "IsPasswordProtected":false,
            "Id":1356762596,
            "IdString":"1356762596",
            "UpdatedOn":"/Date(1595667230000)/",
            "CreatedOn":"/Date(1595666599000)/",
            "UniqueId":"df65b7cf-8f4e-4198-b080-206907666a9e",
            "IsNull":false,
            "Context":null
         },
         {
            "Name":"HomeMembersList.js",
            "Title":null,
            "Description":null,
            "Visibility":"Private",
            "Permalink":"homememberslist",
            "HasImage":false,
            "FileLanguage":{
               "Name":"English",
               "Culture":"en",
               "IsRtl":false,
               "Id":1004932929,
               "IdString":"1004932929",
               "UpdatedOn":"/Date(1556472209000)/",
               "CreatedOn":"/Date(1556472209000)/",
               "UniqueId":"5b1341a2-b888-4c3e-8ae7-e5e9ede4e590",
               "IsNull":false,
               "Context":null
            },
            "IsPasswordProtected":false,
            "Id":1356762595,
            "IdString":"1356762595",
            "UpdatedOn":"/Date(1595670163000)/",
            "CreatedOn":"/Date(1595666499000)/",
            "UniqueId":"cdf34ce8-83aa-4153-9653-6a44b742cde5",
            "IsNull":false,
            "Context":null
         }
      ],
      "isLoadingCustomPage":false,
      "hasLoadedCustomPage":false,
      "customPage":null,
      "showReferralModal":false,
      "isLoadingReferralDiscounts":false,
      "hasLoadedReferralDiscounts":false,
      "referralDiscounts":[

      ],
      "isLoadingSendReferralInvite":false,
      "hasLoadedSendReferralInvite":false,
      "sendReferralInvite":null,
      "isLoadingConfiguration":false,
      "hasLoadedConfiguration":true,
      "configuration":{
         "Bookings.AcceptPastBookings":null,
         "Bookings.AutoPayContactBookings":null,
         "Bookings.AutoPayMemberBookings":null,
         "Bookings.CancelIfNotChekedIn":null,
         "Bookings.CancelUnPaidBookingsAfter":"30",
         "Bookings.CancelUnPaidBookingsForNonSubscribers":null,
         "Bookings.CancelUnPaidBookingsForSubscribers":null,
         "Bookings.ChargeBookingsImmediately":null,
         "Bookings.DoNotCreateGuestAccount":null,
         "Bookings.DueDateIgnoreProducts":null,
         "Bookings.EnableGuestBookings":"true",
         "Bookings.IncludeBookingCreditInPrice":"true",
         "Bookings.PaidBookingsCancellationPolicy":"2",
         "Bookings.RegisterConactBookersAsVisitors":null,
         "Bookings.ReminderEmailMinutes":"1440",
         "Bookings.RequestDrafts":"true",
         "Bookings.RequireConfirmation.Contacts":null,
         "Bookings.RequireConfirmation.Members":null,
         "Bookings.SendAccessCode":null,
         "Bookings.SendConfirmationEmail":"true",
         "Bookings.SendConfirmationToVisitors":"true",
         "Bookings.SendReminderEmail":"true",
         "Bookings.ShowEndDate":"true",
         "Bookings.UseCreditToPayBookingProducts":null,
         "Braintree.Enabled":null,
         "Brivo.Enable":"true",
         "Calendars.DefaultView":"1",
         "Directory.DirectoryContents":"1",
         "Directory.DirectoryRecords":"1",
         "Directory.OnlyInvoicingSpace":null,
         "Directory.ProfileTags":"",
         "ePay.Enabled":null,
         "Footer.SayingAuthor":"L. A Seneca",
         "Footer.SayingText":"Difficulties strengthen the mind, as labor does the body",
         "Forms.Address":"2",
         "Forms.BillingAddress":"1",
         "Forms.BillingCityName":"1",
         "Forms.BillingEmail":"1",
         "Forms.BillingName":"2",
         "Forms.BillingPostCode":"1",
         "Forms.BillingState":"1",
         "Forms.BusinessArea":"1",
         "Forms.CityName":"2",
         "Forms.CompanyName":"1",
         "Forms.Country":"2",
         "Forms.PorfileTags":"1",
         "Forms.Position":"1",
         "Forms.PostCode":"2",
         "Forms.ProfileSummary":"1",
         "Forms.ProfileWebiste":"1",
         "Forms.State":"1",
         "Forms.TaxIDNumber":"1",
         "Forte.ApiLoginId":"",
         "Forte.eCheckPayments":null,
         "HomePage.AboutUsIcon":null,
         "HomePage.Banner":"true",
         "HomePage.BannerSmallText":"Space / Community / Services",
         "HomePage.BannerText":"Welcome to {0}",
         "HomePage.BenefitsLongText":"All members enjoy discounted rates, credits and benefits as part of their membership.",
         "HomePage.BenefitsShortText":"Benefits and discounts",
         "HomePage.BookingsIcon":"true",
         "HomePage.BookingsLongText":"Real-time availability for all our meeting rooms. Request and manage bookings online.",
         "HomePage.BookingsShortText":"Conference Rooms",
         "HomePage.ChildCareLongText":"Professional childcare services available from the age of two.",
         "HomePage.ChildCareShortText":"Childcare",
         "HomePage.ClaimSmallTextLogin":"Let's complete your profile, shall we?",
         "HomePage.ClaimSmallTextLogout":"Let's get started, shall we?",
         "HomePage.ClaimText":"Luck is what happens when preparation meets opportunity",
         "HomePage.CommunityLongText":"Easily connect with other members of the community. Use the directories to find the right skills and promote your services.",
         "HomePage.CommunityShortText":"Online member network",
         "HomePage.DirectoryIcon":"true",
         "HomePage.EventsIcon":"true",
         "HomePage.EventsLongText":"Connect and learn in our curated events and meet-ups.",
         "HomePage.EventsShortText":"Weekly events",
         "HomePage.FooterClaimText":"A Place to develop your dreams",
         "HomePage.MyAccountIcon":"true",
         "HomePage.NewsletterSignUp":"true",
         "HomePage.ShowBenefitsService":"true",
         "HomePage.ShowBookingsService":"true",
         "HomePage.ShowCheckedInMembers":null,
         "HomePage.ShowChildCareService":"true",
         "HomePage.ShowClaimBar":"true",
         "HomePage.ShowCommunityService":"true",
         "HomePage.ShowEventsService":"true",
         "HomePage.ShowFooterClaimBar":"true",
         "HomePage.ShowIconBar":"true",
         "HomePage.ShowServicesBar":"true",
         "HomePage.ShowWorkspaceService":"true",
         "HomePage.Wall":null,
         "HomePage.WorkSpaceLongText":"Flexible plans from hot-desks all the way to your own private room or office.",
         "HomePage.WorkSpaceShortText":"Workspace",
         "HostedPayments.Provider1.Enabled":"true",
         "HostedPayments.Provider1.Name":"Simple Pay",
         "HostedPayments.Provider1.Url":"https://simplpayments.com",
         "HostedPayments.Provider2.Enabled":null,
         "HostedPayments.Provider2.Name":null,
         "HostedPayments.Provider2.Url":null,
         "HostedPayments.Provider3.Enabled":null,
         "HostedPayments.Provider3.Name":null,
         "HostedPayments.Provider3.Url":null,
         "Jitsi.AlwaysOnRooms.Enabled":"true",
         "Jitsi.AlwaysOnRooms.PrivateRoom.Contacts.Enabled":"true",
         "Jitsi.AlwaysOnRooms.PrivateRoom.Members.Enabled":"true",
         "Jitsi.AlwaysOnRooms.TeamRoom.Enabled":"true",
         "Jitsi.Bookings.Enabled":"true",
         "Legal.Cookies":"Your cookie policy goes here",
         "Legal.Privacy":"Your privacy policy goes here",
         "Legal.VisitorTermsAndConditions":"# Ausus me exclamat qui tradit\n\n## Verbis infans occumbere repandus exigui pharetra ut\n\nLorem markdownum erat amplectitur proxima Venerem; frugum levati. **Sequitur\nadiere inrita** ubi **habenas**, Cyllenius spumas vultusque mixtos? Terram iubet\nincessere properatis Haec Actaeis. Idcirco *vos*, crimina: penetrale mecum\n*omnipotens tibi monstri* fames prehensis ita, celeri cognoscere licet mirantur\nilla.\n\nTorumque tetigit orsa, et discedet tantum qui Tirynthia superos, pectoribusque.\nTantorum et ipsa marem, quod Troiae, spectabilis, iacent, obsistitur olorinis.\nSacra suos distinguunt lateque caesa [dederat\nprimas](http://www.ut-enim.com/posce-postquam) se replet medium concustodita\ncaligine spem patrios! Modo vultu Cereris: verbaque debueram, formamque quoque.\nSi medius et cara Lycisce; dic vulnere non bene Nabataeaque *eadem adunca*, duos\ncandidioribus ordo stirpe captivarumque.",
         "LiqdPay.Enabled":null,
         "Members.AllowBookings":"true",
         "Members.AllowChangeBookings":"true",
         "Members.AllowHelpMessages":"true",
         "Members.AllowTariffChange":"true",
         "Members.CanSignup":"true",
         "Members.NotifyOnAutoCheckout":null,
         "Members.NotifyOnLowCredit":null,
         "Members.NotifyOnLowCreditHours":"24",
         "Members.PrintInvoices":"true",
         "Members.PublicDirectory":"true",
         "Members.SendWelcomeEmail":"true",
         "Members.UseInvitationLink":null,
         "Members.ViewInvoices":"true",
         "Midtrans.Enabled":null,
         "MobileApp.Access.Enabled":null,
         "MobileApp.Access.Url":"",
         "MobileApp.Android.Url":"https://play.google.com/store/apps/details?id=com.nexudusspaces",
         "MobileApp.Blog":"true",
         "MobileApp.Bookings":"true",
         "MobileApp.CustomPage.Enabled":null,
         "MobileApp.CustomPage.Title":"More",
         "MobileApp.CustomPage.Url":"",
         "MobileApp.Directory":"true",
         "MobileApp.DisplayHomeVertically":"",
         "MobileApp.Enabled":"true",
         "MobileApp.Events":"true",
         "MobileApp.Feed":"true",
         "MobileApp.FeedPrivate":"true",
         "MobileApp.FontFamily":"CircularStd",
         "MobileApp.FrontDesk.Checkin.AlwaysOn":"true",
         "MobileApp.FrontDesk.Checkin.ByeByeMessage":"We hope you enjoyed your stay.",
         "MobileApp.FrontDesk.Checkin.ByeByeTitle":"Bye-bye!",
         "MobileApp.FrontDesk.Checkin.Camera.AlwaysOn":"true",
         "MobileApp.FrontDesk.Checkin.CustomerFilter":"&Coworker_Tariff=notnull&Coworker_Active=true",
         "MobileApp.FrontDesk.Checkin.DoYouHaveVisitorCodeMessage":"Do you have a visitor code?",
         "MobileApp.FrontDesk.Checkin.Fields.CompanyName":"true",
         "MobileApp.FrontDesk.Checkin.Fields.Email":"true",
         "MobileApp.FrontDesk.Checkin.Fields.Member":"true",
         "MobileApp.FrontDesk.Checkin.Fields.Reason":"true",
         "MobileApp.FrontDesk.Checkin.HomeMessage":"What is your quest...?",
         "MobileApp.FrontDesk.Checkin.IamAMemberMessage":"I AM A MEMBER",
         "MobileApp.FrontDesk.Checkin.IamVisitorMessage":"I AM A VISITOR",
         "MobileApp.FrontDesk.Checkin.MemberCheckIn":"true",
         "MobileApp.FrontDesk.Checkin.MemberCheckInBluetooth":"true",
         "MobileApp.FrontDesk.Checkin.NotifyMember":"true",
         "MobileApp.FrontDesk.Checkin.PrimaryColor":"#eb6746",
         "MobileApp.FrontDesk.Checkin.RequireEmail":"true",
         "MobileApp.FrontDesk.Checkin.RequireMember":"true",
         "MobileApp.FrontDesk.Checkin.ShowNewsletter":"true",
         "MobileApp.FrontDesk.Checkin.TapToStartMessage":"TAP TO START",
         "MobileApp.FrontDesk.Checkin.ToggleCheckinStatus":"true",
         "MobileApp.FrontDesk.Checkin.VisitorCheckin":"true",
         "MobileApp.FrontDesk.Checkin.VisitorCheckin.QRCodes":"true",
         "MobileApp.FrontDesk.Checkin.VisitorSelfRegistration":"true",
         "MobileApp.FrontDesk.Checkin.WelcomeEvent":"Enjoy the event!",
         "MobileApp.FrontDesk.Checkin.WelcomeMember":"Enjoy your stay!",
         "MobileApp.FrontDesk.Checkin.WelcomeMessage":"Welcome to {0}",
         "MobileApp.FrontDesk.Checkin.WelcomeTitle":"Welcome to {0}!",
         "MobileApp.FrontDesk.Checkin.WelcomeVisitor":"We have let your host know you are here.",
         "MobileApp.Help":"true",
         "MobileApp.iOS.Url":"https://itunes.apple.com/gb/app/passport-by-nexudus/id1100057771?mt=8",
         "MobileApp.LocationServices":"true",
         "MobileApp.Me":"true",
         "MobileApp.NexBoard.PrimaryColor":"#ff9b00",
         "MobileApp.NexBoard.ShowLastCleaned":null,
         "MobileApp.NexClicker.MaxCapacity":"150",
         "MobileApp.PrimaryColor":"#ff9c01",
         "MobileApp.SecondaryColor":"#ffffff",
         "MobileApp.TertiaryColor":"#212121",
         "Okta.ClientId":"0oajn6wv26UeX2M2Y4x6",
         "Okta.Domain":"dev-748490.okta.com",
         "Okta.Enabled":null,
         "Okta.Exclusive":null,
         "Okta.Idp":null,
         "Okta.Label":null,
         "Okta.Provisioning":null,
         "Paypal.Enabled":null,
         "PeachPayments.Enabled":null,
         "PublicWebSite.AboutUs":null,
         "PublicWebSite.CommunityBoard":"true",
         "PublicWebSite.Contact":"true",
         "PublicWebSite.Directory":"true",
         "PublicWebSite.Events":"true",
         "PublicWebSite.Help":"true",
         "PublicWebSite.MyAccount":"true",
         "PublicWebSite.ShowAllBookings":"true",
         "PublicWebSite.Tour":"true",
         "PublicWebSite.Tour.Host":"",
         "PublicWebSite.Tour.RequiresConfirmation":"true",
         "RazorPay.Enabled":null,
         "SaltoV2.Enable":null,
         "SaltoV2.MobileAccess.Enable":"true",
         "Signup.FacebookSignIn":"true",
         "Signup.FacebookSignUp":"true",
         "Signup.GooglePlusSignIn":"true",
         "Signup.GooglePlusSignUp":"true",
         "Signup.KeepNewAccountsOnHold":null,
         "Signup.MemberMustChooseAPricePlan":null,
         "Signup.ShowStoreOnSignUp":"true",
         "Signup.UseCaptcha":"true",
         "SignupForm.Avatar":"1",
         "SignupForm.DateOfBirth":"1",
         "SignupForm.Gender":"1",
         "SignupForm.LandLine":"1",
         "SignupForm.MobilePhone":"2",
         "SignupForm.ShowBillingSection":"true",
         "SignupForm.ShowContactSection":"true",
         "SignupForm.ShowProfileSection":null,
         "Social.Facebook":"nexudus",
         "Social.Flickr":"",
         "Social.Instagram":"",
         "Social.Twitter":"@nexudus",
         "StripeACH.Enabled":"",
         "Zoom.Enabled":null,
         "PrimaryWebColor":"#F36D3F",
         "SecondaryWebColor":"#dddddd",
         "PrimaryAppColor":"#ff9c01",
         "Spreedly.Enabled":"True",
         "Timezone.Iana":"Europe/London",
         "ProfileTags":null,
         "DisplayTaxOnWebsite":"False",
         "Recaptcha.PublicKey":"6LdxWhMUAAAAAII1i3N_vkwVl1oZ7iSmdBKlCus5",
         "System.RootDomain":"spaces.nexudus.com",
         "System.SpreedlyEnvironmentKey":"OwBV9UpahWwFdOFTEFrLNqAavZk",
         "System.RegistrableDomain":"nexudus.com",
         "Website.CustomJS":"//Use this file to inject scripts in the of every page\n\n$(function() {\n    console.log(JSON.stringify(nexudus))\n})",
         "Website.CustomCSS":"/* Use this file to inject additional CSS in the of every page */\r\nbody {\r\n\r\n}",
         "Website.CustomHead":"/*\r\nUse this array to add additional link, meta and script tags to the of every page.\r\nUse app.js to run write and run custom scripts.\r\n[\r\n    {\r\n        \"type\": \"script\",\r\n        \"src\": \"https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/moment.min.js\",\r\n    },\r\n    {\r\n        \"type\": \"meta\",\r\n        \"name\": \"nx-header\",\r\n        \"content\": \"dummy\",\r\n    }\r\n]\r\n*/"
      },
      "isLoadingCountries":false,
      "hasLoadedCountries":false,
      "countries":[

      ],
      "isLoadingProfileTags":false,
      "hasLoadedProfileTags":false,
      "profileTags":[

      ],
      "popupMessage":null,
      "yesNoQuestion":null,
      "yesNoAnswer":null,
      "isLoadingCustomPagesLock":false,
      "isLoadingBusinessLock":false
   },
   "authStore":{
      "registrableDomain":"nexudus.com",
      "accessToken":"62r3gOF_54g356bqBv657PK3_GbpbsECsb-7DdgVNzBsG_S2apzBSucYVblHKdYW-j6PXWF35XS6sIzSVr94-5uzfQdbL0xvDsGfWZkDg6tHQOUXRNqaaMHZyt5MDl3GW_Hr7Fr7NzcGQLokQ0HPs4A4BtlrugOgBSbscPH9NjJJthbz4gSbP2wdc7-4y5A7wpQ_iHA65TYo83JsGUelACiJ67kXjzpq_N0KgeKqoUcEGWI5A72_due_SC1Cm7D2xL4bfuTdD19dx2itx3ywD1K9cWQWamNAlrd_YJlARgm0VVr0Lrk8r9VPsV8-82OCUEsTKo2gGV2P4-bsxKnscSP6oL3nJ-aaUoOvhZmlRKCQ-NacJ9NarJei2dKDO5g8y1ZZXQ",
      "refreshToken":"80cdb462a2374b629ff4527350b17342",
      "me":{
         "FullName":"John Doe",
         "Email":"adrian+kalkio@nexudus.com",
         "AccessToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFkcmlhbitrYWxraW9AbmV4dWR1cy5jb20iLCJ1Ijoie1widVwiOntcIklkXCI6MTIxOTg1MDQzOSxcImJcIjpcIjA4MDEyM2NlMGI3YmY3NjdlM2E3NGFhZTBkYmVlNGM4XCJ9fSIsIm5iZiI6MTU5NTY2NjU1NCwiZXhwIjoxNTk2MjcxMzg0LCJpYXQiOjE1OTU2NjY1ODQsImlzcyI6InNlbGYiLCJhdWQiOiJodHRwczovL3NwYWNlcy5uZXh1ZHVzLmNvbSJ9.xbMFoOGvGHFFd_VK0WmpxHvuHNVddkwWIKoEORauXos",
         "CoworkerId":1066293228,
         "OnHelpDeskMsg":false,
         "OnNewWallPost":false,
         "OnNewBlogComment":false,
         "OnNewEventComment":false,
         "ReceiveCommunityDigest":true,
         "ReceiveEveryMessage":false,
         "IsAuthenticated":true,
         "Id":1219850439,
         "IdString":"1219850439",
         "UpdatedOn":"2020-07-25T09:35:48",
         "CreatedOn":"2019-12-18T21:26:29",
         "UniqueId":"832f132d-fefb-4284-a8b6-db54485ae6c6",
         "IsNull":false
      },
      "customer":{
         "FullName":"John Doe",
         "GuessedFirstNameForInvoice":"David",
         "GuessedLastNameForInvoice":"Smith",
         "GuessedFirstName":"John",
         "GuessedLastName":"Doe",
         "Salutation":"John",
         "Address":"sdf",
         "PostCode":"sfd",
         "CityName":"sdf",
         "State":null,
         "Email":"adrian+kalkio@nexudus.com",
         "Active":true,
         "DiscountCode":null,
         "RefererGuid":"",
         "ReferenceNumber":null,
         "HasZoom":false,
         "HasOffice365":false,
         "IsNew":false,
         "CheckedIn":false,
         "SignUpToNewsletter":false,
         "DeleteAvatar":false,
         "DeleteBanner":false,
         "AllowNetworkCheckin":false,
         "CanMakeBookings":true,
         "CanPurchaseProducts":true,
         "CanPurchaseEvents":true,
         "CanAccessCommunity":true,
         "AvatarUrl":"/en/coworker/getavatar/1066293228",
         "ProfileUrl":"/en/directory/profile/1066293228/john-doe",
         "CountryId":1221,
         "BillingCountryId":0,
         "InvoicingSpaceId":1004930927,
         "InvoicingSpaceGuid":"a596d492-5f26-4645-a971-600ccf9a61e2",
         "InvoicingSpaceName":"Kalkio Space - East Side",
         "HomeSpaceId":1004930927,
         "HomeSpaceGuid":"a596d492-5f26-4645-a971-600ccf9a61e2",
         "HomeSpaceName":"Kalkio Space - East Side",
         "SimpleTimeZoneId":2023,
         "IsMember":true,
         "CancellationDate":null,
         "UtcCancellationDate":null,
         "AbsoluteCancellationDate":null,
         "PaysForTeam":null,
         "IsPayingMember":false,
         "DoNotProcessInvoicesAutomatically":false,
         "MobilePhone":null,
         "LandLine":null,
         "NickName":null,
         "BusinessArea":null,
         "Position":null,
         "CompanyName":null,
         "ProfileTags":"",
         "ProfileTagsSpaces":"",
         "ProfileTagsList":[

         ],
         "ProfileSummary":null,
         "ProfileSummaryHtml":"",
         "ProfileWebsite":null,
         "Url":"http://kalkiospace.spaces.nexudus.com/Public/Directory/Profile/1066293228/john-doe/",
         "Gender":"Male",
         "ProfileIsPublic":false,
         "RegistrationDate":"2019-06-15T15:37:50",
         "UtcRegistrationDate":"2019-06-15T14:37:50",
         "DateOfBirth":null,
         "UtcDateOfBirth":null,
         "Twitter":null,
         "Skype":null,
         "Facebook":null,
         "Linkedin":null,
         "Google":null,
         "Telegram":null,
         "Github":null,
         "Pinterest":null,
         "Flickr":null,
         "Instagram":null,
         "Vimeo":null,
         "Tumblr":null,
         "Blogger":null,
         "HasContactDetails":false,
         "BillingName":"David Smith",
         "BillingEmail":"adrian+kalkio@nexudus.com",
         "BillingAddress":"Not Available",
         "BillingPostCode":"Not Available",
         "BillingCityName":"Not Available",
         "BillingState":"Not Available",
         "TaxIDNumber":null,
         "CardNumber":"1111",
         "AccessPincode":"87842",
         "Custom1":"Facebook",
         "Custom2":null,
         "Custom3":null,
         "Custom4":null,
         "Custom5":null,
         "Custom6":null,
         "Custom7":null,
         "Custom8":null,
         "Custom9":null,
         "Custom10":null,
         "Custom11":null,
         "Custom12":null,
         "Custom13":null,
         "Custom14":null,
         "Custom15":null,
         "Custom16":null,
         "Custom17":null,
         "Custom18":null,
         "Custom19":null,
         "Custom20":null,
         "Custom21":null,
         "Custom22":null,
         "Custom23":null,
         "Custom24":null,
         "Custom25":null,
         "Custom26":null,
         "Custom27":null,
         "Custom28":null,
         "Custom29":null,
         "Custom30":null,
         "EnableGoCardlessPayments":false,
         "GoCardlessContractNumber":null,
         "HasGoCardlessContractNumber":false,
         "HasStripeACHCustomerToken":false,
         "HasStripeACHBankToken":false,
         "HasSetupRegularPayments":true,
         "RegularPaymentProvider":"MultiGateway",
         "RegularPaymentContractNumber":"cAUvEfVnjOFX0YTdNtSfutEAPl",
         "HasRegularPaymentContractNumber":true,
         "HasAcceptedStripeACHAgreement":false,
         "HasVerifiedStripeACHDeposits":false,
         "StripePublicKeKey":"pk_live_UjVZbD8VkDxDpniMANnOxXNq",
         "EmailForInvoice":"adrian+kalkio@nexudus.com",
         "AddressForInvoice":"Not Available",
         "PostCodeForInvoice":"Not Available",
         "CityForInvoice":"Not Available",
         "StateForInvoice":"Not Available",
         "FullNameForInvoice":"David Smith",
         "GeneralTermsAccepted":true,
         "AgeInDays":405.79816746543514,
         "HasBanner":false,
         "Id":1066293228,
         "IdString":"1066293228",
         "UpdatedOn":"2020-07-24T23:11:55",
         "CreatedOn":"2019-06-15T14:37:50",
         "UniqueId":"42728d03-c1cc-465b-9092-0febc44b74f1",
         "IsNull":false
      },
      "customFields":[

      ],
      "teams":[

      ],
      "payingMember":[

      ],
      "team":null,
      "customerValidation":{
         "errorsMap":{

         }
      },
      "isLoggingIn":false,
      "isSavingCustomerWithUser":false,
      "isSavingCustomer":false,
      "isLoadingCustomer":false,
      "isLoadingPayingMember":false,
      "isLoadingTeams":false,
      "hasLoadedCustomFields":false,
      "hasLoadedCustomer":true,
      "isLoadingMe":true,
      "hasLoadedMe":true,
      "hasLoadedTeams":false,
      "hasLoadedPayingMember":false,
      "isLoadingRestore":false,
      "isLoadingSignupPage":false,
      "hasLoadedSignupPage":false,
      "signupPage":[

      ],
      "isLoadingTour":false,
      "userAlreadyExists":false,
      "isLoadingSignupCustomFields":false,
      "hasLoadedSignupCustomFields":false,
      "signupCustomFields":[

      ],
      "isLoadingTourCustomFields":false,
      "hasLoadedTourCustomFields":false,
      "tourCustomFields":[

      ],
      "isLoadingMeLock":true,
      "isLoadingCustomerLock":false
   },
   "bookingsStore":{
      "isLoadingMyVisitors":false,
      "hasLoadedMyVisitors":false,
      "myVisitors":[

      ],
      "fromTime":"2020-07-25T10:00:00.000Z",
      "toTime":"2020-07-25T11:00:00.000Z",
      "isLoadingResources":false,
      "hasLoadedResources":false,
      "resources":[

      ],
      "isLoadingResourceGroups":false,
      "hasLoadedResourceGroups":false,
      "resourceGroups":[

      ],
      "isLoadingResourceSearch":false,
      "hasLoadedResourceSearch":false,
      "resourceSearch":{
         "Resources":[

         ]
      },
      "isLoadingBookings":false,
      "hasLoadedBookings":false,
      "bookings":[

      ],
      "isDeletingVisitor":false,
      "newVisitorValidation":{
         "errorsMap":{

         }
      },
      "isSavingNewVisitor":false,
      "newVisitor":{
         "FullName":null,
         "Email":null
      },
      "isSavingBookingToCreate":false,
      "isSavingBookingToUpdate":false,
      "isLoadingBookingPrice":false,
      "hasLoadedBookingPrice":false,
      "bookingPrice":[

      ],
      "isLoadingBooking":false,
      "hasLoadedBooking":false,
      "booking":null,
      "isLoadingResourceProducts":false,
      "hasLoadedResourceProducts":false,
      "resourceProducts":[

      ],
      "isLoadingUpcomingBookings":false,
      "hasLoadedUpcomingBookings":false,
      "upcomingBookings":[

      ],
      "isLoadingTeamBookings":false,
      "hasLoadedTeamBookings":false,
      "teamBookings":[

      ]
   },
   "invoicingStore":{

   },
   "eventsStore":{
      "newComment":{

      },
      "newCommentValidation":{
         "errors":{

         }
      },
      "isDeletingComment":false,
      "isCancellingTicket":false,
      "isSendingTicket":false,
      "isLoadingEventsPage":false,
      "hasLoadedEventsPage":false,
      "eventsPage":{
         "Categories":[

         ],
         "CalendarEvents":[

         ]
      },
      "isLoadingUpcomingEvents":false,
      "hasLoadedUpcomingEvents":false,
      "upcomingEvents":[

      ],
      "isLoadingMyEvents":false,
      "hasLoadedMyEvents":false,
      "myEvents":{
         "UpcomingEvents":[

         ],
         "PastEvents":[

         ]
      },
      "myPastEvents":[

      ],
      "isLoadingEventPage":false,
      "hasLoadedEventPage":false,
      "eventPage":{
         "Event":{

         }
      },
      "isLoadingEventTicketsPage":false,
      "hasLoadedEventTicketsPage":false,
      "eventTicketsPage":{
         "Event":{
            "EventProducts":[

            ]
         }
      }
   },
   "blogStore":{
      "newComment":{

      },
      "newCommentValidation":{
         "errors":{

         }
      },
      "isLoadingBlogPosts":false,
      "hasLoadedBlogPosts":false,
      "blogPosts":[

      ],
      "isLoadingBannerBlogPosts":false,
      "hasLoadedBannerBlogPosts":false,
      "bannerBlogPosts":[

      ]
   },
   "communityStore":{
      "surveyValidation":{

      },
      "newCommunityBoardReply":{

      },
      "newCommunityBoardReplyValidation":{
         "errors":{

         }
      },
      "newCommunityBoardMessage":{

      },
      "newCommunityBoardMessageValidation":{
         "errors":{

         }
      },
      "isLoadingCustomerPage":false,
      "hasLoadedCustomerPage":false,
      "customerPage":[

      ],
      "isLoadingSimpleSearch":false,
      "hasLoadedSimpleSearch":false,
      "simpleSearch":[

      ],
      "isLoadingThreadPage":false,
      "hasLoadedThreadPage":false,
      "threadPage":{

      },
      "isLoadingTeamsDirectory":false,
      "hasLoadedTeamsDirectory":false,
      "teamsDirectory":{

      },
      "isLoadingMembersDirectory":false,
      "hasLoadedMembersDirectory":false,
      "membersDirectory":{

      },
      "isLoadingCommunityStartPage":false,
      "hasLoadedCommunityStartPage":false,
      "communityStartPage":{
         "Groups":[

         ]
      },
      "isLoadingCommunityPage":false,
      "hasLoadedCommunityPage":false,
      "communityPage":{

      },
      "isLoadingThreads":false,
      "hasLoadedThreads":false,
      "threads":[

      ],
      "isLoadingVideoRooms":false,
      "hasLoadedVideoRooms":false,
      "videoRooms":{
         "Rooms":[

         ]
      },
      "isLoadingAccessRoom":false,
      "hasLoadedAccessRoom":false,
      "accessRoom":null,
      "isLoadingAccessTeamRoom":false,
      "hasLoadedAccessTeamRoom":false,
      "accessTeamRoom":null,
      "isLoadingAccessMyRoom":false,
      "hasLoadedAccessMyRoom":false,
      "accessMyRoom":null,
      "isLoadingSurveyPreviewPage":false,
      "hasLoadedSurveyPreviewPage":false,
      "surveyPreviewPage":null,
      "isLoadingSurveyPage":false,
      "hasLoadedSurveyPage":false,
      "surveyPage":null,
      "isSavingSurveyPage":false
   },
   "deliveriesStore":{

   },
   "supportStore":{
      "newMessage":{

      },
      "isSubmittingNewMessage":false,
      "reply":{

      },
      "replyValidation":{
         "errors":[

         ]
      },
      "messageValidation":{
         "errors":[

         ]
      },
      "isLoadingDepartments":false,
      "hasLoadedDepartments":false,
      "departments":[

      ],
      "isLoadingMessages":false,
      "hasLoadedMessages":false,
      "messages":[

      ],
      "isLoadingMessage":false,
      "hasLoadedMessage":false,
      "message":null,
      "isClosingRequest":false,
      "isSubmittingReply":false
   },
   "checkoutStore":{
      "isLoadingBasketInvoice":false,
      "hasLoadedBasketInvoice":false,
      "basketInvoice":[

      ],
      "isLoadingInvoicePreview":false,
      "hasLoadedInvoicePreview":false,
      "invoicePreview":null,
      "discountCode":null,
      "basket":[

      ]
   },
   "floorPlanStore":{
      "showTypeFilters":false,
      "showProjector":false,
      "showInternet":false,
      "showConferencePhone":false,
      "showStandardPhone":false,
      "showWhiteBoard":false,
      "showLargeDisplay":false,
      "showCatering":false,
      "showTeaAndCoffee":false,
      "showDrinks":false,
      "showSecurityLock":false,
      "showCCTV":false,
      "showVoiceRecorder":false,
      "showAirConditioning":false,
      "showHeating":false,
      "showNaturalLight":false,
      "showStandingDesk":false,
      "showQuietZone":false,
      "showWirelessCharger":false,
      "showPrivacyScreen":false,
      "showSoundproof":false,
      "showOffices":true,
      "showHotDesks":true,
      "showDedicatedDesks":true,
      "showOthers":true,
      "fromTime":"2020-07-25T10:00:00.000Z",
      "toTime":"2020-07-25T11:00:00.000Z",
      "currentFloorPlan":null,
      "currentArea":null,
      "itemsFetchedAt":null,
      "isLoadingItems":false,
      "hasLoadedItems":false,
      "items":[

      ]
   }
}

Accessing the app.js File

In order to access and edit the app.js file, you must be a full unrestricted admin or a restricted admin with a role that includes the TemplateFiles and TemplateVersion permissions.

You can easily create a role for web developers working on your template files using our built-in template. This role lets them work with template files while also limiting their access to other areas of the Admin Panel.

For more information, check out Creating Accounts for Developers.

Router Object

You can access the router object using the next.router variable.

Request Interceptors

You can hook into the lifecyle all requests sent by the app. This can help you track things such as user activity and behavior on the site. The 'pre' interceptor runs before the request is sent. The 'post' interceptor runs after the request is completed.

All requests are sent using the superagent library.

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence