text: // Generated by CoffeeScript 2.5.1
  (function() {
    App.UserIdleCatcher = class UserIdleCatcher {
      constructor(interval, cbFunction, parent) {
        this.interval = interval;
        this.cbFunction = cbFunction;
        this.parent = parent;
        this.idleTime = 0;
        $("html").mousemove(() => {
          return this.resetIdleTimer();
        });
        $("html").keypress(() => {
          return this.resetIdleTimer();
        });
        $("html").scroll(() => {
          return this.resetIdleTimer();
        });
        window.addEventListener('touchstart', () => {
          return this.resetIdleTimer();
        });
        setInterval(() => {
          this.idleTime += 1;
          if (this.idleTime >= this.interval) {
            this.idleTime = 0;
            return this.cbFunction(this.parent);
          }
        }, 1000);
      }
  
      resetIdleTimer() {
        return this.idleTime = 0;
      }
  
    };
  
  }).call(this);
  
  //# sourceMappingURL=user-idle-catcher.js.map
  