var q = require("q");
module.exports = {
test: function(req,res){
q()
.then(function(){
return func1();
})
.then(function(){
res.send("ok!!!")
})
.catch(res.serverError);
}
};
function func1(){
return q.promise(function(resolve,reject){
q()
.then(function(){
lol.copter();
resolve();
})
.catch(reject);
})
}