This is a mocked version of cht-conf's contact-summary lib.js which is an entry-point for cht-conf's compile-app-settings bundle.
https://github.com/medic/cht-conf/blob/master/src/contact-summary/lib.js
It behaves the same as the production version but can be run inside node require() instead of relying on the resolution aliasing provided by webpack.