code: function (initFunction) {
          if (_.isFunction(initFunction)) {
              Logger.info("Run init function");
              _customInitFuncton = initFunction;
              return initFunction(appHttp)
                  .then(function () {
                      return initFunction(appHttps);
                  });
          }
          return Q();
      }
docs: Call and set custom init function to global
  @param initFunction
  @returns {*}
  @private