/modules
/module-name
input.js (service GET)
build-function-name.js
build-another-function-name.js
output.js (service POST)
/utils
function-used-in-several-places.js
index.js
...
// index.js
// ...
getAuth()
.then(module1)
.then(module2)
.then(module3)
// etc