{"version":3,"names":[],"mappings":"","sources":["analytics.js"],"sourcesContent":["\r\nexport class TagManager {\r\n constructor(\r\n hostname,\r\n url,\r\n application,\r\n jobPostingId,\r\n brandCode,\r\n page\r\n ) {\r\n this.hostname = hostname;\r\n this.url = url;\r\n this.application = application;\r\n this.jobPostingId = jobPostingId;\r\n this.brandCode = brandCode;\r\n this.page = page;\r\n }\r\n\r\n get retrieveTags() {\r\n return this.getTrackingTags();\r\n }\r\n\r\n getTrackingTags() {\r\n const data = {\r\n hostname: this.hostname,\r\n url: this.url,\r\n application: this.application,\r\n jobPostingId: this.jobPostingId,\r\n brandCode: this.brandCode,\r\n page: this.page\r\n }\r\n\r\n return $.ajax({\r\n url: sessionStorage.getItem('apiHost') + 'TagTrackingTag/GetTrackingTagService',\r\n type: 'POST',\r\n data: JSON.stringify(data),\r\n contentType: \"application/json\",\r\n processData: false,\r\n success: function (response){\r\n console.log(response);\r\n },\r\n error: function (textStatus, errorThrown){\r\n console.log(errorThrown)\r\n }\r\n })\r\n }\r\n\r\n\r\n injectTag(script, position, parent) {\r\n if (position === \"Top\") {\r\n $(parent.toLowerCase()).prepend(script);\r\n } else {\r\n $(parent.toLowerCase()).append(script);\r\n }\r\n }\r\n}\r\n"],"file":"analytics.js"}