You have to use the string-injection based syntax that ensure that the minified version points to the good dependancy :
function checkInCtrl ($scope, $rootScope, $location, $http){}
becomes :
['$scope', '$rootScope', '$location', '$http', function checkInCtrl ($scope, $rootScope, $location, $http){}]