Added timeout for BMC reboot

Change-Id: I376c3578c68535259e4527941b0995394e3d0734
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
diff --git a/app/common/services/apiInterceptor.js b/app/common/services/apiInterceptor.js
index 5a715ec..0c75caa 100644
--- a/app/common/services/apiInterceptor.js
+++ b/app/common/services/apiInterceptor.js
@@ -38,6 +38,9 @@
                 'responseError': function(rejection){
                     dataService.server_unreachable = true;
                     dataService.loading = false;
+                    if(dataService.path != '/login'){
+                        $rootScope.$emit('timedout-user', {});
+                    }
                     return $q.reject(rejection);
                 }
             };