var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
/// <reference path="AjaxProxy.ts" />
var econda;
(function (econda) {
var profileaccess;
(function (profileaccess) {
var proxy;
(function (proxy) {
/**
* WebtokenEndpointProxy class.
*
* @class econda.profileaccess.proxy.WebtokenEndpointProxy
* @extends econda.profileaccess.proxy.AjaxProxy
*/
var WebtokenEndpointProxy = (function (_super) {
__extends(WebtokenEndpointProxy, _super);
function WebtokenEndpointProxy(cfg) {
if (cfg === void 0) { cfg = null; }
_super.call(this, cfg);
this.setIsPost(false);
this.setHasContextParams(false);
}
* @inheritdoc
*/
WebtokenEndpointProxy.prototype.getHeaderValues = function () {
var header = {};
var webTokenRequest = this.getRequest();
if (webTokenRequest.getWebToken()) {
header['X-AUTH-TOKEN'] = webTokenRequest.getWebToken();
}
return header;
};
return WebtokenEndpointProxy;
}(econda.profileaccess.proxy.AjaxProxy));
proxy.WebtokenEndpointProxy = WebtokenEndpointProxy;
})(proxy = profileaccess.proxy || (profileaccess.proxy = {}));
})(profileaccess = econda.profileaccess || (econda.profileaccess = {}));
})(econda || (econda = {}));