Issue created from Bitbucket pull request comment
Need to address below code refactor things:
AP.request handling should be done in the core module using apRequest() as per the documentation
Need to change all console.log statements should be moved core module logging.
runAsyncAutomation has supposed to support by the core module. Right now tightly coupled with URL in runAutomation.
getDomainName() will available in 2.2.0 binary. Currently, we are using 2.1.0 binary.
JCPP code is independent itself, so if do code refactor we need to consume the core modules as per the documentation .https://wiki.appfire.com/display/CBW/Core+Modules+2.0+Uplift