{
  "type": "Program",
  "start": 0,
  "end": 2638,
  "loc": {
    "start": {
      "line": 1,
      "column": 0
    },
    "end": {
      "line": 97,
      "column": 0
    }
  },
  "sourceType": "module",
  "body": [
    {
      "type": "ImportDeclaration",
      "start": 0,
      "end": 23,
      "loc": {
        "start": {
          "line": 1,
          "column": 0
        },
        "end": {
          "line": 1,
          "column": 23
        }
      },
      "specifiers": [
        {
          "type": "ImportDefaultSpecifier",
          "start": 7,
          "end": 8,
          "loc": {
            "start": {
              "line": 1,
              "column": 7
            },
            "end": {
              "line": 1,
              "column": 8
            }
          },
          "local": {
            "type": "Identifier",
            "start": 7,
            "end": 8,
            "loc": {
              "start": {
                "line": 1,
                "column": 7
              },
              "end": {
                "line": 1,
                "column": 8
              }
            },
            "name": "$"
          }
        }
      ],
      "importKind": "value",
      "source": {
        "type": "Literal",
        "start": 14,
        "end": 22,
        "loc": {
          "start": {
            "line": 1,
            "column": 14
          },
          "end": {
            "line": 1,
            "column": 22
          }
        },
        "value": "jquery",
        "rawValue": "jquery",
        "raw": "\"jquery\""
      }
    },
    {
      "type": "ImportDeclaration",
      "start": 24,
      "end": 76,
      "loc": {
        "start": {
          "line": 2,
          "column": 0
        },
        "end": {
          "line": 2,
          "column": 52
        }
      },
      "specifiers": [
        {
          "type": "ImportDefaultSpecifier",
          "start": 31,
          "end": 38,
          "loc": {
            "start": {
              "line": 2,
              "column": 7
            },
            "end": {
              "line": 2,
              "column": 14
            }
          },
          "local": {
            "type": "Identifier",
            "start": 31,
            "end": 38,
            "loc": {
              "start": {
                "line": 2,
                "column": 7
              },
              "end": {
                "line": 2,
                "column": 14
              }
            },
            "name": "publish"
          }
        }
      ],
      "importKind": "value",
      "source": {
        "type": "Literal",
        "start": 44,
        "end": 75,
        "loc": {
          "start": {
            "line": 2,
            "column": 20
          },
          "end": {
            "line": 2,
            "column": 51
          }
        },
        "value": "../../core/decorators/publish",
        "rawValue": "../../core/decorators/publish",
        "raw": "\"../../core/decorators/publish\""
      }
    },
    {
      "type": "ImportDeclaration",
      "start": 77,
      "end": 103,
      "loc": {
        "start": {
          "line": 3,
          "column": 0
        },
        "end": {
          "line": 3,
          "column": 26
        }
      },
      "specifiers": [
        {
          "type": "ImportDefaultSpecifier",
          "start": 84,
          "end": 88,
          "loc": {
            "start": {
              "line": 3,
              "column": 7
            },
            "end": {
              "line": 3,
              "column": 11
            }
          },
          "local": {
            "type": "Identifier",
            "start": 84,
            "end": 88,
            "loc": {
              "start": {
                "line": 3,
                "column": 7
              },
              "end": {
                "line": 3,
                "column": 11
              }
            },
            "name": "User"
          }
        }
      ],
      "importKind": "value",
      "source": {
        "type": "Literal",
        "start": 94,
        "end": 102,
        "loc": {
          "start": {
            "line": 3,
            "column": 17
          },
          "end": {
            "line": 3,
            "column": 25
          }
        },
        "value": "./user",
        "rawValue": "./user",
        "raw": "\"./user\""
      }
    },
    {
      "type": "ExportDefaultDeclaration",
      "start": 105,
      "end": 2637,
      "loc": {
        "start": {
          "line": 5,
          "column": 0
        },
        "end": {
          "line": 96,
          "column": 1
        }
      },
      "declaration": {
        "type": "ClassDeclaration",
        "start": 120,
        "end": 2637,
        "loc": {
          "start": {
            "line": 5,
            "column": 15
          },
          "end": {
            "line": 96,
            "column": 1
          }
        },
        "id": {
          "type": "Identifier",
          "start": 126,
          "end": 138,
          "loc": {
            "start": {
              "line": 5,
              "column": 21
            },
            "end": {
              "line": 5,
              "column": 33
            }
          },
          "name": "LoginManager"
        },
        "superClass": null,
        "body": {
          "type": "ClassBody",
          "start": 139,
          "end": 2637,
          "loc": {
            "start": {
              "line": 5,
              "column": 34
            },
            "end": {
              "line": 96,
              "column": 1
            }
          },
          "body": [
            {
              "type": "MethodDefinition",
              "start": 143,
              "end": 335,
              "loc": {
                "start": {
                  "line": 6,
                  "column": 2
                },
                "end": {
                  "line": 11,
                  "column": 3
                }
              },
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 143,
                "end": 154,
                "loc": {
                  "start": {
                    "line": 6,
                    "column": 2
                  },
                  "end": {
                    "line": 6,
                    "column": 13
                  }
                },
                "name": "constructor"
              },
              "static": false,
              "kind": "constructor",
              "value": {
                "type": "FunctionExpression",
                "start": 154,
                "end": 335,
                "loc": {
                  "start": {
                    "line": 6,
                    "column": 13
                  },
                  "end": {
                    "line": 11,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [],
                "body": {
                  "type": "BlockStatement",
                  "start": 157,
                  "end": 335,
                  "loc": {
                    "start": {
                      "line": 6,
                      "column": 16
                    },
                    "end": {
                      "line": 11,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ExpressionStatement",
                      "start": 163,
                      "end": 230,
                      "loc": {
                        "start": {
                          "line": 7,
                          "column": 4
                        },
                        "end": {
                          "line": 7,
                          "column": 71
                        }
                      },
                      "expression": {
                        "type": "AssignmentExpression",
                        "start": 163,
                        "end": 229,
                        "loc": {
                          "start": {
                            "line": 7,
                            "column": 4
                          },
                          "end": {
                            "line": 7,
                            "column": 70
                          }
                        },
                        "operator": "=",
                        "left": {
                          "type": "MemberExpression",
                          "start": 163,
                          "end": 177,
                          "loc": {
                            "start": {
                              "line": 7,
                              "column": 4
                            },
                            "end": {
                              "line": 7,
                              "column": 18
                            }
                          },
                          "object": {
                            "type": "ThisExpression",
                            "start": 163,
                            "end": 167,
                            "loc": {
                              "start": {
                                "line": 7,
                                "column": 4
                              },
                              "end": {
                                "line": 7,
                                "column": 8
                              }
                            }
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 168,
                            "end": 177,
                            "loc": {
                              "start": {
                                "line": 7,
                                "column": 9
                              },
                              "end": {
                                "line": 7,
                                "column": 18
                              }
                            },
                            "name": "statusUrl"
                          },
                          "computed": false
                        },
                        "right": {
                          "type": "Literal",
                          "start": 180,
                          "end": 229,
                          "loc": {
                            "start": {
                              "line": 7,
                              "column": 21
                            },
                            "end": {
                              "line": 7,
                              "column": 70
                            }
                          },
                          "value": "https://auth.lonelyplanet.com/users/status.json",
                          "rawValue": "https://auth.lonelyplanet.com/users/status.json",
                          "raw": "\"https://auth.lonelyplanet.com/users/status.json\""
                        }
                      }
                    },
                    {
                      "type": "ExpressionStatement",
                      "start": 235,
                      "end": 302,
                      "loc": {
                        "start": {
                          "line": 8,
                          "column": 4
                        },
                        "end": {
                          "line": 8,
                          "column": 71
                        }
                      },
                      "expression": {
                        "type": "AssignmentExpression",
                        "start": 235,
                        "end": 301,
                        "loc": {
                          "start": {
                            "line": 8,
                            "column": 4
                          },
                          "end": {
                            "line": 8,
                            "column": 70
                          }
                        },
                        "operator": "=",
                        "left": {
                          "type": "MemberExpression",
                          "start": 235,
                          "end": 247,
                          "loc": {
                            "start": {
                              "line": 8,
                              "column": 4
                            },
                            "end": {
                              "line": 8,
                              "column": 16
                            }
                          },
                          "object": {
                            "type": "ThisExpression",
                            "start": 235,
                            "end": 239,
                            "loc": {
                              "start": {
                                "line": 8,
                                "column": 4
                              },
                              "end": {
                                "line": 8,
                                "column": 8
                              }
                            }
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 240,
                            "end": 247,
                            "loc": {
                              "start": {
                                "line": 8,
                                "column": 9
                              },
                              "end": {
                                "line": 8,
                                "column": 16
                              }
                            },
                            "name": "feedUrl"
                          },
                          "computed": false
                        },
                        "right": {
                          "type": "Literal",
                          "start": 250,
                          "end": 301,
                          "loc": {
                            "start": {
                              "line": 8,
                              "column": 19
                            },
                            "end": {
                              "line": 8,
                              "column": 70
                            }
                          },
                          "value": "https://www.lonelyplanet.com/thorntree/users/feed",
                          "rawValue": "https://www.lonelyplanet.com/thorntree/users/feed",
                          "raw": "\"https://www.lonelyplanet.com/thorntree/users/feed\""
                        }
                      }
                    },
                    {
                      "type": "ExpressionStatement",
                      "start": 312,
                      "end": 331,
                      "loc": {
                        "start": {
                          "line": 10,
                          "column": 4
                        },
                        "end": {
                          "line": 10,
                          "column": 23
                        }
                      },
                      "expression": {
                        "type": "CallExpression",
                        "start": 312,
                        "end": 330,
                        "loc": {
                          "start": {
                            "line": 10,
                            "column": 4
                          },
                          "end": {
                            "line": 10,
                            "column": 22
                          }
                        },
                        "callee": {
                          "type": "MemberExpression",
                          "start": 312,
                          "end": 328,
                          "loc": {
                            "start": {
                              "line": 10,
                              "column": 4
                            },
                            "end": {
                              "line": 10,
                              "column": 20
                            }
                          },
                          "object": {
                            "type": "ThisExpression",
                            "start": 312,
                            "end": 316,
                            "loc": {
                              "start": {
                                "line": 10,
                                "column": 4
                              },
                              "end": {
                                "line": 10,
                                "column": 8
                              }
                            }
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 317,
                            "end": 328,
                            "loc": {
                              "start": {
                                "line": 10,
                                "column": 9
                              },
                              "end": {
                                "line": 10,
                                "column": 20
                              }
                            },
                            "name": "checkStatus"
                          },
                          "computed": false
                        },
                        "arguments": []
                      }
                    }
                  ],
                  "trailingComments": null
                },
                "trailingComments": null
              },
              "trailingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Check to see if the user is currently logged in.\n   * @return {jQuery.Deferred}\n   ",
                  "start": 338,
                  "end": 432,
                  "loc": {
                    "start": {
                      "line": 12,
                      "column": 2
                    },
                    "end": {
                      "line": 15,
                      "column": 5
                    }
                  },
                  "range": [
                    338,
                    432
                  ]
                }
              ]
            },
            {
              "type": "MethodDefinition",
              "start": 435,
              "end": 615,
              "loc": {
                "start": {
                  "line": 16,
                  "column": 2
                },
                "end": {
                  "line": 23,
                  "column": 3
                }
              },
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 435,
                "end": 446,
                "loc": {
                  "start": {
                    "line": 16,
                    "column": 2
                  },
                  "end": {
                    "line": 16,
                    "column": 13
                  }
                },
                "name": "checkStatus",
                "leadingComments": null
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 446,
                "end": 615,
                "loc": {
                  "start": {
                    "line": 16,
                    "column": 13
                  },
                  "end": {
                    "line": 23,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [],
                "body": {
                  "type": "BlockStatement",
                  "start": 449,
                  "end": 615,
                  "loc": {
                    "start": {
                      "line": 16,
                      "column": 16
                    },
                    "end": {
                      "line": 23,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ReturnStatement",
                      "start": 455,
                      "end": 611,
                      "loc": {
                        "start": {
                          "line": 17,
                          "column": 4
                        },
                        "end": {
                          "line": 22,
                          "column": 7
                        }
                      },
                      "argument": {
                        "type": "CallExpression",
                        "start": 462,
                        "end": 610,
                        "loc": {
                          "start": {
                            "line": 17,
                            "column": 11
                          },
                          "end": {
                            "line": 22,
                            "column": 6
                          }
                        },
                        "callee": {
                          "type": "MemberExpression",
                          "start": 462,
                          "end": 468,
                          "loc": {
                            "start": {
                              "line": 17,
                              "column": 11
                            },
                            "end": {
                              "line": 17,
                              "column": 17
                            }
                          },
                          "object": {
                            "type": "Identifier",
                            "start": 462,
                            "end": 463,
                            "loc": {
                              "start": {
                                "line": 17,
                                "column": 11
                              },
                              "end": {
                                "line": 17,
                                "column": 12
                              }
                            },
                            "name": "$"
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 464,
                            "end": 468,
                            "loc": {
                              "start": {
                                "line": 17,
                                "column": 13
                              },
                              "end": {
                                "line": 17,
                                "column": 17
                              }
                            },
                            "name": "ajax"
                          },
                          "computed": false
                        },
                        "arguments": [
                          {
                            "type": "ObjectExpression",
                            "start": 469,
                            "end": 609,
                            "loc": {
                              "start": {
                                "line": 17,
                                "column": 18
                              },
                              "end": {
                                "line": 22,
                                "column": 5
                              }
                            },
                            "properties": [
                              {
                                "type": "Property",
                                "start": 477,
                                "end": 496,
                                "loc": {
                                  "start": {
                                    "line": 18,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 18,
                                    "column": 25
                                  }
                                },
                                "method": false,
                                "shorthand": false,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 477,
                                  "end": 480,
                                  "loc": {
                                    "start": {
                                      "line": 18,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 18,
                                      "column": 9
                                    }
                                  },
                                  "name": "url"
                                },
                                "value": {
                                  "type": "MemberExpression",
                                  "start": 482,
                                  "end": 496,
                                  "loc": {
                                    "start": {
                                      "line": 18,
                                      "column": 11
                                    },
                                    "end": {
                                      "line": 18,
                                      "column": 25
                                    }
                                  },
                                  "object": {
                                    "type": "ThisExpression",
                                    "start": 482,
                                    "end": 486,
                                    "loc": {
                                      "start": {
                                        "line": 18,
                                        "column": 11
                                      },
                                      "end": {
                                        "line": 18,
                                        "column": 15
                                      }
                                    }
                                  },
                                  "property": {
                                    "type": "Identifier",
                                    "start": 487,
                                    "end": 496,
                                    "loc": {
                                      "start": {
                                        "line": 18,
                                        "column": 16
                                      },
                                      "end": {
                                        "line": 18,
                                        "column": 25
                                      }
                                    },
                                    "name": "statusUrl"
                                  },
                                  "computed": false
                                },
                                "kind": "init"
                              },
                              {
                                "type": "Property",
                                "start": 504,
                                "end": 521,
                                "loc": {
                                  "start": {
                                    "line": 19,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 19,
                                    "column": 23
                                  }
                                },
                                "method": false,
                                "shorthand": false,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 504,
                                  "end": 512,
                                  "loc": {
                                    "start": {
                                      "line": 19,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 19,
                                      "column": 14
                                    }
                                  },
                                  "name": "dataType"
                                },
                                "value": {
                                  "type": "Literal",
                                  "start": 514,
                                  "end": 521,
                                  "loc": {
                                    "start": {
                                      "line": 19,
                                      "column": 16
                                    },
                                    "end": {
                                      "line": 19,
                                      "column": 23
                                    }
                                  },
                                  "value": "jsonp",
                                  "rawValue": "jsonp",
                                  "raw": "\"jsonp\""
                                },
                                "kind": "init"
                              },
                              {
                                "type": "Property",
                                "start": 529,
                                "end": 567,
                                "loc": {
                                  "start": {
                                    "line": 20,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 20,
                                    "column": 44
                                  }
                                },
                                "method": false,
                                "shorthand": false,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 529,
                                  "end": 536,
                                  "loc": {
                                    "start": {
                                      "line": 20,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 20,
                                      "column": 13
                                    }
                                  },
                                  "name": "success"
                                },
                                "value": {
                                  "type": "CallExpression",
                                  "start": 538,
                                  "end": 567,
                                  "loc": {
                                    "start": {
                                      "line": 20,
                                      "column": 15
                                    },
                                    "end": {
                                      "line": 20,
                                      "column": 44
                                    }
                                  },
                                  "callee": {
                                    "type": "MemberExpression",
                                    "start": 538,
                                    "end": 561,
                                    "loc": {
                                      "start": {
                                        "line": 20,
                                        "column": 15
                                      },
                                      "end": {
                                        "line": 20,
                                        "column": 38
                                      }
                                    },
                                    "object": {
                                      "type": "MemberExpression",
                                      "start": 538,
                                      "end": 556,
                                      "loc": {
                                        "start": {
                                          "line": 20,
                                          "column": 15
                                        },
                                        "end": {
                                          "line": 20,
                                          "column": 33
                                        }
                                      },
                                      "object": {
                                        "type": "ThisExpression",
                                        "start": 538,
                                        "end": 542,
                                        "loc": {
                                          "start": {
                                            "line": 20,
                                            "column": 15
                                          },
                                          "end": {
                                            "line": 20,
                                            "column": 19
                                          }
                                        }
                                      },
                                      "property": {
                                        "type": "Identifier",
                                        "start": 543,
                                        "end": 556,
                                        "loc": {
                                          "start": {
                                            "line": 20,
                                            "column": 20
                                          },
                                          "end": {
                                            "line": 20,
                                            "column": 33
                                          }
                                        },
                                        "name": "statusFetched"
                                      },
                                      "computed": false
                                    },
                                    "property": {
                                      "type": "Identifier",
                                      "start": 557,
                                      "end": 561,
                                      "loc": {
                                        "start": {
                                          "line": 20,
                                          "column": 34
                                        },
                                        "end": {
                                          "line": 20,
                                          "column": 38
                                        }
                                      },
                                      "name": "bind"
                                    },
                                    "computed": false
                                  },
                                  "arguments": [
                                    {
                                      "type": "ThisExpression",
                                      "start": 562,
                                      "end": 566,
                                      "loc": {
                                        "start": {
                                          "line": 20,
                                          "column": 39
                                        },
                                        "end": {
                                          "line": 20,
                                          "column": 43
                                        }
                                      }
                                    }
                                  ]
                                },
                                "kind": "init"
                              },
                              {
                                "type": "Property",
                                "start": 575,
                                "end": 603,
                                "loc": {
                                  "start": {
                                    "line": 21,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 21,
                                    "column": 34
                                  }
                                },
                                "method": false,
                                "shorthand": false,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 575,
                                  "end": 580,
                                  "loc": {
                                    "start": {
                                      "line": 21,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 21,
                                      "column": 11
                                    }
                                  },
                                  "name": "error"
                                },
                                "value": {
                                  "type": "CallExpression",
                                  "start": 582,
                                  "end": 603,
                                  "loc": {
                                    "start": {
                                      "line": 21,
                                      "column": 13
                                    },
                                    "end": {
                                      "line": 21,
                                      "column": 34
                                    }
                                  },
                                  "callee": {
                                    "type": "MemberExpression",
                                    "start": 582,
                                    "end": 597,
                                    "loc": {
                                      "start": {
                                        "line": 21,
                                        "column": 13
                                      },
                                      "end": {
                                        "line": 21,
                                        "column": 28
                                      }
                                    },
                                    "object": {
                                      "type": "MemberExpression",
                                      "start": 582,
                                      "end": 592,
                                      "loc": {
                                        "start": {
                                          "line": 21,
                                          "column": 13
                                        },
                                        "end": {
                                          "line": 21,
                                          "column": 23
                                        }
                                      },
                                      "object": {
                                        "type": "ThisExpression",
                                        "start": 582,
                                        "end": 586,
                                        "loc": {
                                          "start": {
                                            "line": 21,
                                            "column": 13
                                          },
                                          "end": {
                                            "line": 21,
                                            "column": 17
                                          }
                                        }
                                      },
                                      "property": {
                                        "type": "Identifier",
                                        "start": 587,
                                        "end": 592,
                                        "loc": {
                                          "start": {
                                            "line": 21,
                                            "column": 18
                                          },
                                          "end": {
                                            "line": 21,
                                            "column": 23
                                          }
                                        },
                                        "name": "error"
                                      },
                                      "computed": false
                                    },
                                    "property": {
                                      "type": "Identifier",
                                      "start": 593,
                                      "end": 597,
                                      "loc": {
                                        "start": {
                                          "line": 21,
                                          "column": 24
                                        },
                                        "end": {
                                          "line": 21,
                                          "column": 28
                                        }
                                      },
                                      "name": "bind"
                                    },
                                    "computed": false
                                  },
                                  "arguments": [
                                    {
                                      "type": "ThisExpression",
                                      "start": 598,
                                      "end": 602,
                                      "loc": {
                                        "start": {
                                          "line": 21,
                                          "column": 29
                                        },
                                        "end": {
                                          "line": 21,
                                          "column": 33
                                        }
                                      }
                                    }
                                  ]
                                },
                                "kind": "init"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ],
                  "trailingComments": null
                },
                "trailingComments": null
              },
              "leadingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Check to see if the user is currently logged in.\n   * @return {jQuery.Deferred}\n   ",
                  "start": 338,
                  "end": 432,
                  "loc": {
                    "start": {
                      "line": 12,
                      "column": 2
                    },
                    "end": {
                      "line": 15,
                      "column": 5
                    }
                  },
                  "range": [
                    338,
                    432
                  ]
                }
              ],
              "trailingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Callback from checking the user's login status.\n   * If the user is not logged in, it will publish a user with a null id.\n   * Will check for user notifications if the user is logged in.\n   * @param  {Object} user User login information\n   ",
                  "start": 618,
                  "end": 869,
                  "loc": {
                    "start": {
                      "line": 24,
                      "column": 2
                    },
                    "end": {
                      "line": 29,
                      "column": 5
                    }
                  },
                  "range": [
                    618,
                    869
                  ]
                }
              ]
            },
            {
              "type": "MethodDefinition",
              "start": 872,
              "end": 1174,
              "loc": {
                "start": {
                  "line": 30,
                  "column": 2
                },
                "end": {
                  "line": 42,
                  "column": 3
                }
              },
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 872,
                "end": 885,
                "loc": {
                  "start": {
                    "line": 30,
                    "column": 2
                  },
                  "end": {
                    "line": 30,
                    "column": 15
                  }
                },
                "name": "statusFetched",
                "leadingComments": null
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 885,
                "end": 1174,
                "loc": {
                  "start": {
                    "line": 30,
                    "column": 15
                  },
                  "end": {
                    "line": 42,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [
                  {
                    "type": "Identifier",
                    "start": 886,
                    "end": 890,
                    "loc": {
                      "start": {
                        "line": 30,
                        "column": 16
                      },
                      "end": {
                        "line": 30,
                        "column": 20
                      }
                    },
                    "name": "user"
                  }
                ],
                "body": {
                  "type": "BlockStatement",
                  "start": 892,
                  "end": 1174,
                  "loc": {
                    "start": {
                      "line": 30,
                      "column": 22
                    },
                    "end": {
                      "line": 42,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ExpressionStatement",
                      "start": 898,
                      "end": 956,
                      "loc": {
                        "start": {
                          "line": 31,
                          "column": 4
                        },
                        "end": {
                          "line": 31,
                          "column": 62
                        }
                      },
                      "expression": {
                        "type": "AssignmentExpression",
                        "start": 898,
                        "end": 955,
                        "loc": {
                          "start": {
                            "line": 31,
                            "column": 4
                          },
                          "end": {
                            "line": 31,
                            "column": 61
                          }
                        },
                        "operator": "=",
                        "left": {
                          "type": "MemberExpression",
                          "start": 898,
                          "end": 907,
                          "loc": {
                            "start": {
                              "line": 31,
                              "column": 4
                            },
                            "end": {
                              "line": 31,
                              "column": 13
                            }
                          },
                          "object": {
                            "type": "ThisExpression",
                            "start": 898,
                            "end": 902,
                            "loc": {
                              "start": {
                                "line": 31,
                                "column": 4
                              },
                              "end": {
                                "line": 31,
                                "column": 8
                              }
                            }
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 903,
                            "end": 907,
                            "loc": {
                              "start": {
                                "line": 31,
                                "column": 9
                              },
                              "end": {
                                "line": 31,
                                "column": 13
                              }
                            },
                            "name": "user"
                          },
                          "computed": false
                        },
                        "right": {
                          "type": "ConditionalExpression",
                          "start": 911,
                          "end": 954,
                          "loc": {
                            "start": {
                              "line": 31,
                              "column": 17
                            },
                            "end": {
                              "line": 31,
                              "column": 60
                            }
                          },
                          "test": {
                            "type": "MemberExpression",
                            "start": 911,
                            "end": 924,
                            "loc": {
                              "start": {
                                "line": 31,
                                "column": 17
                              },
                              "end": {
                                "line": 31,
                                "column": 30
                              }
                            },
                            "object": {
                              "type": "Identifier",
                              "start": 911,
                              "end": 915,
                              "loc": {
                                "start": {
                                  "line": 31,
                                  "column": 17
                                },
                                "end": {
                                  "line": 31,
                                  "column": 21
                                }
                              },
                              "name": "user"
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 916,
                              "end": 924,
                              "loc": {
                                "start": {
                                  "line": 31,
                                  "column": 22
                                },
                                "end": {
                                  "line": 31,
                                  "column": 30
                                }
                              },
                              "name": "username"
                            },
                            "computed": false
                          },
                          "consequent": {
                            "type": "NewExpression",
                            "start": 927,
                            "end": 941,
                            "loc": {
                              "start": {
                                "line": 31,
                                "column": 33
                              },
                              "end": {
                                "line": 31,
                                "column": 47
                              }
                            },
                            "callee": {
                              "type": "Identifier",
                              "start": 931,
                              "end": 935,
                              "loc": {
                                "start": {
                                  "line": 31,
                                  "column": 37
                                },
                                "end": {
                                  "line": 31,
                                  "column": 41
                                }
                              },
                              "name": "User"
                            },
                            "arguments": [
                              {
                                "type": "Identifier",
                                "start": 936,
                                "end": 940,
                                "loc": {
                                  "start": {
                                    "line": 31,
                                    "column": 42
                                  },
                                  "end": {
                                    "line": 31,
                                    "column": 46
                                  }
                                },
                                "name": "user"
                              }
                            ]
                          },
                          "alternate": {
                            "type": "NewExpression",
                            "start": 944,
                            "end": 954,
                            "loc": {
                              "start": {
                                "line": 31,
                                "column": 50
                              },
                              "end": {
                                "line": 31,
                                "column": 60
                              }
                            },
                            "callee": {
                              "type": "Identifier",
                              "start": 948,
                              "end": 952,
                              "loc": {
                                "start": {
                                  "line": 31,
                                  "column": 54
                                },
                                "end": {
                                  "line": 31,
                                  "column": 58
                                }
                              },
                              "name": "User"
                            },
                            "arguments": []
                          },
                          "parenthesizedExpression": true
                        }
                      }
                    },
                    {
                      "type": "IfStatement",
                      "start": 966,
                      "end": 1021,
                      "loc": {
                        "start": {
                          "line": 33,
                          "column": 4
                        },
                        "end": {
                          "line": 35,
                          "column": 5
                        }
                      },
                      "test": {
                        "type": "UnaryExpression",
                        "start": 970,
                        "end": 978,
                        "loc": {
                          "start": {
                            "line": 33,
                            "column": 8
                          },
                          "end": {
                            "line": 33,
                            "column": 16
                          }
                        },
                        "operator": "!",
                        "prefix": true,
                        "argument": {
                          "type": "MemberExpression",
                          "start": 971,
                          "end": 978,
                          "loc": {
                            "start": {
                              "line": 33,
                              "column": 9
                            },
                            "end": {
                              "line": 33,
                              "column": 16
                            }
                          },
                          "object": {
                            "type": "Identifier",
                            "start": 971,
                            "end": 975,
                            "loc": {
                              "start": {
                                "line": 33,
                                "column": 9
                              },
                              "end": {
                                "line": 33,
                                "column": 13
                              }
                            },
                            "name": "user"
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 976,
                            "end": 978,
                            "loc": {
                              "start": {
                                "line": 33,
                                "column": 14
                              },
                              "end": {
                                "line": 33,
                                "column": 16
                              }
                            },
                            "name": "id"
                          },
                          "computed": false
                        }
                      },
                      "consequent": {
                        "type": "BlockStatement",
                        "start": 980,
                        "end": 1021,
                        "loc": {
                          "start": {
                            "line": 33,
                            "column": 18
                          },
                          "end": {
                            "line": 35,
                            "column": 5
                          }
                        },
                        "body": [
                          {
                            "type": "ReturnStatement",
                            "start": 988,
                            "end": 1015,
                            "loc": {
                              "start": {
                                "line": 34,
                                "column": 6
                              },
                              "end": {
                                "line": 34,
                                "column": 33
                              }
                            },
                            "argument": {
                              "type": "CallExpression",
                              "start": 995,
                              "end": 1014,
                              "loc": {
                                "start": {
                                  "line": 34,
                                  "column": 13
                                },
                                "end": {
                                  "line": 34,
                                  "column": 32
                                }
                              },
                              "callee": {
                                "type": "MemberExpression",
                                "start": 995,
                                "end": 1012,
                                "loc": {
                                  "start": {
                                    "line": 34,
                                    "column": 13
                                  },
                                  "end": {
                                    "line": 34,
                                    "column": 30
                                  }
                                },
                                "object": {
                                  "type": "ThisExpression",
                                  "start": 995,
                                  "end": 999,
                                  "loc": {
                                    "start": {
                                      "line": 34,
                                      "column": 13
                                    },
                                    "end": {
                                      "line": 34,
                                      "column": 17
                                    }
                                  }
                                },
                                "property": {
                                  "type": "Identifier",
                                  "start": 1000,
                                  "end": 1012,
                                  "loc": {
                                    "start": {
                                      "line": 34,
                                      "column": 18
                                    },
                                    "end": {
                                      "line": 34,
                                      "column": 30
                                    }
                                  },
                                  "name": "updateStatus"
                                },
                                "computed": false
                              },
                              "arguments": []
                            }
                          }
                        ]
                      },
                      "alternate": null
                    },
                    {
                      "type": "ExpressionStatement",
                      "start": 1027,
                      "end": 1170,
                      "loc": {
                        "start": {
                          "line": 37,
                          "column": 4
                        },
                        "end": {
                          "line": 41,
                          "column": 7
                        }
                      },
                      "expression": {
                        "type": "CallExpression",
                        "start": 1027,
                        "end": 1169,
                        "loc": {
                          "start": {
                            "line": 37,
                            "column": 4
                          },
                          "end": {
                            "line": 41,
                            "column": 6
                          }
                        },
                        "callee": {
                          "type": "MemberExpression",
                          "start": 1027,
                          "end": 1055,
                          "loc": {
                            "start": {
                              "line": 37,
                              "column": 4
                            },
                            "end": {
                              "line": 37,
                              "column": 32
                            }
                          },
                          "object": {
                            "type": "CallExpression",
                            "start": 1027,
                            "end": 1050,
                            "loc": {
                              "start": {
                                "line": 37,
                                "column": 4
                              },
                              "end": {
                                "line": 37,
                                "column": 27
                              }
                            },
                            "callee": {
                              "type": "MemberExpression",
                              "start": 1027,
                              "end": 1048,
                              "loc": {
                                "start": {
                                  "line": 37,
                                  "column": 4
                                },
                                "end": {
                                  "line": 37,
                                  "column": 25
                                }
                              },
                              "object": {
                                "type": "ThisExpression",
                                "start": 1027,
                                "end": 1031,
                                "loc": {
                                  "start": {
                                    "line": 37,
                                    "column": 4
                                  },
                                  "end": {
                                    "line": 37,
                                    "column": 8
                                  }
                                }
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 1032,
                                "end": 1048,
                                "loc": {
                                  "start": {
                                    "line": 37,
                                    "column": 9
                                  },
                                  "end": {
                                    "line": 37,
                                    "column": 25
                                  }
                                },
                                "name": "getNotifications"
                              },
                              "computed": false
                            },
                            "arguments": []
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 1051,
                            "end": 1055,
                            "loc": {
                              "start": {
                                "line": 37,
                                "column": 28
                              },
                              "end": {
                                "line": 37,
                                "column": 32
                              }
                            },
                            "name": "done"
                          },
                          "computed": false
                        },
                        "arguments": [
                          {
                            "type": "ArrowFunctionExpression",
                            "start": 1056,
                            "end": 1168,
                            "loc": {
                              "start": {
                                "line": 37,
                                "column": 33
                              },
                              "end": {
                                "line": 41,
                                "column": 5
                              }
                            },
                            "id": null,
                            "generator": false,
                            "expression": false,
                            "async": false,
                            "params": [
                              {
                                "type": "Identifier",
                                "start": 1057,
                                "end": 1061,
                                "loc": {
                                  "start": {
                                    "line": 37,
                                    "column": 34
                                  },
                                  "end": {
                                    "line": 37,
                                    "column": 38
                                  }
                                },
                                "name": "data"
                              }
                            ],
                            "body": {
                              "type": "BlockStatement",
                              "start": 1066,
                              "end": 1168,
                              "loc": {
                                "start": {
                                  "line": 37,
                                  "column": 43
                                },
                                "end": {
                                  "line": 41,
                                  "column": 5
                                }
                              },
                              "body": [
                                {
                                  "type": "ExpressionStatement",
                                  "start": 1074,
                                  "end": 1106,
                                  "loc": {
                                    "start": {
                                      "line": 38,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 38,
                                      "column": 38
                                    }
                                  },
                                  "expression": {
                                    "type": "CallExpression",
                                    "start": 1074,
                                    "end": 1105,
                                    "loc": {
                                      "start": {
                                        "line": 38,
                                        "column": 6
                                      },
                                      "end": {
                                        "line": 38,
                                        "column": 37
                                      }
                                    },
                                    "callee": {
                                      "type": "MemberExpression",
                                      "start": 1074,
                                      "end": 1099,
                                      "loc": {
                                        "start": {
                                          "line": 38,
                                          "column": 6
                                        },
                                        "end": {
                                          "line": 38,
                                          "column": 31
                                        }
                                      },
                                      "object": {
                                        "type": "ThisExpression",
                                        "start": 1074,
                                        "end": 1078,
                                        "loc": {
                                          "start": {
                                            "line": 38,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 38,
                                            "column": 10
                                          }
                                        }
                                      },
                                      "property": {
                                        "type": "Identifier",
                                        "start": 1079,
                                        "end": 1099,
                                        "loc": {
                                          "start": {
                                            "line": 38,
                                            "column": 11
                                          },
                                          "end": {
                                            "line": 38,
                                            "column": 31
                                          }
                                        },
                                        "name": "notificationsFetched"
                                      },
                                      "computed": false
                                    },
                                    "arguments": [
                                      {
                                        "type": "Identifier",
                                        "start": 1100,
                                        "end": 1104,
                                        "loc": {
                                          "start": {
                                            "line": 38,
                                            "column": 32
                                          },
                                          "end": {
                                            "line": 38,
                                            "column": 36
                                          }
                                        },
                                        "name": "data"
                                      }
                                    ]
                                  }
                                },
                                {
                                  "type": "ExpressionStatement",
                                  "start": 1113,
                                  "end": 1133,
                                  "loc": {
                                    "start": {
                                      "line": 39,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 39,
                                      "column": 26
                                    }
                                  },
                                  "expression": {
                                    "type": "CallExpression",
                                    "start": 1113,
                                    "end": 1132,
                                    "loc": {
                                      "start": {
                                        "line": 39,
                                        "column": 6
                                      },
                                      "end": {
                                        "line": 39,
                                        "column": 25
                                      }
                                    },
                                    "callee": {
                                      "type": "MemberExpression",
                                      "start": 1113,
                                      "end": 1130,
                                      "loc": {
                                        "start": {
                                          "line": 39,
                                          "column": 6
                                        },
                                        "end": {
                                          "line": 39,
                                          "column": 23
                                        }
                                      },
                                      "object": {
                                        "type": "ThisExpression",
                                        "start": 1113,
                                        "end": 1117,
                                        "loc": {
                                          "start": {
                                            "line": 39,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 39,
                                            "column": 10
                                          }
                                        }
                                      },
                                      "property": {
                                        "type": "Identifier",
                                        "start": 1118,
                                        "end": 1130,
                                        "loc": {
                                          "start": {
                                            "line": 39,
                                            "column": 11
                                          },
                                          "end": {
                                            "line": 39,
                                            "column": 23
                                          }
                                        },
                                        "name": "updateStatus"
                                      },
                                      "computed": false
                                    },
                                    "arguments": []
                                  }
                                },
                                {
                                  "type": "ExpressionStatement",
                                  "start": 1140,
                                  "end": 1162,
                                  "loc": {
                                    "start": {
                                      "line": 40,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 40,
                                      "column": 28
                                    }
                                  },
                                  "expression": {
                                    "type": "CallExpression",
                                    "start": 1140,
                                    "end": 1161,
                                    "loc": {
                                      "start": {
                                        "line": 40,
                                        "column": 6
                                      },
                                      "end": {
                                        "line": 40,
                                        "column": 27
                                      }
                                    },
                                    "callee": {
                                      "type": "MemberExpression",
                                      "start": 1140,
                                      "end": 1159,
                                      "loc": {
                                        "start": {
                                          "line": 40,
                                          "column": 6
                                        },
                                        "end": {
                                          "line": 40,
                                          "column": 25
                                        }
                                      },
                                      "object": {
                                        "type": "ThisExpression",
                                        "start": 1140,
                                        "end": 1144,
                                        "loc": {
                                          "start": {
                                            "line": 40,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 40,
                                            "column": 10
                                          }
                                        }
                                      },
                                      "property": {
                                        "type": "Identifier",
                                        "start": 1145,
                                        "end": 1159,
                                        "loc": {
                                          "start": {
                                            "line": 40,
                                            "column": 11
                                          },
                                          "end": {
                                            "line": 40,
                                            "column": 25
                                          }
                                        },
                                        "name": "pollForUpdates"
                                      },
                                      "computed": false
                                    },
                                    "arguments": []
                                  }
                                }
                              ]
                            }
                          }
                        ]
                      }
                    }
                  ],
                  "trailingComments": null
                },
                "trailingComments": null
              },
              "leadingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Callback from checking the user's login status.\n   * If the user is not logged in, it will publish a user with a null id.\n   * Will check for user notifications if the user is logged in.\n   * @param  {Object} user User login information\n   ",
                  "start": 618,
                  "end": 869,
                  "loc": {
                    "start": {
                      "line": 24,
                      "column": 2
                    },
                    "end": {
                      "line": 29,
                      "column": 5
                    }
                  },
                  "range": [
                    618,
                    869
                  ]
                }
              ],
              "trailingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Update the user's notifications with data from Luna\n   * @param  {Object} data The new data\n   ",
                  "start": 1177,
                  "end": 1283,
                  "loc": {
                    "start": {
                      "line": 43,
                      "column": 2
                    },
                    "end": {
                      "line": 46,
                      "column": 5
                    }
                  },
                  "range": [
                    1177,
                    1283
                  ]
                }
              ]
            },
            {
              "type": "MethodDefinition",
              "start": 1286,
              "end": 1402,
              "loc": {
                "start": {
                  "line": 47,
                  "column": 2
                },
                "end": {
                  "line": 50,
                  "column": 3
                }
              },
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 1286,
                "end": 1306,
                "loc": {
                  "start": {
                    "line": 47,
                    "column": 2
                  },
                  "end": {
                    "line": 47,
                    "column": 22
                  }
                },
                "name": "notificationsFetched",
                "leadingComments": null
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 1306,
                "end": 1402,
                "loc": {
                  "start": {
                    "line": 47,
                    "column": 22
                  },
                  "end": {
                    "line": 50,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [
                  {
                    "type": "Identifier",
                    "start": 1307,
                    "end": 1311,
                    "loc": {
                      "start": {
                        "line": 47,
                        "column": 23
                      },
                      "end": {
                        "line": 47,
                        "column": 27
                      }
                    },
                    "name": "data"
                  }
                ],
                "body": {
                  "type": "BlockStatement",
                  "start": 1313,
                  "end": 1402,
                  "loc": {
                    "start": {
                      "line": 47,
                      "column": 29
                    },
                    "end": {
                      "line": 50,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ExpressionStatement",
                      "start": 1319,
                      "end": 1358,
                      "loc": {
                        "start": {
                          "line": 48,
                          "column": 4
                        },
                        "end": {
                          "line": 48,
                          "column": 43
                        }
                      },
                      "expression": {
                        "type": "AssignmentExpression",
                        "start": 1319,
                        "end": 1357,
                        "loc": {
                          "start": {
                            "line": 48,
                            "column": 4
                          },
                          "end": {
                            "line": 48,
                            "column": 42
                          }
                        },
                        "operator": "=",
                        "left": {
                          "type": "MemberExpression",
                          "start": 1319,
                          "end": 1339,
                          "loc": {
                            "start": {
                              "line": 48,
                              "column": 4
                            },
                            "end": {
                              "line": 48,
                              "column": 24
                            }
                          },
                          "object": {
                            "type": "MemberExpression",
                            "start": 1319,
                            "end": 1328,
                            "loc": {
                              "start": {
                                "line": 48,
                                "column": 4
                              },
                              "end": {
                                "line": 48,
                                "column": 13
                              }
                            },
                            "object": {
                              "type": "ThisExpression",
                              "start": 1319,
                              "end": 1323,
                              "loc": {
                                "start": {
                                  "line": 48,
                                  "column": 4
                                },
                                "end": {
                                  "line": 48,
                                  "column": 8
                                }
                              }
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 1324,
                              "end": 1328,
                              "loc": {
                                "start": {
                                  "line": 48,
                                  "column": 9
                                },
                                "end": {
                                  "line": 48,
                                  "column": 13
                                }
                              },
                              "name": "user"
                            },
                            "computed": false
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 1329,
                            "end": 1339,
                            "loc": {
                              "start": {
                                "line": 48,
                                "column": 14
                              },
                              "end": {
                                "line": 48,
                                "column": 24
                              }
                            },
                            "name": "activities"
                          },
                          "computed": false
                        },
                        "right": {
                          "type": "MemberExpression",
                          "start": 1342,
                          "end": 1357,
                          "loc": {
                            "start": {
                              "line": 48,
                              "column": 27
                            },
                            "end": {
                              "line": 48,
                              "column": 42
                            }
                          },
                          "object": {
                            "type": "Identifier",
                            "start": 1342,
                            "end": 1346,
                            "loc": {
                              "start": {
                                "line": 48,
                                "column": 27
                              },
                              "end": {
                                "line": 48,
                                "column": 31
                              }
                            },
                            "name": "data"
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 1347,
                            "end": 1357,
                            "loc": {
                              "start": {
                                "line": 48,
                                "column": 32
                              },
                              "end": {
                                "line": 48,
                                "column": 42
                              }
                            },
                            "name": "activities"
                          },
                          "computed": false
                        }
                      }
                    },
                    {
                      "type": "ExpressionStatement",
                      "start": 1363,
                      "end": 1398,
                      "loc": {
                        "start": {
                          "line": 49,
                          "column": 4
                        },
                        "end": {
                          "line": 49,
                          "column": 39
                        }
                      },
                      "expression": {
                        "type": "AssignmentExpression",
                        "start": 1363,
                        "end": 1397,
                        "loc": {
                          "start": {
                            "line": 49,
                            "column": 4
                          },
                          "end": {
                            "line": 49,
                            "column": 38
                          }
                        },
                        "operator": "=",
                        "left": {
                          "type": "MemberExpression",
                          "start": 1363,
                          "end": 1381,
                          "loc": {
                            "start": {
                              "line": 49,
                              "column": 4
                            },
                            "end": {
                              "line": 49,
                              "column": 22
                            }
                          },
                          "object": {
                            "type": "MemberExpression",
                            "start": 1363,
                            "end": 1372,
                            "loc": {
                              "start": {
                                "line": 49,
                                "column": 4
                              },
                              "end": {
                                "line": 49,
                                "column": 13
                              }
                            },
                            "object": {
                              "type": "ThisExpression",
                              "start": 1363,
                              "end": 1367,
                              "loc": {
                                "start": {
                                  "line": 49,
                                  "column": 4
                                },
                                "end": {
                                  "line": 49,
                                  "column": 8
                                }
                              }
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 1368,
                              "end": 1372,
                              "loc": {
                                "start": {
                                  "line": 49,
                                  "column": 9
                                },
                                "end": {
                                  "line": 49,
                                  "column": 13
                                }
                              },
                              "name": "user"
                            },
                            "computed": false
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 1373,
                            "end": 1381,
                            "loc": {
                              "start": {
                                "line": 49,
                                "column": 14
                              },
                              "end": {
                                "line": 49,
                                "column": 22
                              }
                            },
                            "name": "messages"
                          },
                          "computed": false
                        },
                        "right": {
                          "type": "MemberExpression",
                          "start": 1384,
                          "end": 1397,
                          "loc": {
                            "start": {
                              "line": 49,
                              "column": 25
                            },
                            "end": {
                              "line": 49,
                              "column": 38
                            }
                          },
                          "object": {
                            "type": "Identifier",
                            "start": 1384,
                            "end": 1388,
                            "loc": {
                              "start": {
                                "line": 49,
                                "column": 25
                              },
                              "end": {
                                "line": 49,
                                "column": 29
                              }
                            },
                            "name": "data"
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 1389,
                            "end": 1397,
                            "loc": {
                              "start": {
                                "line": 49,
                                "column": 30
                              },
                              "end": {
                                "line": 49,
                                "column": 38
                              }
                            },
                            "name": "messages"
                          },
                          "computed": false
                        }
                      }
                    }
                  ],
                  "trailingComments": null
                },
                "trailingComments": null
              },
              "leadingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Update the user's notifications with data from Luna\n   * @param  {Object} data The new data\n   ",
                  "start": 1177,
                  "end": 1283,
                  "loc": {
                    "start": {
                      "line": 43,
                      "column": 2
                    },
                    "end": {
                      "line": 46,
                      "column": 5
                    }
                  },
                  "range": [
                    1177,
                    1283
                  ]
                }
              ],
              "trailingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Set up an interval to check for Luna notification updates.\n   ",
                  "start": 1405,
                  "end": 1478,
                  "loc": {
                    "start": {
                      "line": 51,
                      "column": 2
                    },
                    "end": {
                      "line": 53,
                      "column": 5
                    }
                  },
                  "range": [
                    1405,
                    1478
                  ]
                }
              ]
            },
            {
              "type": "MethodDefinition",
              "start": 1481,
              "end": 1643,
              "loc": {
                "start": {
                  "line": 54,
                  "column": 2
                },
                "end": {
                  "line": 59,
                  "column": 3
                }
              },
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 1481,
                "end": 1495,
                "loc": {
                  "start": {
                    "line": 54,
                    "column": 2
                  },
                  "end": {
                    "line": 54,
                    "column": 16
                  }
                },
                "name": "pollForUpdates",
                "leadingComments": null
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 1495,
                "end": 1643,
                "loc": {
                  "start": {
                    "line": 54,
                    "column": 16
                  },
                  "end": {
                    "line": 59,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [],
                "body": {
                  "type": "BlockStatement",
                  "start": 1498,
                  "end": 1643,
                  "loc": {
                    "start": {
                      "line": 54,
                      "column": 19
                    },
                    "end": {
                      "line": 59,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ExpressionStatement",
                      "start": 1504,
                      "end": 1639,
                      "loc": {
                        "start": {
                          "line": 55,
                          "column": 4
                        },
                        "end": {
                          "line": 58,
                          "column": 14
                        }
                      },
                      "expression": {
                        "type": "AssignmentExpression",
                        "start": 1504,
                        "end": 1638,
                        "loc": {
                          "start": {
                            "line": 55,
                            "column": 4
                          },
                          "end": {
                            "line": 58,
                            "column": 13
                          }
                        },
                        "operator": "=",
                        "left": {
                          "type": "MemberExpression",
                          "start": 1504,
                          "end": 1521,
                          "loc": {
                            "start": {
                              "line": 55,
                              "column": 4
                            },
                            "end": {
                              "line": 55,
                              "column": 21
                            }
                          },
                          "object": {
                            "type": "ThisExpression",
                            "start": 1504,
                            "end": 1508,
                            "loc": {
                              "start": {
                                "line": 55,
                                "column": 4
                              },
                              "end": {
                                "line": 55,
                                "column": 8
                              }
                            }
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 1509,
                            "end": 1521,
                            "loc": {
                              "start": {
                                "line": 55,
                                "column": 9
                              },
                              "end": {
                                "line": 55,
                                "column": 21
                              }
                            },
                            "name": "pollInterval"
                          },
                          "computed": false
                        },
                        "right": {
                          "type": "CallExpression",
                          "start": 1524,
                          "end": 1638,
                          "loc": {
                            "start": {
                              "line": 55,
                              "column": 24
                            },
                            "end": {
                              "line": 58,
                              "column": 13
                            }
                          },
                          "callee": {
                            "type": "Identifier",
                            "start": 1524,
                            "end": 1535,
                            "loc": {
                              "start": {
                                "line": 55,
                                "column": 24
                              },
                              "end": {
                                "line": 55,
                                "column": 35
                              }
                            },
                            "name": "setInterval"
                          },
                          "arguments": [
                            {
                              "type": "ArrowFunctionExpression",
                              "start": 1536,
                              "end": 1630,
                              "loc": {
                                "start": {
                                  "line": 55,
                                  "column": 36
                                },
                                "end": {
                                  "line": 58,
                                  "column": 5
                                }
                              },
                              "id": null,
                              "generator": false,
                              "expression": false,
                              "async": false,
                              "params": [],
                              "body": {
                                "type": "BlockStatement",
                                "start": 1542,
                                "end": 1630,
                                "loc": {
                                  "start": {
                                    "line": 55,
                                    "column": 42
                                  },
                                  "end": {
                                    "line": 58,
                                    "column": 5
                                  }
                                },
                                "body": [
                                  {
                                    "type": "ExpressionStatement",
                                    "start": 1550,
                                    "end": 1624,
                                    "loc": {
                                      "start": {
                                        "line": 56,
                                        "column": 6
                                      },
                                      "end": {
                                        "line": 57,
                                        "column": 50
                                      }
                                    },
                                    "expression": {
                                      "type": "CallExpression",
                                      "start": 1550,
                                      "end": 1623,
                                      "loc": {
                                        "start": {
                                          "line": 56,
                                          "column": 6
                                        },
                                        "end": {
                                          "line": 57,
                                          "column": 49
                                        }
                                      },
                                      "callee": {
                                        "type": "MemberExpression",
                                        "start": 1550,
                                        "end": 1587,
                                        "loc": {
                                          "start": {
                                            "line": 56,
                                            "column": 6
                                          },
                                          "end": {
                                            "line": 57,
                                            "column": 13
                                          }
                                        },
                                        "object": {
                                          "type": "CallExpression",
                                          "start": 1550,
                                          "end": 1573,
                                          "loc": {
                                            "start": {
                                              "line": 56,
                                              "column": 6
                                            },
                                            "end": {
                                              "line": 56,
                                              "column": 29
                                            }
                                          },
                                          "callee": {
                                            "type": "MemberExpression",
                                            "start": 1550,
                                            "end": 1571,
                                            "loc": {
                                              "start": {
                                                "line": 56,
                                                "column": 6
                                              },
                                              "end": {
                                                "line": 56,
                                                "column": 27
                                              }
                                            },
                                            "object": {
                                              "type": "ThisExpression",
                                              "start": 1550,
                                              "end": 1554,
                                              "loc": {
                                                "start": {
                                                  "line": 56,
                                                  "column": 6
                                                },
                                                "end": {
                                                  "line": 56,
                                                  "column": 10
                                                }
                                              }
                                            },
                                            "property": {
                                              "type": "Identifier",
                                              "start": 1555,
                                              "end": 1571,
                                              "loc": {
                                                "start": {
                                                  "line": 56,
                                                  "column": 11
                                                },
                                                "end": {
                                                  "line": 56,
                                                  "column": 27
                                                }
                                              },
                                              "name": "getNotifications"
                                            },
                                            "computed": false
                                          },
                                          "arguments": []
                                        },
                                        "property": {
                                          "type": "Identifier",
                                          "start": 1583,
                                          "end": 1587,
                                          "loc": {
                                            "start": {
                                              "line": 57,
                                              "column": 9
                                            },
                                            "end": {
                                              "line": 57,
                                              "column": 13
                                            }
                                          },
                                          "name": "done"
                                        },
                                        "computed": false
                                      },
                                      "arguments": [
                                        {
                                          "type": "CallExpression",
                                          "start": 1588,
                                          "end": 1622,
                                          "loc": {
                                            "start": {
                                              "line": 57,
                                              "column": 14
                                            },
                                            "end": {
                                              "line": 57,
                                              "column": 48
                                            }
                                          },
                                          "callee": {
                                            "type": "MemberExpression",
                                            "start": 1588,
                                            "end": 1616,
                                            "loc": {
                                              "start": {
                                                "line": 57,
                                                "column": 14
                                              },
                                              "end": {
                                                "line": 57,
                                                "column": 42
                                              }
                                            },
                                            "object": {
                                              "type": "MemberExpression",
                                              "start": 1588,
                                              "end": 1611,
                                              "loc": {
                                                "start": {
                                                  "line": 57,
                                                  "column": 14
                                                },
                                                "end": {
                                                  "line": 57,
                                                  "column": 37
                                                }
                                              },
                                              "object": {
                                                "type": "ThisExpression",
                                                "start": 1588,
                                                "end": 1592,
                                                "loc": {
                                                  "start": {
                                                    "line": 57,
                                                    "column": 14
                                                  },
                                                  "end": {
                                                    "line": 57,
                                                    "column": 18
                                                  }
                                                }
                                              },
                                              "property": {
                                                "type": "Identifier",
                                                "start": 1593,
                                                "end": 1611,
                                                "loc": {
                                                  "start": {
                                                    "line": 57,
                                                    "column": 19
                                                  },
                                                  "end": {
                                                    "line": 57,
                                                    "column": 37
                                                  }
                                                },
                                                "name": "checkNotifications"
                                              },
                                              "computed": false
                                            },
                                            "property": {
                                              "type": "Identifier",
                                              "start": 1612,
                                              "end": 1616,
                                              "loc": {
                                                "start": {
                                                  "line": 57,
                                                  "column": 38
                                                },
                                                "end": {
                                                  "line": 57,
                                                  "column": 42
                                                }
                                              },
                                              "name": "bind"
                                            },
                                            "computed": false
                                          },
                                          "arguments": [
                                            {
                                              "type": "ThisExpression",
                                              "start": 1617,
                                              "end": 1621,
                                              "loc": {
                                                "start": {
                                                  "line": 57,
                                                  "column": 43
                                                },
                                                "end": {
                                                  "line": 57,
                                                  "column": 47
                                                }
                                              }
                                            }
                                          ]
                                        }
                                      ]
                                    }
                                  }
                                ]
                              }
                            },
                            {
                              "type": "Literal",
                              "start": 1632,
                              "end": 1637,
                              "loc": {
                                "start": {
                                  "line": 58,
                                  "column": 7
                                },
                                "end": {
                                  "line": 58,
                                  "column": 12
                                }
                              },
                              "value": 15000,
                              "rawValue": 15000,
                              "raw": "15000"
                            }
                          ]
                        }
                      }
                    }
                  ],
                  "trailingComments": null
                },
                "trailingComments": null
              },
              "leadingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Set up an interval to check for Luna notification updates.\n   ",
                  "start": 1405,
                  "end": 1478,
                  "loc": {
                    "start": {
                      "line": 51,
                      "column": 2
                    },
                    "end": {
                      "line": 53,
                      "column": 5
                    }
                  },
                  "range": [
                    1405,
                    1478
                  ]
                }
              ],
              "trailingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Retrieve Thorntree notifications\n   * @return {jQuery.Deferred} A jQuery promise\n   ",
                  "start": 1646,
                  "end": 1741,
                  "loc": {
                    "start": {
                      "line": 60,
                      "column": 2
                    },
                    "end": {
                      "line": 63,
                      "column": 5
                    }
                  },
                  "range": [
                    1646,
                    1741
                  ]
                }
              ]
            },
            {
              "type": "MethodDefinition",
              "start": 1744,
              "end": 1845,
              "loc": {
                "start": {
                  "line": 64,
                  "column": 2
                },
                "end": {
                  "line": 69,
                  "column": 3
                }
              },
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 1744,
                "end": 1760,
                "loc": {
                  "start": {
                    "line": 64,
                    "column": 2
                  },
                  "end": {
                    "line": 64,
                    "column": 18
                  }
                },
                "name": "getNotifications",
                "leadingComments": null
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 1760,
                "end": 1845,
                "loc": {
                  "start": {
                    "line": 64,
                    "column": 18
                  },
                  "end": {
                    "line": 69,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [],
                "body": {
                  "type": "BlockStatement",
                  "start": 1763,
                  "end": 1845,
                  "loc": {
                    "start": {
                      "line": 64,
                      "column": 21
                    },
                    "end": {
                      "line": 69,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ReturnStatement",
                      "start": 1769,
                      "end": 1841,
                      "loc": {
                        "start": {
                          "line": 65,
                          "column": 4
                        },
                        "end": {
                          "line": 68,
                          "column": 7
                        }
                      },
                      "argument": {
                        "type": "CallExpression",
                        "start": 1776,
                        "end": 1840,
                        "loc": {
                          "start": {
                            "line": 65,
                            "column": 11
                          },
                          "end": {
                            "line": 68,
                            "column": 6
                          }
                        },
                        "callee": {
                          "type": "MemberExpression",
                          "start": 1776,
                          "end": 1782,
                          "loc": {
                            "start": {
                              "line": 65,
                              "column": 11
                            },
                            "end": {
                              "line": 65,
                              "column": 17
                            }
                          },
                          "object": {
                            "type": "Identifier",
                            "start": 1776,
                            "end": 1777,
                            "loc": {
                              "start": {
                                "line": 65,
                                "column": 11
                              },
                              "end": {
                                "line": 65,
                                "column": 12
                              }
                            },
                            "name": "$"
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 1778,
                            "end": 1782,
                            "loc": {
                              "start": {
                                "line": 65,
                                "column": 13
                              },
                              "end": {
                                "line": 65,
                                "column": 17
                              }
                            },
                            "name": "ajax"
                          },
                          "computed": false
                        },
                        "arguments": [
                          {
                            "type": "ObjectExpression",
                            "start": 1783,
                            "end": 1839,
                            "loc": {
                              "start": {
                                "line": 65,
                                "column": 18
                              },
                              "end": {
                                "line": 68,
                                "column": 5
                              }
                            },
                            "properties": [
                              {
                                "type": "Property",
                                "start": 1791,
                                "end": 1808,
                                "loc": {
                                  "start": {
                                    "line": 66,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 66,
                                    "column": 23
                                  }
                                },
                                "method": false,
                                "shorthand": false,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 1791,
                                  "end": 1794,
                                  "loc": {
                                    "start": {
                                      "line": 66,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 66,
                                      "column": 9
                                    }
                                  },
                                  "name": "url"
                                },
                                "value": {
                                  "type": "MemberExpression",
                                  "start": 1796,
                                  "end": 1808,
                                  "loc": {
                                    "start": {
                                      "line": 66,
                                      "column": 11
                                    },
                                    "end": {
                                      "line": 66,
                                      "column": 23
                                    }
                                  },
                                  "object": {
                                    "type": "ThisExpression",
                                    "start": 1796,
                                    "end": 1800,
                                    "loc": {
                                      "start": {
                                        "line": 66,
                                        "column": 11
                                      },
                                      "end": {
                                        "line": 66,
                                        "column": 15
                                      }
                                    }
                                  },
                                  "property": {
                                    "type": "Identifier",
                                    "start": 1801,
                                    "end": 1808,
                                    "loc": {
                                      "start": {
                                        "line": 66,
                                        "column": 16
                                      },
                                      "end": {
                                        "line": 66,
                                        "column": 23
                                      }
                                    },
                                    "name": "feedUrl"
                                  },
                                  "computed": false
                                },
                                "kind": "init"
                              },
                              {
                                "type": "Property",
                                "start": 1816,
                                "end": 1833,
                                "loc": {
                                  "start": {
                                    "line": 67,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 67,
                                    "column": 23
                                  }
                                },
                                "method": false,
                                "shorthand": false,
                                "computed": false,
                                "key": {
                                  "type": "Identifier",
                                  "start": 1816,
                                  "end": 1824,
                                  "loc": {
                                    "start": {
                                      "line": 67,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 67,
                                      "column": 14
                                    }
                                  },
                                  "name": "dataType"
                                },
                                "value": {
                                  "type": "Literal",
                                  "start": 1826,
                                  "end": 1833,
                                  "loc": {
                                    "start": {
                                      "line": 67,
                                      "column": 16
                                    },
                                    "end": {
                                      "line": 67,
                                      "column": 23
                                    }
                                  },
                                  "value": "jsonp",
                                  "rawValue": "jsonp",
                                  "raw": "\"jsonp\""
                                },
                                "kind": "init"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  ],
                  "trailingComments": null
                },
                "trailingComments": null
              },
              "leadingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Retrieve Thorntree notifications\n   * @return {jQuery.Deferred} A jQuery promise\n   ",
                  "start": 1646,
                  "end": 1741,
                  "loc": {
                    "start": {
                      "line": 60,
                      "column": 2
                    },
                    "end": {
                      "line": 63,
                      "column": 5
                    }
                  },
                  "range": [
                    1646,
                    1741
                  ]
                }
              ],
              "trailingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Check to see if there are new notications from thorntree.\n   * If there are, it will update the user's messages and activity.\n   * @param  {Object} data Notification data from thorntree\n   ",
                  "start": 1848,
                  "end": 2048,
                  "loc": {
                    "start": {
                      "line": 70,
                      "column": 2
                    },
                    "end": {
                      "line": 74,
                      "column": 5
                    }
                  },
                  "range": [
                    1848,
                    2048
                  ]
                }
              ]
            },
            {
              "type": "MethodDefinition",
              "start": 2051,
              "end": 2378,
              "loc": {
                "start": {
                  "line": 75,
                  "column": 2
                },
                "end": {
                  "line": 84,
                  "column": 3
                }
              },
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 2051,
                "end": 2069,
                "loc": {
                  "start": {
                    "line": 75,
                    "column": 2
                  },
                  "end": {
                    "line": 75,
                    "column": 20
                  }
                },
                "name": "checkNotifications",
                "leadingComments": null
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 2069,
                "end": 2378,
                "loc": {
                  "start": {
                    "line": 75,
                    "column": 20
                  },
                  "end": {
                    "line": 84,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [
                  {
                    "type": "Identifier",
                    "start": 2070,
                    "end": 2074,
                    "loc": {
                      "start": {
                        "line": 75,
                        "column": 21
                      },
                      "end": {
                        "line": 75,
                        "column": 25
                      }
                    },
                    "name": "data"
                  }
                ],
                "body": {
                  "type": "BlockStatement",
                  "start": 2076,
                  "end": 2378,
                  "loc": {
                    "start": {
                      "line": 75,
                      "column": 27
                    },
                    "end": {
                      "line": 84,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "IfStatement",
                      "start": 2124,
                      "end": 2374,
                      "loc": {
                        "start": {
                          "line": 77,
                          "column": 4
                        },
                        "end": {
                          "line": 83,
                          "column": 5
                        }
                      },
                      "test": {
                        "type": "LogicalExpression",
                        "start": 2134,
                        "end": 2285,
                        "loc": {
                          "start": {
                            "line": 78,
                            "column": 6
                          },
                          "end": {
                            "line": 79,
                            "column": 78
                          }
                        },
                        "left": {
                          "type": "BinaryExpression",
                          "start": 2134,
                          "end": 2202,
                          "loc": {
                            "start": {
                              "line": 78,
                              "column": 6
                            },
                            "end": {
                              "line": 78,
                              "column": 74
                            }
                          },
                          "left": {
                            "type": "CallExpression",
                            "start": 2134,
                            "end": 2163,
                            "loc": {
                              "start": {
                                "line": 78,
                                "column": 6
                              },
                              "end": {
                                "line": 78,
                                "column": 35
                              }
                            },
                            "callee": {
                              "type": "MemberExpression",
                              "start": 2134,
                              "end": 2148,
                              "loc": {
                                "start": {
                                  "line": 78,
                                  "column": 6
                                },
                                "end": {
                                  "line": 78,
                                  "column": 20
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 2134,
                                "end": 2138,
                                "loc": {
                                  "start": {
                                    "line": 78,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 78,
                                    "column": 10
                                  }
                                },
                                "name": "JSON",
                                "leadingComments": null
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 2139,
                                "end": 2148,
                                "loc": {
                                  "start": {
                                    "line": 78,
                                    "column": 11
                                  },
                                  "end": {
                                    "line": 78,
                                    "column": 20
                                  }
                                },
                                "name": "stringify"
                              },
                              "computed": false,
                              "leadingComments": null
                            },
                            "arguments": [
                              {
                                "type": "MemberExpression",
                                "start": 2149,
                                "end": 2162,
                                "loc": {
                                  "start": {
                                    "line": 78,
                                    "column": 21
                                  },
                                  "end": {
                                    "line": 78,
                                    "column": 34
                                  }
                                },
                                "object": {
                                  "type": "Identifier",
                                  "start": 2149,
                                  "end": 2153,
                                  "loc": {
                                    "start": {
                                      "line": 78,
                                      "column": 21
                                    },
                                    "end": {
                                      "line": 78,
                                      "column": 25
                                    }
                                  },
                                  "name": "data"
                                },
                                "property": {
                                  "type": "Identifier",
                                  "start": 2154,
                                  "end": 2162,
                                  "loc": {
                                    "start": {
                                      "line": 78,
                                      "column": 26
                                    },
                                    "end": {
                                      "line": 78,
                                      "column": 34
                                    }
                                  },
                                  "name": "messages"
                                },
                                "computed": false
                              }
                            ],
                            "leadingComments": null
                          },
                          "operator": "!==",
                          "right": {
                            "type": "CallExpression",
                            "start": 2168,
                            "end": 2202,
                            "loc": {
                              "start": {
                                "line": 78,
                                "column": 40
                              },
                              "end": {
                                "line": 78,
                                "column": 74
                              }
                            },
                            "callee": {
                              "type": "MemberExpression",
                              "start": 2168,
                              "end": 2182,
                              "loc": {
                                "start": {
                                  "line": 78,
                                  "column": 40
                                },
                                "end": {
                                  "line": 78,
                                  "column": 54
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 2168,
                                "end": 2172,
                                "loc": {
                                  "start": {
                                    "line": 78,
                                    "column": 40
                                  },
                                  "end": {
                                    "line": 78,
                                    "column": 44
                                  }
                                },
                                "name": "JSON"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 2173,
                                "end": 2182,
                                "loc": {
                                  "start": {
                                    "line": 78,
                                    "column": 45
                                  },
                                  "end": {
                                    "line": 78,
                                    "column": 54
                                  }
                                },
                                "name": "stringify"
                              },
                              "computed": false
                            },
                            "arguments": [
                              {
                                "type": "MemberExpression",
                                "start": 2183,
                                "end": 2201,
                                "loc": {
                                  "start": {
                                    "line": 78,
                                    "column": 55
                                  },
                                  "end": {
                                    "line": 78,
                                    "column": 73
                                  }
                                },
                                "object": {
                                  "type": "MemberExpression",
                                  "start": 2183,
                                  "end": 2192,
                                  "loc": {
                                    "start": {
                                      "line": 78,
                                      "column": 55
                                    },
                                    "end": {
                                      "line": 78,
                                      "column": 64
                                    }
                                  },
                                  "object": {
                                    "type": "ThisExpression",
                                    "start": 2183,
                                    "end": 2187,
                                    "loc": {
                                      "start": {
                                        "line": 78,
                                        "column": 55
                                      },
                                      "end": {
                                        "line": 78,
                                        "column": 59
                                      }
                                    }
                                  },
                                  "property": {
                                    "type": "Identifier",
                                    "start": 2188,
                                    "end": 2192,
                                    "loc": {
                                      "start": {
                                        "line": 78,
                                        "column": 60
                                      },
                                      "end": {
                                        "line": 78,
                                        "column": 64
                                      }
                                    },
                                    "name": "user"
                                  },
                                  "computed": false
                                },
                                "property": {
                                  "type": "Identifier",
                                  "start": 2193,
                                  "end": 2201,
                                  "loc": {
                                    "start": {
                                      "line": 78,
                                      "column": 65
                                    },
                                    "end": {
                                      "line": 78,
                                      "column": 73
                                    }
                                  },
                                  "name": "messages"
                                },
                                "computed": false
                              }
                            ]
                          },
                          "leadingComments": null
                        },
                        "operator": "||",
                        "right": {
                          "type": "BinaryExpression",
                          "start": 2213,
                          "end": 2285,
                          "loc": {
                            "start": {
                              "line": 79,
                              "column": 6
                            },
                            "end": {
                              "line": 79,
                              "column": 78
                            }
                          },
                          "left": {
                            "type": "CallExpression",
                            "start": 2213,
                            "end": 2244,
                            "loc": {
                              "start": {
                                "line": 79,
                                "column": 6
                              },
                              "end": {
                                "line": 79,
                                "column": 37
                              }
                            },
                            "callee": {
                              "type": "MemberExpression",
                              "start": 2213,
                              "end": 2227,
                              "loc": {
                                "start": {
                                  "line": 79,
                                  "column": 6
                                },
                                "end": {
                                  "line": 79,
                                  "column": 20
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 2213,
                                "end": 2217,
                                "loc": {
                                  "start": {
                                    "line": 79,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 79,
                                    "column": 10
                                  }
                                },
                                "name": "JSON"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 2218,
                                "end": 2227,
                                "loc": {
                                  "start": {
                                    "line": 79,
                                    "column": 11
                                  },
                                  "end": {
                                    "line": 79,
                                    "column": 20
                                  }
                                },
                                "name": "stringify"
                              },
                              "computed": false
                            },
                            "arguments": [
                              {
                                "type": "MemberExpression",
                                "start": 2228,
                                "end": 2243,
                                "loc": {
                                  "start": {
                                    "line": 79,
                                    "column": 21
                                  },
                                  "end": {
                                    "line": 79,
                                    "column": 36
                                  }
                                },
                                "object": {
                                  "type": "Identifier",
                                  "start": 2228,
                                  "end": 2232,
                                  "loc": {
                                    "start": {
                                      "line": 79,
                                      "column": 21
                                    },
                                    "end": {
                                      "line": 79,
                                      "column": 25
                                    }
                                  },
                                  "name": "data"
                                },
                                "property": {
                                  "type": "Identifier",
                                  "start": 2233,
                                  "end": 2243,
                                  "loc": {
                                    "start": {
                                      "line": 79,
                                      "column": 26
                                    },
                                    "end": {
                                      "line": 79,
                                      "column": 36
                                    }
                                  },
                                  "name": "activities"
                                },
                                "computed": false
                              }
                            ]
                          },
                          "operator": "!==",
                          "right": {
                            "type": "CallExpression",
                            "start": 2249,
                            "end": 2285,
                            "loc": {
                              "start": {
                                "line": 79,
                                "column": 42
                              },
                              "end": {
                                "line": 79,
                                "column": 78
                              }
                            },
                            "callee": {
                              "type": "MemberExpression",
                              "start": 2249,
                              "end": 2263,
                              "loc": {
                                "start": {
                                  "line": 79,
                                  "column": 42
                                },
                                "end": {
                                  "line": 79,
                                  "column": 56
                                }
                              },
                              "object": {
                                "type": "Identifier",
                                "start": 2249,
                                "end": 2253,
                                "loc": {
                                  "start": {
                                    "line": 79,
                                    "column": 42
                                  },
                                  "end": {
                                    "line": 79,
                                    "column": 46
                                  }
                                },
                                "name": "JSON"
                              },
                              "property": {
                                "type": "Identifier",
                                "start": 2254,
                                "end": 2263,
                                "loc": {
                                  "start": {
                                    "line": 79,
                                    "column": 47
                                  },
                                  "end": {
                                    "line": 79,
                                    "column": 56
                                  }
                                },
                                "name": "stringify"
                              },
                              "computed": false
                            },
                            "arguments": [
                              {
                                "type": "MemberExpression",
                                "start": 2264,
                                "end": 2284,
                                "loc": {
                                  "start": {
                                    "line": 79,
                                    "column": 57
                                  },
                                  "end": {
                                    "line": 79,
                                    "column": 77
                                  }
                                },
                                "object": {
                                  "type": "MemberExpression",
                                  "start": 2264,
                                  "end": 2273,
                                  "loc": {
                                    "start": {
                                      "line": 79,
                                      "column": 57
                                    },
                                    "end": {
                                      "line": 79,
                                      "column": 66
                                    }
                                  },
                                  "object": {
                                    "type": "ThisExpression",
                                    "start": 2264,
                                    "end": 2268,
                                    "loc": {
                                      "start": {
                                        "line": 79,
                                        "column": 57
                                      },
                                      "end": {
                                        "line": 79,
                                        "column": 61
                                      }
                                    }
                                  },
                                  "property": {
                                    "type": "Identifier",
                                    "start": 2269,
                                    "end": 2273,
                                    "loc": {
                                      "start": {
                                        "line": 79,
                                        "column": 62
                                      },
                                      "end": {
                                        "line": 79,
                                        "column": 66
                                      }
                                    },
                                    "name": "user"
                                  },
                                  "computed": false
                                },
                                "property": {
                                  "type": "Identifier",
                                  "start": 2274,
                                  "end": 2284,
                                  "loc": {
                                    "start": {
                                      "line": 79,
                                      "column": 67
                                    },
                                    "end": {
                                      "line": 79,
                                      "column": 77
                                    }
                                  },
                                  "name": "activities"
                                },
                                "computed": false
                              }
                            ]
                          }
                        },
                        "leadingComments": null
                      },
                      "consequent": {
                        "type": "BlockStatement",
                        "start": 2292,
                        "end": 2374,
                        "loc": {
                          "start": {
                            "line": 80,
                            "column": 6
                          },
                          "end": {
                            "line": 83,
                            "column": 5
                          }
                        },
                        "body": [
                          {
                            "type": "ExpressionStatement",
                            "start": 2300,
                            "end": 2332,
                            "loc": {
                              "start": {
                                "line": 81,
                                "column": 6
                              },
                              "end": {
                                "line": 81,
                                "column": 38
                              }
                            },
                            "expression": {
                              "type": "CallExpression",
                              "start": 2300,
                              "end": 2331,
                              "loc": {
                                "start": {
                                  "line": 81,
                                  "column": 6
                                },
                                "end": {
                                  "line": 81,
                                  "column": 37
                                }
                              },
                              "callee": {
                                "type": "MemberExpression",
                                "start": 2300,
                                "end": 2325,
                                "loc": {
                                  "start": {
                                    "line": 81,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 81,
                                    "column": 31
                                  }
                                },
                                "object": {
                                  "type": "ThisExpression",
                                  "start": 2300,
                                  "end": 2304,
                                  "loc": {
                                    "start": {
                                      "line": 81,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 81,
                                      "column": 10
                                    }
                                  }
                                },
                                "property": {
                                  "type": "Identifier",
                                  "start": 2305,
                                  "end": 2325,
                                  "loc": {
                                    "start": {
                                      "line": 81,
                                      "column": 11
                                    },
                                    "end": {
                                      "line": 81,
                                      "column": 31
                                    }
                                  },
                                  "name": "notificationsFetched"
                                },
                                "computed": false
                              },
                              "arguments": [
                                {
                                  "type": "Identifier",
                                  "start": 2326,
                                  "end": 2330,
                                  "loc": {
                                    "start": {
                                      "line": 81,
                                      "column": 32
                                    },
                                    "end": {
                                      "line": 81,
                                      "column": 36
                                    }
                                  },
                                  "name": "data"
                                }
                              ]
                            }
                          },
                          {
                            "type": "ExpressionStatement",
                            "start": 2339,
                            "end": 2366,
                            "loc": {
                              "start": {
                                "line": 82,
                                "column": 6
                              },
                              "end": {
                                "line": 82,
                                "column": 33
                              }
                            },
                            "expression": {
                              "type": "CallExpression",
                              "start": 2339,
                              "end": 2365,
                              "loc": {
                                "start": {
                                  "line": 82,
                                  "column": 6
                                },
                                "end": {
                                  "line": 82,
                                  "column": 32
                                }
                              },
                              "callee": {
                                "type": "MemberExpression",
                                "start": 2339,
                                "end": 2363,
                                "loc": {
                                  "start": {
                                    "line": 82,
                                    "column": 6
                                  },
                                  "end": {
                                    "line": 82,
                                    "column": 30
                                  }
                                },
                                "object": {
                                  "type": "ThisExpression",
                                  "start": 2339,
                                  "end": 2343,
                                  "loc": {
                                    "start": {
                                      "line": 82,
                                      "column": 6
                                    },
                                    "end": {
                                      "line": 82,
                                      "column": 10
                                    }
                                  }
                                },
                                "property": {
                                  "type": "Identifier",
                                  "start": 2344,
                                  "end": 2363,
                                  "loc": {
                                    "start": {
                                      "line": 82,
                                      "column": 11
                                    },
                                    "end": {
                                      "line": 82,
                                      "column": 30
                                    }
                                  },
                                  "name": "updateNotifications"
                                },
                                "computed": false
                              },
                              "arguments": []
                            }
                          }
                        ]
                      },
                      "alternate": null,
                      "leadingComments": [
                        {
                          "type": "CommentLine",
                          "value": " Only update if things have changed",
                          "start": 2082,
                          "end": 2119,
                          "loc": {
                            "start": {
                              "line": 76,
                              "column": 4
                            },
                            "end": {
                              "line": 76,
                              "column": 41
                            }
                          },
                          "range": [
                            2082,
                            2119
                          ]
                        }
                      ]
                    }
                  ]
                }
              },
              "leadingComments": [
                {
                  "type": "Block",
                  "value": "*\n   * Check to see if there are new notications from thorntree.\n   * If there are, it will update the user's messages and activity.\n   * @param  {Object} data Notification data from thorntree\n   ",
                  "start": 1848,
                  "end": 2048,
                  "loc": {
                    "start": {
                      "line": 70,
                      "column": 2
                    },
                    "end": {
                      "line": 74,
                      "column": 5
                    }
                  },
                  "range": [
                    1848,
                    2048
                  ]
                }
              ]
            },
            {
              "type": "MethodDefinition",
              "start": 2414,
              "end": 2465,
              "loc": {
                "start": {
                  "line": 86,
                  "column": 2
                },
                "end": {
                  "line": 88,
                  "column": 3
                }
              },
              "decorators": [
                {
                  "type": "Decorator",
                  "start": 2381,
                  "end": 2411,
                  "loc": {
                    "start": {
                      "line": 85,
                      "column": 2
                    },
                    "end": {
                      "line": 85,
                      "column": 32
                    }
                  },
                  "expression": {
                    "type": "CallExpression",
                    "start": 2382,
                    "end": 2411,
                    "loc": {
                      "start": {
                        "line": 85,
                        "column": 3
                      },
                      "end": {
                        "line": 85,
                        "column": 32
                      }
                    },
                    "callee": {
                      "type": "Identifier",
                      "start": 2382,
                      "end": 2389,
                      "loc": {
                        "start": {
                          "line": 85,
                          "column": 3
                        },
                        "end": {
                          "line": 85,
                          "column": 10
                        }
                      },
                      "name": "publish"
                    },
                    "arguments": [
                      {
                        "type": "Literal",
                        "start": 2390,
                        "end": 2410,
                        "loc": {
                          "start": {
                            "line": 85,
                            "column": 11
                          },
                          "end": {
                            "line": 85,
                            "column": 31
                          }
                        },
                        "value": "user.status.update",
                        "rawValue": "user.status.update",
                        "raw": "\"user.status.update\""
                      }
                    ]
                  }
                }
              ],
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 2414,
                "end": 2426,
                "loc": {
                  "start": {
                    "line": 86,
                    "column": 2
                  },
                  "end": {
                    "line": 86,
                    "column": 14
                  }
                },
                "name": "updateStatus"
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 2426,
                "end": 2465,
                "loc": {
                  "start": {
                    "line": 86,
                    "column": 14
                  },
                  "end": {
                    "line": 88,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [],
                "body": {
                  "type": "BlockStatement",
                  "start": 2429,
                  "end": 2465,
                  "loc": {
                    "start": {
                      "line": 86,
                      "column": 17
                    },
                    "end": {
                      "line": 88,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ReturnStatement",
                      "start": 2435,
                      "end": 2461,
                      "loc": {
                        "start": {
                          "line": 87,
                          "column": 4
                        },
                        "end": {
                          "line": 87,
                          "column": 30
                        }
                      },
                      "argument": {
                        "type": "CallExpression",
                        "start": 2442,
                        "end": 2460,
                        "loc": {
                          "start": {
                            "line": 87,
                            "column": 11
                          },
                          "end": {
                            "line": 87,
                            "column": 29
                          }
                        },
                        "callee": {
                          "type": "MemberExpression",
                          "start": 2442,
                          "end": 2458,
                          "loc": {
                            "start": {
                              "line": 87,
                              "column": 11
                            },
                            "end": {
                              "line": 87,
                              "column": 27
                            }
                          },
                          "object": {
                            "type": "MemberExpression",
                            "start": 2442,
                            "end": 2451,
                            "loc": {
                              "start": {
                                "line": 87,
                                "column": 11
                              },
                              "end": {
                                "line": 87,
                                "column": 20
                              }
                            },
                            "object": {
                              "type": "ThisExpression",
                              "start": 2442,
                              "end": 2446,
                              "loc": {
                                "start": {
                                  "line": 87,
                                  "column": 11
                                },
                                "end": {
                                  "line": 87,
                                  "column": 15
                                }
                              }
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 2447,
                              "end": 2451,
                              "loc": {
                                "start": {
                                  "line": 87,
                                  "column": 16
                                },
                                "end": {
                                  "line": 87,
                                  "column": 20
                                }
                              },
                              "name": "user"
                            },
                            "computed": false
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 2452,
                            "end": 2458,
                            "loc": {
                              "start": {
                                "line": 87,
                                "column": 21
                              },
                              "end": {
                                "line": 87,
                                "column": 27
                              }
                            },
                            "name": "toJSON"
                          },
                          "computed": false
                        },
                        "arguments": []
                      }
                    }
                  ]
                }
              }
            },
            {
              "type": "MethodDefinition",
              "start": 2508,
              "end": 2566,
              "loc": {
                "start": {
                  "line": 90,
                  "column": 2
                },
                "end": {
                  "line": 92,
                  "column": 3
                }
              },
              "decorators": [
                {
                  "type": "Decorator",
                  "start": 2468,
                  "end": 2505,
                  "loc": {
                    "start": {
                      "line": 89,
                      "column": 2
                    },
                    "end": {
                      "line": 89,
                      "column": 39
                    }
                  },
                  "expression": {
                    "type": "CallExpression",
                    "start": 2469,
                    "end": 2505,
                    "loc": {
                      "start": {
                        "line": 89,
                        "column": 3
                      },
                      "end": {
                        "line": 89,
                        "column": 39
                      }
                    },
                    "callee": {
                      "type": "Identifier",
                      "start": 2469,
                      "end": 2476,
                      "loc": {
                        "start": {
                          "line": 89,
                          "column": 3
                        },
                        "end": {
                          "line": 89,
                          "column": 10
                        }
                      },
                      "name": "publish"
                    },
                    "arguments": [
                      {
                        "type": "Literal",
                        "start": 2477,
                        "end": 2504,
                        "loc": {
                          "start": {
                            "line": 89,
                            "column": 11
                          },
                          "end": {
                            "line": 89,
                            "column": 38
                          }
                        },
                        "value": "user.notifications.update",
                        "rawValue": "user.notifications.update",
                        "raw": "\"user.notifications.update\""
                      }
                    ]
                  }
                }
              ],
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 2508,
                "end": 2527,
                "loc": {
                  "start": {
                    "line": 90,
                    "column": 2
                  },
                  "end": {
                    "line": 90,
                    "column": 21
                  }
                },
                "name": "updateNotifications"
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 2527,
                "end": 2566,
                "loc": {
                  "start": {
                    "line": 90,
                    "column": 21
                  },
                  "end": {
                    "line": 92,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [],
                "body": {
                  "type": "BlockStatement",
                  "start": 2530,
                  "end": 2566,
                  "loc": {
                    "start": {
                      "line": 90,
                      "column": 24
                    },
                    "end": {
                      "line": 92,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ReturnStatement",
                      "start": 2536,
                      "end": 2562,
                      "loc": {
                        "start": {
                          "line": 91,
                          "column": 4
                        },
                        "end": {
                          "line": 91,
                          "column": 30
                        }
                      },
                      "argument": {
                        "type": "CallExpression",
                        "start": 2543,
                        "end": 2561,
                        "loc": {
                          "start": {
                            "line": 91,
                            "column": 11
                          },
                          "end": {
                            "line": 91,
                            "column": 29
                          }
                        },
                        "callee": {
                          "type": "MemberExpression",
                          "start": 2543,
                          "end": 2559,
                          "loc": {
                            "start": {
                              "line": 91,
                              "column": 11
                            },
                            "end": {
                              "line": 91,
                              "column": 27
                            }
                          },
                          "object": {
                            "type": "MemberExpression",
                            "start": 2543,
                            "end": 2552,
                            "loc": {
                              "start": {
                                "line": 91,
                                "column": 11
                              },
                              "end": {
                                "line": 91,
                                "column": 20
                              }
                            },
                            "object": {
                              "type": "ThisExpression",
                              "start": 2543,
                              "end": 2547,
                              "loc": {
                                "start": {
                                  "line": 91,
                                  "column": 11
                                },
                                "end": {
                                  "line": 91,
                                  "column": 15
                                }
                              }
                            },
                            "property": {
                              "type": "Identifier",
                              "start": 2548,
                              "end": 2552,
                              "loc": {
                                "start": {
                                  "line": 91,
                                  "column": 16
                                },
                                "end": {
                                  "line": 91,
                                  "column": 20
                                }
                              },
                              "name": "user"
                            },
                            "computed": false
                          },
                          "property": {
                            "type": "Identifier",
                            "start": 2553,
                            "end": 2559,
                            "loc": {
                              "start": {
                                "line": 91,
                                "column": 21
                              },
                              "end": {
                                "line": 91,
                                "column": 27
                              }
                            },
                            "name": "toJSON"
                          },
                          "computed": false
                        },
                        "arguments": []
                      }
                    }
                  ]
                }
              }
            },
            {
              "type": "MethodDefinition",
              "start": 2569,
              "end": 2635,
              "loc": {
                "start": {
                  "line": 93,
                  "column": 2
                },
                "end": {
                  "line": 95,
                  "column": 3
                }
              },
              "computed": false,
              "key": {
                "type": "Identifier",
                "start": 2569,
                "end": 2574,
                "loc": {
                  "start": {
                    "line": 93,
                    "column": 2
                  },
                  "end": {
                    "line": 93,
                    "column": 7
                  }
                },
                "name": "error"
              },
              "static": false,
              "kind": "method",
              "value": {
                "type": "FunctionExpression",
                "start": 2574,
                "end": 2635,
                "loc": {
                  "start": {
                    "line": 93,
                    "column": 7
                  },
                  "end": {
                    "line": 95,
                    "column": 3
                  }
                },
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [],
                "body": {
                  "type": "BlockStatement",
                  "start": 2577,
                  "end": 2635,
                  "loc": {
                    "start": {
                      "line": 93,
                      "column": 10
                    },
                    "end": {
                      "line": 95,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ThrowStatement",
                      "start": 2583,
                      "end": 2631,
                      "loc": {
                        "start": {
                          "line": 94,
                          "column": 4
                        },
                        "end": {
                          "line": 94,
                          "column": 52
                        }
                      },
                      "argument": {
                        "type": "Literal",
                        "start": 2589,
                        "end": 2630,
                        "loc": {
                          "start": {
                            "line": 94,
                            "column": 10
                          },
                          "end": {
                            "line": 94,
                            "column": 51
                          }
                        },
                        "value": "Error retrieving luna login information",
                        "rawValue": "Error retrieving luna login information",
                        "raw": "\"Error retrieving luna login information\""
                      }
                    }
                  ]
                }
              }
            }
          ]
        },
        "leadingComments": [],
        "trailingComments": []
      }
    }
  ]
}