code: function final(err,response){
    			//console.log(err);
    			//console.log(response);
    			if (err){
    				$scope.showerror=true;
    				$scope.cerr = err.data.error;
    				return 0;
    			}
    			if(response){
    				$scope.showmenu.pub = true;
    				//console.log($scope.showmenu.pub,'pub');
    			}
   		 }
docs: console.log('CHECK func');