angular
    .module("mscv", ['ngResource', 'ui.bootstrap'])
    .config(config);

function config($httpProvider) {
    $httpProvider.interceptors.push(interceptorsCallback);

    function interceptorsCallback($injector, BASE_URI) {
        return {
            responseError: function (response) {
                function responseErrorCallback(modal, $http, $rootScope, $q) {
                    debugger;
                    if (response.status === 404) {
                        return modal.notFound();
                    }

                    return $q.reject(response);
                }
                return $injector.invoke(responseErrorCallback);
            }
        };
    }
}
angular
    .module("mscv", ['ngResource', 'ui.bootstrap'])
    .config(config);

function config($httpProvider) {
    $httpProvider.interceptors.push(interceptorsCallback);

    function interceptorsCallback($injector, BASE_URI) {
        return {
            responseError: function (response) {
                function responseErrorCallback(modal, $http, $rootScope, $q) {
                    if (response.status === 404) {
                        return modal.notFound();
                    }

                    return $q.reject(response);
                }
                return $injector.invoke(responseErrorCallback);
            }
        };
    }
}
remove debug statement