(this["webpackJsonpmicron-management-app"]=this["webpackJsonpmicron-management-app"]||[]).push([[0],{1144:function(e,t,i){e.exports=i(1881)},1149:function(e,t,i){},1153:function(e,t,i){},1496:function(e,t){},1498:function(e,t){},1509:function(e,t){},1511:function(e,t){},1536:function(e,t){},1538:function(e,t){},1539:function(e,t){},1544:function(e,t){},1546:function(e,t){},1552:function(e,t){},1554:function(e,t){},1573:function(e,t){},1585:function(e,t){},1588:function(e,t){},1655:function(e,t){},1881:function(e,t,i){"use strict";i.r(t);var r,a=i(1),n=i.n(a),s=i(47),o=i.n(s),c=(i(1149),i(22)),l=i(66),d=i(214),u=(i(1153),i(6)),h=i(438),f=[{label:"User",items:[{label:"Profile",path:"/user/profile",icon:n.a.createElement(u.SystemIcon,{icon:"Profile"})},{label:"Preferences",path:"/user/preference",icon:n.a.createElement(u.SystemIcon,{icon:"Preferences"})}]}],v=i(27),p=i(9),m=i(19),y=i(15),b=i(151),S=i(153),g=i(248),I=i(0),O=i(2),A=i(3),j=i(11),C=i.n(j),P=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAllApp",value:function(e){var t=this,i=this.baseUrl+"/api/App/GetAllApp",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processGetAllApp(e)}))}},{key:"processGetAllApp",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return q.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"notImplemented",value:function(e){var t=this,i=this.baseUrl+"/api/App/NotImplemented/notImplemented",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processNotImplemented(e)}))}},{key:"processNotImplemented",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),E=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAllIdentityPool",value:function(e){var t=this,i=this.baseUrl+"/api/IdentityPool/GetAllIdentityPool",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processGetAllIdentityPool(e)}))}},{key:"processGetAllIdentityPool",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(F.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return a}if(404===t){var l=e.data,d=l;return We("Not Found",t,l,i,Oe.fromJS(d))}var u=e.data,h=u;return We("Error",t,u,i,Oe.fromJS(h))}},{key:"notImplemented2",value:function(e){var t=this,i=this.baseUrl+"/api/IdentityPool/NotImplemented/notImplemented",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processNotImplemented2(e)}))}},{key:"processNotImplemented2",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),w=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAllIndustry",value:function(e){var t=this,i=this.baseUrl+"/api/Industry/GetAllIndustry",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processGetAllIndustry(e)}))}},{key:"processGetAllIndustry",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ne.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"notImplemented3",value:function(e){var t=this,i=this.baseUrl+"/api/Industry/NotImplemented/notImplemented",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processNotImplemented3(e)}))}},{key:"processNotImplemented3",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),k=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAllAuditLog",value:function(e,t){var i=this,r=this.baseUrl+"/api/MasterAuditLog/GetAllAuditLog";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllAuditLog(e)}))}},{key:"processGetAllAuditLog",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return H.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getAuditLog",value:function(e,t){var i=this,r=this.baseUrl+"/api/MasterAuditLog/GetAuditLog/{auditId}";if(void 0===e||null===e)throw new Error("The parameter 'auditId' must be defined.");var a={method:"GET",url:r=(r=r.replace("{auditId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAuditLog(e)}))}},{key:"processGetAuditLog",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return z.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getByDateRange",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/MasterAuditLog/GetByDateRange/byDateRange/{fromDateTime}/{toDateTime}";if(void 0===e||null===e)throw new Error("The parameter 'fromDateTime' must be defined.");if(a=a.replace("{fromDateTime}",encodeURIComponent(e?""+e.toJSON():"null")),void 0===t||null===t)throw new Error("The parameter 'toDateTime' must be defined.");var n={method:"GET",url:a=(a=a.replace("{toDateTime}",encodeURIComponent(t?""+t.toJSON():"null"))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByDateRange(e)}))}},{key:"processGetByDateRange",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return H.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getByUserId",value:function(e,t){var i=this,r=this.baseUrl+"/api/MasterAuditLog/GetByUserId/byUserId/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var a={method:"GET",url:r=(r=r.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetByUserId(e)}))}},{key:"processGetByUserId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return H.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getByTableName",value:function(e,t){var i=this,r=this.baseUrl+"/api/MasterAuditLog/GetByTableName/byTableName/{tableName}";if(void 0===e||null===e)throw new Error("The parameter 'tableName' must be defined.");var a={method:"GET",url:r=(r=r.replace("{tableName}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetByTableName(e)}))}},{key:"processGetByTableName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return H.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"updateAuditLog",value:function(e,t){var i=this,r=this.baseUrl+"/api/MasterAuditLog/UpdateAuditLog";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processUpdateAuditLog(e)}))}},{key:"processUpdateAuditLog",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ie.fromJS(a)}if(201===t){var n=e.data;return ie.fromJS(n)}if(400===t){var s=e.data,o=s;return We("Bad Request",t,s,i,qe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"createAuditLogBackup",value:function(e,t){var i=this,r=this.baseUrl+"/api/MasterAuditLog/CreateAuditLogBackup";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processCreateAuditLogBackup(e)}))}},{key:"processCreateAuditLogBackup",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return We("Bad Request",t,a,i,qe.fromJS(n))}var s=e.data,o=s;return We("Error",t,s,i,Oe.fromJS(o))}}]),e}(),T=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAllEmailMessage",value:function(e,t){var i=this,r=this.baseUrl+"/api/MasterEmail/GetAllEmailMessage";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllEmailMessage(e)}))}},{key:"processGetAllEmailMessage",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return K.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getEmailMessage",value:function(e,t){var i=this,r=this.baseUrl+"/api/MasterEmail/GetEmailMessage/{emailId}";if(void 0===e||null===e)throw new Error("The parameter 'emailId' must be defined.");var a={method:"GET",url:r=(r=r.replace("{emailId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetEmailMessage(e)}))}},{key:"processGetEmailMessage",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return Z.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}}]),e}(),N=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAllMicronUser",value:function(e){var t=this,i=this.baseUrl+"/api/MicronUser/GetAllMicronUser",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processGetAllMicronUser(e)}))}},{key:"processGetAllMicronUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return oe.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getMicronUser",value:function(e,t){var i=this,r=this.baseUrl+"/api/MicronUser/GetMicronUser/{userName}";if(void 0===e||null===e)throw new Error("The parameter 'userName' must be defined.");var a={method:"GET",url:r=(r=r.replace("{userName}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetMicronUser(e)}))}},{key:"processGetMicronUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return se.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"createMicronUser",value:function(e,t){var i=this,r=this.baseUrl+"/api/MicronUser/CreateMicronUser";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processCreateMicronUser(e)}))}},{key:"processCreateMicronUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return se.fromJS(a)}if(201===t){var n=e.data;return se.fromJS(n)}if(400===t){var s=e.data,o=s;return We("Bad Request",t,s,i,qe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"updateMicronUser",value:function(e,t){var i=this,r=this.baseUrl+"/api/MicronUser/UpdateMicronUser";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"PUT",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processUpdateMicronUser(e)}))}},{key:"processUpdateMicronUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return se.fromJS(a)}if(201===t){var n=e.data;return se.fromJS(n)}if(400===t){var s=e.data,o=s;return We("Bad Request",t,s,i,qe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"deleteMicronUser",value:function(e,t){var i=this,r=this.baseUrl+"/api/MicronUser/DeleteMicronUser/{userName}";if(void 0===e||null===e)throw new Error("The parameter 'userName' must be defined.");var a={method:"DELETE",url:r=(r=r.replace("{userName}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processDeleteMicronUser(e)}))}},{key:"processDeleteMicronUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return We("Bad Request",t,a,i,qe.fromJS(n))}if(404===t){var s=e.data,o=s;return We("Not Found",t,s,i,Oe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"resetMicronUserPassword",value:function(e,t){var i=this,r=this.baseUrl+"/api/MicronUser/ResetMicronUserPassword/{userName}/resetpassword";if(void 0===e||null===e)throw new Error("The parameter 'userName' must be defined.");var a={method:"PUT",url:r=(r=r.replace("{userName}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processResetMicronUserPassword(e)}))}},{key:"processResetMicronUserPassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return We("Bad Request",t,a,i,qe.fromJS(n))}if(404===t){var s=e.data,o=s;return We("Not Found",t,s,i,Oe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}}]),e}(),J=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getUserPermissionSets",value:function(e){var t=this,i=this.baseUrl+"/api/PermissionSet/GetUserPermissionSets",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processGetUserPermissionSets(e)}))}},{key:"processGetUserPermissionSets",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(c)}}catch(f){o.e(f)}finally{o.f()}}else a=null;return a}if(404===t){var l=e.data,d=l;return We("Not Found",t,l,i,Oe.fromJS(d))}var u=e.data,h=u;return We("Error",t,u,i,Oe.fromJS(h))}},{key:"getPermissionSetsByRoleType",value:function(e,t){var i=this,r=this.baseUrl+"/api/PermissionSet/GetPermissionSetsByRoleType/type/{roleType}";if(void 0===e||null===e)throw new Error("The parameter 'roleType' must be defined.");var a={method:"GET",url:r=(r=r.replace("{roleType}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetPermissionSetsByRoleType(e)}))}},{key:"processGetPermissionSetsByRoleType",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ve.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"assignPermissionSetToRole",value:function(e,t){var i=this,r=this.baseUrl+"/api/PermissionSet/AssignPermissionSetToRole/role";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processAssignPermissionSetToRole(e)}))}},{key:"processAssignPermissionSetToRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),D=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"validate",value:function(e,t){var i=this,r=this.baseUrl+"/api/Report/Validate?";if(null===e)throw new Error("The parameter 'access_token' cannot be null.");void 0!==e&&(r+="access_token="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processValidate(e)}))}},{key:"processValidate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return me.fromJS(a)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/Get?";if(null===e)throw new Error("The parameter 'userName' cannot be null.");if(void 0!==e&&(a+="userName="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'tenantUniqueName' cannot be null.");void 0!==t&&(a+="tenantUniqueName="+encodeURIComponent(""+t)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return void 0!==a?a:null}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"exportAccessToken",value:function(e,t){var i=this,r=this.baseUrl+"/api/Report/ExportAccessToken?";if(null===e)throw new Error("The parameter 'message' cannot be null.");void 0!==e&&(r+="message="+encodeURIComponent(""+e)+"&");var a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processExportAccessToken(e)}))}},{key:"processExportAccessToken",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return void 0!==a?a:null}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),L=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getRoles",value:function(e,t){var i=this,r=this.baseUrl+"/api/Role/GetRoles";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetRoles(e)}))}},{key:"processGetRoles",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return be.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"createRole",value:function(e,t){var i=this,r=this.baseUrl+"/api/Role/CreateRole";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processCreateRole(e)}))}},{key:"processCreateRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ye.fromJS(a)}if(201===t){var n=e.data;return ye.fromJS(n)}if(400===t){var s=e.data,o=s;return We("Bad Request",t,s,i,qe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"updateRole",value:function(e,t){var i=this,r=this.baseUrl+"/api/Role/UpdateRole";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"PUT",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processUpdateRole(e)}))}},{key:"processUpdateRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ye.fromJS(a)}if(201===t){var n=e.data;return ye.fromJS(n)}if(400===t){var s=e.data,o=s;return We("Bad Request",t,s,i,qe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"assignUserToRole",value:function(e,t){var i=this,r=this.baseUrl+"/api/Role/AssignUserToRole/users";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processAssignUserToRole(e)}))}},{key:"processAssignUserToRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ye.fromJS(a)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"unassignUserFromRole",value:function(e,t){var i=this,r=this.baseUrl+"/api/Role/UnassignUserFromRole/users";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"DELETE",url:r,headers:{"Content-Type":"application/json-patch+json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processUnassignUserFromRole(e)}))}},{key:"processUnassignUserFromRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteRole",value:function(e,t){var i=this,r=this.baseUrl+"/api/Role/DeleteRole";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"DELETE",url:r,headers:{"Content-Type":"application/json-patch+json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processDeleteRole(e)}))}},{key:"processDeleteRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return We("Bad Request",t,a,i,qe.fromJS(n))}if(404===t){var s=e.data,o=s;return We("Not Found",t,s,i,Oe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}}]),e}(),U=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAllTenant",value:function(e){var t=this,i=this.baseUrl+"/api/Tenant/GetAllTenant",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processGetAllTenant(e)}))}},{key:"processGetAllTenant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return De.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getTenant",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/GetTenant/{tenantId}";if(void 0===e||null===e)throw new Error("The parameter 'tenantId' must be defined.");var a={method:"GET",url:r=(r=r.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetTenant(e)}))}},{key:"processGetTenant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ke.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getTenantApp",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/GetTenantApp/app/{tenantAppId}";if(void 0===e||null===e)throw new Error("The parameter 'tenantAppId' must be defined.");var a={method:"GET",url:r=(r=r.replace("{tenantAppId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetTenantApp(e)}))}},{key:"processGetTenantApp",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ke.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getTenantApps",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/GetTenantApps/{tenantId}/apps";if(void 0===e||null===e)throw new Error("The parameter 'tenantId' must be defined.");var a={method:"GET",url:r=(r=r.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetTenantApps(e)}))}},{key:"processGetTenantApps",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return we.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getTenantSetting",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/GetTenantSetting/setting/{url}";if(void 0===e||null===e)throw new Error("The parameter 'url' must be defined.");var a={method:"GET",url:r=(r=r.replace("{url}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetTenantSetting(e)}))}},{key:"processGetTenantSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return Re.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getAllIndustries",value:function(e){var t=this,i=this.baseUrl+"/api/Tenant/GetAllIndustries/industries",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processGetAllIndustries(e)}))}},{key:"processGetAllIndustries",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return je.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"getTenantPasswordPolicy",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/GetTenantPasswordPolicy/policies/password/{tenantId}";if(void 0===e||null===e)throw new Error("The parameter 'tenantId' must be defined.");var a={method:"GET",url:r=(r=r.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetTenantPasswordPolicy(e)}))}},{key:"processGetTenantPasswordPolicy",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return M.fromJS(a)}if(404===t){var n=e.data,s=n;return We("Not Found",t,n,i,Oe.fromJS(s))}var o=e.data,c=o;return We("Error",t,o,i,Oe.fromJS(c))}},{key:"createTenant",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/CreateTenant";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processCreateTenant(e)}))}},{key:"processCreateTenant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ke.fromJS(a)}if(201===t){var n=e.data;return ke.fromJS(n)}if(400===t){var s=e.data,o=s;return We("Bad Request",t,s,i,qe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"toggleTenantApp",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/ToggleTenantApp/app/toggle";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"PUT",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processToggleTenantApp(e)}))}},{key:"processToggleTenantApp",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return Ee.fromJS(a)}if(201===t){var n=e.data;return Ee.fromJS(n)}if(400===t){var s=e.data,o=s;return We("Bad Request",t,s,i,qe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"updateTenant",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/UpdateTenant";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"PUT",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processUpdateTenant(e)}))}},{key:"processUpdateTenant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ke.fromJS(a)}if(201===t){var n=e.data;return ke.fromJS(n)}if(400===t){var s=e.data,o=s;return We("Bad Request",t,s,i,qe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"updateTenantPasswordPolicy",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/UpdateTenantPasswordPolicy/policies/password";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"PUT",url:r,headers:{"Content-Type":"application/json-patch+json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processUpdateTenantPasswordPolicy(e)}))}},{key:"processUpdateTenantPasswordPolicy",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return We("Bad Request",t,a,i,qe.fromJS(n))}var s=e.data,o=s;return We("Error",t,s,i,Oe.fromJS(o))}},{key:"deleteTenant",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/DeleteTenant/{tenantId}";if(void 0===e||null===e)throw new Error("The parameter 'tenantId' must be defined.");var a={method:"DELETE",url:r=(r=r.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processDeleteTenant(e)}))}},{key:"processDeleteTenant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return We("Bad Request",t,a,i,qe.fromJS(n))}if(404===t){var s=e.data,o=s;return We("Not Found",t,s,i,Oe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"runMigrationForAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/RunMigrationForAll/migration";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processRunMigrationForAll(e)}))}},{key:"processRunMigrationForAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return Ue.fromJS(a)}if(204===t)return We("Success",t,e.data,i);if(400===t){var n=e.data,s=n;return We("Bad Request",t,n,i,qe.fromJS(s))}if(404===t){var o=e.data,c=o;return We("Not Found",t,o,i,Oe.fromJS(c))}var l=e.data,d=l;return We("Error",t,l,i,Oe.fromJS(d))}},{key:"runMigration",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/RunMigration/migration/{tenantId}";if(void 0===e||null===e)throw new Error("The parameter 'tenantId' must be defined.");var a={method:"POST",url:r=(r=r.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processRunMigration(e)}))}},{key:"processRunMigration",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return We("Bad Request",t,a,i,qe.fromJS(n))}if(404===t){var s=e.data,o=s;return We("Not Found",t,s,i,Oe.fromJS(o))}var c=e.data,l=c;return We("Error",t,c,i,Oe.fromJS(l))}},{key:"recalcTenant",value:function(e,t){var i=this,r=this.baseUrl+"/api/Tenant/RecalcTenant";r=r.replace(/[?&]$/,"");var a={data:JSON.stringify(e),method:"POST",url:r,headers:{"Content-Type":"application/json-patch+json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return i.processRecalcTenant(e)}))}},{key:"processRecalcTenant",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"notImplemented4",value:function(e){var t=this,i=this.baseUrl+"/api/Tenant/NotImplemented/notImplemented",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processNotImplemented4(e)}))}},{key:"processNotImplemented4",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?We("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),R=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e){var t=this,i=this.baseUrl+"/api/TenantGroup/GetAll",r={method:"GET",url:i=i.replace(/[?&]$/,""),headers:{Accept:"application/json"},cancelToken:e};return this.instance.request(r).catch((function(e){if(ze(e)&&e.response)return e.response;throw e})).then((function(e){return t.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Ne.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return a}if(404===t){var l=e.data,d=l;return We("Not Found",t,l,i,Oe.fromJS(d))}var u=e.data,h=u;return We("Error",t,u,i,Oe.fromJS(h))}}]),e}(),x=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.name=e.name,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).name=this.name,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),F=function(){function e(t){if(Object(O.a)(this,e),this.identityPoolId=void 0,this.identityPoolName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.identityPoolId=e.identityPoolId,this.identityPoolName=e.identityPoolName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).identityPoolId=this.identityPoolId,e.identityPoolName=this.identityPoolName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),M=function(){function e(t){if(Object(O.a)(this,e),this.minimumLength=void 0,this.requireLowercase=void 0,this.requireNumbers=void 0,this.requireSymbols=void 0,this.requireUppercase=void 0,this.accessTokenValidity=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.minimumLength=e.minimumLength,this.requireLowercase=e.requireLowercase,this.requireNumbers=e.requireNumbers,this.requireSymbols=e.requireSymbols,this.requireUppercase=e.requireUppercase,this.accessTokenValidity=e.accessTokenValidity)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).minimumLength=this.minimumLength,e.requireLowercase=this.requireLowercase,e.requireNumbers=this.requireNumbers,e.requireSymbols=this.requireSymbols,e.requireUppercase=this.requireUppercase,e.accessTokenValidity=this.accessTokenValidity,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),G=function(){function e(t){if(Object(O.a)(this,e),this.appId=void 0,this.name=void 0,this.description=void 0,this.code=void 0,this.apiCode=void 0,this.logo=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.appId=e.appId,this.name=e.name,this.description=e.description,this.code=e.code,this.apiCode=e.apiCode,this.logo=e.logo)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).appId=this.appId,e.name=this.name,e.description=this.description,e.code=this.code,e.apiCode=this.apiCode,e.logo=this.logo,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),B=function(){function e(t){if(Object(O.a)(this,e),this.appId=void 0,this.name=void 0,this.description=void 0,this.code=void 0,this.apiCode=void 0,this.logo=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.appId=e.appId,this.name=e.name,this.description=e.description,this.code=e.code,this.apiCode=e.apiCode,this.logo=e.logo)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).appId=this.appId,e.name=this.name,e.description=this.description,e.code=this.code,e.apiCode=this.apiCode,e.logo=this.logo,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),q=function(){function e(t){if(Object(O.a)(this,e),this.apps=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.apps)){this.apps=[];var t,i=Object(I.a)(e.apps);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.apps.push(B.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.apps)){e.apps=[];var t,i=Object(I.a)(this.apps);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.apps.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),V=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.permissionSetIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.roleId=e.roleId,Array.isArray(e.permissionSetIds))){this.permissionSetIds=[];var t,i=Object(I.a)(e.permissionSetIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.permissionSetIds.push(r)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,Array.isArray(this.permissionSetIds)){e.permissionSetIds=[];var t,i=Object(I.a)(this.permissionSetIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.permissionSetIds.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),W=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.userNames=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.roleId=e.roleId,Array.isArray(e.userNames))){this.userNames=[];var t,i=Object(I.a)(e.userNames);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userNames.push(r)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,Array.isArray(this.userNames)){e.userNames=[];var t,i=Object(I.a)(this.userNames);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userNames.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),z=function(){function e(t){if(Object(O.a)(this,e),this.auditId=void 0,this.tableName=void 0,this.dateTime=void 0,this.keyValues=void 0,this.oldValues=void 0,this.newValues=void 0,this.micronUserId=void 0,this.micronUserName=void 0,this.page=void 0,this.endpoint=void 0,this.mode=void 0,this.batchId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.auditId=e.auditId,this.tableName=e.tableName,this.dateTime=e.dateTime?new Date(e.dateTime.toString()):void 0,this.keyValues=e.keyValues,this.oldValues=e.oldValues,this.newValues=e.newValues,this.micronUserId=e.micronUserId,this.micronUserName=e.micronUserName,this.page=e.page,this.endpoint=e.endpoint,this.mode=e.mode,this.batchId=e.batchId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).auditId=this.auditId,e.tableName=this.tableName,e.dateTime=this.dateTime?this.dateTime.toISOString():void 0,e.keyValues=this.keyValues,e.oldValues=this.oldValues,e.newValues=this.newValues,e.micronUserId=this.micronUserId,e.micronUserName=this.micronUserName,e.page=this.page,e.endpoint=this.endpoint,e.mode=this.mode,e.batchId=this.batchId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),H=function(){function e(t){if(Object(O.a)(this,e),this.auditLogs=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.auditLogs)){this.auditLogs=[];var t,i=Object(I.a)(e.auditLogs);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.auditLogs.push(z.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.auditLogs)){e.auditLogs=[];var t,i=Object(I.a)(this.auditLogs);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.auditLogs.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$=function(){function e(t){if(Object(O.a)(this,e),this.userName=void 0,this.email=void 0,this.phoneNumber=void 0,this.enabled=void 0,this.enableMFASMS=void 0,this.userRoles=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.userName=e.userName,this.email=e.email,this.phoneNumber=e.phoneNumber,this.enabled=e.enabled,this.enableMFASMS=e.enableMFASMS,Array.isArray(e.userRoles))){this.userRoles=[];var t,i=Object(I.a)(e.userRoles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRoles.push(ce.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userName=this.userName,e.email=this.email,e.phoneNumber=this.phoneNumber,e.enabled=this.enabled,e.enableMFASMS=this.enableMFASMS,Array.isArray(this.userRoles)){e.userRoles=[];var t,i=Object(I.a)(this.userRoles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRoles.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.description=void 0,this.isActive=void 0,this.type=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.type=e.type)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).name=this.name,e.description=this.description,e.isActive=this.isActive,e.type=this.type,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Y=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.description=void 0,this.hostName=void 0,this.isActive=void 0,this.enableCaseSensitiveUsername=void 0,this.tenantApp=void 0,this.tenantStatus=void 0,this.industryId=void 0,this.industry=void 0,this.tenantGroupId=void 0,this.renewalDate=void 0,this.identityPoolId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.name=e.name,this.description=e.description,this.hostName=e.hostName,this.isActive=e.isActive,this.enableCaseSensitiveUsername=e.enableCaseSensitiveUsername,Array.isArray(e.tenantApp)){this.tenantApp=[];var t,i=Object(I.a)(e.tenantApp);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenantApp.push(Ee.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.tenantStatus=e.tenantStatus,this.industryId=e.industryId,this.industry=e.industry?re.fromJS(e.industry):void 0,this.tenantGroupId=e.tenantGroupId,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.identityPoolId=e.identityPoolId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).name=this.name,e.description=this.description,e.hostName=this.hostName,e.isActive=this.isActive,e.enableCaseSensitiveUsername=this.enableCaseSensitiveUsername,Array.isArray(this.tenantApp)){e.tenantApp=[];var t,i=Object(I.a)(this.tenantApp);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenantApp.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.tenantStatus=this.tenantStatus,e.industryId=this.industryId,e.industry=this.industry?this.industry.toJSON():void 0,e.tenantGroupId=this.tenantGroupId,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.identityPoolId=this.identityPoolId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Q=function(){function e(t){if(Object(O.a)(this,e),this.roleIdList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.roleIdList)){this.roleIdList=[];var t,i=Object(I.a)(e.roleIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roleIdList.push(r)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.roleIdList)){e.roleIdList=[];var t,i=Object(I.a)(this.roleIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roleIdList.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),K=function(){function e(t){if(Object(O.a)(this,e),this.emailMessages=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.emailMessages)){this.emailMessages=[];var t,i=Object(I.a)(e.emailMessages);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emailMessages.push(Z.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.emailMessages)){e.emailMessages=[];var t,i=Object(I.a)(this.emailMessages);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emailMessages.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Z=function(){function e(t){if(Object(O.a)(this,e),this.emailId=void 0,this.toEmail=void 0,this.fromEmail=void 0,this.fromName=void 0,this.ccEmail=void 0,this.subject=void 0,this.createdDate=void 0,this.statusId=void 0,this.status=void 0,this.sentDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.emailId=e.emailId,this.toEmail=e.toEmail,this.fromEmail=e.fromEmail,this.fromName=e.fromName,this.ccEmail=e.ccEmail,this.subject=e.subject,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.statusId=e.statusId,this.status=e.status,this.sentDate=e.sentDate?new Date(e.sentDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailId=this.emailId,e.toEmail=this.toEmail,e.fromEmail=this.fromEmail,e.fromName=this.fromName,e.ccEmail=this.ccEmail,e.subject=this.subject,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.statusId=this.statusId,e.status=this.status,e.sentDate=this.sentDate?this.sentDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),X=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ee=function(){function e(t){if(Object(O.a)(this,e),t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){}},{key:"toJSON",value:function(e){return e="object"===typeof e?e:{}}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),te=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ie=function(){function e(t){if(Object(O.a)(this,e),t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){}},{key:"toJSON",value:function(e){return e="object"===typeof e?e:{}}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),re=function(){function e(t){if(Object(O.a)(this,e),this.industryId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.tenant=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.industryId=e.industryId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,Array.isArray(e.tenant))){this.tenant=[];var t,i=Object(I.a)(e.tenant);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenant.push(Ce.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).industryId=this.industryId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,Array.isArray(this.tenant)){e.tenant=[];var t,i=Object(I.a)(this.tenant);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenant.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ae=function(){function e(t){if(Object(O.a)(this,e),this.industryId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.industryId=e.industryId,this.name=e.name,this.description=e.description,this.isActive=e.isActive)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).industryId=this.industryId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ne=function(){function e(t){if(Object(O.a)(this,e),this.industries=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.industries)){this.industries=[];var t,i=Object(I.a)(e.industries);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.industries.push(ae.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.industries)){e.industries=[];var t,i=Object(I.a)(this.industries);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.industries.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),se=function(){function e(t){if(Object(O.a)(this,e),this.userName=void 0,this.userStatus=void 0,this.attributes=void 0,this.userRoles=void 0,this.userMFASettingList=void 0,this.preferredMfaSetting=void 0,this.enabled=void 0,this.userCreateDate=void 0,this.userLastModifiedDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userName=e.userName,this.userStatus=e.userStatus,Array.isArray(e.attributes)){this.attributes=[];var t,i=Object(I.a)(e.attributes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.attributes.push(x.fromJS(r))}}catch(d){i.e(d)}finally{i.f()}}if(Array.isArray(e.userRoles)){this.userRoles=[];var a,n=Object(I.a)(e.userRoles);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.userRoles.push(ce.fromJS(s))}}catch(d){n.e(d)}finally{n.f()}}if(Array.isArray(e.userMFASettingList)){this.userMFASettingList=[];var o,c=Object(I.a)(e.userMFASettingList);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userMFASettingList.push(l)}}catch(d){c.e(d)}finally{c.f()}}this.preferredMfaSetting=e.preferredMfaSetting,this.enabled=e.enabled,this.userCreateDate=e.userCreateDate?new Date(e.userCreateDate.toString()):void 0,this.userLastModifiedDate=e.userLastModifiedDate?new Date(e.userLastModifiedDate.toString()):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userName=this.userName,e.userStatus=this.userStatus,Array.isArray(this.attributes)){e.attributes=[];var t,i=Object(I.a)(this.attributes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.attributes.push(r.toJSON())}}catch(d){i.e(d)}finally{i.f()}}if(Array.isArray(this.userRoles)){e.userRoles=[];var a,n=Object(I.a)(this.userRoles);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.userRoles.push(s.toJSON())}}catch(d){n.e(d)}finally{n.f()}}if(Array.isArray(this.userMFASettingList)){e.userMFASettingList=[];var o,c=Object(I.a)(this.userMFASettingList);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userMFASettingList.push(l)}}catch(d){c.e(d)}finally{c.f()}}return e.preferredMfaSetting=this.preferredMfaSetting,e.enabled=this.enabled,e.userCreateDate=this.userCreateDate?this.userCreateDate.toISOString():void 0,e.userLastModifiedDate=this.userLastModifiedDate?this.userLastModifiedDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),oe=function(){function e(t){if(Object(O.a)(this,e),this.micronUsers=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.micronUsers)){this.micronUsers=[];var t,i=Object(I.a)(e.micronUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.micronUsers.push(se.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.micronUsers)){e.micronUsers=[];var t,i=Object(I.a)(this.micronUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.micronUsers.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ce=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,this.userName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.name=e.name,this.userName=e.userName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.userName=this.userName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Dashboards=1]="Dashboards",e[e.Tenants=2]="Tenants",e[e.Users=3]="Users",e[e.ConfigurationsSettings=4]="ConfigurationsSettings",e[e.ConfigurationsPreferenceThemes=5]="ConfigurationsPreferenceThemes",e[e.ConfigurationsPreferenceNotifications=6]="ConfigurationsPreferenceNotifications",e[e.ConfigurationsDataManagementIndustry=7]="ConfigurationsDataManagementIndustry",e[e.ConfigurationsDataManagementProducts=8]="ConfigurationsDataManagementProducts",e[e.ConfigurationsSecurityUsers=9]="ConfigurationsSecurityUsers",e[e.ConfigurationsSecurityRolesPermissions=10]="ConfigurationsSecurityRolesPermissions",e[e.ConfigurationsSecurityGroups=11]="ConfigurationsSecurityGroups",e[e.ConfigurationsLogsAudit=12]="ConfigurationsLogsAudit",e[e.ConfigurationsLogsEmail=13]="ConfigurationsLogsEmail"}(r||(r={}));var le,de=function(){function e(t){if(Object(O.a)(this,e),this.targetPermissionSetId=void 0,this.targetValue=void 0,this.sourceValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.targetPermissionSetId=e.targetPermissionSetId,this.targetValue=e.targetValue,this.sourceValue=e.sourceValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).targetPermissionSetId=this.targetPermissionSetId,e.targetValue=this.targetValue,e.sourceValue=this.sourceValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ue=function(){function e(t){if(Object(O.a)(this,e),this.permissionSetId=void 0,this.name=void 0,this.description=void 0,this.category=void 0,this.dependencies=void 0,this.active=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.permissionSetId=e.permissionSetId,this.name=e.name,this.description=e.description,this.category=e.category,Array.isArray(e.dependencies)){this.dependencies=[];var t,i=Object(I.a)(e.dependencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.dependencies.push(de.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.active=e.active}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).permissionSetId=this.permissionSetId,e.name=this.name,e.description=this.description,e.category=this.category,Array.isArray(this.dependencies)){e.dependencies=[];var t,i=Object(I.a)(this.dependencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.dependencies.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.active=this.active,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.NotSet=0]="NotSet",e[e.ViewTenants=1]="ViewTenants",e[e.CreateTenant=2]="CreateTenant",e[e.ManageTenants=3]="ManageTenants",e[e.DeleteTenants=4]="DeleteTenants",e[e.SyncTenants=5]="SyncTenants",e[e.ManageTenantApp=6]="ManageTenantApp",e[e.ViewTenantSettings=7]="ViewTenantSettings",e[e.ManageTenantSettings=8]="ManageTenantSettings",e[e.ViewUsers=9]="ViewUsers",e[e.CreateUser=10]="CreateUser",e[e.ManageUsers=11]="ManageUsers",e[e.ManageUserRoles=12]="ManageUserRoles",e[e.DeleteUsers=13]="DeleteUsers",e[e.ViewSecurityUsers=20]="ViewSecurityUsers",e[e.ManageSecurityUsers=21]="ManageSecurityUsers",e[e.ViewSecurityGroups=30]="ViewSecurityGroups",e[e.ManageSecurityGroups=31]="ManageSecurityGroups",e[e.DeleteSecurityGroups=32]="DeleteSecurityGroups",e[e.ViewRoles=40]="ViewRoles",e[e.ManageRoles=41]="ManageRoles",e[e.DeleteRoles=42]="DeleteRoles"}(le||(le={}));var he,fe,ve=function(){function e(t){if(Object(O.a)(this,e),this.permissionSets=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.permissionSets)){this.permissionSets=[];var t,i=Object(I.a)(e.permissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.permissionSets.push(ue.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.permissionSets)){e.permissionSets=[];var t,i=Object(I.a)(this.permissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.permissionSets.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pe=function(){function e(t){if(Object(O.a)(this,e),this.tenants=void 0,this.licenseIds=void 0,this.tenantGroupIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.licenseIds=[])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.tenants)){this.tenants=[];var t,i=Object(I.a)(e.tenants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenants.push(r)}}catch(d){i.e(d)}finally{i.f()}}if(Array.isArray(e.licenseIds)){this.licenseIds=[];var a,n=Object(I.a)(e.licenseIds);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.licenseIds.push(s)}}catch(d){n.e(d)}finally{n.f()}}if(Array.isArray(e.tenantGroupIds)){this.tenantGroupIds=[];var o,c=Object(I.a)(e.tenantGroupIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.tenantGroupIds.push(l)}}catch(d){c.e(d)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.tenants)){e.tenants=[];var t,i=Object(I.a)(this.tenants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenants.push(r)}}catch(d){i.e(d)}finally{i.f()}}if(Array.isArray(this.licenseIds)){e.licenseIds=[];var a,n=Object(I.a)(this.licenseIds);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.licenseIds.push(s)}}catch(d){n.e(d)}finally{n.f()}}if(Array.isArray(this.tenantGroupIds)){e.tenantGroupIds=[];var o,c=Object(I.a)(this.tenantGroupIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.tenantGroupIds.push(l)}}catch(d){c.e(d)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),me=function(){function e(t){if(Object(O.a)(this,e),this.userName=void 0,this.tenantUniqueName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userName=e.userName,this.tenantUniqueName=e.tenantUniqueName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userName=this.userName,e.tenantUniqueName=this.tenantUniqueName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ye=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.type=void 0,this.lastModifiedDate=void 0,this.createdDate=void 0,this.roleUsers=void 0,this.rolePermissionSets=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.roleId=e.roleId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.type=e.type,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,Array.isArray(e.roleUsers)){this.roleUsers=[];var t,i=Object(I.a)(e.roleUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roleUsers.push(Ie.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.rolePermissionSets)){this.rolePermissionSets=[];var a,n=Object(I.a)(e.rolePermissionSets);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.rolePermissionSets.push(Se.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.type=this.type,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,Array.isArray(this.roleUsers)){e.roleUsers=[];var t,i=Object(I.a)(this.roleUsers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roleUsers.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.rolePermissionSets)){e.rolePermissionSets=[];var a,n=Object(I.a)(this.rolePermissionSets);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.rolePermissionSets.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),be=function(){function e(t){if(Object(O.a)(this,e),this.roles=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.roles)){this.roles=[];var t,i=Object(I.a)(e.roles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roles.push(ye.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.roles)){e.roles=[];var t,i=Object(I.a)(this.roles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roles.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Se=function(){function e(t){if(Object(O.a)(this,e),this.permissionSetId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.permissionSetId=e.permissionSetId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).permissionSetId=this.permissionSetId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();(fe=he||(he={}))[fe.Admin=0]="Admin",fe[fe.Support=1]="Support";var ge,Ie=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.userName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.userName=e.userName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.userName=this.userName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oe=function(){function e(t){if(Object(O.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ae=function(){function e(t){if(Object(O.a)(this,e),this.id=void 0,this.name=void 0,this.value=void 0,this.color=void 0,this.children=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(t){if(t&&(this.id=t.id,this.name=t.name,this.value=t.value,this.color=t.color,Array.isArray(t.children))){this.children=[];var i,r=Object(I.a)(t.children);try{for(r.s();!(i=r.n()).done;){var a=i.value;this.children.push(e.fromJS(a))}}catch(n){r.e(n)}finally{r.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).id=this.id,e.name=this.name,e.value=this.value,e.color=this.color,Array.isArray(this.children)){e.children=[];var t,i=Object(I.a)(this.children);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.children.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),je=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.value=void 0,this.color=void 0,this.children=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.name=e.name,this.value=e.value,this.color=e.color,Array.isArray(e.children))){this.children=[];var t,i=Object(I.a)(e.children);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.children.push(Ae.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).name=this.name,e.value=this.value,e.color=this.color,Array.isArray(this.children)){e.children=[];var t,i=Object(I.a)(this.children);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.children.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ce=function(){function e(t){if(Object(O.a)(this,e),this.createdBy=void 0,this.createdDate=void 0,this.lastModifiedBy=void 0,this.lastModifiedDate=void 0,this.tenantId=void 0,this.name=void 0,this.description=void 0,this.hostName=void 0,this.dbName=void 0,this.userPoolId=void 0,this.reportTenantId=void 0,this.tenantApp=void 0,this.tenantStatus=void 0,this.industryId=void 0,this.industry=void 0,this.tenantGroupId=void 0,this.tenantGroup=void 0,this.renewalDate=void 0,this.identityPoolId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.createdBy=e.createdBy,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedBy=e.lastModifiedBy,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.tenantId=e.tenantId,this.name=e.name,this.description=e.description,this.hostName=e.hostName,this.dbName=e.dbName,this.userPoolId=e.userPoolId,this.reportTenantId=e.reportTenantId,Array.isArray(e.tenantApp)){this.tenantApp=[];var t,i=Object(I.a)(e.tenantApp);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenantApp.push(Pe.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.tenantStatus=e.tenantStatus,this.industryId=e.industryId,this.industry=e.industry?re.fromJS(e.industry):void 0,this.tenantGroupId=e.tenantGroupId,this.tenantGroup=e.tenantGroup?Te.fromJS(e.tenantGroup):void 0,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.identityPoolId=e.identityPoolId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).createdBy=this.createdBy,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedBy=this.lastModifiedBy,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.tenantId=this.tenantId,e.name=this.name,e.description=this.description,e.hostName=this.hostName,e.dbName=this.dbName,e.userPoolId=this.userPoolId,e.reportTenantId=this.reportTenantId,Array.isArray(this.tenantApp)){e.tenantApp=[];var t,i=Object(I.a)(this.tenantApp);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenantApp.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.tenantStatus=this.tenantStatus,e.industryId=this.industryId,e.industry=this.industry?this.industry.toJSON():void 0,e.tenantGroupId=this.tenantGroupId,e.tenantGroup=this.tenantGroup?this.tenantGroup.toJSON():void 0,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.identityPoolId=this.identityPoolId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pe=function(){function e(t){if(Object(O.a)(this,e),this.createdBy=void 0,this.createdDate=void 0,this.lastModifiedBy=void 0,this.lastModifiedDate=void 0,this.tenantAppId=void 0,this.appId=void 0,this.app=void 0,this.tenantId=void 0,this.tenant=void 0,this.adminClientId=void 0,this.adminUrl=void 0,this.portalClientId=void 0,this.portalUrl=void 0,this.identityPoolId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.createdBy=e.createdBy,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedBy=e.lastModifiedBy,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.tenantAppId=e.tenantAppId,this.appId=e.appId,this.app=e.app?G.fromJS(e.app):void 0,this.tenantId=e.tenantId,this.tenant=e.tenant?Ce.fromJS(e.tenant):void 0,this.adminClientId=e.adminClientId,this.adminUrl=e.adminUrl,this.portalClientId=e.portalClientId,this.portalUrl=e.portalUrl,this.identityPoolId=e.identityPoolId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).createdBy=this.createdBy,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedBy=this.lastModifiedBy,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.tenantAppId=this.tenantAppId,e.appId=this.appId,e.app=this.app?this.app.toJSON():void 0,e.tenantId=this.tenantId,e.tenant=this.tenant?this.tenant.toJSON():void 0,e.adminClientId=this.adminClientId,e.adminUrl=this.adminUrl,e.portalClientId=this.portalClientId,e.portalUrl=this.portalUrl,e.identityPoolId=this.identityPoolId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ee=function(){function e(t){if(Object(O.a)(this,e),this.tenantAppId=void 0,this.appId=void 0,this.app=void 0,this.isActive=void 0,this.adminClientId=void 0,this.adminUrl=void 0,this.portalClientId=void 0,this.portalUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.tenantAppId=e.tenantAppId,this.appId=e.appId,this.app=e.app?B.fromJS(e.app):void 0,this.isActive=e.isActive,this.adminClientId=e.adminClientId,this.adminUrl=e.adminUrl,this.portalClientId=e.portalClientId,this.portalUrl=e.portalUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tenantAppId=this.tenantAppId,e.appId=this.appId,e.app=this.app?this.app.toJSON():void 0,e.isActive=this.isActive,e.adminClientId=this.adminClientId,e.adminUrl=this.adminUrl,e.portalClientId=this.portalClientId,e.portalUrl=this.portalUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),we=function(){function e(t){if(Object(O.a)(this,e),this.tenantApps=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.tenantApps)){this.tenantApps=[];var t,i=Object(I.a)(e.tenantApps);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenantApps.push(Ee.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.tenantApps)){e.tenantApps=[];var t,i=Object(I.a)(this.tenantApps);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenantApps.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ke=function(){function e(t){if(Object(O.a)(this,e),this.tenantId=void 0,this.name=void 0,this.description=void 0,this.hostName=void 0,this.tenantApp=void 0,this.tenantStatus=void 0,this.enableCaseSensitiveUsername=void 0,this.industryId=void 0,this.industry=void 0,this.tenantGroupId=void 0,this.tenantGroup=void 0,this.renewalDate=void 0,this.identityPoolId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.tenantId=e.tenantId,this.name=e.name,this.description=e.description,this.hostName=e.hostName,Array.isArray(e.tenantApp)){this.tenantApp=[];var t,i=Object(I.a)(e.tenantApp);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenantApp.push(Ee.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.tenantStatus=e.tenantStatus,this.enableCaseSensitiveUsername=e.enableCaseSensitiveUsername,this.industryId=e.industryId,this.industry=e.industry?ae.fromJS(e.industry):void 0,this.tenantGroupId=e.tenantGroupId,this.tenantGroup=e.tenantGroup?Ne.fromJS(e.tenantGroup):void 0,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.identityPoolId=e.identityPoolId}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).tenantId=this.tenantId,e.name=this.name,e.description=this.description,e.hostName=this.hostName,Array.isArray(this.tenantApp)){e.tenantApp=[];var t,i=Object(I.a)(this.tenantApp);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenantApp.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.tenantStatus=this.tenantStatus,e.enableCaseSensitiveUsername=this.enableCaseSensitiveUsername,e.industryId=this.industryId,e.industry=this.industry?this.industry.toJSON():void 0,e.tenantGroupId=this.tenantGroupId,e.tenantGroup=this.tenantGroup?this.tenantGroup.toJSON():void 0,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.identityPoolId=this.identityPoolId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Te=function(){function e(t){if(Object(O.a)(this,e),this.tenantGroupId=void 0,this.name=void 0,this.tenants=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.tenantGroupId=e.tenantGroupId,this.name=e.name,Array.isArray(e.tenants))){this.tenants=[];var t,i=Object(I.a)(e.tenants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenants.push(Ce.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).tenantGroupId=this.tenantGroupId,e.name=this.name,Array.isArray(this.tenants)){e.tenants=[];var t,i=Object(I.a)(this.tenants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenants.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ne=function(){function e(t){if(Object(O.a)(this,e),this.tenantGroupId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.tenantGroupId=e.tenantGroupId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tenantGroupId=this.tenantGroupId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Demos=1]="Demos",e[e.Training=2]="Training",e[e.Clients=3]="Clients",e[e.FormerClients=4]="FormerClients"}(ge||(ge={}));var Je,De=function(){function e(t){if(Object(O.a)(this,e),this.tenants=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.tenants)){this.tenants=[];var t,i=Object(I.a)(e.tenants);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenants.push(ke.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.tenants)){e.tenants=[];var t,i=Object(I.a)(this.tenants);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenants.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Le=function(){function e(t){if(Object(O.a)(this,e),this.tenantId=void 0,this.name=void 0,this.isSuccessful=void 0,this.errorDetails=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.tenantId=e.tenantId,this.name=e.name,this.isSuccessful=e.isSuccessful,this.errorDetails=e.errorDetails)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tenantId=this.tenantId,e.name=this.name,e.isSuccessful=this.isSuccessful,e.errorDetails=this.errorDetails,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ue=function(){function e(t){if(Object(O.a)(this,e),this.recordCount=void 0,this.tenantMigrationStatuses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.recordCount=e.recordCount,Array.isArray(e.tenantMigrationStatuses))){this.tenantMigrationStatuses=[];var t,i=Object(I.a)(e.tenantMigrationStatuses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenantMigrationStatuses.push(Le.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).recordCount=this.recordCount,Array.isArray(this.tenantMigrationStatuses)){e.tenantMigrationStatuses=[];var t,i=Object(I.a)(this.tenantMigrationStatuses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenantMigrationStatuses.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Re=function(){function e(t){if(Object(O.a)(this,e),this.region=void 0,this.clientId=void 0,this.poolId=void 0,this.url=void 0,this.identityPoolId=void 0,this.externalProviders=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.region=e.region,this.clientId=e.clientId,this.poolId=e.poolId,this.url=e.url,this.identityPoolId=e.identityPoolId,Array.isArray(e.externalProviders))){this.externalProviders=[];var t,i=Object(I.a)(e.externalProviders);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.externalProviders.push(r)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).region=this.region,e.clientId=this.clientId,e.poolId=this.poolId,e.url=this.url,e.identityPoolId=this.identityPoolId,Array.isArray(this.externalProviders)){e.externalProviders=[];var t,i=Object(I.a)(this.externalProviders);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.externalProviders.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(Je||(Je={}));var xe=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.userNames=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.roleId=e.roleId,Array.isArray(e.userNames))){this.userNames=[];var t,i=Object(I.a)(e.userNames);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userNames.push(r)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,Array.isArray(this.userNames)){e.userNames=[];var t,i=Object(I.a)(this.userNames);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userNames.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fe=function(){function e(t){if(Object(O.a)(this,e),this.userName=void 0,this.email=void 0,this.phoneNumber=void 0,this.userRoles=void 0,this.enabled=void 0,this.enableMFASMS=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userName=e.userName,this.email=e.email,this.phoneNumber=e.phoneNumber,Array.isArray(e.userRoles)){this.userRoles=[];var t,i=Object(I.a)(e.userRoles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRoles.push(ce.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.enabled=e.enabled,this.enableMFASMS=e.enableMFASMS}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userName=this.userName,e.email=this.email,e.phoneNumber=this.phoneNumber,Array.isArray(this.userRoles)){e.userRoles=[];var t,i=Object(I.a)(this.userRoles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRoles.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.enabled=this.enabled,e.enableMFASMS=this.enableMFASMS,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Me=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.type=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.type=e.type)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.type=this.type,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ge=function(){function e(t){if(Object(O.a)(this,e),this.tenantId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.tenantApp=void 0,this.tenantStatus=void 0,this.industryId=void 0,this.tenantGroupId=void 0,this.renewalDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.tenantId=e.tenantId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,Array.isArray(e.tenantApp)){this.tenantApp=[];var t,i=Object(I.a)(e.tenantApp);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tenantApp.push(Ee.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.tenantStatus=e.tenantStatus,this.industryId=e.industryId,this.tenantGroupId=e.tenantGroupId,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).tenantId=this.tenantId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,Array.isArray(this.tenantApp)){e.tenantApp=[];var t,i=Object(I.a)(this.tenantApp);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tenantApp.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.tenantStatus=this.tenantStatus,e.industryId=this.industryId,e.tenantGroupId=this.tenantGroupId,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Be=function(){function e(t){if(Object(O.a)(this,e),this.tenantId=void 0,this.minimumLength=void 0,this.requireLowercase=void 0,this.requireNumbers=void 0,this.requireSymbols=void 0,this.requireUppercase=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.tenantId=e.tenantId,this.minimumLength=e.minimumLength,this.requireLowercase=e.requireLowercase,this.requireNumbers=e.requireNumbers,this.requireSymbols=e.requireSymbols,this.requireUppercase=e.requireUppercase)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tenantId=this.tenantId,e.minimumLength=this.minimumLength,e.requireLowercase=this.requireLowercase,e.requireNumbers=this.requireNumbers,e.requireSymbols=this.requireSymbols,e.requireUppercase=this.requireUppercase,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qe=function(){function e(t){if(Object(O.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,this.errors=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance,e.errors))for(var t in this.errors={},e.errors)e.errors.hasOwnProperty(t)&&(this.errors[t]=void 0!==e.errors[t]?e.errors[t]:[])}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,this.errors)for(var t in e.errors={},this.errors)this.errors.hasOwnProperty(t)&&(e.errors[t]=this.errors[t]);return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ve=function(e){Object(b.a)(i,e);var t=Object(S.a)(i);function i(e,r,a,n,s){var o;return Object(O.a)(this,i),(o=t.call(this)).message=void 0,o.status=void 0,o.response=void 0,o.headers=void 0,o.result=void 0,o.isApiException=!0,o.message=e,o.status=r,o.response=a,o.headers=n,o.result=s,o}return Object(A.a)(i,null,[{key:"isApiException",value:function(e){return!0===e.isApiException}}]),i}(Object(g.a)(Error));function We(e,t,i,r,a){throw null!==a&&void 0!==a?a:new Ve(e,t,i,r,null)}function ze(e){return e&&!0===e.isAxiosError}var He=function(e){var t=Object(a.useState)(!1),i=Object(y.a)(t,2),r=i[0],n=i[1],s=Object(c.c)((function(e){return e.permissionSets})),o=s.userPermissionSets,l=s.loading;return Object(a.useEffect)((function(){(!l&&o&&o.includes(e)||e===le.NotSet)&&n(!0)}),[l,e,n,o]),r},$e=function(e){var t=e.size;return n.a.createElement(u.Column,{crossAxisAlignment:"lg"===t?"center":"left"},"lg"===t&&n.a.createElement(u.Expanded,null,n.a.createElement(u.SystemIcon,{icon:"Error",size:"xl"})),n.a.createElement(u.Expanded,null,n.a.createElement(u.Typography,{variant:"lg"===t?"h5":"body1"},"Sorry, you don't have access to this information.")),n.a.createElement(u.Expanded,null,n.a.createElement(u.Typography,{variant:"lg"===t?"h6":"body2"},"Please contact the system administrator.")))};$e.defaultProps={size:"lg"};var _e=$e,Ye=function(e){var t=e.children,i=e.displayUnauthorized,r=e.permissionSet,a=e.componentSize,s=Object(c.c)((function(e){return e.permissionSets.loading})),o=He(r);return s?n.a.createElement(u.Skeleton,{height:"100%",width:"100%",variant:"rect"}):o?n.a.createElement(n.a.Fragment,null,t):i?n.a.createElement(_e,{size:a}):null},Qe=Object(m.makeStyles)((function(e){return{root:{padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between"},details:{display:"flex",alignItems:"center",flexWrap:"wrap"},label:{marginLeft:e.spacing(1)},avatar:{height:60,width:60},skeleton:{width:80,height:56}}})),Ke=function(e){var t=Qe(),i=e.title,r=e.value,a=e.difference,s=e.icon,o=e.loading;return n.a.createElement(u.Card,{className:Object(p.default)(t.root)},n.a.createElement(u.Row,{crossAxisAlignment:"middle"},n.a.createElement(u.Expanded,{mr:1},n.a.createElement("div",null,n.a.createElement(u.Typography,{component:"h3",gutterBottom:!0,variant:"overline"},i),n.a.createElement("div",{className:Object(p.default)(Object(v.a)({},t.skeleton,o))},n.a.createElement(Ye,{permissionSet:function(){switch(i){case"Tenants":return le.ViewTenants;case"Users":return le.ViewUsers;default:return le.NotSet}}(),displayUnauthorized:!0,componentSize:"sm"},o?n.a.createElement(u.Skeleton,{variant:"rect",width:"100%",height:"100%"}):n.a.createElement("div",{className:t.details},n.a.createElement(u.Typography,{variant:"h3"},r),a&&n.a.createElement(u.Button,{className:t.label,color:"secondary",variant:"outlined",size:"small"},a)))))),n.a.createElement(u.Expanded,null,n.a.createElement(u.Avatar,{className:t.avatar},s))))},Ze=i(1101),Xe=Object(m.makeStyles)((function(e){return Object(m.createStyles)({dashboardChartCard:{display:"block"}})})),et=[{id:"In Progress",data:[{x:2e3,y:25},{x:2001,y:12},{x:2002,y:24},{x:2003,y:13},{x:2004,y:23},{x:2005,y:29}]},{id:"In Compliance",data:[{x:2e3,y:21},{x:2001,y:17},{x:2002,y:24},{x:2003,y:25},{x:2004,y:13},{x:2005,y:12}]},{id:"Not In Compliance",data:[{x:2e3,y:30},{x:2001,y:16},{x:2002,y:16},{x:2003,y:24},{x:2004,y:11},{x:2005,y:26}]},{id:"Not Tracked",data:[{x:2e3,y:21},{x:2001,y:16},{x:2002,y:26},{x:2003,y:14},{x:2004,y:23},{x:2005,y:28}]}],tt=function(e){var t=e.loading,i=Xe();return n.a.createElement(u.Card,{className:i.dashboardChartCard},n.a.createElement(u.CardHeader,{title:n.a.createElement(u.Typography,{component:"h3",gutterBottom:!0,variant:"overline"},"Compliance Bump Chart")}),n.a.createElement(u.CardContent,{style:{height:"500px"}},n.a.createElement(Ye,{displayUnauthorized:!0,permissionSet:le.ViewTenants},t?n.a.createElement(u.Skeleton,{height:"100%",width:"100%",variant:"rect"}):n.a.createElement(Ze.a,{data:et,margin:{top:40,right:15,bottom:40,left:120},spacing:4,colors:{scheme:"nivo"},blendMode:"multiply",startLabel:"id",endLabel:!1,endLabelPadding:0,axisTop:{tickSize:5,tickPadding:5,tickRotation:0,legend:"",legendPosition:"middle",legendOffset:-36},axisBottom:{tickSize:5,tickPadding:5,tickRotation:0,legend:"",legendPosition:"middle",legendOffset:32}}))))},it=i(1102),rt=function(e){var t=[];return e&&e.children.map((function(e){return 0!==e.value&&t.push({id:e.name,label:e.name,value:e.value})})),t},at=function(e){var t=e.loading,i=e.title,r=e.data,a=n.a.createElement(it.a,{data:rt(r),margin:{top:40,right:80,bottom:80,left:80},innerRadius:.5,padAngle:.7,cornerRadius:3,colors:{scheme:"nivo"},borderWidth:1,borderColor:{from:"color",modifiers:[["darker",.2]]},radialLabelsSkipAngle:5,radialLabelsTextXOffset:3,radialLabelsTextColor:"#333333",radialLabelsLinkOffset:0,radialLabelsLinkDiagonalLength:8,radialLabelsLinkHorizontalLength:12,radialLabelsLinkStrokeWidth:1,radialLabelsLinkColor:{from:"color"},slicesLabelsSkipAngle:10,slicesLabelsTextColor:"#333333",animate:!0,motionStiffness:90,motionDamping:15,defs:[{id:"dots",type:"patternDots",background:"inherit",color:"rgba(255, 255, 255, 0.3)",size:4,padding:1,stagger:!0},{id:"lines",type:"patternLines",background:"inherit",color:"rgba(255, 255, 255, 0.3)",rotation:-45,lineWidth:6,spacing:10}],fill:[{match:{id:"ruby"},id:"dots"},{match:{id:"c"},id:"dots"},{match:{id:"go"},id:"dots"},{match:{id:"python"},id:"dots"},{match:{id:"scala"},id:"lines"},{match:{id:"lisp"},id:"lines"},{match:{id:"elixir"},id:"lines"},{match:{id:"javascript"},id:"lines"}],legends:[{anchor:"bottom",direction:"row",translateY:56,itemWidth:100,itemHeight:18,itemTextColor:"#999",symbolSize:18,symbolShape:"circle",effects:[{on:"hover",style:{itemTextColor:"#000"}}]}]});return n.a.createElement(u.Card,{style:{display:"block"}},n.a.createElement(u.CardHeader,{title:n.a.createElement(u.Typography,{component:"h3",gutterBottom:!0,variant:"overline"},i)}),n.a.createElement(u.CardContent,{style:{height:"500px"}},n.a.createElement(Ye,{permissionSet:le.ViewTenants,displayUnauthorized:!0},t?n.a.createElement(u.Skeleton,{height:"100%",width:"100%",variant:"rect"}):n.a.createElement(n.a.Fragment,null,a))))},nt=i(63),st=i.n(nt),ot=i(113),ct=i(1100),lt=C.a.create();lt.interceptors.request.use(function(){var e=Object(ot.a)(st.a.mark((function e(t){var i;return st.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ct.a.currentAuthenticatedUser();case 2:return i=e.sent,t.headers={"content-type":"application/json",Authorization:"Bearer ".concat(i.signInUserSession.accessToken.jwtToken)},e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),lt.interceptors.response.use(void 0,(function(e){var t=e;return t.originalMessage=e.message,t.response}));var dt,ut=lt,ht=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ApiClient/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ct.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ApiClient/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=jt.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=jt.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ApiClient/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=jt.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=jt.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ApiClient/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=jt.fromJS(n),Promise.resolve(a)}if(204===t)return Bs("Success",t,e.data,i);if(400===t){var s=e.data,o=s;return Bs("Bad Request",t,s,i,Ms.fromJS(o))}if(404===t){var c=e.data,l=c;return Bs("Not Found",t,c,i,On.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}}]),e}(),ft=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/CourseFormat/GetAll",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Yt.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllActive",value:function(e,t){var i=this,r=this.baseUrl+"/api/CourseFormat/GetAllActive",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllActive(e)}))}},{key:"processGetAllActive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Yt.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseFormat/Get/{courseFormatId}";if(void 0===e||null===e)throw new Error("The parameter 'courseFormatId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{courseFormatId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=_t.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseFormat/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}}]),e}(),vt=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"get",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/Get",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=gi.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getSettings",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetSettings",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetSettings(e)}))}},{key:"processGetSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Ci.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=gi.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=gi.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"updateSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSettings(e)}))}},{key:"processUpdateSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}var s=e.data,o=s;return Bs("Error",t,s,i,On.fromJS(o))}},{key:"getFirmLoginScreenDetails",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmLoginScreenDetails",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetFirmLoginScreenDetails(e)}))}},{key:"processGetFirmLoginScreenDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Oi.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getFirmNotification",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmNotification",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetFirmNotification(e)}))}},{key:"processGetFirmNotification",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ji.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"updateFirmNotification",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateFirmNotification";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateFirmNotification(e)}))}},{key:"processUpdateFirmNotification",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ji.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=ji.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"getFirmNotificationBasicDetails",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmNotificationBasicDetails",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetFirmNotificationBasicDetails(e)}))}},{key:"processGetFirmNotificationBasicDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ai.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getStatementSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetStatementSchedule",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetStatementSchedule(e)}))}},{key:"processGetStatementSchedule",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=In.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getReminderSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetReminderSchedule",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetReminderSchedule(e)}))}},{key:"processGetReminderSchedule",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=wa.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getDueToReportSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetDueToReportSchedule",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetDueToReportSchedule(e)}))}},{key:"processGetDueToReportSchedule",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=si.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"updateFirmNotificationStatus",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateFirmNotificationStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateFirmNotificationStatus(e)}))}},{key:"processUpdateFirmNotificationStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}var s=e.data,o=s;return Bs("Error",t,s,i,On.fromJS(o))}},{key:"getTenantLoginEnabled",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/GetTenantLoginEnabled/{hostName}";if(void 0===e||null===e)throw new Error("The parameter 'hostName' must be defined.");var n={method:"GET",url:a=(a=a.replace("{hostName}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetTenantLoginEnabled(e)}))}},{key:"processGetTenantLoginEnabled",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getFirmUsageReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/GetFirmUsageReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetFirmUsageReport(e)}))}},{key:"processGetFirmUsageReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ei.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportFileCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/ExportFileCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportFileCsv(e)}))}},{key:"processExportFileCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportFileExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/ExportFileExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportFileExcel(e)}))}},{key:"processExportFileExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),pt=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/Integration/GetAll",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ur.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllIntegrationJob",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetAllIntegrationJob";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllIntegrationJob(e)}))}},{key:"processGetAllIntegrationJob",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=cr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getIntegrationJobById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationJobById?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(a+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationJobById(e)}))}},{key:"processGetIntegrationJobById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=sr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getIntegrationLogsById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationLogsById?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(a+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationLogsById(e)}))}},{key:"processGetIntegrationLogsById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=fr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getIntegrationLogs",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationLogs";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationLogs(e)}))}},{key:"processGetIntegrationLogs",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=rr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllIntegrationTags",value:function(e,t){var i=this,r=this.baseUrl+"/api/Integration/GetAllIntegrationTags",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllIntegrationTags(e)}))}},{key:"processGetAllIntegrationTags",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(c)}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"getIntegrationJobCoursesById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationJobCoursesById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationJobCoursesById(e)}))}},{key:"processGetIntegrationJobCoursesById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=nr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getIntegrationJobSessionsById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationJobSessionsById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationJobSessionsById(e)}))}},{key:"processGetIntegrationJobSessionsById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=dr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getIntegrationJobAttendeesById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationJobAttendeesById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIntegrationJobAttendeesById(e)}))}},{key:"processGetIntegrationJobAttendeesById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=rr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"archiveIntegrationJob",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/ArchiveIntegrationJob";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchiveIntegrationJob(e)}))}},{key:"processArchiveIntegrationJob",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"downloadIntegrationJobFeed",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/DownloadIntegrationJobFeed?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(a+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var n={responseType:"blob",method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDownloadIntegrationJobFeed(e)}))}},{key:"processDownloadIntegrationJobFeed",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetById?";if(null===e)throw new Error("The parameter 'integrationId' cannot be null.");void 0!==e&&(a+="integrationId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=tr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=tr.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=tr.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"trigger",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/Trigger";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processTrigger(e)}))}},{key:"processTrigger",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=sr.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadPLICertificate",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Integration/DownloadPLICertificate?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");if(void 0!==e&&(n+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'integraionSessionParticipantCertificateId' cannot be null.");void 0!==t&&(n+="integraionSessionParticipantCertificateId="+encodeURIComponent(""+t)+"&");var s={responseType:"blob",method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/octet-stream"},cancelToken:r};return this.instance.request(s).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return a.processDownloadPLICertificate(e)}))}},{key:"processDownloadPLICertificate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),mt=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Zr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllActive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/GetAllActive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllActive(e)}))}},{key:"processGetAllActive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Zr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllFirmLicenses",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetAllFirmLicenses",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllFirmLicenses(e)}))}},{key:"processGetAllFirmLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Zr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getLicense",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/GetLicense?";if(null===e)throw new Error("The parameter 'licenseId' cannot be null.");void 0!==e&&(a+="licenseId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLicense(e)}))}},{key:"processGetLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Yr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getUserLicenseLimitation",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetUserLicenseLimitation",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetUserLicenseLimitation(e)}))}},{key:"processGetUserLicenseLimitation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(c)}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"getLicensePropertyFields",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/GetLicensePropertyFields/{licenseId}";if(void 0===e||null===e)throw new Error("The parameter 'licenseId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{licenseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLicensePropertyFields(e)}))}},{key:"processGetLicensePropertyFields",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Kr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getLicenseSubfilters",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetLicenseSubfilters",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetLicenseSubfilters(e)}))}},{key:"processGetLicenseSubfilters",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ia.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ii.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Ii.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ii.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Ii.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"favorite",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Favorite";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processFavorite(e)}))}},{key:"processFavorite",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignCertificate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/AssignCertificate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignCertificate(e)}))}},{key:"processAssignCertificate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),yt=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getUserPermissionSets",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PermissionSet/GetUserPermissionSets?";if(null===e)throw new Error("The parameter 'idpId' cannot be null.");void 0!==e&&(a+="idpId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserPermissionSets(e)}))}},{key:"processGetUserPermissionSets",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(c)}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PermissionSet/Get/{roleTypeId}";if(void 0===e||null===e)throw new Error("The parameter 'roleTypeId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{roleTypeId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=va.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}}]),e}(),bt=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ca.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getProviderListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/GetProviderListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetProviderListById(e)}))}},{key:"processGetProviderListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(ja.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Get/{providerId}";if(void 0===e||null===e)throw new Error("The parameter 'providerId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{providerId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ja.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ja.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=ja.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ja.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=ja.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(ja.fromJS(c))}}catch(p){o.e(p)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Bs("Success",t,e.data,i);if(400===t){var l=e.data,d=l;return Bs("Bad Request",t,l,i,Ms.fromJS(d))}if(404===t){var u=e.data,h=u;return Bs("Not Found",t,u,i,On.fromJS(h))}var f=e.data,v=f;return Bs("Error",t,f,i,On.fromJS(v))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMerge(e)}))}},{key:"processMerge",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateProviderName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/ValidateProviderName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateProviderName(e)}))}},{key:"processValidateProviderName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateProviderCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/ValidateProviderCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateProviderCode(e)}))}},{key:"processValidateProviderCode",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),St=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Wa.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ja.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getUserFavoriteReports",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetUserFavoriteReports";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserFavoriteReports(e)}))}},{key:"processGetUserFavoriteReports",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(ts.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"toggleUserFavoriteReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/ToggleUserFavoriteReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processToggleUserFavoriteReport(e)}))}},{key:"processToggleUserFavoriteReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}var s=e.data,o=s;return Bs("Error",t,s,i,On.fromJS(o))}},{key:"createUserReportLog",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/CreateUserReportLog";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateUserReportLog(e)}))}},{key:"processCreateUserReportLog",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}var s=e.data,o=s;return Bs("Error",t,s,i,On.fromJS(o))}},{key:"getToken",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Report/GetToken?";if(null===e)throw new Error("The parameter 'userName' cannot be null.");if(void 0!==e&&(n+="userName="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'tenantUniqueName' cannot be null.");void 0!==t&&(n+="tenantUniqueName="+encodeURIComponent(""+t)+"&");var s={method:"GET",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return a.processGetToken(e)}))}},{key:"processGetToken",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Xa.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getNewYorkLawYearEndReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetNewYorkLawYearEndReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetNewYorkLawYearEndReport(e)}))}},{key:"processGetNewYorkLawYearEndReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ya.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"updateNewYorkReportContactProfile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/UpdateNewYorkReportContactProfile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateNewYorkReportContactProfile(e)}))}},{key:"processUpdateNewYorkReportContactProfile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}var s=e.data,o=s;return Bs("Error",t,s,i,On.fromJS(o))}},{key:"getNewYorkLawActivityTable",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetNewYorkLawActivityTable";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetNewYorkLawActivityTable(e)}))}},{key:"processGetNewYorkLawActivityTable",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ya.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getComplianceReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetComplianceReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetComplianceReport(e)}))}},{key:"processGetComplianceReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Na.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getMultimediaUsageReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetMultimediaUsageReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetMultimediaUsageReport(e)}))}},{key:"processGetMultimediaUsageReport",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ca.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getNebraskaCPEReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetNebraskaCPEReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetNebraskaCPEReportData(e)}))}},{key:"processGetNebraskaCPEReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=$a.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getProgramListNasbaReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetProgramListNasbaReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetProgramListNasbaReportData(e)}))}},{key:"processGetProgramListNasbaReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Za.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getEvaluationSummaryReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetEvaluationSummaryReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetEvaluationSummaryReportData(e)}))}},{key:"processGetEvaluationSummaryReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=La.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getIllinoisLawData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetIllinoisLawData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIllinoisLawData(e)}))}},{key:"processGetIllinoisLawData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Fa.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getIllinoisLawAttendanceReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetIllinoisLawAttendanceReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIllinoisLawAttendanceReportData(e)}))}},{key:"processGetIllinoisLawAttendanceReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ga.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getIllinoisLawCourseReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetIllinoisLawCourseReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetIllinoisLawCourseReportData(e)}))}},{key:"processGetIllinoisLawCourseReportData",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=qa.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"exportMultimediaUsageReportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/ExportMultimediaUsageReportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportMultimediaUsageReportCsv(e)}))}},{key:"processExportMultimediaUsageReportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportMultimediaUsageReportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/ExportMultimediaUsageReportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportMultimediaUsageReportExcel(e)}))}},{key:"processExportMultimediaUsageReportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),e}(),gt=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getRoles",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/GetRoles";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRoles(e)}))}},{key:"processGetRoles",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=nn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getRolesDetailed",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/GetRolesDetailed";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRolesDetailed(e)}))}},{key:"processGetRolesDetailed",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=nn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getRolesListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/GetRolesListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRolesListById(e)}))}},{key:"processGetRolesListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=nn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"createRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/CreateRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateRole(e)}))}},{key:"processCreateRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=rn.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=rn.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"updateRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/UpdateRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateRole(e)}))}},{key:"processUpdateRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=rn.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=rn.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"deleteRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/DeleteRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteRole(e)}))}},{key:"processDeleteRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"mergeRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/MergeRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMergeRole(e)}))}},{key:"processMergeRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignUserToRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/AssignUserToRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignUserToRole(e)}))}},{key:"processAssignUserToRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=rn.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"unassignUserFromRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/UnassignUserFromRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUnassignUserFromRole(e)}))}},{key:"processUnassignUserFromRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignApiClientToRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/AssignApiClientToRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAssignApiClientToRole(e)}))}},{key:"processAssignApiClientToRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=rn.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addRoleLicenseLimitation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/AddRoleLicenseLimitation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddRoleLicenseLimitation(e)}))}},{key:"processAddRoleLicenseLimitation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=rn.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteRoleLicenseLimitation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/DeleteRoleLicenseLimitation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteRoleLicenseLimitation(e)}))}},{key:"processDeleteRoleLicenseLimitation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=rn.fromJS(n),Promise.resolve(a)}if(204===t)return Bs("Success",t,e.data,i);if(400===t){var s=e.data,o=s;return Bs("Bad Request",t,s,i,Ms.fromJS(o))}if(404===t){var c=e.data,l=c;return Bs("Not Found",t,c,i,On.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"getRolesByRoleId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/GetRolesByRoleId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetRolesByRoleId(e)}))}},{key:"processGetRolesByRoleId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ln.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}}]),e}(),It=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getSubjectAreaMappingByLicenseId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SubjectArea/GetSubjectAreaMappingByLicenseId/{licenseId}";if(void 0===e||null===e)throw new Error("The parameter 'licenseId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{licenseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetSubjectAreaMappingByLicenseId(e)}))}},{key:"processGetSubjectAreaMappingByLicenseId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=kn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getUnmappedCredits",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SubjectArea/GetUnmappedCredits";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUnmappedCredits(e)}))}},{key:"processGetUnmappedCredits",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=jn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"updateSubjectAreaMapping",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SubjectArea/UpdateSubjectAreaMapping";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSubjectAreaMapping(e)}))}},{key:"processUpdateSubjectAreaMapping",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}var s=e.data,o=s;return Bs("Error",t,s,i,On.fromJS(o))}},{key:"getLicensesMappedToSubjectArea",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SubjectArea/GetLicensesMappedToSubjectArea";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLicensesMappedToSubjectArea(e)}))}},{key:"processGetLicensesMappedToSubjectArea",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Pn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllLicensesMappedToSubjectArea",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SubjectArea/GetAllLicensesMappedToSubjectArea";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllLicensesMappedToSubjectArea(e)}))}},{key:"processGetAllLicensesMappedToSubjectArea",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Pn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getSubjectAreaIsEnabled",value:function(e,t){var i=this,r=this.baseUrl+"/api/SubjectArea/GetSubjectAreaIsEnabled",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetSubjectAreaIsEnabled(e)}))}},{key:"processGetSubjectAreaIsEnabled",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}}]),e}(),Ot=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t){var i=this,r=this.baseUrl+"/api/Timezone/GetAll",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ln.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}}]),e}(),At=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=gs.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllUserType",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserType";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserType(e)}))}},{key:"processGetAllUserType",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Us.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllAdmin",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetAllAdmin",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllAdmin(e)}))}},{key:"processGetAllAdmin",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=gs.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllUserLicensesCurrentPeriod",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLicensesCurrentPeriod";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLicensesCurrentPeriod(e)}))}},{key:"processGetAllUserLicensesCurrentPeriod",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ds.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllUserLicensesPortal",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLicensesPortal";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLicensesPortal(e)}))}},{key:"processGetAllUserLicensesPortal",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(bs.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"getAllUserLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLicenses(e)}))}},{key:"processGetAllUserLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(ys.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"getGlobalWorkUserCompliance",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserCompliance";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserCompliance(e)}))}},{key:"processGetGlobalWorkUserCompliance",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=$i.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllUserCompletedTranscripts",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserCompletedTranscripts";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserCompletedTranscripts(e)}))}},{key:"processGetAllUserCompletedTranscripts",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ns.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getGlobalWorkUserCompletedTranscripts",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserCompletedTranscripts";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserCompletedTranscripts(e)}))}},{key:"processGetGlobalWorkUserCompletedTranscripts",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ki.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"exportUserTranscriptCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportUserTranscriptCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportUserTranscriptCsv(e)}))}},{key:"processExportUserTranscriptCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportUserTranscriptExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportUserTranscriptExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportUserTranscriptExcel(e)}))}},{key:"processExportUserTranscriptExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getTranscriptListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetTranscriptListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetTranscriptListById(e)}))}},{key:"processGetTranscriptListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ns.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllPortalUserCompletedTranscriptSummary",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllPortalUserCompletedTranscriptSummary";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllPortalUserCompletedTranscriptSummary(e)}))}},{key:"processGetAllPortalUserCompletedTranscriptSummary",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ga.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllPortalUserCompletedTranscriptSummaryByGuid",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/GetAllPortalUserCompletedTranscriptSummaryByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");if(void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'licenseId' cannot be null.");void 0!==t&&(n+="licenseId="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return a.processGetAllPortalUserCompletedTranscriptSummaryByGuid(e)}))}},{key:"processGetAllPortalUserCompletedTranscriptSummaryByGuid",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Js.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllUserUpcomingTranscripts",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserUpcomingTranscripts";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserUpcomingTranscripts(e)}))}},{key:"processGetAllUserUpcomingTranscripts",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ws.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllUserLearningPlans",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLearningPlans";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLearningPlans(e)}))}},{key:"processGetAllUserLearningPlans",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ss.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllUserLearningPlansPrint",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLearningPlansPrint";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserLearningPlansPrint(e)}))}},{key:"processGetAllUserLearningPlansPrint",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=cs.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllUserUnregisteredLearningPlans",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserUnregisteredLearningPlans/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserUnregisteredLearningPlans(e)}))}},{key:"processGetAllUserUnregisteredLearningPlans",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=xs.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getGlobalWorkUserLearningPlans",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlans";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserLearningPlans(e)}))}},{key:"processGetGlobalWorkUserLearningPlans",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Wi.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getGlobalWorkUserLearningPlanDrawer",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlanDrawer";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserLearningPlanDrawer(e)}))}},{key:"processGetGlobalWorkUserLearningPlanDrawer",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=qi.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getGlobalWorkUserLearningPlanRequirement",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlanRequirement";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetGlobalWorkUserLearningPlanRequirement(e)}))}},{key:"processGetGlobalWorkUserLearningPlanRequirement",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Hi.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Get/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Kn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getByIdpId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByIdpId(e)}))}},{key:"processGetByIdpId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Kn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getUserApplicationByIdpId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserApplicationByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserApplicationByIdpId(e)}))}},{key:"processGetUserApplicationByIdpId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=zn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getUserAdminStatusByUsernameOrEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserAdminStatusByUsernameOrEmail/{usernameOrEmail}";if(void 0===e||null===e)throw new Error("The parameter 'usernameOrEmail' must be defined.");var n={method:"GET",url:a=(a=a.replace("{usernameOrEmail}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserAdminStatusByUsernameOrEmail(e)}))}},{key:"processGetUserAdminStatusByUsernameOrEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Wn.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getUserPreferences",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetUserPreferences",a={method:"POST",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetUserPreferences(e)}))}},{key:"processGetUserPreferences",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=As.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"addUserLearningPlanParticipation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/AddUserLearningPlanParticipation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processAddUserLearningPlanParticipation(e)}))}},{key:"processAddUserLearningPlanParticipation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Kn.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Kn.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Kn.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Kn.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"updateLoginId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateLoginId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateLoginId(e)}))}},{key:"processUpdateLoginId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Kn.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Kn.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"massUpdate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/MassUpdate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMassUpdate(e)}))}},{key:"processMassUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updatePreferences",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdatePreferences";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePreferences(e)}))}},{key:"processUpdatePreferences",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=As.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=As.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return Bs("Bad Request",t,c,i,Ms.fromJS(l))}var d=e.data,u=d;return Bs("Error",t,d,i,On.fromJS(u))}},{key:"deleteUserRelationship",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/DeleteUserRelationship";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteUserRelationship(e)}))}},{key:"processDeleteUserRelationship",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(js.fromJS(c))}}catch(p){o.e(p)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Bs("Success",t,e.data,i);if(400===t){var l=e.data,d=l;return Bs("Bad Request",t,l,i,Ms.fromJS(d))}if(404===t){var u=e.data,h=u;return Bs("Not Found",t,u,i,On.fromJS(h))}var f=e.data,v=f;return Bs("Error",t,f,i,On.fromJS(v))}},{key:"changePassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ChangePassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processChangePassword(e)}))}},{key:"processChangePassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"changeStatus",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ChangeStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processChangeStatus(e)}))}},{key:"processChangeStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserEmail",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserEmail?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'email' cannot be null.");void 0!==t&&(n+="email="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserEmail(e)}))}},{key:"processValidateUserEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserLoginId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserLoginId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'loginId' cannot be null.");void 0!==t&&(n+="loginId="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserLoginId(e)}))}},{key:"processValidateUserLoginId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserPersonnedlId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserPersonnedlId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'personnelId' cannot be null.");void 0!==t&&(n+="personnelId="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserPersonnedlId(e)}))}},{key:"processValidateUserPersonnedlId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserPhoneNumber",value:function(e,t,i,r,a){var n=this,s=this.baseUrl+"/api/User/ValidateUserPhoneNumber?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(s+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'phoneNumber' cannot be null.");if(void 0!==t&&(s+="phoneNumber="+encodeURIComponent(""+t)+"&"),null===i)throw new Error("The parameter 'email' cannot be null.");void 0!==i&&(s+="email="+encodeURIComponent(""+i)+"&");var o={method:"POST",url:s=s.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==r&&null!==r?""+r:"",Accept:"application/json"},cancelToken:a};return this.instance.request(o).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return n.processValidateUserPhoneNumber(e)}))}},{key:"processValidateUserPhoneNumber",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserAndLicenseDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ValidateUserAndLicenseDetails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateUserAndLicenseDetails(e)}))}},{key:"processValidateUserAndLicenseDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Fs.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ValidateUserDetails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateUserDetails(e)}))}},{key:"processValidateUserDetails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Fs.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"deleteUserLicense",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/DeleteUserLicense?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var s={data:JSON.stringify(i),method:"DELETE",url:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return a.processDeleteUserLicense(e)}))}},{key:"processDeleteUserLicense",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"deleteUserFromCognito",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/DeleteUserFromCognito";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteUserFromCognito(e)}))}},{key:"processDeleteUserFromCognito",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"deleteCompletedUserTranscript",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/DeleteCompletedUserTranscript";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteCompletedUserTranscript(e)}))}},{key:"processDeleteCompletedUserTranscript",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"deleteUserLearningPlan",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/DeleteUserLearningPlan?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var s={data:JSON.stringify(i),method:"DELETE",url:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"","Content-Type":"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return a.processDeleteUserLearningPlan(e)}))}},{key:"processDeleteUserLearningPlan",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getAllUsersByRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUsersByRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUsersByRole(e)}))}},{key:"processGetAllUsersByRole",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push($n.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"getUserLicensesWithRetro",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserLicensesWithRetro";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserLicensesWithRetro(e)}))}},{key:"processGetUserLicensesWithRetro",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(c)}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}},{key:"updateUserLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateUserLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUserLicenses(e)}))}},{key:"processUpdateUserLicenses",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}var s=e.data,o=s;return Bs("Error",t,s,i,On.fromJS(o))}},{key:"updateEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEmail(e)}))}},{key:"processUpdateEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return Bs("Bad Request",t,a,i,Ms.fromJS(n))}var s=e.data,o=s;return Bs("Error",t,s,i,On.fromJS(o))}},{key:"batchUpdateUserPassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/BatchUpdateUserPassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processBatchUpdateUserPassword(e)}))}},{key:"processBatchUpdateUserPassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?Bs("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLcbcUserCompletedTranscripts",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserCompletedTranscripts";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserCompletedTranscripts(e)}))}},{key:"processGetLcbcUserCompletedTranscripts",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=kr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getLcbcUserCompliance",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserCompliance";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserCompliance(e)}))}},{key:"processGetLcbcUserCompliance",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Cr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getLcbcUserLearningPlanDrawer",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserLearningPlanDrawer";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserLearningPlanDrawer(e)}))}},{key:"processGetLcbcUserLearningPlanDrawer",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=gr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getLcbcUserLearningPlanRequirement",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserLearningPlanRequirement";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserLearningPlanRequirement(e)}))}},{key:"processGetLcbcUserLearningPlanRequirement",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=jr.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getLcbcUserLearningPlans",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserLearningPlans";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetLcbcUserLearningPlans(e)}))}},{key:"processGetLcbcUserLearningPlans",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Or.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return Bs("Not Found",t,s,i,On.fromJS(o))}var c=e.data,l=c;return Bs("Error",t,c,i,On.fromJS(l))}},{key:"getDuplicateRecordByName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetDuplicateRecordByName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(qs(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetDuplicateRecordByName(e)}))}},{key:"processGetDuplicateRecordByName",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Zn.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return Bs("Not Found",t,l,i,On.fromJS(d))}var u=e.data,h=u;return Bs("Error",t,u,i,On.fromJS(h))}}]),e}(),jt=function(){function e(t){if(Object(O.a)(this,e),this.apiClientId=void 0,this.name=void 0,this.description=void 0,this.appClientId=void 0,this.appClientSecret=void 0,this.appTokenUrl=void 0,this.isActive=void 0,this.apiClientRole=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.apiClientId=e.apiClientId,this.name=e.name,this.description=e.description,this.appClientId=e.appClientId,this.appClientSecret=e.appClientSecret,this.appTokenUrl=e.appTokenUrl,this.isActive=e.isActive,this.apiClientRole=e.apiClientRole?Pt.fromJS(e.apiClientRole):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).apiClientId=this.apiClientId,e.name=this.name,e.description=this.description,e.appClientId=this.appClientId,e.appClientSecret=this.appClientSecret,e.appTokenUrl=this.appTokenUrl,e.isActive=this.isActive,e.apiClientRole=this.apiClientRole?this.apiClientRole.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ct=function(){function e(t){if(Object(O.a)(this,e),this.apiClients=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.apiClients)){this.apiClients=[];var t,i=Object(I.a)(e.apiClients);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.apiClients.push(jt.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.apiClients)){e.apiClients=[];var t,i=Object(I.a)(this.apiClients);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.apiClients.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pt=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Et=function(){function e(t){if(Object(O.a)(this,e),this.app=void 0,this.hasAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.app=e.app?Jn.fromJS(e.app):void 0,this.hasAccess=e.hasAccess)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).app=this.app?this.app.toJSON():void 0,e.hasAccess=this.hasAccess,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wt=function(){function e(t){if(Object(O.a)(this,e),this.courseFormatIdList=void 0,this.isArchive=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.courseFormatIdList)){this.courseFormatIdList=[];var t,i=Object(I.a)(e.courseFormatIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseFormatIdList.push(r)}}catch(a){i.e(a)}finally{i.f()}}this.isArchive=e.isArchive}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courseFormatIdList)){e.courseFormatIdList=[];var t,i=Object(I.a)(this.courseFormatIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseFormatIdList.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e.isArchive=this.isArchive,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kt=function(){function e(t){if(Object(O.a)(this,e),this.licenseIdList=void 0,this.isArchive=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.licenseIdList)){this.licenseIdList=[];var t,i=Object(I.a)(e.licenseIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseIdList.push(r)}}catch(a){i.e(a)}finally{i.f()}}this.isArchive=e.isArchive}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenseIdList)){e.licenseIdList=[];var t,i=Object(I.a)(this.licenseIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseIdList.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e.isArchive=this.isArchive,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tt=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.roleApiClientIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.roleApiClientIds=[])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.roleId=e.roleId,Array.isArray(e.roleApiClientIds))){this.roleApiClientIds=[];var t,i=Object(I.a)(e.roleApiClientIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roleApiClientIds.push(r)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,Array.isArray(this.roleApiClientIds)){e.roleApiClientIds=[];var t,i=Object(I.a)(this.roleApiClientIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roleApiClientIds.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Name=1]="Name",e[e.LicenseDetails=2]="LicenseDetails",e[e.Email=3]="Email",e[e.CustomColumn1=4]="CustomColumn1",e[e.CustomColumn2=5]="CustomColumn2",e[e.CustomColumn3=6]="CustomColumn3"}(dt||(dt={}));var Nt;!function(e){e[e.Title=1]="Title",e[e.Format=2]="Format",e[e.Instructor=3]="Instructor",e[e.Credits=4]="Credits",e[e.Date=5]="Date",e[e.Time=6]="Time",e[e.Location=7]="Location"}(Nt||(Nt={}));var Jt,Dt;!function(e){e[e.DoNotShow=1]="DoNotShow",e[e.FirstPageOnly=2]="FirstPageOnly",e[e.LastPageOnly=3]="LastPageOnly",e[e.EachPage=4]="EachPage"}(Jt||(Jt={})),function(e){e[e.PrintSeparately=1]="PrintSeparately",e[e.PrintCombined=2]="PrintCombined",e[e.PrintBlank=3]="PrintBlank"}(Dt||(Dt={}));var Lt;!function(e){e[e.Print=1]="Print",e[e.Certificate=2]="Certificate",e[e.Upload=3]="Upload",e[e.NotApplicable=4]="NotApplicable"}(Lt||(Lt={}));var Ut,Rt=function(){function e(t){if(Object(O.a)(this,e),this.description=void 0,this.statusId=void 0,this.statusDescription=void 0,this.carriedOver=void 0,this.earned=void 0,this.carryOver=void 0,this.grace=void 0,this.previousGrace=void 0,this.retroactiveCredit=void 0,this.retroactiveDebit=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.description=e.description,this.statusId=e.statusId,this.statusDescription=e.statusDescription,this.carriedOver=e.carriedOver,this.earned=e.earned,this.carryOver=e.carryOver,this.grace=e.grace,this.previousGrace=e.previousGrace,this.retroactiveCredit=e.retroactiveCredit,this.retroactiveDebit=e.retroactiveDebit,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).description=this.description,e.statusId=this.statusId,e.statusDescription=this.statusDescription,e.carriedOver=this.carriedOver,e.earned=this.earned,e.carryOver=this.carryOver,e.grace=this.grace,e.previousGrace=this.previousGrace,e.retroactiveCredit=this.retroactiveCredit,e.retroactiveDebit=this.retroactiveDebit,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xt=function(){function e(t){if(Object(O.a)(this,e),this.note=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.note=e.note,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).note=this.note,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ft=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,this.applyTo=void 0,this.applyToPeriodNumber=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName,this.applyTo=e.applyTo?new Date(e.applyTo.toString()):void 0,this.applyToPeriodNumber=e.applyToPeriodNumber,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e.applyTo=this.applyTo?this.applyTo.toISOString():void 0,e.applyToPeriodNumber=this.applyToPeriodNumber,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mt=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.title=void 0,this.sessionTitle=void 0,this.provider=void 0,this.courseFormat=void 0,this.location=void 0,this.dateTaken=void 0,this.isInstructed=void 0,this.isCreditAdjusted=void 0,this.isWithinGracePeriod=void 0,this.isWithinPrevGracePeriod=void 0,this.periodNumber=void 0,this.sessionLicenses=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.userRetroCreditValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.provider=e.provider,this.courseFormat=e.courseFormat,this.location=e.location,this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.isInstructed=e.isInstructed,this.isCreditAdjusted=e.isCreditAdjusted,this.isWithinGracePeriod=e.isWithinGracePeriod,this.isWithinPrevGracePeriod=e.isWithinPrevGracePeriod,this.periodNumber=e.periodNumber,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var t,i=Object(I.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(pn.fromJS(r))}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var a,n=Object(I.a)(e.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.userLicenseCreditValues.push(hs.fromJS(s))}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var o,c=Object(I.a)(e.userLicensePropertyValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userLicensePropertyValues.push(ms.fromJS(l))}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.userRetroCreditValues)){this.userRetroCreditValues=[];var d,u=Object(I.a)(e.userRetroCreditValues);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.userRetroCreditValues.push(Ft.fromJS(h))}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.provider=this.provider,e.courseFormat=this.courseFormat,e.location=this.location,e.dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.isInstructed=this.isInstructed,e.isCreditAdjusted=this.isCreditAdjusted,e.isWithinGracePeriod=this.isWithinGracePeriod,e.isWithinPrevGracePeriod=this.isWithinPrevGracePeriod,e.periodNumber=this.periodNumber,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(I.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var a,n=Object(I.a)(this.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.userLicenseCreditValues.push(s.toJSON())}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var o,c=Object(I.a)(this.userLicensePropertyValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userLicensePropertyValues.push(l.toJSON())}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.userRetroCreditValues)){e.userRetroCreditValues=[];var d,u=Object(I.a)(this.userRetroCreditValues);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.userRetroCreditValues.push(h.toJSON())}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gt=function(){function e(t){if(Object(O.a)(this,e),this.description=void 0,this.earned=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.description=e.description,this.earned=e.earned,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).description=this.description,e.earned=this.earned,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bt=function(){function e(t){if(Object(O.a)(this,e),this.subjectAreaCreditId=void 0,this.subjectAreaName=void 0,this.earned=void 0,this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.subjectAreaCreditId=e.subjectAreaCreditId,this.subjectAreaName=e.subjectAreaName,this.earned=e.earned,this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).subjectAreaCreditId=this.subjectAreaCreditId,e.subjectAreaName=this.subjectAreaName,e.earned=this.earned,e.licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qt=function(){function e(t){if(Object(O.a)(this,e),this.creditId=void 0,this.creditName=void 0,this.parentCreditId=void 0,this.level=void 0,this.groupLabel=void 0,this.sequenceNumber=void 0,this.required=void 0,this.overlap=void 0,this.carriedOver=void 0,this.previousGrace=void 0,this.currentGrace=void 0,this.earned=void 0,this.grace=void 0,this.retroactiveCredit=void 0,this.retroactiveDebit=void 0,this.applied=void 0,this.carryOver=void 0,this.extra=void 0,this.unused=void 0,this.available=void 0,this.previousAvailable=void 0,this.unusedGrace=void 0,this.unusedRetroactiveCredit=void 0,this.creditsNeeded=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.creditId=e.creditId,this.creditName=e.creditName,this.parentCreditId=e.parentCreditId,this.level=e.level,this.groupLabel=e.groupLabel,this.sequenceNumber=e.sequenceNumber,this.required=e.required,this.overlap=e.overlap,this.carriedOver=e.carriedOver,this.previousGrace=e.previousGrace,this.currentGrace=e.currentGrace,this.earned=e.earned,this.grace=e.grace,this.retroactiveCredit=e.retroactiveCredit,this.retroactiveDebit=e.retroactiveDebit,this.applied=e.applied,this.carryOver=e.carryOver,this.extra=e.extra,this.unused=e.unused,this.available=e.available,this.previousAvailable=e.previousAvailable,this.unusedGrace=e.unusedGrace,this.unusedRetroactiveCredit=e.unusedRetroactiveCredit,this.creditsNeeded=e.creditsNeeded)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).creditId=this.creditId,e.creditName=this.creditName,e.parentCreditId=this.parentCreditId,e.level=this.level,e.groupLabel=this.groupLabel,e.sequenceNumber=this.sequenceNumber,e.required=this.required,e.overlap=this.overlap,e.carriedOver=this.carriedOver,e.previousGrace=this.previousGrace,e.currentGrace=this.currentGrace,e.earned=this.earned,e.grace=this.grace,e.retroactiveCredit=this.retroactiveCredit,e.retroactiveDebit=this.retroactiveDebit,e.applied=this.applied,e.carryOver=this.carryOver,e.extra=this.extra,e.unused=this.unused,e.available=this.available,e.previousAvailable=this.previousAvailable,e.unusedGrace=this.unusedGrace,e.unusedRetroactiveCredit=this.unusedRetroactiveCredit,e.creditsNeeded=this.creditsNeeded,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.NotInCompliance=0]="NotInCompliance",e[e.InCompliance=1]="InCompliance",e[e.InProgress=2]="InProgress",e[e.Extension=3]="Extension",e[e.NonMandatory=4]="NonMandatory",e[e.NotTracked=5]="NotTracked",e[e.Pending=6]="Pending",e[e.Inactive=7]="Inactive"}(Ut||(Ut={}));var Vt,Wt=function(){function e(t){if(Object(O.a)(this,e),this.classYearId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.classYearId=e.classYearId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).classYearId=this.classYearId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zt=function(){function e(t){if(Object(O.a)(this,e),this.competencyId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.competencyId=e.competencyId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).competencyId=this.competencyId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ht=function(){function e(t){if(Object(O.a)(this,e),this.departmentId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$t=function(){function e(t){if(Object(O.a)(this,e),this.courseId=void 0,this.title=void 0,this.courseCode=void 0,this.providerId=void 0,this.providerName=void 0,this.note=void 0,this.description=void 0,this.archivedDate=void 0,this.courseClassYear=void 0,this.courseCompetency=void 0,this.courseDepartment=void 0,this.courseLevel=void 0,this.coursePracticeArea=void 0,this.courseTag=void 0,this.courseLearningPlan=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.title=e.title,this.courseCode=e.courseCode,this.providerId=e.providerId,this.providerName=e.providerName,this.note=e.note,this.description=e.description,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,Array.isArray(e.courseClassYear)){this.courseClassYear=[];var t,i=Object(I.a)(e.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseClassYear.push(Wt.fromJS(r))}}catch(A){i.e(A)}finally{i.f()}}if(Array.isArray(e.courseCompetency)){this.courseCompetency=[];var a,n=Object(I.a)(e.courseCompetency);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.courseCompetency.push(zt.fromJS(s))}}catch(A){n.e(A)}finally{n.f()}}if(Array.isArray(e.courseDepartment)){this.courseDepartment=[];var o,c=Object(I.a)(e.courseDepartment);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.courseDepartment.push(Ht.fromJS(l))}}catch(A){c.e(A)}finally{c.f()}}if(Array.isArray(e.courseLevel)){this.courseLevel=[];var d,u=Object(I.a)(e.courseLevel);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.courseLevel.push(Qt.fromJS(h))}}catch(A){u.e(A)}finally{u.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var f,v=Object(I.a)(e.coursePracticeArea);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.coursePracticeArea.push(Kt.fromJS(p))}}catch(A){v.e(A)}finally{v.f()}}if(Array.isArray(e.courseTag)){this.courseTag=[];var m,y=Object(I.a)(e.courseTag);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.courseTag.push(Zt.fromJS(b))}}catch(A){y.e(A)}finally{y.f()}}if(Array.isArray(e.courseLearningPlan)){this.courseLearningPlan=[];var S,g=Object(I.a)(e.courseLearningPlan);try{for(g.s();!(S=g.n()).done;){var O=S.value;this.courseLearningPlan.push(Nr.fromJS(O))}}catch(A){g.e(A)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.title=this.title,e.courseCode=this.courseCode,e.providerId=this.providerId,e.providerName=this.providerName,e.note=this.note,e.description=this.description,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,Array.isArray(this.courseClassYear)){e.courseClassYear=[];var t,i=Object(I.a)(this.courseClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseClassYear.push(r.toJSON())}}catch(A){i.e(A)}finally{i.f()}}if(Array.isArray(this.courseCompetency)){e.courseCompetency=[];var a,n=Object(I.a)(this.courseCompetency);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.courseCompetency.push(s.toJSON())}}catch(A){n.e(A)}finally{n.f()}}if(Array.isArray(this.courseDepartment)){e.courseDepartment=[];var o,c=Object(I.a)(this.courseDepartment);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.courseDepartment.push(l.toJSON())}}catch(A){c.e(A)}finally{c.f()}}if(Array.isArray(this.courseLevel)){e.courseLevel=[];var d,u=Object(I.a)(this.courseLevel);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.courseLevel.push(h.toJSON())}}catch(A){u.e(A)}finally{u.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var f,v=Object(I.a)(this.coursePracticeArea);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.coursePracticeArea.push(p.toJSON())}}catch(A){v.e(A)}finally{v.f()}}if(Array.isArray(this.courseTag)){e.courseTag=[];var m,y=Object(I.a)(this.courseTag);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.courseTag.push(b.toJSON())}}catch(A){y.e(A)}finally{y.f()}}if(Array.isArray(this.courseLearningPlan)){e.courseLearningPlan=[];var S,g=Object(I.a)(this.courseLearningPlan);try{for(g.s();!(S=g.n()).done;){var O=S.value;e.courseLearningPlan.push(O.toJSON())}}catch(A){g.e(A)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_t=function(){function e(t){if(Object(O.a)(this,e),this.courseFormatId=void 0,this.name=void 0,this.abbreviation=void 0,this.isActive=void 0,this.isEnabled=void 0,this.isOnlineLearning=void 0,this.isIndividualSessionAllowed=void 0,this.portalCategory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.courseFormatId=e.courseFormatId,this.name=e.name,this.abbreviation=e.abbreviation,this.isActive=e.isActive,this.isEnabled=e.isEnabled,this.isOnlineLearning=e.isOnlineLearning,this.isIndividualSessionAllowed=e.isIndividualSessionAllowed,this.portalCategory=e.portalCategory)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseFormatId=this.courseFormatId,e.name=this.name,e.abbreviation=this.abbreviation,e.isActive=this.isActive,e.isEnabled=this.isEnabled,e.isOnlineLearning=this.isOnlineLearning,e.isIndividualSessionAllowed=this.isIndividualSessionAllowed,e.portalCategory=this.portalCategory,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yt=function(){function e(t){if(Object(O.a)(this,e),this.courseFormats=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.courseFormats)){this.courseFormats=[];var t,i=Object(I.a)(e.courseFormats);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseFormats.push(_t.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courseFormats)){e.courseFormats=[];var t,i=Object(I.a)(this.courseFormats);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseFormats.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qt=function(){function e(t){if(Object(O.a)(this,e),this.levelId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kt=function(){function e(t){if(Object(O.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zt=function(){function e(t){if(Object(O.a)(this,e),this.tagId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.tagId=e.tagId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tagId=this.tagId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xt=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.description=void 0,this.isActive=void 0,this.roleId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.roleId=e.roleId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).name=this.name,e.description=this.description,e.isActive=this.isActive,e.roleId=this.roleId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ei=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.description=void 0,this.isActive=void 0,this.isDefault=void 0,this.isClonedFromSettings=void 0,this.clonedRoleId=void 0,this.type=void 0,this.subRoleType=void 0,this.rolePermissionSets=void 0,this.roleUsers=void 0,this.roleApiClients=void 0,this.roleLicenseLimitations=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isDefault=e.isDefault,this.isClonedFromSettings=e.isClonedFromSettings,this.clonedRoleId=e.clonedRoleId,this.type=e.type,this.subRoleType=e.subRoleType,Array.isArray(e.rolePermissionSets)){this.rolePermissionSets=[];var t,i=Object(I.a)(e.rolePermissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.rolePermissionSets.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.roleUsers)){this.roleUsers=[];var a,n=Object(I.a)(e.roleUsers);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.roleUsers.push(cn.fromJS(s))}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.roleApiClients)){this.roleApiClients=[];var o,c=Object(I.a)(e.roleApiClients);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.roleApiClients.push(tn.fromJS(l))}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.roleLicenseLimitations)){this.roleLicenseLimitations=[];var d,u=Object(I.a)(e.roleLicenseLimitations);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.roleLicenseLimitations.push(Yr.fromJS(h))}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).name=this.name,e.description=this.description,e.isActive=this.isActive,e.isDefault=this.isDefault,e.isClonedFromSettings=this.isClonedFromSettings,e.clonedRoleId=this.clonedRoleId,e.type=this.type,e.subRoleType=this.subRoleType,Array.isArray(this.rolePermissionSets)){e.rolePermissionSets=[];var t,i=Object(I.a)(this.rolePermissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.rolePermissionSets.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.roleUsers)){e.roleUsers=[];var a,n=Object(I.a)(this.roleUsers);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.roleUsers.push(s.toJSON())}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.roleApiClients)){e.roleApiClients=[];var o,c=Object(I.a)(this.roleApiClients);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.roleApiClients.push(l.toJSON())}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.roleLicenseLimitations)){e.roleLicenseLimitations=[];var d,u=Object(I.a)(this.roleLicenseLimitations);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.roleLicenseLimitations.push(h.toJSON())}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ti=function(){function e(t){if(Object(O.a)(this,e),this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.nickname=void 0,this.email=void 0,this.userName=void 0,this.personnelId=void 0,this.genderId=void 0,this.inactiveDate=void 0,this.userType=void 0,this.birthDate=void 0,this.graduationDate=void 0,this.hireDate=void 0,this.fireDate=void 0,this.locationId=void 0,this.street=void 0,this.city=void 0,this.stateId=void 0,this.countryId=void 0,this.zip=void 0,this.phone=void 0,this.emailSecretary=void 0,this.emailPracticeLeader=void 0,this.note=void 0,this.affiliationId=void 0,this.portalAccessEnabled=void 0,this.position=void 0,this.userAvatarId=void 0,this.supressEmail=void 0,this.userRole=void 0,this.userLicense=void 0,this.userPosition=void 0,this.userClassYear=void 0,this.userDepartment=void 0,this.userEthnicity=void 0,this.userGroup=void 0,this.userLevel=void 0,this.userPracticeArea=void 0,this.userRelationship=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.nickname=e.nickname,this.email=e.email,this.userName=e.userName,this.personnelId=e.personnelId,this.genderId=e.genderId,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.userType=e.userType,this.birthDate=e.birthDate?new Date(e.birthDate.toString()):void 0,this.graduationDate=e.graduationDate?new Date(e.graduationDate.toString()):void 0,this.hireDate=e.hireDate?new Date(e.hireDate.toString()):void 0,this.fireDate=e.fireDate?new Date(e.fireDate.toString()):void 0,this.locationId=e.locationId,this.street=e.street,this.city=e.city,this.stateId=e.stateId,this.countryId=e.countryId,this.zip=e.zip,this.phone=e.phone,this.emailSecretary=e.emailSecretary,this.emailPracticeLeader=e.emailPracticeLeader,this.note=e.note,this.affiliationId=e.affiliationId,this.portalAccessEnabled=e.portalAccessEnabled,this.position=e.position,this.userAvatarId=e.userAvatarId,this.supressEmail=e.supressEmail,Array.isArray(e.userRole)){this.userRole=[];var t,i=Object(I.a)(e.userRole);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRole.push(Cs.fromJS(r))}}catch(J){i.e(J)}finally{i.f()}}if(Array.isArray(e.userLicense)){this.userLicense=[];var a,n=Object(I.a)(e.userLicense);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.userLicense.push(fs.fromJS(s))}}catch(J){n.e(J)}finally{n.f()}}if(Array.isArray(e.userPosition)){this.userPosition=[];var o,c=Object(I.a)(e.userPosition);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userPosition.push(Is.fromJS(l))}}catch(J){c.e(J)}finally{c.f()}}if(Array.isArray(e.userClassYear)){this.userClassYear=[];var d,u=Object(I.a)(e.userClassYear);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.userClassYear.push(Yn.fromJS(h))}}catch(J){u.e(J)}finally{u.f()}}if(Array.isArray(e.userDepartment)){this.userDepartment=[];var f,v=Object(I.a)(e.userDepartment);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.userDepartment.push(Qn.fromJS(p))}}catch(J){v.e(J)}finally{v.f()}}if(Array.isArray(e.userEthnicity)){this.userEthnicity=[];var m,y=Object(I.a)(e.userEthnicity);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.userEthnicity.push(Xn.fromJS(b))}}catch(J){y.e(J)}finally{y.f()}}if(Array.isArray(e.userGroup)){this.userGroup=[];var S,g=Object(I.a)(e.userGroup);try{for(g.s();!(S=g.n()).done;){var O=S.value;this.userGroup.push(hn.fromJS(O))}}catch(J){g.e(J)}finally{g.f()}}if(Array.isArray(e.userLevel)){this.userLevel=[];var A,j=Object(I.a)(e.userLevel);try{for(j.s();!(A=j.n()).done;){var C=A.value;this.userLevel.push(ls.fromJS(C))}}catch(J){j.e(J)}finally{j.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var P,E=Object(I.a)(e.userPracticeArea);try{for(E.s();!(P=E.n()).done;){var w=P.value;this.userPracticeArea.push(Os.fromJS(w))}}catch(J){E.e(J)}finally{E.f()}}if(Array.isArray(e.userRelationship)){this.userRelationship=[];var k,T=Object(I.a)(e.userRelationship);try{for(T.s();!(k=T.n()).done;){var N=k.value;this.userRelationship.push(js.fromJS(N))}}catch(J){T.e(J)}finally{T.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.nickname=this.nickname,e.email=this.email,e.userName=this.userName,e.personnelId=this.personnelId,e.genderId=this.genderId,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.userType=this.userType,e.birthDate=this.birthDate?this.birthDate.toISOString():void 0,e.graduationDate=this.graduationDate?this.graduationDate.toISOString():void 0,e.hireDate=this.hireDate?this.hireDate.toISOString():void 0,e.fireDate=this.fireDate?this.fireDate.toISOString():void 0,e.locationId=this.locationId,e.street=this.street,e.city=this.city,e.stateId=this.stateId,e.countryId=this.countryId,e.zip=this.zip,e.phone=this.phone,e.emailSecretary=this.emailSecretary,e.emailPracticeLeader=this.emailPracticeLeader,e.note=this.note,e.affiliationId=this.affiliationId,e.portalAccessEnabled=this.portalAccessEnabled,e.position=this.position,e.userAvatarId=this.userAvatarId,e.supressEmail=this.supressEmail,Array.isArray(this.userRole)){e.userRole=[];var t,i=Object(I.a)(this.userRole);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRole.push(r.toJSON())}}catch(J){i.e(J)}finally{i.f()}}if(Array.isArray(this.userLicense)){e.userLicense=[];var a,n=Object(I.a)(this.userLicense);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.userLicense.push(s.toJSON())}}catch(J){n.e(J)}finally{n.f()}}if(Array.isArray(this.userPosition)){e.userPosition=[];var o,c=Object(I.a)(this.userPosition);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userPosition.push(l.toJSON())}}catch(J){c.e(J)}finally{c.f()}}if(Array.isArray(this.userClassYear)){e.userClassYear=[];var d,u=Object(I.a)(this.userClassYear);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.userClassYear.push(h.toJSON())}}catch(J){u.e(J)}finally{u.f()}}if(Array.isArray(this.userDepartment)){e.userDepartment=[];var f,v=Object(I.a)(this.userDepartment);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.userDepartment.push(p.toJSON())}}catch(J){v.e(J)}finally{v.f()}}if(Array.isArray(this.userEthnicity)){e.userEthnicity=[];var m,y=Object(I.a)(this.userEthnicity);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.userEthnicity.push(b.toJSON())}}catch(J){y.e(J)}finally{y.f()}}if(Array.isArray(this.userGroup)){e.userGroup=[];var S,g=Object(I.a)(this.userGroup);try{for(g.s();!(S=g.n()).done;){var O=S.value;e.userGroup.push(O.toJSON())}}catch(J){g.e(J)}finally{g.f()}}if(Array.isArray(this.userLevel)){e.userLevel=[];var A,j=Object(I.a)(this.userLevel);try{for(j.s();!(A=j.n()).done;){var C=A.value;e.userLevel.push(C.toJSON())}}catch(J){j.e(J)}finally{j.f()}}if(Array.isArray(this.userPracticeArea)){e.userPracticeArea=[];var P,E=Object(I.a)(this.userPracticeArea);try{for(E.s();!(P=E.n()).done;){var w=P.value;e.userPracticeArea.push(w.toJSON())}}catch(J){E.e(J)}finally{E.f()}}if(Array.isArray(this.userRelationship)){e.userRelationship=[];var k,T=Object(I.a)(this.userRelationship);try{for(T.s();!(k=T.n()).done;){var N=k.value;e.userRelationship.push(N.toJSON())}}catch(J){T.e(J)}finally{T.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.ManuallyAdded=0]="ManuallyAdded",e[e.MetCriteria=1]="MetCriteria",e[e.NoLongerMeetsCriteria=2]="NoLongerMeetsCriteria",e[e.SelfRegistered=3]="SelfRegistered"}(Vt||(Vt={}));var ii,ri=function(){function e(t){if(Object(O.a)(this,e),this.roleIdList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.roleIdList=[])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.roleIdList)){this.roleIdList=[];var t,i=Object(I.a)(e.roleIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roleIdList.push(r)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.roleIdList)){e.roleIdList=[];var t,i=Object(I.a)(this.roleIdList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roleIdList.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.InProgress=1]="InProgress",e[e.Complete=2]="Complete"}(ii||(ii={}));var ai,ni=function(){function e(t){if(Object(O.a)(this,e),this.dueToReportScheduleId=void 0,this.isActive=void 0,this.frequency=void 0,this.jobId=void 0,this.lastEmailSent=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.dueToReportScheduleId=e.dueToReportScheduleId,this.isActive=e.isActive,this.frequency=e.frequency,this.jobId=e.jobId,this.lastEmailSent=e.lastEmailSent?new Date(e.lastEmailSent.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).dueToReportScheduleId=this.dueToReportScheduleId,e.isActive=this.isActive,e.frequency=this.frequency,e.jobId=this.jobId,e.lastEmailSent=this.lastEmailSent?this.lastEmailSent.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),si=function(){function e(t){if(Object(O.a)(this,e),this.dueToReportScheduleId=void 0,this.minimumMonth=void 0,this.isActive=void 0,this.licenseIds=void 0,this.emailTemplateId=void 0,this.template=void 0,this.frequency=void 0,this.time=void 0,this.timezoneId=void 0,this.timezone=void 0,this.recurDayOfWeek=void 0,this.monthlyOption=void 0,this.monthlyDay=void 0,this.monthlyDayOfMonth=void 0,this.monthlyDayOfWeek=void 0,this.numberOfMonths=void 0,this.monthlyDayWithInterval=void 0,this.numberOfMonthsInterval=void 0,this.dayOfMonthWithInterval=void 0,this.dayOfWeekWithInterval=void 0,this.jobId=void 0,this.sendToAdmin=void 0,this.sendToAdminAssistant=void 0,this.sendSeparateCCCopy=void 0,this.recipients=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.dueToReportScheduleId=e.dueToReportScheduleId,this.minimumMonth=e.minimumMonth,this.isActive=e.isActive,this.licenseIds=e.licenseIds,this.emailTemplateId=e.emailTemplateId,this.template=e.template?di.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Dn.fromJS(e.timezone):void 0,Array.isArray(e.recurDayOfWeek)){this.recurDayOfWeek=[];var t,i=Object(I.a)(e.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.recurDayOfWeek.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var a,n=Object(I.a)(e.monthlyDay);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.monthlyDay.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(this.monthlyDayOfMonth=e.monthlyDayOfMonth,this.monthlyDayOfWeek=e.monthlyDayOfWeek,this.numberOfMonths=e.numberOfMonths,Array.isArray(e.monthlyDayWithInterval)){this.monthlyDayWithInterval=[];var o,c=Object(I.a)(e.monthlyDayWithInterval);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.monthlyDayWithInterval.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(this.numberOfMonthsInterval=e.numberOfMonthsInterval,this.dayOfMonthWithInterval=e.dayOfMonthWithInterval,this.dayOfWeekWithInterval=e.dayOfWeekWithInterval,this.jobId=e.jobId,this.sendToAdmin=e.sendToAdmin,this.sendToAdminAssistant=e.sendToAdminAssistant,this.sendSeparateCCCopy=e.sendSeparateCCCopy,Array.isArray(e.recipients)){this.recipients=[];var d,u=Object(I.a)(e.recipients);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.recipients.push(li.fromJS(h))}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).dueToReportScheduleId=this.dueToReportScheduleId,e.minimumMonth=this.minimumMonth,e.isActive=this.isActive,e.licenseIds=this.licenseIds,e.emailTemplateId=this.emailTemplateId,e.template=this.template?this.template.toJSON():void 0,e.frequency=this.frequency,e.time=this.time,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,Array.isArray(this.recurDayOfWeek)){e.recurDayOfWeek=[];var t,i=Object(I.a)(this.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.recurDayOfWeek.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var a,n=Object(I.a)(this.monthlyDay);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.monthlyDay.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(e.monthlyDayOfMonth=this.monthlyDayOfMonth,e.monthlyDayOfWeek=this.monthlyDayOfWeek,e.numberOfMonths=this.numberOfMonths,Array.isArray(this.monthlyDayWithInterval)){e.monthlyDayWithInterval=[];var o,c=Object(I.a)(this.monthlyDayWithInterval);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.monthlyDayWithInterval.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(e.numberOfMonthsInterval=this.numberOfMonthsInterval,e.dayOfMonthWithInterval=this.dayOfMonthWithInterval,e.dayOfWeekWithInterval=this.dayOfWeekWithInterval,e.jobId=this.jobId,e.sendToAdmin=this.sendToAdmin,e.sendToAdminAssistant=this.sendToAdminAssistant,e.sendSeparateCCCopy=this.sendSeparateCCCopy,Array.isArray(this.recipients)){e.recipients=[];var d,u=Object(I.a)(this.recipients);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.recipients.push(h.toJSON())}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Days=1]="Days",e[e.Weeks=2]="Weeks",e[e.Months=3]="Months"}(ai||(ai={}));var oi;!function(e){e[e.Default=0]="Default",e[e.Confirmation=1]="Confirmation",e[e.Notification=2]="Notification",e[e.Reminder=3]="Reminder",e[e.Announcement=4]="Announcement",e[e.Report=5]="Report",e[e.Newsletter=6]="Newsletter",e[e.Invite=7]="Invite"}(oi||(oi={}));var ci,li=function(){function e(t){if(Object(O.a)(this,e),this.emailRecipientId=void 0,this.name=void 0,this.email=void 0,this.type=void 0,this.userId=void 0,this.user=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.emailRecipientId=e.emailRecipientId,this.name=e.name,this.email=e.email,this.type=e.type,this.userId=e.userId,this.user=e.user?Kn.fromJS(e.user):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailRecipientId=this.emailRecipientId,e.name=this.name,e.email=this.email,e.type=this.type,e.userId=this.userId,e.user=this.user?this.user.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),di=function(){function e(t){if(Object(O.a)(this,e),this.createdBy=void 0,this.createdDate=void 0,this.lastModifiedBy=void 0,this.lastModifiedDate=void 0,this.emailTemplateId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.isSystem=void 0,this.isDefault=void 0,this.subject=void 0,this.body=void 0,this.emailAlias=void 0,this.emailTypeId=void 0,this.emailType=void 0,this.replyToUserId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.createdBy=e.createdBy,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedBy=e.lastModifiedBy,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.emailTemplateId=e.emailTemplateId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.subject=e.subject,this.body=e.body,this.emailAlias=e.emailAlias,this.emailTypeId=e.emailTypeId,this.emailType=e.emailType?vi.fromJS(e.emailType):void 0,this.replyToUserId=e.replyToUserId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).createdBy=this.createdBy,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedBy=this.lastModifiedBy,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.emailTemplateId=this.emailTemplateId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.subject=this.subject,e.body=this.body,e.emailAlias=this.emailAlias,e.emailTypeId=this.emailTypeId,e.emailType=this.emailType?this.emailType.toJSON():void 0,e.replyToUserId=this.replyToUserId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ui=function(){function e(t){if(Object(O.a)(this,e),this.emailTemplateId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.isSystem=void 0,this.isDefault=void 0,this.subject=void 0,this.body=void 0,this.emailTypeId=void 0,this.replyToUserId=void 0,this.emailAlias=void 0,this.emailType=void 0,this.replyTo=void 0,this.isUsed=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.emailTemplateId=e.emailTemplateId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isSystem=e.isSystem,this.isDefault=e.isDefault,this.subject=e.subject,this.body=e.body,this.emailTypeId=e.emailTypeId,this.replyToUserId=e.replyToUserId,this.emailAlias=e.emailAlias,this.emailType=e.emailType?pi.fromJS(e.emailType):void 0,this.replyTo=e.replyTo?Kn.fromJS(e.replyTo):void 0,this.isUsed=e.isUsed)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailTemplateId=this.emailTemplateId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.isSystem=this.isSystem,e.isDefault=this.isDefault,e.subject=this.subject,e.body=this.body,e.emailTypeId=this.emailTypeId,e.replyToUserId=this.replyToUserId,e.emailAlias=this.emailAlias,e.emailType=this.emailType?this.emailType.toJSON():void 0,e.replyTo=this.replyTo?this.replyTo.toJSON():void 0,e.isUsed=this.isUsed,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hi=function(){function e(t){if(Object(O.a)(this,e),this.emailTokenId=void 0,this.emailTypeId=void 0,this.tokenId=void 0,this.token=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.emailTokenId=e.emailTokenId,this.emailTypeId=e.emailTypeId,this.tokenId=e.tokenId,this.token=e.token?Un.fromJS(e.token):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailTokenId=this.emailTokenId,e.emailTypeId=this.emailTypeId,e.tokenId=this.tokenId,e.token=this.token?this.token.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fi=function(){function e(t){if(Object(O.a)(this,e),this.emailTokenId=void 0,this.emailTypeId=void 0,this.tokenId=void 0,this.token=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.emailTokenId=e.emailTokenId,this.emailTypeId=e.emailTypeId,this.tokenId=e.tokenId,this.token=e.token?Un.fromJS(e.token):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).emailTokenId=this.emailTokenId,e.emailTypeId=this.emailTypeId,e.tokenId=this.tokenId,e.token=this.token?this.token.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vi=function(){function e(t){if(Object(O.a)(this,e),this.emailTypeId=void 0,this.name=void 0,this.description=void 0,this.categoryId=void 0,this.defaultEmailTemplateId=void 0,this.defaultEmailTemplate=void 0,this.emailTokens=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.emailTypeId=e.emailTypeId,this.name=e.name,this.description=e.description,this.categoryId=e.categoryId,this.defaultEmailTemplateId=e.defaultEmailTemplateId,this.defaultEmailTemplate=e.defaultEmailTemplate?di.fromJS(e.defaultEmailTemplate):void 0,Array.isArray(e.emailTokens))){this.emailTokens=[];var t,i=Object(I.a)(e.emailTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emailTokens.push(hi.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).emailTypeId=this.emailTypeId,e.name=this.name,e.description=this.description,e.categoryId=this.categoryId,e.defaultEmailTemplateId=this.defaultEmailTemplateId,e.defaultEmailTemplate=this.defaultEmailTemplate?this.defaultEmailTemplate.toJSON():void 0,Array.isArray(this.emailTokens)){e.emailTokens=[];var t,i=Object(I.a)(this.emailTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emailTokens.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pi=function(){function e(t){if(Object(O.a)(this,e),this.emailTypeId=void 0,this.name=void 0,this.code=void 0,this.description=void 0,this.categoryId=void 0,this.defaultEmailTemplateId=void 0,this.defaultEmailTemplate=void 0,this.emailTokens=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.emailTypeId=e.emailTypeId,this.name=e.name,this.code=e.code,this.description=e.description,this.categoryId=e.categoryId,this.defaultEmailTemplateId=e.defaultEmailTemplateId,this.defaultEmailTemplate=e.defaultEmailTemplate?ui.fromJS(e.defaultEmailTemplate):void 0,Array.isArray(e.emailTokens))){this.emailTokens=[];var t,i=Object(I.a)(e.emailTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emailTokens.push(fi.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).emailTypeId=this.emailTypeId,e.name=this.name,e.code=this.code,e.description=this.description,e.categoryId=this.categoryId,e.defaultEmailTemplateId=this.defaultEmailTemplateId,e.defaultEmailTemplate=this.defaultEmailTemplate?this.defaultEmailTemplate.toJSON():void 0,Array.isArray(this.emailTokens)){e.emailTokens=[];var t,i=Object(I.a)(this.emailTokens);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emailTokens.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Direct_Email=1]="Direct_Email",e[e.Course_Update=2]="Course_Update",e[e.Course_Cancellation=3]="Course_Cancellation",e[e.Course_Invitation=4]="Course_Invitation",e[e.Course_Reminder=5]="Course_Reminder",e[e.Tentative_Registration_Confirmation=6]="Tentative_Registration_Confirmation",e[e.Tentative_Registration_Cancellation=7]="Tentative_Registration_Cancellation",e[e.Wait_list_Confirmation=8]="Wait_list_Confirmation",e[e.Wait_list_Registration=9]="Wait_list_Registration",e[e.Wait_list_Cancellation=10]="Wait_list_Cancellation",e[e.Registration_Confirmation=11]="Registration_Confirmation",e[e.Registration_Cancellation=12]="Registration_Cancellation",e[e.Compliance_Report=13]="Compliance_Report",e[e.Evaluation_Request=14]="Evaluation_Request",e[e.Transcript_Report=15]="Transcript_Report",e[e.Course_Announcement=16]="Course_Announcement",e[e.Certificate=17]="Certificate",e[e.Learning_Plan=18]="Learning_Plan",e[e.Compliance_Reminder=19]="Compliance_Reminder",e[e.Compliance_Due_to_Report=20]="Compliance_Due_to_Report",e[e.Compliance_Statement=21]="Compliance_Statement",e[e.Registration_Confirmation_Instructor=28]="Registration_Confirmation_Instructor",e[e.Learning_Plan_Add_Participant=29]="Learning_Plan_Add_Participant",e[e.Learning_Plan_Exclude_Participant=30]="Learning_Plan_Exclude_Participant",e[e.Learning_Plan_Include_Participant=31]="Learning_Plan_Include_Participant",e[e.Learning_Plan_Delete_Participant=32]="Learning_Plan_Delete_Participant",e[e.Learning_Plan_Reminder=33]="Learning_Plan_Reminder"}(ci||(ci={}));var mi;!function(e){e[e.Evaluate=1]="Evaluate",e[e.ViewEvaluation=2]="ViewEvaluation",e[e.NotApplicable=3]="NotApplicable"}(mi||(mi={}));var yi,bi,Si=function(){function e(t){if(Object(O.a)(this,e),this.app=void 0,this.hasAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.app=e.app?Jn.fromJS(e.app):void 0,this.hasAccess=e.hasAccess)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).app=this.app?this.app.toJSON():void 0,e.hasAccess=this.hasAccess,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gi=function(){function e(t){if(Object(O.a)(this,e),this.firmId=void 0,this.name=void 0,this.firmGroupId=void 0,this.locationId=void 0,this.address=void 0,this.telephone=void 0,this.fax=void 0,this.city=void 0,this.stateId=void 0,this.countryId=void 0,this.zipCode=void 0,this.renewalDate=void 0,this.language=void 0,this.dateFormat=void 0,this.timezone=void 0,this.logoUrl=void 0,this.thumbnailUrl=void 0,this.isLoginScreenEnabled=void 0,this.hasIdentityProviderEnabled=void 0,this.signInLabels=void 0,this.firmSettings=void 0,this.firmApplications=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.firmId=e.firmId,this.name=e.name,this.firmGroupId=e.firmGroupId,this.locationId=e.locationId,this.address=e.address,this.telephone=e.telephone,this.fax=e.fax,this.city=e.city,this.stateId=e.stateId,this.countryId=e.countryId,this.zipCode=e.zipCode,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.language=e.language,this.dateFormat=e.dateFormat,this.timezone=e.timezone,this.logoUrl=e.logoUrl,this.thumbnailUrl=e.thumbnailUrl,this.isLoginScreenEnabled=e.isLoginScreenEnabled,this.hasIdentityProviderEnabled=e.hasIdentityProviderEnabled,this.signInLabels=e.signInLabels,Array.isArray(e.firmSettings)){this.firmSettings=[];var t,i=Object(I.a)(e.firmSettings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.firmSettings.push(Ci.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.firmApplications)){this.firmApplications=[];var a,n=Object(I.a)(e.firmApplications);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.firmApplications.push(Si.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).firmId=this.firmId,e.name=this.name,e.firmGroupId=this.firmGroupId,e.locationId=this.locationId,e.address=this.address,e.telephone=this.telephone,e.fax=this.fax,e.city=this.city,e.stateId=this.stateId,e.countryId=this.countryId,e.zipCode=this.zipCode,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.language=this.language,e.dateFormat=this.dateFormat,e.timezone=this.timezone,e.logoUrl=this.logoUrl,e.thumbnailUrl=this.thumbnailUrl,e.isLoginScreenEnabled=this.isLoginScreenEnabled,e.hasIdentityProviderEnabled=this.hasIdentityProviderEnabled,e.signInLabels=this.signInLabels,Array.isArray(this.firmSettings)){e.firmSettings=[];var t,i=Object(I.a)(this.firmSettings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.firmSettings.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.firmApplications)){e.firmApplications=[];var a,n=Object(I.a)(this.firmApplications);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.firmApplications.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ii=function(){function e(t){if(Object(O.a)(this,e),this.firmLicenseId=void 0,this.licenseId=void 0,this.certificateId=void 0,this.certificate=void 0,this.reportingCycle=void 0,this.shouldShowAllPeriods=void 0,this.isAccreditedProvider=void 0,this.shouldAllowSearch=void 0,this.isEnabled=void 0,this.isFavorite=void 0,this.providerNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.firmLicenseId=e.firmLicenseId,this.licenseId=e.licenseId,this.certificateId=e.certificateId,this.certificate=e.certificate,this.reportingCycle=e.reportingCycle,this.shouldShowAllPeriods=e.shouldShowAllPeriods,this.isAccreditedProvider=e.isAccreditedProvider,this.shouldAllowSearch=e.shouldAllowSearch,this.isEnabled=e.isEnabled,this.isFavorite=e.isFavorite,this.providerNumber=e.providerNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmLicenseId=this.firmLicenseId,e.licenseId=this.licenseId,e.certificateId=this.certificateId,e.certificate=this.certificate,e.reportingCycle=this.reportingCycle,e.shouldShowAllPeriods=this.shouldShowAllPeriods,e.isAccreditedProvider=this.isAccreditedProvider,e.shouldAllowSearch=this.shouldAllowSearch,e.isEnabled=this.isEnabled,e.isFavorite=this.isFavorite,e.providerNumber=this.providerNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oi=function(){function e(t){if(Object(O.a)(this,e),this.headerText=void 0,this.logoUrl=void 0,this.isLoginScreenEnabled=void 0,this.signInLabels=void 0,this.industryId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.headerText=e.headerText,this.logoUrl=e.logoUrl,this.isLoginScreenEnabled=e.isLoginScreenEnabled,this.signInLabels=e.signInLabels,this.industryId=e.industryId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).headerText=this.headerText,e.logoUrl=this.logoUrl,e.isLoginScreenEnabled=this.isLoginScreenEnabled,e.signInLabels=this.signInLabels,e.industryId=this.industryId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ai=function(){function e(t){if(Object(O.a)(this,e),this.firmNotificationId=void 0,this.statement=void 0,this.dueToReport=void 0,this.reminder=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.firmNotificationId=e.firmNotificationId,this.statement=e.statement?gn.fromJS(e.statement):void 0,this.dueToReport=e.dueToReport?ni.fromJS(e.dueToReport):void 0,this.reminder=e.reminder?Ea.fromJS(e.reminder):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmNotificationId=this.firmNotificationId,e.statement=this.statement?this.statement.toJSON():void 0,e.dueToReport=this.dueToReport?this.dueToReport.toJSON():void 0,e.reminder=this.reminder?this.reminder.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ji=function(){function e(t){if(Object(O.a)(this,e),this.firmNotificationId=void 0,this.statement=void 0,this.dueToReport=void 0,this.reminder=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.firmNotificationId=e.firmNotificationId,this.statement=e.statement?In.fromJS(e.statement):void 0,this.dueToReport=e.dueToReport?si.fromJS(e.dueToReport):void 0,this.reminder=e.reminder?wa.fromJS(e.reminder):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmNotificationId=this.firmNotificationId,e.statement=this.statement?this.statement.toJSON():void 0,e.dueToReport=this.dueToReport?this.dueToReport.toJSON():void 0,e.reminder=this.reminder?this.reminder.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ci=function(){function e(t){if(Object(O.a)(this,e),this.key=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.key=e.key,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).key=this.key,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pi=function(){function e(t){if(Object(O.a)(this,e),this.firmSubjectAreaMappingId=void 0,this.firmLicenseSubjectAreaLinkId=void 0,this.subjectAreaCreditId=void 0,this.licenseId=void 0,this.licenseCreditId=void 0,this.isApprovalRequired=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.firmSubjectAreaMappingId=e.firmSubjectAreaMappingId,this.firmLicenseSubjectAreaLinkId=e.firmLicenseSubjectAreaLinkId,this.subjectAreaCreditId=e.subjectAreaCreditId,this.licenseId=e.licenseId,this.licenseCreditId=e.licenseCreditId,this.isApprovalRequired=e.isApprovalRequired)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmSubjectAreaMappingId=this.firmSubjectAreaMappingId,e.firmLicenseSubjectAreaLinkId=this.firmLicenseSubjectAreaLinkId,e.subjectAreaCreditId=this.subjectAreaCreditId,e.licenseId=this.licenseId,e.licenseCreditId=this.licenseCreditId,e.isApprovalRequired=this.isApprovalRequired,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ei=function(){function e(t){if(Object(O.a)(this,e),this.firmName=void 0,this.firmId=void 0,this.renewalDate=void 0,this.tenantGroupId=void 0,this.allUsers=void 0,this.allLearningPackages=void 0,this.activeLearningPackages=void 0,this.archivedLearningPackages=void 0,this.allAudios=void 0,this.activeAudios=void 0,this.archivedAudios=void 0,this.allVideos=void 0,this.activeVideos=void 0,this.archivedVideos=void 0,this.courses=void 0,this.activeEmployees=void 0,this.inactiveEmployees=void 0,this.activeEmployeesWithLicenses=void 0,this.inactiveEmployeesWithLicenses=void 0,this.activeEmployeesWithoutLicenses=void 0,this.inactiveStaffWithoutLicenses=void 0,this.activeClients=void 0,this.inactiveClients=void 0,this.activeClientsWithLicenses=void 0,this.inactiveClientsWithLicenses=void 0,this.activeClientsWithoutLicenses=void 0,this.inactiveClientsWithoutLicenses=void 0,this.activeAdministrators=void 0,this.inactiveAdministrators=void 0,this.activeAdministratorsWithLicenses=void 0,this.inactiveAdministratorsWithLicenses=void 0,this.activeAdministratorsWithoutLicenses=void 0,this.inactiveAdministratorsWithoutLicenses=void 0,this.activeEmployeesWithMandatoryLicenses=void 0,this.inactiveEmployeesWithMandatoryLicenses=void 0,this.activeClientsWithMandatoryLicenses=void 0,this.inactiveClientsWithMandatoryLicenses=void 0,this.activeAdministratorsWithMandatoryLicenses=void 0,this.inactiveAdministratorsWithMandatoryLicenses=void 0,this.activeEmployeesWithNonMandatoryLicenses=void 0,this.inactiveEmployeesWithNonMandatoryLicenses=void 0,this.activeStaffWithNonMandatoryLicenses=void 0,this.inactiveStaffWithNonMandatoryLicenses=void 0,this.activeClientsWithNonMandatoryLicenses=void 0,this.inactiveClientsWithNonMandatoryLicenses=void 0,this.activeAdministratorsWithNonMandatoryLicenses=void 0,this.inactiveAdministratorsWithNonMandatoryLicenses=void 0,this.activeEmployeesWithVideoAudioActivity=void 0,this.activeClientsWithVideoAudioActivity=void 0,this.activeAdministratorsWithVideoAudioActivity=void 0,this.activeEmployeesWithLearningPackageActivity=void 0,this.activeClientsWithLearningPackageActivity=void 0,this.activeAdministratorsWithLearningPackageActivity=void 0,this.users=void 0,this.files=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.firmName=e.firmName,this.firmId=e.firmId,this.renewalDate=e.renewalDate,this.tenantGroupId=e.tenantGroupId,this.allUsers=e.allUsers,this.allLearningPackages=e.allLearningPackages,this.activeLearningPackages=e.activeLearningPackages,this.archivedLearningPackages=e.archivedLearningPackages,this.allAudios=e.allAudios,this.activeAudios=e.activeAudios,this.archivedAudios=e.archivedAudios,this.allVideos=e.allVideos,this.activeVideos=e.activeVideos,this.archivedVideos=e.archivedVideos,this.courses=e.courses,this.activeEmployees=e.activeEmployees,this.inactiveEmployees=e.inactiveEmployees,this.activeEmployeesWithLicenses=e.activeEmployeesWithLicenses,this.inactiveEmployeesWithLicenses=e.inactiveEmployeesWithLicenses,this.activeEmployeesWithoutLicenses=e.activeEmployeesWithoutLicenses,this.inactiveStaffWithoutLicenses=e.inactiveStaffWithoutLicenses,this.activeClients=e.activeClients,this.inactiveClients=e.inactiveClients,this.activeClientsWithLicenses=e.activeClientsWithLicenses,this.inactiveClientsWithLicenses=e.inactiveClientsWithLicenses,this.activeClientsWithoutLicenses=e.activeClientsWithoutLicenses,this.inactiveClientsWithoutLicenses=e.inactiveClientsWithoutLicenses,this.activeAdministrators=e.activeAdministrators,this.inactiveAdministrators=e.inactiveAdministrators,this.activeAdministratorsWithLicenses=e.activeAdministratorsWithLicenses,this.inactiveAdministratorsWithLicenses=e.inactiveAdministratorsWithLicenses,this.activeAdministratorsWithoutLicenses=e.activeAdministratorsWithoutLicenses,this.inactiveAdministratorsWithoutLicenses=e.inactiveAdministratorsWithoutLicenses,this.activeEmployeesWithMandatoryLicenses=e.activeEmployeesWithMandatoryLicenses,this.inactiveEmployeesWithMandatoryLicenses=e.inactiveEmployeesWithMandatoryLicenses,this.activeClientsWithMandatoryLicenses=e.activeClientsWithMandatoryLicenses,this.inactiveClientsWithMandatoryLicenses=e.inactiveClientsWithMandatoryLicenses,this.activeAdministratorsWithMandatoryLicenses=e.activeAdministratorsWithMandatoryLicenses,this.inactiveAdministratorsWithMandatoryLicenses=e.inactiveAdministratorsWithMandatoryLicenses,this.activeEmployeesWithNonMandatoryLicenses=e.activeEmployeesWithNonMandatoryLicenses,this.inactiveEmployeesWithNonMandatoryLicenses=e.inactiveEmployeesWithNonMandatoryLicenses,this.activeStaffWithNonMandatoryLicenses=e.activeStaffWithNonMandatoryLicenses,this.inactiveStaffWithNonMandatoryLicenses=e.inactiveStaffWithNonMandatoryLicenses,this.activeClientsWithNonMandatoryLicenses=e.activeClientsWithNonMandatoryLicenses,this.inactiveClientsWithNonMandatoryLicenses=e.inactiveClientsWithNonMandatoryLicenses,this.activeAdministratorsWithNonMandatoryLicenses=e.activeAdministratorsWithNonMandatoryLicenses,this.inactiveAdministratorsWithNonMandatoryLicenses=e.inactiveAdministratorsWithNonMandatoryLicenses,this.activeEmployeesWithVideoAudioActivity=e.activeEmployeesWithVideoAudioActivity,this.activeClientsWithVideoAudioActivity=e.activeClientsWithVideoAudioActivity,this.activeAdministratorsWithVideoAudioActivity=e.activeAdministratorsWithVideoAudioActivity,this.activeEmployeesWithLearningPackageActivity=e.activeEmployeesWithLearningPackageActivity,this.activeClientsWithLearningPackageActivity=e.activeClientsWithLearningPackageActivity,this.activeAdministratorsWithLearningPackageActivity=e.activeAdministratorsWithLearningPackageActivity,Array.isArray(e.users)){this.users=[];var t,i=Object(I.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(Kn.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.files)){this.files=[];var a,n=Object(I.a)(e.files);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.files.push(Gr.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).firmName=this.firmName,e.firmId=this.firmId,e.renewalDate=this.renewalDate,e.tenantGroupId=this.tenantGroupId,e.allUsers=this.allUsers,e.allLearningPackages=this.allLearningPackages,e.activeLearningPackages=this.activeLearningPackages,e.archivedLearningPackages=this.archivedLearningPackages,e.allAudios=this.allAudios,e.activeAudios=this.activeAudios,e.archivedAudios=this.archivedAudios,e.allVideos=this.allVideos,e.activeVideos=this.activeVideos,e.archivedVideos=this.archivedVideos,e.courses=this.courses,e.activeEmployees=this.activeEmployees,e.inactiveEmployees=this.inactiveEmployees,e.activeEmployeesWithLicenses=this.activeEmployeesWithLicenses,e.inactiveEmployeesWithLicenses=this.inactiveEmployeesWithLicenses,e.activeEmployeesWithoutLicenses=this.activeEmployeesWithoutLicenses,e.inactiveStaffWithoutLicenses=this.inactiveStaffWithoutLicenses,e.activeClients=this.activeClients,e.inactiveClients=this.inactiveClients,e.activeClientsWithLicenses=this.activeClientsWithLicenses,e.inactiveClientsWithLicenses=this.inactiveClientsWithLicenses,e.activeClientsWithoutLicenses=this.activeClientsWithoutLicenses,e.inactiveClientsWithoutLicenses=this.inactiveClientsWithoutLicenses,e.activeAdministrators=this.activeAdministrators,e.inactiveAdministrators=this.inactiveAdministrators,e.activeAdministratorsWithLicenses=this.activeAdministratorsWithLicenses,e.inactiveAdministratorsWithLicenses=this.inactiveAdministratorsWithLicenses,e.activeAdministratorsWithoutLicenses=this.activeAdministratorsWithoutLicenses,e.inactiveAdministratorsWithoutLicenses=this.inactiveAdministratorsWithoutLicenses,e.activeEmployeesWithMandatoryLicenses=this.activeEmployeesWithMandatoryLicenses,e.inactiveEmployeesWithMandatoryLicenses=this.inactiveEmployeesWithMandatoryLicenses,e.activeClientsWithMandatoryLicenses=this.activeClientsWithMandatoryLicenses,e.inactiveClientsWithMandatoryLicenses=this.inactiveClientsWithMandatoryLicenses,e.activeAdministratorsWithMandatoryLicenses=this.activeAdministratorsWithMandatoryLicenses,e.inactiveAdministratorsWithMandatoryLicenses=this.inactiveAdministratorsWithMandatoryLicenses,e.activeEmployeesWithNonMandatoryLicenses=this.activeEmployeesWithNonMandatoryLicenses,e.inactiveEmployeesWithNonMandatoryLicenses=this.inactiveEmployeesWithNonMandatoryLicenses,e.activeStaffWithNonMandatoryLicenses=this.activeStaffWithNonMandatoryLicenses,e.inactiveStaffWithNonMandatoryLicenses=this.inactiveStaffWithNonMandatoryLicenses,e.activeClientsWithNonMandatoryLicenses=this.activeClientsWithNonMandatoryLicenses,e.inactiveClientsWithNonMandatoryLicenses=this.inactiveClientsWithNonMandatoryLicenses,e.activeAdministratorsWithNonMandatoryLicenses=this.activeAdministratorsWithNonMandatoryLicenses,e.inactiveAdministratorsWithNonMandatoryLicenses=this.inactiveAdministratorsWithNonMandatoryLicenses,e.activeEmployeesWithVideoAudioActivity=this.activeEmployeesWithVideoAudioActivity,e.activeClientsWithVideoAudioActivity=this.activeClientsWithVideoAudioActivity,e.activeAdministratorsWithVideoAudioActivity=this.activeAdministratorsWithVideoAudioActivity,e.activeEmployeesWithLearningPackageActivity=this.activeEmployeesWithLearningPackageActivity,e.activeClientsWithLearningPackageActivity=this.activeClientsWithLearningPackageActivity,e.activeAdministratorsWithLearningPackageActivity=this.activeAdministratorsWithLearningPackageActivity,Array.isArray(this.users)){e.users=[];var t,i=Object(I.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.files)){e.files=[];var a,n=Object(I.a)(this.files);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.files.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wi=function(){function e(t){if(Object(O.a)(this,e),this.genderId=void 0,this.name=void 0,this.code=void 0,this.isActive=void 0,this.userCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.genderId=e.genderId,this.name=e.name,this.code=e.code,this.isActive=e.isActive,this.userCount=e.userCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).genderId=this.genderId,e.name=this.name,e.code=this.code,e.isActive=this.isActive,e.userCount=this.userCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ki=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ti=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ni=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ji=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var t,i=Object(I.a)(e.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteria.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(I.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.exemptedIds.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var o,c=Object(I.a)(e.includeIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.includeIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var d,u=Object(I.a)(e.filterBy);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.filterBy.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var t,i=Object(I.a)(this.searchCriteria);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteria.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(I.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.exemptedIds.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var o,c=Object(I.a)(this.includeIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.includeIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var d,u=Object(I.a)(this.filterBy);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.filterBy.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Di=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.isFromSettings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}this.isFromSettings=e.isFromSettings}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e.isFromSettings=this.isFromSettings,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Li=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.exemptedIds=void 0,this.includeIds=void 0,this.sortBy=void 0,this.searchCriteria=void 0,this.filterBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,Array.isArray(e.exemptedIds)){this.exemptedIds=[];var t,i=Object(I.a)(e.exemptedIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.exemptedIds.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var a,n=Object(I.a)(e.includeIds);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.includeIds.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(this.sortBy=e.sortBy,Array.isArray(e.searchCriteria)){this.searchCriteria=[];var o,c=Object(I.a)(e.searchCriteria);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.searchCriteria.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.filterBy)){this.filterBy=[];var d,u=Object(I.a)(e.filterBy);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.filterBy.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,Array.isArray(this.exemptedIds)){e.exemptedIds=[];var t,i=Object(I.a)(this.exemptedIds);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.exemptedIds.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var a,n=Object(I.a)(this.includeIds);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.includeIds.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(e.sortBy=this.sortBy,Array.isArray(this.searchCriteria)){e.searchCriteria=[];var o,c=Object(I.a)(this.searchCriteria);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.searchCriteria.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.filterBy)){e.filterBy=[];var d,u=Object(I.a)(this.filterBy);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.filterBy.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ui=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ri=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xi=function(){function e(t){if(Object(O.a)(this,e),this.subjectAreaCreditId=void 0,this.licenseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.subjectAreaCreditId)){this.subjectAreaCreditId=[];var t,i=Object(I.a)(e.subjectAreaCreditId);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subjectAreaCreditId.push(r)}}catch(a){i.e(a)}finally{i.f()}}this.licenseId=e.licenseId}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.subjectAreaCreditId)){e.subjectAreaCreditId=[];var t,i=Object(I.a)(this.subjectAreaCreditId);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subjectAreaCreditId.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e.licenseId=this.licenseId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Days=1]="Days",e[e.Weeks=2]="Weeks",e[e.Months=3]="Months"}(yi||(yi={})),function(e){e[e.CalendarBased=1]="CalendarBased",e[e.TimeToComplete=2]="TimeToComplete",e[e.NoneSpecified=3]="NoneSpecified"}(bi||(bi={}));var Fi,Mi=function(){function e(t){if(Object(O.a)(this,e),this.activityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gi=function(){function e(t){if(Object(O.a)(this,e),this.courseId=void 0,this.displayOrder=void 0,this.name=void 0,this.type=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.displayOrder=e.displayOrder,this.name=e.name,this.type=e.type,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.displayOrder=this.displayOrder,e.name=this.name,e.type=this.type,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bi=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.type=void 0,this.startDate=void 0,this.endDate=void 0,this.createdDate=void 0,this.lastModifiedDate=void 0,this.completedDate=void 0,this.timeframeOfCompletion=void 0,this.timeframOfCompletionId=void 0,this.duration=void 0,this.durationType=void 0,this.durationTypeId=void 0,this.requiredCourses=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.incompleteCount=void 0,this.isIncluded=void 0,this.status=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.type=e.type,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,this.timeframeOfCompletion=e.timeframeOfCompletion,this.timeframOfCompletionId=e.timeframOfCompletionId,this.duration=e.duration,this.durationType=e.durationType,this.durationTypeId=e.durationTypeId,this.requiredCourses=e.requiredCourses,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.incompleteCount=e.incompleteCount,this.isIncluded=e.isIncluded,this.status=e.status,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(I.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(Gi.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var a,n=Object(I.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.learningPlanActivities.push(Mi.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.type=this.type,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,e.timeframeOfCompletion=this.timeframeOfCompletion,e.timeframOfCompletionId=this.timeframOfCompletionId,e.duration=this.duration,e.durationType=this.durationType,e.durationTypeId=this.durationTypeId,e.requiredCourses=this.requiredCourses,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.incompleteCount=this.incompleteCount,e.isIncluded=this.isIncluded,e.status=this.status,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(I.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var a,n=Object(I.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.learningPlanActivities.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qi=function(){function e(t){if(Object(O.a)(this,e),this.learningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlans)){this.learningPlans=[];var t,i=Object(I.a)(e.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlans.push(Bi.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlans)){e.learningPlans=[];var t,i=Object(I.a)(this.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlans.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vi=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.title=void 0,this.status=void 0,this.isIncluded=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.title=e.title,this.status=e.status,this.isIncluded=e.isIncluded,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(I.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(Gi.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var a,n=Object(I.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.learningPlanActivities.push(Mi.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.title=this.title,e.status=this.status,e.isIncluded=this.isIncluded,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(I.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var a,n=Object(I.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.learningPlanActivities.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wi=function(){function e(t){if(Object(O.a)(this,e),this.userLearningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLearningPlans)){this.userLearningPlans=[];var t,i=Object(I.a)(e.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLearningPlans.push(Vi.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLearningPlans)){e.userLearningPlans=[];var t,i=Object(I.a)(this.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLearningPlans.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zi=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanParticipantId=void 0,this.learningPlanId=void 0,this.requirementId=void 0,this.courseTitle=void 0,this.specificRequirementId=void 0,this.requirementType=void 0,this.name=void 0,this.startDate=void 0,this.endDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanParticipantId=e.learningPlanParticipantId,this.learningPlanId=e.learningPlanId,this.requirementId=e.requirementId,this.courseTitle=e.courseTitle,this.specificRequirementId=e.specificRequirementId,this.requirementType=e.requirementType,this.name=e.name,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanParticipantId=this.learningPlanParticipantId,e.learningPlanId=this.learningPlanId,e.requirementId=this.requirementId,e.courseTitle=this.courseTitle,e.specificRequirementId=this.specificRequirementId,e.requirementType=this.requirementType,e.name=this.name,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hi=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanParticipantRequirements=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlanParticipantRequirements)){this.learningPlanParticipantRequirements=[];var t,i=Object(I.a)(e.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanParticipantRequirements.push(zi.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlanParticipantRequirements)){e.learningPlanParticipantRequirements=[];var t,i=Object(I.a)(this.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanParticipantRequirements.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$i=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseCompliancePeriods=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLicenseCompliancePeriods)){this.userLicenseCompliancePeriods=[];var t,i=Object(I.a)(e.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCompliancePeriods.push(_i.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLicenseCompliancePeriods)){e.userLicenseCompliancePeriods=[];var t,i=Object(I.a)(this.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCompliancePeriods.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_i=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodToDisplay=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,this.renewalDate=void 0,this.userSubLicenseCompliancePeriod=void 0,this.industry=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.userSubLicenseCompliancePeriod=e.userSubLicenseCompliancePeriod?Yi.fromJS(e.userSubLicenseCompliancePeriod):void 0,this.industry=e.industry)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.userSubLicenseCompliancePeriod=this.userSubLicenseCompliancePeriod?this.userSubLicenseCompliancePeriod.toJSON():void 0,e.industry=this.industry,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yi=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodToDisplay=void 0,this.parentLicenseId=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.parentLicenseId=e.parentLicenseId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.parentLicenseId=this.parentLicenseId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qi=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.courseId=void 0,this.title=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.isValidated=void 0,this.shouldDisplayDateRange=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.courseId=e.courseId,this.title=e.title,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.isValidated=e.isValidated,this.shouldDisplayDateRange=e.shouldDisplayDateRange)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.courseId=this.courseId,e.title=this.title,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.isValidated=this.isValidated,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ki=function(){function e(t){if(Object(O.a)(this,e),this.userTranscripts=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(I.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(Qi.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(I.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Insert=1]="Insert",e[e.Update=2]="Update",e[e.Exclude=3]="Exclude",e[e.Error=4]="Error"}(Fi||(Fi={}));var Zi;!function(e){e[e.Configuring=0]="Configuring",e[e.Scheduled=1]="Scheduled",e[e.Processing=2]="Processing",e[e.PartiallySuccessful=3]="PartiallySuccessful",e[e.Success=4]="Success",e[e.Error=5]="Error",e[e.Skipped=6]="Skipped"}(Zi||(Zi={}));var Xi,er,tr=function(){function e(t){if(Object(O.a)(this,e),this.integrationId=void 0,this.name=void 0,this.description=void 0,this.url=void 0,this.logo=void 0,this.isEnabled=void 0,this.isVisible=void 0,this.allowManualRun=void 0,this.allowSchedule=void 0,this.allowEdit=void 0,this.schedule=void 0,this.timezoneId=void 0,this.timezone=void 0,this.recurrence=void 0,this.nextOccurrence=void 0,this.tags=void 0,this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.integrationId=e.integrationId,this.name=e.name,this.description=e.description,this.url=e.url,this.logo=e.logo,this.isEnabled=e.isEnabled,this.isVisible=e.isVisible,this.allowManualRun=e.allowManualRun,this.allowSchedule=e.allowSchedule,this.allowEdit=e.allowEdit,this.schedule=e.schedule,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Dn.fromJS(e.timezone):void 0,this.recurrence=e.recurrence,this.nextOccurrence=e.nextOccurrence?new Date(e.nextOccurrence.toString()):void 0,Array.isArray(e.tags)){this.tags=[];var t,i=Object(I.a)(e.tags);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tags.push(pr.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.settings)){this.settings=[];var a,n=Object(I.a)(e.settings);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.settings.push(vr.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).integrationId=this.integrationId,e.name=this.name,e.description=this.description,e.url=this.url,e.logo=this.logo,e.isEnabled=this.isEnabled,e.isVisible=this.isVisible,e.allowManualRun=this.allowManualRun,e.allowSchedule=this.allowSchedule,e.allowEdit=this.allowEdit,e.schedule=this.schedule,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,e.recurrence=this.recurrence,e.nextOccurrence=this.nextOccurrence?this.nextOccurrence.toISOString():void 0,Array.isArray(this.tags)){e.tags=[];var t,i=Object(I.a)(this.tags);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tags.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.settings)){e.settings=[];var a,n=Object(I.a)(this.settings);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.settings.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ir=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobAttendeeId=void 0,this.integrationJobId=void 0,this.integration=void 0,this.userId=void 0,this.name=void 0,this.email=void 0,this.details=void 0,this.status=void 0,this.courseId=void 0,this.courseTitle=void 0,this.sessionId=void 0,this.completedDate=void 0,this.transactionDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.integrationJobAttendeeId=e.integrationJobAttendeeId,this.integrationJobId=e.integrationJobId,this.integration=e.integration,this.userId=e.userId,this.name=e.name,this.email=e.email,this.details=e.details,this.status=e.status,this.courseId=e.courseId,this.courseTitle=e.courseTitle,this.sessionId=e.sessionId,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,this.transactionDate=e.transactionDate?new Date(e.transactionDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationJobAttendeeId=this.integrationJobAttendeeId,e.integrationJobId=this.integrationJobId,e.integration=this.integration,e.userId=this.userId,e.name=this.name,e.email=this.email,e.details=this.details,e.status=this.status,e.courseId=this.courseId,e.courseTitle=this.courseTitle,e.sessionId=this.sessionId,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,e.transactionDate=this.transactionDate?this.transactionDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rr=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobAttendees=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.integrationJobAttendees)){this.integrationJobAttendees=[];var t,i=Object(I.a)(e.integrationJobAttendees);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrationJobAttendees.push(ir.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrationJobAttendees)){e.integrationJobAttendees=[];var t,i=Object(I.a)(this.integrationJobAttendees);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrationJobAttendees.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ar=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobCourseId=void 0,this.details=void 0,this.status=void 0,this.createdDate=void 0,this.courseId=void 0,this.course=void 0,this.title=void 0,this.integrationJobId=void 0,this.integrationJob=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.integrationJobCourseId=e.integrationJobCourseId,this.details=e.details,this.status=e.status,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.courseId=e.courseId,this.course=e.course?$t.fromJS(e.course):void 0,this.title=e.title,this.integrationJobId=e.integrationJobId,this.integrationJob=e.integrationJob?sr.fromJS(e.integrationJob):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationJobCourseId=this.integrationJobCourseId,e.details=this.details,e.status=this.status,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.courseId=this.courseId,e.course=this.course?this.course.toJSON():void 0,e.title=this.title,e.integrationJobId=this.integrationJobId,e.integrationJob=this.integrationJob?this.integrationJob.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nr=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobCourses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.integrationJobCourses)){this.integrationJobCourses=[];var t,i=Object(I.a)(e.integrationJobCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrationJobCourses.push(ar.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrationJobCourses)){e.integrationJobCourses=[];var t,i=Object(I.a)(this.integrationJobCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrationJobCourses.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sr=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobId=void 0,this.title=void 0,this.message=void 0,this.status=void 0,this.isManual=void 0,this.isArchive=void 0,this.startDateTime=void 0,this.endDateTime=void 0,this.duration=void 0,this.integrationId=void 0,this.integration=void 0,this.logs=void 0,this.files=void 0,this.courses=void 0,this.attendees=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.integrationJobId=e.integrationJobId,this.title=e.title,this.message=e.message,this.status=e.status,this.isManual=e.isManual,this.isArchive=e.isArchive,this.startDateTime=e.startDateTime?new Date(e.startDateTime.toString()):void 0,this.endDateTime=e.endDateTime?new Date(e.endDateTime.toString()):void 0,this.duration=e.duration,this.integrationId=e.integrationId,this.integration=e.integration?tr.fromJS(e.integration):void 0,Array.isArray(e.logs)){this.logs=[];var t,i=Object(I.a)(e.logs);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.logs.push(hr.fromJS(r))}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.files)){this.files=[];var a,n=Object(I.a)(e.files);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.files.push(or.fromJS(s))}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.courses)){this.courses=[];var o,c=Object(I.a)(e.courses);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.courses.push(ar.fromJS(l))}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.attendees)){this.attendees=[];var d,u=Object(I.a)(e.attendees);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.attendees.push(ir.fromJS(h))}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).integrationJobId=this.integrationJobId,e.title=this.title,e.message=this.message,e.status=this.status,e.isManual=this.isManual,e.isArchive=this.isArchive,e.startDateTime=this.startDateTime?this.startDateTime.toISOString():void 0,e.endDateTime=this.endDateTime?this.endDateTime.toISOString():void 0,e.duration=this.duration,e.integrationId=this.integrationId,e.integration=this.integration?this.integration.toJSON():void 0,Array.isArray(this.logs)){e.logs=[];var t,i=Object(I.a)(this.logs);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.logs.push(r.toJSON())}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.files)){e.files=[];var a,n=Object(I.a)(this.files);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.files.push(s.toJSON())}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.courses)){e.courses=[];var o,c=Object(I.a)(this.courses);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.courses.push(l.toJSON())}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.attendees)){e.attendees=[];var d,u=Object(I.a)(this.attendees);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.attendees.push(h.toJSON())}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),or=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobFileId=void 0,this.integrationJobId=void 0,this.key=void 0,this.url=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.integrationJobFileId=e.integrationJobFileId,this.integrationJobId=e.integrationJobId,this.key=e.key,this.url=e.url)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationJobFileId=this.integrationJobFileId,e.integrationJobId=this.integrationJobId,e.key=this.key,e.url=this.url,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cr=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobs=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.integrationJobs)){this.integrationJobs=[];var t,i=Object(I.a)(e.integrationJobs);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrationJobs.push(sr.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrationJobs)){e.integrationJobs=[];var t,i=Object(I.a)(this.integrationJobs);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrationJobs.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lr=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobSessionId=void 0,this.status=void 0,this.title=void 0,this.details=void 0,this.createdDate=void 0,this.sessionId=void 0,this.integrationJobId=void 0,this.integrationJob=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.integrationJobSessionId=e.integrationJobSessionId,this.status=e.status,this.title=e.title,this.details=e.details,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.sessionId=e.sessionId,this.integrationJobId=e.integrationJobId,this.integrationJob=e.integrationJob?sr.fromJS(e.integrationJob):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationJobSessionId=this.integrationJobSessionId,e.status=this.status,e.title=this.title,e.details=this.details,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.sessionId=this.sessionId,e.integrationJobId=this.integrationJobId,e.integrationJob=this.integrationJob?this.integrationJob.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dr=function(){function e(t){if(Object(O.a)(this,e),this.sessions=void 0,this.attendees=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.sessions)){this.sessions=[];var t,i=Object(I.a)(e.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessions.push(lr.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.attendees)){this.attendees=[];var a,n=Object(I.a)(e.attendees);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.attendees.push(ir.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.sessions)){e.sessions=[];var t,i=Object(I.a)(this.sessions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessions.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.attendees)){e.attendees=[];var a,n=Object(I.a)(this.attendees);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.attendees.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ur=function(){function e(t){if(Object(O.a)(this,e),this.integrations=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.integrations)){this.integrations=[];var t,i=Object(I.a)(e.integrations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrations.push(tr.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrations)){e.integrations=[];var t,i=Object(I.a)(this.integrations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrations.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hr=function(){function e(t){if(Object(O.a)(this,e),this.integrationJobId=void 0,this.integrationLogId=void 0,this.message=void 0,this.details=void 0,this.createdDate=void 0,this.duration=void 0,this.isError=void 0,this.parentId=void 0,this.children=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(t){if(t&&(this.integrationJobId=t.integrationJobId,this.integrationLogId=t.integrationLogId,this.message=t.message,this.details=t.details,this.createdDate=t.createdDate?new Date(t.createdDate.toString()):void 0,this.duration=t.duration,this.isError=t.isError,this.parentId=t.parentId,Array.isArray(t.children))){this.children=[];var i,r=Object(I.a)(t.children);try{for(r.s();!(i=r.n()).done;){var a=i.value;this.children.push(e.fromJS(a))}}catch(n){r.e(n)}finally{r.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).integrationJobId=this.integrationJobId,e.integrationLogId=this.integrationLogId,e.message=this.message,e.details=this.details,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.duration=this.duration,e.isError=this.isError,e.parentId=this.parentId,Array.isArray(this.children)){e.children=[];var t,i=Object(I.a)(this.children);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.children.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fr=function(){function e(t){if(Object(O.a)(this,e),this.integrationLogs=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.integrationLogs)){this.integrationLogs=[];var t,i=Object(I.a)(e.integrationLogs);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrationLogs.push(hr.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.integrationLogs)){e.integrationLogs=[];var t,i=Object(I.a)(this.integrationLogs);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrationLogs.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vr=function(){function e(t){if(Object(O.a)(this,e),this.integrationSettingId=void 0,this.key=void 0,this.name=void 0,this.value=void 0,this.type=void 0,this.validation=void 0,this.isEditable=void 0,this.isVisible=void 0,this.integrationId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.integrationSettingId=e.integrationSettingId,this.key=e.key,this.name=e.name,this.value=e.value,this.type=e.type,this.validation=e.validation,this.isEditable=e.isEditable,this.isVisible=e.isVisible,this.integrationId=e.integrationId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationSettingId=this.integrationSettingId,e.key=this.key,e.name=this.name,e.value=this.value,e.type=this.type,e.validation=this.validation,e.isEditable=this.isEditable,e.isVisible=this.isVisible,e.integrationId=this.integrationId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pr=function(){function e(t){if(Object(O.a)(this,e),this.integrationTagId=void 0,this.name=void 0,this.integrationId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.integrationTagId=e.integrationTagId,this.name=e.name,this.integrationId=e.integrationId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationTagId=this.integrationTagId,e.name=this.name,e.integrationId=this.integrationId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Days=1]="Days",e[e.Weeks=2]="Weeks",e[e.Months=3]="Months"}(Xi||(Xi={})),function(e){e[e.CalendarBased=1]="CalendarBased",e[e.TimeToComplete=2]="TimeToComplete",e[e.NoneSpecified=3]="NoneSpecified"}(er||(er={}));var mr,yr=function(){function e(t){if(Object(O.a)(this,e),this.activityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),br=function(){function e(t){if(Object(O.a)(this,e),this.courseId=void 0,this.displayOrder=void 0,this.name=void 0,this.type=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.displayOrder=e.displayOrder,this.name=e.name,this.type=e.type,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.displayOrder=this.displayOrder,e.name=this.name,e.type=this.type,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sr=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.description=void 0,this.type=void 0,this.startDate=void 0,this.endDate=void 0,this.createdDate=void 0,this.lastModifiedDate=void 0,this.completedDate=void 0,this.timeframeOfCompletion=void 0,this.timeframOfCompletionId=void 0,this.duration=void 0,this.durationType=void 0,this.durationTypeId=void 0,this.requiredCourses=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.incompleteCount=void 0,this.isIncluded=void 0,this.status=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.title=e.title,this.description=e.description,this.type=e.type,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,this.timeframeOfCompletion=e.timeframeOfCompletion,this.timeframOfCompletionId=e.timeframOfCompletionId,this.duration=e.duration,this.durationType=e.durationType,this.durationTypeId=e.durationTypeId,this.requiredCourses=e.requiredCourses,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.incompleteCount=e.incompleteCount,this.isIncluded=e.isIncluded,this.status=e.status,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(I.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(br.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var a,n=Object(I.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.learningPlanActivities.push(yr.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.description=this.description,e.type=this.type,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,e.timeframeOfCompletion=this.timeframeOfCompletion,e.timeframOfCompletionId=this.timeframOfCompletionId,e.duration=this.duration,e.durationType=this.durationType,e.durationTypeId=this.durationTypeId,e.requiredCourses=this.requiredCourses,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.incompleteCount=this.incompleteCount,e.isIncluded=this.isIncluded,e.status=this.status,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(I.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var a,n=Object(I.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.learningPlanActivities.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gr=function(){function e(t){if(Object(O.a)(this,e),this.learningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlans)){this.learningPlans=[];var t,i=Object(I.a)(e.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlans.push(Sr.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlans)){e.learningPlans=[];var t,i=Object(I.a)(this.learningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlans.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ir=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.title=void 0,this.status=void 0,this.isIncluded=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.title=e.title,this.status=e.status,this.isIncluded=e.isIncluded,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(I.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(br.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var a,n=Object(I.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.learningPlanActivities.push(yr.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.title=this.title,e.status=this.status,e.isIncluded=this.isIncluded,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(I.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var a,n=Object(I.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.learningPlanActivities.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Or=function(){function e(t){if(Object(O.a)(this,e),this.userLearningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLearningPlans)){this.userLearningPlans=[];var t,i=Object(I.a)(e.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLearningPlans.push(Ir.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLearningPlans)){e.userLearningPlans=[];var t,i=Object(I.a)(this.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLearningPlans.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ar=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanParticipantId=void 0,this.learningPlanId=void 0,this.requirementId=void 0,this.courseTitle=void 0,this.specificRequirementId=void 0,this.requirementType=void 0,this.name=void 0,this.startDate=void 0,this.endDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanParticipantId=e.learningPlanParticipantId,this.learningPlanId=e.learningPlanId,this.requirementId=e.requirementId,this.courseTitle=e.courseTitle,this.specificRequirementId=e.specificRequirementId,this.requirementType=e.requirementType,this.name=e.name,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanParticipantId=this.learningPlanParticipantId,e.learningPlanId=this.learningPlanId,e.requirementId=this.requirementId,e.courseTitle=this.courseTitle,e.specificRequirementId=this.specificRequirementId,e.requirementType=this.requirementType,e.name=this.name,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jr=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanParticipantRequirements=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.learningPlanParticipantRequirements)){this.learningPlanParticipantRequirements=[];var t,i=Object(I.a)(e.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanParticipantRequirements.push(Ar.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.learningPlanParticipantRequirements)){e.learningPlanParticipantRequirements=[];var t,i=Object(I.a)(this.learningPlanParticipantRequirements);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanParticipantRequirements.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cr=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseCompliancePeriods=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLicenseCompliancePeriods)){this.userLicenseCompliancePeriods=[];var t,i=Object(I.a)(e.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCompliancePeriods.push(Pr.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLicenseCompliancePeriods)){e.userLicenseCompliancePeriods=[];var t,i=Object(I.a)(this.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCompliancePeriods.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pr=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodToDisplay=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,this.renewalDate=void 0,this.userSubLicenseCompliancePeriod=void 0,this.industry=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.userSubLicenseCompliancePeriod=e.userSubLicenseCompliancePeriod?Er.fromJS(e.userSubLicenseCompliancePeriod):void 0,this.industry=e.industry)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.userSubLicenseCompliancePeriod=this.userSubLicenseCompliancePeriod?this.userSubLicenseCompliancePeriod.toJSON():void 0,e.industry=this.industry,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Er=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodToDisplay=void 0,this.parentLicenseId=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.parentLicenseId=e.parentLicenseId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.parentLicenseId=this.parentLicenseId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wr=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.courseId=void 0,this.title=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.isValidated=void 0,this.shouldDisplayDateRange=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.courseId=e.courseId,this.title=e.title,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.isValidated=e.isValidated,this.shouldDisplayDateRange=e.shouldDisplayDateRange)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.courseId=this.courseId,e.title=this.title,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.isValidated=this.isValidated,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kr=function(){function e(t){if(Object(O.a)(this,e),this.userTranscripts=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(I.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(wr.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(I.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tr=function(){function e(t){if(Object(O.a)(this,e),this.competencyId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.competencyId=e.competencyId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).competencyId=this.competencyId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nr=function(){function e(t){if(Object(O.a)(this,e),this.courseId=void 0,this.name=void 0,this.displayOrder=void 0,this.type=void 0,this.prerequisiteOf=void 0,this.prerequisiteCount=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.name=e.name,this.displayOrder=e.displayOrder,this.type=e.type,this.prerequisiteOf=e.prerequisiteOf,this.prerequisiteCount=e.prerequisiteCount,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.name=this.name,e.displayOrder=this.displayOrder,e.type=this.type,e.prerequisiteOf=this.prerequisiteOf,e.prerequisiteCount=this.prerequisiteCount,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jr=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanMaterialId=void 0,this.learningPlanId=void 0,this.fileId=void 0,this.isPublic=void 0,this.libraryFile=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanMaterialId=e.learningPlanMaterialId,this.learningPlanId=e.learningPlanId,this.fileId=e.fileId,this.isPublic=e.isPublic,this.libraryFile=e.libraryFile?Gr.fromJS(e.libraryFile):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanMaterialId=this.learningPlanMaterialId,e.learningPlanId=this.learningPlanId,e.fileId=this.fileId,e.isPublic=this.isPublic,e.libraryFile=this.libraryFile?this.libraryFile.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dr=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanParticipantId=void 0,this.learningPlanId=void 0,this.requirementId=void 0,this.courseTitle=void 0,this.specificRequirementId=void 0,this.requirementType=void 0,this.name=void 0,this.startDate=void 0,this.endDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanParticipantId=e.learningPlanParticipantId,this.learningPlanId=e.learningPlanId,this.requirementId=e.requirementId,this.courseTitle=e.courseTitle,this.specificRequirementId=e.specificRequirementId,this.requirementType=e.requirementType,this.name=e.name,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanParticipantId=this.learningPlanParticipantId,e.learningPlanId=this.learningPlanId,e.requirementId=this.requirementId,e.courseTitle=this.courseTitle,e.specificRequirementId=this.specificRequirementId,e.requirementType=this.requirementType,e.name=this.name,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.PastDue=3]="PastDue",e[e.Excluded=4]="Excluded"}(mr||(mr={}));var Lr,Ur=function(){function e(t){if(Object(O.a)(this,e),this.tagId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.tagId=e.tagId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tagId=this.tagId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.CalendarBased=1]="CalendarBased",e[e.TimeToComplete=2]="TimeToComplete",e[e.NoneSpecified=3]="NoneSpecified"}(Lr||(Lr={}));var Rr;!function(e){e[e.OpenToClients=1]="OpenToClients",e[e.AllowSendEval=2]="AllowSendEval",e[e.AllowTentativeReg=3]="AllowTentativeReg"}(Rr||(Rr={}));var xr,Fr=function(){function e(t){if(Object(O.a)(this,e),this.affiliationId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.affiliationId=e.affiliationId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).affiliationId=this.affiliationId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mr=function(){function e(t){if(Object(O.a)(this,e),this.departmentId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gr=function(){function e(t){if(Object(O.a)(this,e),this.fileId=void 0,this.type=void 0,this.title=void 0,this.name=void 0,this.shortDescription=void 0,this.description=void 0,this.isActive=void 0,this.isAttendanceSheet=void 0,this.archivedDate=void 0,this.url=void 0,this.access=void 0,this.key=void 0,this.extension=void 0,this.size=void 0,this.duration=void 0,this.createdDate=void 0,this.scormCourseId=void 0,this.status=void 0,this.learningPlanCount=void 0,this.sessionMaterialCount=void 0,this.sessionMediaFileCount=void 0,this.scormType=void 0,this.libraryFileAffiliations=void 0,this.libraryFileDepartments=void 0,this.libraryFileLevels=void 0,this.libraryFileLocations=void 0,this.libraryFilePositions=void 0,this.libraryFilePracticeAreas=void 0,this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.fileId=e.fileId,this.type=e.type,this.title=e.title,this.name=e.name,this.shortDescription=e.shortDescription,this.description=e.description,this.isActive=e.isActive,this.isAttendanceSheet=e.isAttendanceSheet,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,this.url=e.url,this.access=e.access,this.key=e.key,this.extension=e.extension,this.size=e.size,this.duration=e.duration,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.scormCourseId=e.scormCourseId,this.status=e.status,this.learningPlanCount=e.learningPlanCount,this.sessionMaterialCount=e.sessionMaterialCount,this.sessionMediaFileCount=e.sessionMediaFileCount,this.scormType=e.scormType,Array.isArray(e.libraryFileAffiliations)){this.libraryFileAffiliations=[];var t,i=Object(I.a)(e.libraryFileAffiliations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.libraryFileAffiliations.push(Fr.fromJS(r))}}catch(A){i.e(A)}finally{i.f()}}if(Array.isArray(e.libraryFileDepartments)){this.libraryFileDepartments=[];var a,n=Object(I.a)(e.libraryFileDepartments);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.libraryFileDepartments.push(Mr.fromJS(s))}}catch(A){n.e(A)}finally{n.f()}}if(Array.isArray(e.libraryFileLevels)){this.libraryFileLevels=[];var o,c=Object(I.a)(e.libraryFileLevels);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.libraryFileLevels.push(Br.fromJS(l))}}catch(A){c.e(A)}finally{c.f()}}if(Array.isArray(e.libraryFileLocations)){this.libraryFileLocations=[];var d,u=Object(I.a)(e.libraryFileLocations);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.libraryFileLocations.push(qr.fromJS(h))}}catch(A){u.e(A)}finally{u.f()}}if(Array.isArray(e.libraryFilePositions)){this.libraryFilePositions=[];var f,v=Object(I.a)(e.libraryFilePositions);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.libraryFilePositions.push(Vr.fromJS(p))}}catch(A){v.e(A)}finally{v.f()}}if(Array.isArray(e.libraryFilePracticeAreas)){this.libraryFilePracticeAreas=[];var m,y=Object(I.a)(e.libraryFilePracticeAreas);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.libraryFilePracticeAreas.push(Wr.fromJS(b))}}catch(A){y.e(A)}finally{y.f()}}if(Array.isArray(e.settings)){this.settings=[];var S,g=Object(I.a)(e.settings);try{for(g.s();!(S=g.n()).done;){var O=S.value;this.settings.push(zr.fromJS(O))}}catch(A){g.e(A)}finally{g.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).fileId=this.fileId,e.type=this.type,e.title=this.title,e.name=this.name,e.shortDescription=this.shortDescription,e.description=this.description,e.isActive=this.isActive,e.isAttendanceSheet=this.isAttendanceSheet,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e.url=this.url,e.access=this.access,e.key=this.key,e.extension=this.extension,e.size=this.size,e.duration=this.duration,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.scormCourseId=this.scormCourseId,e.status=this.status,e.learningPlanCount=this.learningPlanCount,e.sessionMaterialCount=this.sessionMaterialCount,e.sessionMediaFileCount=this.sessionMediaFileCount,e.scormType=this.scormType,Array.isArray(this.libraryFileAffiliations)){e.libraryFileAffiliations=[];var t,i=Object(I.a)(this.libraryFileAffiliations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.libraryFileAffiliations.push(r.toJSON())}}catch(A){i.e(A)}finally{i.f()}}if(Array.isArray(this.libraryFileDepartments)){e.libraryFileDepartments=[];var a,n=Object(I.a)(this.libraryFileDepartments);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.libraryFileDepartments.push(s.toJSON())}}catch(A){n.e(A)}finally{n.f()}}if(Array.isArray(this.libraryFileLevels)){e.libraryFileLevels=[];var o,c=Object(I.a)(this.libraryFileLevels);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.libraryFileLevels.push(l.toJSON())}}catch(A){c.e(A)}finally{c.f()}}if(Array.isArray(this.libraryFileLocations)){e.libraryFileLocations=[];var d,u=Object(I.a)(this.libraryFileLocations);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.libraryFileLocations.push(h.toJSON())}}catch(A){u.e(A)}finally{u.f()}}if(Array.isArray(this.libraryFilePositions)){e.libraryFilePositions=[];var f,v=Object(I.a)(this.libraryFilePositions);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.libraryFilePositions.push(p.toJSON())}}catch(A){v.e(A)}finally{v.f()}}if(Array.isArray(this.libraryFilePracticeAreas)){e.libraryFilePracticeAreas=[];var m,y=Object(I.a)(this.libraryFilePracticeAreas);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.libraryFilePracticeAreas.push(b.toJSON())}}catch(A){y.e(A)}finally{y.f()}}if(Array.isArray(this.settings)){e.settings=[];var S,g=Object(I.a)(this.settings);try{for(g.s();!(S=g.n()).done;){var O=S.value;e.settings.push(O.toJSON())}}catch(A){g.e(A)}finally{g.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Br=function(){function e(t){if(Object(O.a)(this,e),this.levelId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qr=function(){function e(t){if(Object(O.a)(this,e),this.locationId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.locationId=e.locationId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vr=function(){function e(t){if(Object(O.a)(this,e),this.positionId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.positionId=e.positionId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).positionId=this.positionId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wr=function(){function e(t){if(Object(O.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zr=function(){function e(t){if(Object(O.a)(this,e),this.libraryFileSettingId=void 0,this.libraryFileSettingType=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueChar=void 0,this.valueOption=void 0,this.libraryFileId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.libraryFileSettingId=e.libraryFileSettingId,this.libraryFileSettingType=e.libraryFileSettingType,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueChar=e.valueChar,this.valueOption=e.valueOption,this.libraryFileId=e.libraryFileId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).libraryFileSettingId=this.libraryFileSettingId,e.libraryFileSettingType=this.libraryFileSettingType,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e.libraryFileId=this.libraryFileId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.EnableCustomVideoSetting=1]="EnableCustomVideoSetting",e[e.EnableSeekbar=2]="EnableSeekbar"}(xr||(xr={}));var Hr,$r=function(){function e(t){if(Object(O.a)(this,e),this.creditId=void 0,this.name=void 0,this.isArchived=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.creditId=e.creditId,this.name=e.name,this.isArchived=e.isArchived)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).creditId=this.creditId,e.name=this.name,e.isArchived=this.isArchived,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_r=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.creditId=void 0,this.name=void 0,this.shortName=void 0,this.sequenceNumber=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.creditId=e.creditId,this.name=e.name,this.shortName=e.shortName,this.sequenceNumber=e.sequenceNumber)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.creditId=this.creditId,e.name=this.name,e.shortName=this.shortName,e.sequenceNumber=this.sequenceNumber,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yr=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.name=void 0,this.shortName=void 0,this.originalName=void 0,this.originalState=void 0,this.accreditationTypeId=void 0,this.industryId=void 0,this.isInFirm=void 0,this.link=void 0,this.parentLicenseId=void 0,this.isPlaceholder=void 0,this.isNonMandatory=void 0,this.isNasbaMappingAllowed=void 0,this.jurisdictionReportGuid=void 0,this.firmLicense=void 0,this.fields=void 0,this.licenseCredits=void 0,this.licenseProperties=void 0,this.licenseProfileSettings=void 0,this.rulesHistory=void 0,this.subLicense=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.licenseId=e.licenseId,this.name=e.name,this.shortName=e.shortName,this.originalName=e.originalName,this.originalState=e.originalState,this.accreditationTypeId=e.accreditationTypeId,this.industryId=e.industryId,this.isInFirm=e.isInFirm,this.link=e.link,this.parentLicenseId=e.parentLicenseId,this.isPlaceholder=e.isPlaceholder,this.isNonMandatory=e.isNonMandatory,this.isNasbaMappingAllowed=e.isNasbaMappingAllowed,this.jurisdictionReportGuid=e.jurisdictionReportGuid,this.firmLicense=e.firmLicense?Ii.fromJS(e.firmLicense):void 0,Array.isArray(e.fields)){this.fields=[];var t,i=Object(I.a)(e.fields);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.fields.push(Qr.fromJS(r))}}catch(m){i.e(m)}finally{i.f()}}if(Array.isArray(e.licenseCredits)){this.licenseCredits=[];var a,n=Object(I.a)(e.licenseCredits);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.licenseCredits.push($r.fromJS(s))}}catch(m){n.e(m)}finally{n.f()}}if(Array.isArray(e.licenseProperties)){this.licenseProperties=[];var o,c=Object(I.a)(e.licenseProperties);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.licenseProperties.push(ea.fromJS(l))}}catch(m){c.e(m)}finally{c.f()}}if(Array.isArray(e.licenseProfileSettings)){this.licenseProfileSettings=[];var d,u=Object(I.a)(e.licenseProfileSettings);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.licenseProfileSettings.push(Xr.fromJS(h))}}catch(m){u.e(m)}finally{u.f()}}if(Array.isArray(e.rulesHistory)){this.rulesHistory=[];var f,v=Object(I.a)(e.rulesHistory);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.rulesHistory.push(un.fromJS(p))}}catch(m){v.e(m)}finally{v.f()}}this.subLicense=e.subLicense?Tn.fromJS(e.subLicense):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseId=this.licenseId,e.name=this.name,e.shortName=this.shortName,e.originalName=this.originalName,e.originalState=this.originalState,e.accreditationTypeId=this.accreditationTypeId,e.industryId=this.industryId,e.isInFirm=this.isInFirm,e.link=this.link,e.parentLicenseId=this.parentLicenseId,e.isPlaceholder=this.isPlaceholder,e.isNonMandatory=this.isNonMandatory,e.isNasbaMappingAllowed=this.isNasbaMappingAllowed,e.jurisdictionReportGuid=this.jurisdictionReportGuid,e.firmLicense=this.firmLicense?this.firmLicense.toJSON():void 0,Array.isArray(this.fields)){e.fields=[];var t,i=Object(I.a)(this.fields);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.fields.push(r.toJSON())}}catch(m){i.e(m)}finally{i.f()}}if(Array.isArray(this.licenseCredits)){e.licenseCredits=[];var a,n=Object(I.a)(this.licenseCredits);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.licenseCredits.push(s.toJSON())}}catch(m){n.e(m)}finally{n.f()}}if(Array.isArray(this.licenseProperties)){e.licenseProperties=[];var o,c=Object(I.a)(this.licenseProperties);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.licenseProperties.push(l.toJSON())}}catch(m){c.e(m)}finally{c.f()}}if(Array.isArray(this.licenseProfileSettings)){e.licenseProfileSettings=[];var d,u=Object(I.a)(this.licenseProfileSettings);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.licenseProfileSettings.push(h.toJSON())}}catch(m){u.e(m)}finally{u.f()}}if(Array.isArray(this.rulesHistory)){e.rulesHistory=[];var f,v=Object(I.a)(this.rulesHistory);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.rulesHistory.push(p.toJSON())}}catch(m){v.e(m)}finally{v.f()}}return e.subLicense=this.subLicense?this.subLicense.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qr=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.fieldName=void 0,this.fieldDescription=void 0,this.fieldLabel=void 0,this.sequenceNumber=void 0,this.profileId=void 0,this.typeId=void 0,this.isRequired=void 0,this.fieldCode=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.fieldName=e.fieldName,this.fieldDescription=e.fieldDescription,this.fieldLabel=e.fieldLabel,this.sequenceNumber=e.sequenceNumber,this.profileId=e.profileId,this.typeId=e.typeId,this.isRequired=e.isRequired,this.fieldCode=e.fieldCode)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.fieldName=this.fieldName,e.fieldDescription=this.fieldDescription,e.fieldLabel=this.fieldLabel,e.sequenceNumber=this.sequenceNumber,e.profileId=this.profileId,e.typeId=this.typeId,e.isRequired=this.isRequired,e.fieldCode=this.fieldCode,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kr=function(){function e(t){if(Object(O.a)(this,e),this.licenseFields=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.licenseFields)){this.licenseFields=[];var t,i=Object(I.a)(e.licenseFields);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseFields.push(Qr.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenseFields)){e.licenseFields=[];var t,i=Object(I.a)(this.licenseFields);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseFields.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zr=function(){function e(t){if(Object(O.a)(this,e),this.licenses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.licenses)){this.licenses=[];var t,i=Object(I.a)(e.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenses.push(Yr.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenses)){e.licenses=[];var t,i=Object(I.a)(this.licenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenses.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xr=function(){function e(t){if(Object(O.a)(this,e),this.licenseProfileSettingId=void 0,this.licenseId=void 0,this.profileId=void 0,this.typeId=void 0,this.key=void 0,this.name=void 0,this.type=void 0,this.validation=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseProfileSettingId=e.licenseProfileSettingId,this.licenseId=e.licenseId,this.profileId=e.profileId,this.typeId=e.typeId,this.key=e.key,this.name=e.name,this.type=e.type,this.validation=e.validation)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseProfileSettingId=this.licenseProfileSettingId,e.licenseId=this.licenseId,e.profileId=this.profileId,e.typeId=this.typeId,e.key=this.key,e.name=this.name,e.type=this.type,e.validation=this.validation,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ea=function(){function e(t){if(Object(O.a)(this,e),this.propertyId=void 0,this.label=void 0,this.typeId=void 0,this.licensePropertyGroupId=void 0,this.licensePropertyGroupLabel=void 0,this.isUserLevelAdjustable=void 0,this.isForInstructorValidation=void 0,this.isDisplayedInThirdPartyCourse=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.propertyId=e.propertyId,this.label=e.label,this.typeId=e.typeId,this.licensePropertyGroupId=e.licensePropertyGroupId,this.licensePropertyGroupLabel=e.licensePropertyGroupLabel,this.isUserLevelAdjustable=e.isUserLevelAdjustable,this.isForInstructorValidation=e.isForInstructorValidation,this.isDisplayedInThirdPartyCourse=e.isDisplayedInThirdPartyCourse)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).propertyId=this.propertyId,e.label=this.label,e.typeId=this.typeId,e.licensePropertyGroupId=this.licensePropertyGroupId,e.licensePropertyGroupLabel=this.licensePropertyGroupLabel,e.isUserLevelAdjustable=this.isUserLevelAdjustable,e.isForInstructorValidation=this.isForInstructorValidation,e.isDisplayedInThirdPartyCourse=this.isDisplayedInThirdPartyCourse,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ta=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.criteriaFieldId=void 0,this.fieldTypeId=void 0,this.label=void 0,this.optionListId=void 0,this.sequenceNumber=void 0,this.searchCriteriaOptions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.licenseId=e.licenseId,this.criteriaFieldId=e.criteriaFieldId,this.fieldTypeId=e.fieldTypeId,this.label=e.label,this.optionListId=e.optionListId,this.sequenceNumber=e.sequenceNumber,Array.isArray(e.searchCriteriaOptions))){this.searchCriteriaOptions=[];var t,i=Object(I.a)(e.searchCriteriaOptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.searchCriteriaOptions.push(ra.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseId=this.licenseId,e.criteriaFieldId=this.criteriaFieldId,e.fieldTypeId=this.fieldTypeId,e.label=this.label,e.optionListId=this.optionListId,e.sequenceNumber=this.sequenceNumber,Array.isArray(this.searchCriteriaOptions)){e.searchCriteriaOptions=[];var t,i=Object(I.a)(this.searchCriteriaOptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.searchCriteriaOptions.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ia=function(){function e(t){if(Object(O.a)(this,e),this.licenseSubfilters=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.licenseSubfilters)){this.licenseSubfilters=[];var t,i=Object(I.a)(e.licenseSubfilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.licenseSubfilters.push(ta.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.licenseSubfilters)){e.licenseSubfilters=[];var t,i=Object(I.a)(this.licenseSubfilters);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.licenseSubfilters.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ra=function(){function e(t){if(Object(O.a)(this,e),this.optionListId=void 0,this.optionId=void 0,this.label=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.optionListId=e.optionListId,this.optionId=e.optionId,this.label=e.label,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).optionListId=this.optionListId,e.optionId=this.optionId,e.label=this.label,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Approved=1]="Approved",e[e.Pending=2]="Pending",e[e.Denied=3]="Denied"}(Hr||(Hr={}));var aa,na=function(){function e(t){if(Object(O.a)(this,e),this.locationId=void 0,this.name=void 0,this.address=void 0,this.code=void 0,this.city=void 0,this.countryId=void 0,this.stateId=void 0,this.zip=void 0,this.telephone=void 0,this.timezoneId=void 0,this.isActive=void 0,this.isFirmOffice=void 0,this.userCount=void 0,this.sessionCount=void 0,this.countyId=void 0,this.country=void 0,this.state=void 0,this.timezone=void 0,this.rooms=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.locationId=e.locationId,this.name=e.name,this.address=e.address,this.code=e.code,this.city=e.city,this.countryId=e.countryId,this.stateId=e.stateId,this.zip=e.zip,this.telephone=e.telephone,this.timezoneId=e.timezoneId,this.isActive=e.isActive,this.isFirmOffice=e.isFirmOffice,this.userCount=e.userCount,this.sessionCount=e.sessionCount,this.countyId=e.countyId,this.country=e.country,this.state=e.state,this.timezone=e.timezone,Array.isArray(e.rooms))){this.rooms=[];var t,i=Object(I.a)(e.rooms);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.rooms.push(dn.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e.address=this.address,e.code=this.code,e.city=this.city,e.countryId=this.countryId,e.stateId=this.stateId,e.zip=this.zip,e.telephone=this.telephone,e.timezoneId=this.timezoneId,e.isActive=this.isActive,e.isFirmOffice=this.isFirmOffice,e.userCount=this.userCount,e.sessionCount=this.sessionCount,e.countyId=this.countyId,e.country=this.country,e.state=this.state,e.timezone=this.timezone,Array.isArray(this.rooms)){e.rooms=[];var t,i=Object(I.a)(this.rooms);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.rooms.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.None=0]="None",e[e.Video=1]="Video",e[e.Audio=2]="Audio",e[e.LearningPackage=3]="LearningPackage",e[e.Url=4]="Url"}(aa||(aa={}));var sa,oa=function(){function e(t){if(Object(O.a)(this,e),this.firmName=void 0,this.reportName=void 0,this.courseId=void 0,this.sessionId=void 0,this.sessionParticipantId=void 0,this.userOnDemandSessionId=void 0,this.sessionMediaFileId=void 0,this.userId=void 0,this.lastName=void 0,this.firstName=void 0,this.userLicenses=void 0,this.courseTitle=void 0,this.multimediaTitle=void 0,this.duration=void 0,this.viewStartDate=void 0,this.viewStartTime=void 0,this.viewEndDate=void 0,this.viewEndTime=void 0,this.viewEndSortBy=void 0,this.viewStatus=void 0,this.credits=void 0,this.registeredBy=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.firmName=e.firmName,this.reportName=e.reportName,this.courseId=e.courseId,this.sessionId=e.sessionId,this.sessionParticipantId=e.sessionParticipantId,this.userOnDemandSessionId=e.userOnDemandSessionId,this.sessionMediaFileId=e.sessionMediaFileId,this.userId=e.userId,this.lastName=e.lastName,this.firstName=e.firstName,this.userLicenses=e.userLicenses,this.courseTitle=e.courseTitle,this.multimediaTitle=e.multimediaTitle,this.duration=e.duration,this.viewStartDate=e.viewStartDate,this.viewStartTime=e.viewStartTime,this.viewEndDate=e.viewEndDate,this.viewEndTime=e.viewEndTime,this.viewEndSortBy=e.viewEndSortBy,this.viewStatus=e.viewStatus,this.credits=e.credits,this.registeredBy=e.registeredBy)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).firmName=this.firmName,e.reportName=this.reportName,e.courseId=this.courseId,e.sessionId=this.sessionId,e.sessionParticipantId=this.sessionParticipantId,e.userOnDemandSessionId=this.userOnDemandSessionId,e.sessionMediaFileId=this.sessionMediaFileId,e.userId=this.userId,e.lastName=this.lastName,e.firstName=this.firstName,e.userLicenses=this.userLicenses,e.courseTitle=this.courseTitle,e.multimediaTitle=this.multimediaTitle,e.duration=this.duration,e.viewStartDate=this.viewStartDate,e.viewStartTime=this.viewStartTime,e.viewEndDate=this.viewEndDate,e.viewEndTime=this.viewEndTime,e.viewEndSortBy=this.viewEndSortBy,e.viewStatus=this.viewStatus,e.credits=this.credits,e.registeredBy=this.registeredBy,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ca=function(){function e(t){if(Object(O.a)(this,e),this.reports=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.reports)){this.reports=[];var t,i=Object(I.a)(e.reports);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.reports.push(oa.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.reports)){e.reports=[];var t,i=Object(I.a)(this.reports);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.reports.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.InProgress=1]="InProgress",e[e.Done=2]="Done",e[e.Disqualified=3]="Disqualified"}(sa||(sa={}));var la;!function(e){e[e.Dashboard=1e3]="Dashboard",e[e.Users=2e3]="Users",e[e.Courses=3e3]="Courses",e[e.Sessions=4e3]="Sessions",e[e.Activities=5e3]="Activities",e[e.LearningPlans=6e3]="LearningPlans",e[e.Compliance=7e3]="Compliance",e[e.Reports=8e3]="Reports",e[e.Library=9e3]="Library",e[e.ConfigurationsSettings=1e4]="ConfigurationsSettings",e[e.ConfigurationsTemplates=11e3]="ConfigurationsTemplates",e[e.ConfigurationsDataManagement=12e3]="ConfigurationsDataManagement",e[e.ConfigurationsSecurity=13e3]="ConfigurationsSecurity",e[e.ConfigurationsLogs=14e3]="ConfigurationsLogs",e[e.PortalCourses=14001]="PortalCourses",e[e.PortalCompliance=14002]="PortalCompliance",e[e.PortalLearningPlans=14003]="PortalLearningPlans",e[e.PortalTranscripts=14004]="PortalTranscripts",e[e.PortalSettings=14005]="PortalSettings",e[e.PortalInstructorView=14006]="PortalInstructorView",e[e.PortalTeamView=14007]="PortalTeamView",e[e.PortalDevelopmentPlans=14100]="PortalDevelopmentPlans",e[e.PortalDevelopmentRecords=14101]="PortalDevelopmentRecords",e[e.PortalDevelopmentRecordLearningNeeds=14102]="PortalDevelopmentRecordLearningNeeds",e[e.PortalDevelopmentOverallReflections=14103]="PortalDevelopmentOverallReflections",e[e.Evaluations=15e3]="Evaluations"}(la||(la={}));var da,ua=function(){function e(t){if(Object(O.a)(this,e),this.targetPermissionSetId=void 0,this.targetValue=void 0,this.sourceValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.targetPermissionSetId=e.targetPermissionSetId,this.targetValue=e.targetValue,this.sourceValue=e.sourceValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).targetPermissionSetId=this.targetPermissionSetId,e.targetValue=this.targetValue,e.sourceValue=this.sourceValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ha=function(){function e(t){if(Object(O.a)(this,e),this.permissionSetId=void 0,this.name=void 0,this.description=void 0,this.category=void 0,this.dependencies=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.permissionSetId=e.permissionSetId,this.name=e.name,this.description=e.description,this.category=e.category,Array.isArray(e.dependencies))){this.dependencies=[];var t,i=Object(I.a)(e.dependencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.dependencies.push(ua.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).permissionSetId=this.permissionSetId,e.name=this.name,e.description=this.description,e.category=this.category,Array.isArray(this.dependencies)){e.dependencies=[];var t,i=Object(I.a)(this.dependencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.dependencies.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.NotSet=0]="NotSet",e[e.ViewUsers=2001]="ViewUsers",e[e.ManageUsers=2002]="ManageUsers",e[e.DeleteUsers=2003]="DeleteUsers",e[e.ExportUsers=2005]="ExportUsers",e[e.ViewCourses=3001]="ViewCourses",e[e.ManageCourses=3002]="ManageCourses",e[e.DeleteCourses=3003]="DeleteCourses",e[e.ExportCourses=3005]="ExportCourses",e[e.ViewSessions=4001]="ViewSessions",e[e.ManageSessions=4002]="ManageSessions",e[e.DeleteSessions=4003]="DeleteSessions",e[e.ExportSessions=4005]="ExportSessions",e[e.ViewActivities=5001]="ViewActivities",e[e.ManageActivities=5002]="ManageActivities",e[e.DeleteActivities=5003]="DeleteActivities",e[e.ExportActivities=5004]="ExportActivities",e[e.ViewLearningPlans=6001]="ViewLearningPlans",e[e.ManageLearningPlans=6002]="ManageLearningPlans",e[e.DeleteLearningPlans=6003]="DeleteLearningPlans",e[e.ExportLearningPlans=6007]="ExportLearningPlans",e[e.ViewLibrary=9001]="ViewLibrary",e[e.ManageLibrary=9002]="ManageLibrary",e[e.DeleteLibrary=9003]="DeleteLibrary",e[e.ExportLibrary=9004]="ExportLibrary",e[e.DownloadVideo=9005]="DownloadVideo",e[e.ViewSettings=10001]="ViewSettings",e[e.ManageSettings=10002]="ManageSettings",e[e.ViewTemplates=11001]="ViewTemplates",e[e.ManageTemplates=11002]="ManageTemplates",e[e.DeleteTemplates=11003]="DeleteTemplates",e[e.ViewDataManagement=12001]="ViewDataManagement",e[e.ManageDataManagement=12002]="ManageDataManagement",e[e.DeleteDataManagement=12003]="DeleteDataManagement",e[e.ExportDataManagement=12005]="ExportDataManagement",e[e.ViewSecurityUser=13001]="ViewSecurityUser",e[e.ManageSecurityUser=13002]="ManageSecurityUser",e[e.ExportSecurityUsers=13007]="ExportSecurityUsers",e[e.ViewRoles=13101]="ViewRoles",e[e.ManageRoles=13102]="ManageRoles",e[e.DeleteRoles=13103]="DeleteRoles",e[e.ExportRoles=13110]="ExportRoles",e[e.ViewSecurityGroups=13201]="ViewSecurityGroups",e[e.ManageSecurityGroups=13202]="ManageSecurityGroups",e[e.DeleteSecurityGroups=13203]="DeleteSecurityGroups",e[e.ExportSecurityGroups=13206]="ExportSecurityGroups",e[e.ViewApiClients=13301]="ViewApiClients",e[e.ManageApiClients=13302]="ManageApiClients",e[e.DeleteApiClients=13303]="DeleteApiClients",e[e.ViewEmailLogs=14001]="ViewEmailLogs",e[e.ManageEmailLogs=14002]="ManageEmailLogs",e[e.ViewIntegrationLogs=14003]="ViewIntegrationLogs",e[e.ManageIntegrationLogs=14004]="ManageIntegrationLogs",e[e.ViewApplicationLogs=14005]="ViewApplicationLogs",e[e.ViewApiLogs=14007]="ViewApiLogs",e[e.ViewImportLogs=14008]="ViewImportLogs",e[e.ManageImportLogs=14009]="ManageImportLogs",e[e.ViewPortalCourseCatalog=14010]="ViewPortalCourseCatalog",e[e.ViewPortalCourseCalendar=14011]="ViewPortalCourseCalendar",e[e.ViewPortalUserCourses=14012]="ViewPortalUserCourses",e[e.ViewPortalUserCompliance=14013]="ViewPortalUserCompliance",e[e.ViewPortalLearningPlans=14014]="ViewPortalLearningPlans",e[e.ViewPortalTranscripts=14015]="ViewPortalTranscripts",e[e.ViewPortalUserPreference=14016]="ViewPortalUserPreference",e[e.ViewPortalMyCourses=14017]="ViewPortalMyCourses",e[e.ViewPortalInstructorView=14018]="ViewPortalInstructorView",e[e.ViewPortalTeamView=14019]="ViewPortalTeamView",e[e.ManagePortalTeam=14020]="ManagePortalTeam",e[e.ImportUsers=15e3]="ImportUsers",e[e.ImportSessions=15001]="ImportSessions",e[e.ImportDataManagement=15002]="ImportDataManagement",e[e.ImportCourses=15003]="ImportCourses",e[e.ImportLearningPlan=15004]="ImportLearningPlan",e[e.ImportLibrary=15005]="ImportLibrary",e[e.ImportEvaluation=15006]="ImportEvaluation",e[e.ViewCompetencyFrameworks=16e3]="ViewCompetencyFrameworks",e[e.ManageCompetencyFrameworks=16001]="ManageCompetencyFrameworks",e[e.DeleteCompetencyFrameworks=16002]="DeleteCompetencyFrameworks",e[e.ViewPortalDevelopmentPlans=17100]="ViewPortalDevelopmentPlans",e[e.ManagePortalDevelopmentPlans=17101]="ManagePortalDevelopmentPlans",e[e.DeletePortalDevelopmentPlans=17102]="DeletePortalDevelopmentPlans",e[e.ViewPortalDevelopmentRecords=18e3]="ViewPortalDevelopmentRecords",e[e.ManagePortalDevelopmentRecords=18001]="ManagePortalDevelopmentRecords",e[e.DeletePortalDevelopmentRecords=18002]="DeletePortalDevelopmentRecords",e[e.ViewPortalDevelopmentRecordLearningNeeds=19e3]="ViewPortalDevelopmentRecordLearningNeeds",e[e.ManagePortalDevelopmentRecordLearningNeeds=19001]="ManagePortalDevelopmentRecordLearningNeeds",e[e.DeletePortalDevelopmentRecordLearningNeeds=19002]="DeletePortalDevelopmentRecordLearningNeeds",e[e.ManagePortalLearningPlans=19003]="ManagePortalLearningPlans",e[e.DeletePortalLearningPlans=19004]="DeletePortalLearningPlans",e[e.ViewPortalDevelopmentOverallReflections=2e4]="ViewPortalDevelopmentOverallReflections",e[e.ManagePortalDevelopmentOverallReflections=20001]="ManagePortalDevelopmentOverallReflections"}(da||(da={}));var fa,va=function(){function e(t){if(Object(O.a)(this,e),this.permissionSets=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.permissionSets)){this.permissionSets=[];var t,i=Object(I.a)(e.permissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.permissionSets.push(ha.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.permissionSets)){e.permissionSets=[];var t,i=Object(I.a)(this.permissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.permissionSets.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Home=1]="Home",e[e.CourseCatalog=2]="CourseCatalog",e[e.CourseCalendar=3]="CourseCalendar",e[e.UserCourses=4]="UserCourses",e[e.Compliance=5]="Compliance",e[e.LearningPlans=6]="LearningPlans",e[e.Transcripts=7]="Transcripts",e[e.InstructorView=8]="InstructorView",e[e.TeamView=9]="TeamView"}(fa||(fa={}));var pa,ma=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.licenseFullName=void 0,this.licenseStatus=void 0,this.expirationDate=void 0,this.licenseName=void 0,this.creditId=void 0,this.creditName=void 0,this.creditShortName=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.licenseFullName=e.licenseFullName,this.licenseStatus=e.licenseStatus,this.expirationDate=e.expirationDate?new Date(e.expirationDate.toString()):void 0,this.licenseName=e.licenseName,this.creditId=e.creditId,this.creditName=e.creditName,this.creditShortName=e.creditShortName,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.licenseFullName=this.licenseFullName,e.licenseStatus=this.licenseStatus,e.expirationDate=this.expirationDate?this.expirationDate.toISOString():void 0,e.licenseName=this.licenseName,e.creditId=this.creditId,e.creditName=this.creditName,e.creditShortName=this.creditShortName,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ya=function(){function e(t){if(Object(O.a)(this,e),this.transcriptId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.isValidated=void 0,this.registrationDate=void 0,this.registeredBy=void 0,this.validationDate=void 0,this.validatedBy=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.tentativeDate=void 0,this.isCreditAdjusted=void 0,this.sessionParticipantStatusId=void 0,this.previousStatusId=void 0,this.courseId=void 0,this.title=void 0,this.sessionTitle=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.locationId=void 0,this.location=void 0,this.sessionLicenses=void 0,this.sessionMaterials=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.evaluation=void 0,this.evaluationDisplayStatusId=void 0,this.evaluationDisplayStatus=void 0,this.certificates=void 0,this.certificateDisplayStatusId=void 0,this.certificateDisplayStatus=void 0,this.activityParticipantId=void 0,this.activityId=void 0,this.hoursSpent=void 0,this.yearGrouping=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.transcriptId=e.transcriptId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isValidated=e.isValidated,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.registeredBy=e.registeredBy,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.validatedBy=e.validatedBy,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.isCreditAdjusted=e.isCreditAdjusted,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.previousStatusId=e.previousStatusId,this.courseId=e.courseId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.locationId=e.locationId,this.location=e.location,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var t,i=Object(I.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(pn.fromJS(r))}}catch(m){i.e(m)}finally{i.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var a,n=Object(I.a)(e.sessionMaterials);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.sessionMaterials.push(yn.fromJS(s))}}catch(m){n.e(m)}finally{n.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var o,c=Object(I.a)(e.userLicenseCreditValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userLicenseCreditValues.push(ma.fromJS(l))}}catch(m){c.e(m)}finally{c.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var d,u=Object(I.a)(e.userLicensePropertyValues);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.userLicensePropertyValues.push(ms.fromJS(h))}}catch(m){u.e(m)}finally{u.f()}}if(this.evaluation=e.evaluation?es.fromJS(e.evaluation):void 0,this.evaluationDisplayStatusId=e.evaluationDisplayStatusId,this.evaluationDisplayStatus=e.evaluationDisplayStatus,Array.isArray(e.certificates)){this.certificates=[];var f,v=Object(I.a)(e.certificates);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.certificates.push(_n.fromJS(p))}}catch(m){v.e(m)}finally{v.f()}}this.certificateDisplayStatusId=e.certificateDisplayStatusId,this.certificateDisplayStatus=e.certificateDisplayStatus,this.activityParticipantId=e.activityParticipantId,this.activityId=e.activityId,this.hoursSpent=e.hoursSpent,this.yearGrouping=e.yearGrouping}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).transcriptId=this.transcriptId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isValidated=this.isValidated,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.registeredBy=this.registeredBy,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.validatedBy=this.validatedBy,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.isCreditAdjusted=this.isCreditAdjusted,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.previousStatusId=this.previousStatusId,e.courseId=this.courseId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.locationId=this.locationId,e.location=this.location,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(I.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(m){i.e(m)}finally{i.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var a,n=Object(I.a)(this.sessionMaterials);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.sessionMaterials.push(s.toJSON())}}catch(m){n.e(m)}finally{n.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var o,c=Object(I.a)(this.userLicenseCreditValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userLicenseCreditValues.push(l.toJSON())}}catch(m){c.e(m)}finally{c.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var d,u=Object(I.a)(this.userLicensePropertyValues);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.userLicensePropertyValues.push(h.toJSON())}}catch(m){u.e(m)}finally{u.f()}}if(e.evaluation=this.evaluation?this.evaluation.toJSON():void 0,e.evaluationDisplayStatusId=this.evaluationDisplayStatusId,e.evaluationDisplayStatus=this.evaluationDisplayStatus,Array.isArray(this.certificates)){e.certificates=[];var f,v=Object(I.a)(this.certificates);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.certificates.push(p.toJSON())}}catch(m){v.e(m)}finally{v.f()}}return e.certificateDisplayStatusId=this.certificateDisplayStatusId,e.certificateDisplayStatus=this.certificateDisplayStatus,e.activityParticipantId=this.activityParticipantId,e.activityId=this.activityId,e.hoursSpent=this.hoursSpent,e.yearGrouping=this.yearGrouping,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ba=function(){function e(t){if(Object(O.a)(this,e),this.userTranscripts=void 0,this.yearGrouping=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(I.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(ya.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.yearGrouping)){this.yearGrouping=[];var a,n=Object(I.a)(e.yearGrouping);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.yearGrouping.push(s)}}catch(o){n.e(o)}finally{n.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(I.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.yearGrouping)){e.yearGrouping=[];var a,n=Object(I.a)(this.yearGrouping);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.yearGrouping.push(s)}}catch(o){n.e(o)}finally{n.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sa=function(){function e(t){if(Object(O.a)(this,e),this.transcriptId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.isValidated=void 0,this.cancelledDate=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.isIndividualSessionDateAllowed=void 0,this.courseId=void 0,this.title=void 0,this.sessionTitle=void 0,this.providerId=void 0,this.providerName=void 0,this.isInHouse=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.locationId=void 0,this.location=void 0,this.sessionLicenses=void 0,this.sessionMaterials=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.sessionParticipantStatusId=void 0,this.withRetro=void 0,this.evaluation=void 0,this.evaluationDisplayStatusId=void 0,this.evaluationDisplayStatus=void 0,this.certificates=void 0,this.certificateDisplayStatusId=void 0,this.certificateDisplayStatus=void 0,this.createdby=void 0,this.activityParticipantId=void 0,this.activityId=void 0,this.hoursSpent=void 0,this.yearGrouping=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.transcriptId=e.transcriptId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isValidated=e.isValidated,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,this.courseId=e.courseId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.providerId=e.providerId,this.providerName=e.providerName,this.isInHouse=e.isInHouse,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.locationId=e.locationId,this.location=e.location,Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var t,i=Object(I.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(pn.fromJS(r))}}catch(m){i.e(m)}finally{i.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var a,n=Object(I.a)(e.sessionMaterials);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.sessionMaterials.push(yn.fromJS(s))}}catch(m){n.e(m)}finally{n.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var o,c=Object(I.a)(e.userLicenseCreditValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userLicenseCreditValues.push(ma.fromJS(l))}}catch(m){c.e(m)}finally{c.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var d,u=Object(I.a)(e.userLicensePropertyValues);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.userLicensePropertyValues.push(ms.fromJS(h))}}catch(m){u.e(m)}finally{u.f()}}if(this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.withRetro=e.withRetro,this.evaluation=e.evaluation?es.fromJS(e.evaluation):void 0,this.evaluationDisplayStatusId=e.evaluationDisplayStatusId,this.evaluationDisplayStatus=e.evaluationDisplayStatus,Array.isArray(e.certificates)){this.certificates=[];var f,v=Object(I.a)(e.certificates);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.certificates.push(_n.fromJS(p))}}catch(m){v.e(m)}finally{v.f()}}this.certificateDisplayStatusId=e.certificateDisplayStatusId,this.certificateDisplayStatus=e.certificateDisplayStatus,this.createdby=e.createdby,this.activityParticipantId=e.activityParticipantId,this.activityId=e.activityId,this.hoursSpent=e.hoursSpent,this.yearGrouping=e.yearGrouping}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).transcriptId=this.transcriptId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isValidated=this.isValidated,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,e.courseId=this.courseId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.providerId=this.providerId,e.providerName=this.providerName,e.isInHouse=this.isInHouse,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.locationId=this.locationId,e.location=this.location,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(I.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(m){i.e(m)}finally{i.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var a,n=Object(I.a)(this.sessionMaterials);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.sessionMaterials.push(s.toJSON())}}catch(m){n.e(m)}finally{n.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var o,c=Object(I.a)(this.userLicenseCreditValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userLicenseCreditValues.push(l.toJSON())}}catch(m){c.e(m)}finally{c.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var d,u=Object(I.a)(this.userLicensePropertyValues);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.userLicensePropertyValues.push(h.toJSON())}}catch(m){u.e(m)}finally{u.f()}}if(e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.withRetro=this.withRetro,e.evaluation=this.evaluation?this.evaluation.toJSON():void 0,e.evaluationDisplayStatusId=this.evaluationDisplayStatusId,e.evaluationDisplayStatus=this.evaluationDisplayStatus,Array.isArray(this.certificates)){e.certificates=[];var f,v=Object(I.a)(this.certificates);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.certificates.push(p.toJSON())}}catch(m){v.e(m)}finally{v.f()}}return e.certificateDisplayStatusId=this.certificateDisplayStatusId,e.certificateDisplayStatus=this.certificateDisplayStatus,e.createdby=this.createdby,e.activityParticipantId=this.activityParticipantId,e.activityId=this.activityId,e.hoursSpent=this.hoursSpent,e.yearGrouping=this.yearGrouping,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ga=function(){function e(t){if(Object(O.a)(this,e),this.userTranscripts=void 0,this.yearGrouping=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(I.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(Sa.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.yearGrouping)){this.yearGrouping=[];var a,n=Object(I.a)(e.yearGrouping);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.yearGrouping.push(s)}}catch(o){n.e(o)}finally{n.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(I.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.yearGrouping)){e.yearGrouping=[];var a,n=Object(I.a)(this.yearGrouping);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.yearGrouping.push(s)}}catch(o){n.e(o)}finally{n.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ia=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.userType=void 0,this.userAvatarThumbnailURl=void 0,this.licenseId=void 0,this.licenseName=void 0,this.subLicenseId=void 0,this.isSubLicenseRolling=void 0,this.complianceStatusId=void 0,this.isCarryOverAllowed=void 0,this.isSubLicenseCarryOverAllowed=void 0,this.isRetroAllowed=void 0,this.userLicenseProfile=void 0,this.periodsList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.userType=e.userType,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.subLicenseId=e.subLicenseId,this.isSubLicenseRolling=e.isSubLicenseRolling,this.complianceStatusId=e.complianceStatusId,this.isCarryOverAllowed=e.isCarryOverAllowed,this.isSubLicenseCarryOverAllowed=e.isSubLicenseCarryOverAllowed,this.isRetroAllowed=e.isRetroAllowed,Array.isArray(e.userLicenseProfile)){this.userLicenseProfile=[];var t,i=Object(I.a)(e.userLicenseProfile);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseProfile.push(vs.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.periodsList)){this.periodsList=[];var a,n=Object(I.a)(e.periodsList);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.periodsList.push(Aa.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.userType=this.userType,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.subLicenseId=this.subLicenseId,e.isSubLicenseRolling=this.isSubLicenseRolling,e.complianceStatusId=this.complianceStatusId,e.isCarryOverAllowed=this.isCarryOverAllowed,e.isSubLicenseCarryOverAllowed=this.isSubLicenseCarryOverAllowed,e.isRetroAllowed=this.isRetroAllowed,Array.isArray(this.userLicenseProfile)){e.userLicenseProfile=[];var t,i=Object(I.a)(this.userLicenseProfile);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseProfile.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.periodsList)){e.periodsList=[];var a,n=Object(I.a)(this.periodsList);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.periodsList.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oa=function(){function e(t){if(Object(O.a)(this,e),this.listId=void 0,this.userLicenseComplianceId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.title=void 0,this.sessionTitle=void 0,this.provider=void 0,this.courseFormat=void 0,this.dateTaken=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.isInstructed=void 0,this.isCreditAdjusted=void 0,this.isWithinGracePeriod=void 0,this.isWithinPrevGracePeriod=void 0,this.periodNumber=void 0,this.location=void 0,this.userRetroactiveCredits=void 0,this.sessionLicenses=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.listId=e.listId,this.userLicenseComplianceId=e.userLicenseComplianceId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.title=e.title,this.sessionTitle=e.sessionTitle,this.provider=e.provider,this.courseFormat=e.courseFormat,this.dateTaken=e.dateTaken?new Date(e.dateTaken.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.isInstructed=e.isInstructed,this.isCreditAdjusted=e.isCreditAdjusted,this.isWithinGracePeriod=e.isWithinGracePeriod,this.isWithinPrevGracePeriod=e.isWithinPrevGracePeriod,this.periodNumber=e.periodNumber,this.location=e.location,Array.isArray(e.userRetroactiveCredits)){this.userRetroactiveCredits=[];var t,i=Object(I.a)(e.userRetroactiveCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRetroactiveCredits.push(Ft.fromJS(r))}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var a,n=Object(I.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.sessionLicenses.push(pn.fromJS(s))}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var o,c=Object(I.a)(e.userLicenseCreditValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userLicenseCreditValues.push(hs.fromJS(l))}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var d,u=Object(I.a)(e.userLicensePropertyValues);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.userLicensePropertyValues.push(ms.fromJS(h))}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).listId=this.listId,e.userLicenseComplianceId=this.userLicenseComplianceId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.title=this.title,e.sessionTitle=this.sessionTitle,e.provider=this.provider,e.courseFormat=this.courseFormat,e.dateTaken=this.dateTaken?this.dateTaken.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.isInstructed=this.isInstructed,e.isCreditAdjusted=this.isCreditAdjusted,e.isWithinGracePeriod=this.isWithinGracePeriod,e.isWithinPrevGracePeriod=this.isWithinPrevGracePeriod,e.periodNumber=this.periodNumber,e.location=this.location,Array.isArray(this.userRetroactiveCredits)){e.userRetroactiveCredits=[];var t,i=Object(I.a)(this.userRetroactiveCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRetroactiveCredits.push(r.toJSON())}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var a,n=Object(I.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.sessionLicenses.push(s.toJSON())}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var o,c=Object(I.a)(this.userLicenseCreditValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userLicenseCreditValues.push(l.toJSON())}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var d,u=Object(I.a)(this.userLicensePropertyValues);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.userLicensePropertyValues.push(h.toJSON())}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Aa=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseComplianceId=void 0,this.licenseId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.periodToDisplay=void 0,this.periodLabel=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.complianceStatusId=void 0,this.isSubLicensePeriod=void 0,this.isPriorPeriodDeficient=void 0,this.compliancePeriodTotals=void 0,this.compliancePeriodAdditionalRequirements=void 0,this.compliancePeriodChartNotes=void 0,this.compliancePeriodRestrictions=void 0,this.compliancePeriodSubjectAreas=void 0,this.compliancePeriodCourseHistory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userLicenseComplianceId=e.userLicenseComplianceId,this.licenseId=e.licenseId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.periodLabel=e.periodLabel,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.complianceStatusId=e.complianceStatusId,this.isSubLicensePeriod=e.isSubLicensePeriod,this.isPriorPeriodDeficient=e.isPriorPeriodDeficient,Array.isArray(e.compliancePeriodTotals)){this.compliancePeriodTotals=[];var t,i=Object(I.a)(e.compliancePeriodTotals);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.compliancePeriodTotals.push(qt.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.compliancePeriodAdditionalRequirements)){this.compliancePeriodAdditionalRequirements=[];var a,n=Object(I.a)(e.compliancePeriodAdditionalRequirements);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.compliancePeriodAdditionalRequirements.push(Rt.fromJS(s))}}catch(S){n.e(S)}finally{n.f()}}if(Array.isArray(e.compliancePeriodChartNotes)){this.compliancePeriodChartNotes=[];var o,c=Object(I.a)(e.compliancePeriodChartNotes);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.compliancePeriodChartNotes.push(xt.fromJS(l))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.compliancePeriodRestrictions)){this.compliancePeriodRestrictions=[];var d,u=Object(I.a)(e.compliancePeriodRestrictions);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.compliancePeriodRestrictions.push(Gt.fromJS(h))}}catch(S){u.e(S)}finally{u.f()}}if(Array.isArray(e.compliancePeriodSubjectAreas)){this.compliancePeriodSubjectAreas=[];var f,v=Object(I.a)(e.compliancePeriodSubjectAreas);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.compliancePeriodSubjectAreas.push(Bt.fromJS(p))}}catch(S){v.e(S)}finally{v.f()}}if(Array.isArray(e.compliancePeriodCourseHistory)){this.compliancePeriodCourseHistory=[];var m,y=Object(I.a)(e.compliancePeriodCourseHistory);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.compliancePeriodCourseHistory.push(Mt.fromJS(b))}}catch(S){y.e(S)}finally{y.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.licenseId=this.licenseId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.periodLabel=this.periodLabel,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.complianceStatusId=this.complianceStatusId,e.isSubLicensePeriod=this.isSubLicensePeriod,e.isPriorPeriodDeficient=this.isPriorPeriodDeficient,Array.isArray(this.compliancePeriodTotals)){e.compliancePeriodTotals=[];var t,i=Object(I.a)(this.compliancePeriodTotals);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.compliancePeriodTotals.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.compliancePeriodAdditionalRequirements)){e.compliancePeriodAdditionalRequirements=[];var a,n=Object(I.a)(this.compliancePeriodAdditionalRequirements);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.compliancePeriodAdditionalRequirements.push(s.toJSON())}}catch(S){n.e(S)}finally{n.f()}}if(Array.isArray(this.compliancePeriodChartNotes)){e.compliancePeriodChartNotes=[];var o,c=Object(I.a)(this.compliancePeriodChartNotes);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.compliancePeriodChartNotes.push(l.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.compliancePeriodRestrictions)){e.compliancePeriodRestrictions=[];var d,u=Object(I.a)(this.compliancePeriodRestrictions);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.compliancePeriodRestrictions.push(h.toJSON())}}catch(S){u.e(S)}finally{u.f()}}if(Array.isArray(this.compliancePeriodSubjectAreas)){e.compliancePeriodSubjectAreas=[];var f,v=Object(I.a)(this.compliancePeriodSubjectAreas);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.compliancePeriodSubjectAreas.push(p.toJSON())}}catch(S){v.e(S)}finally{v.f()}}if(Array.isArray(this.compliancePeriodCourseHistory)){e.compliancePeriodCourseHistory=[];var m,y=Object(I.a)(this.compliancePeriodCourseHistory);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.compliancePeriodCourseHistory.push(b.toJSON())}}catch(S){y.e(S)}finally{y.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ja=function(){function e(t){if(Object(O.a)(this,e),this.providerId=void 0,this.name=void 0,this.isInHouse=void 0,this.isActive=void 0,this.code=void 0,this.url=void 0,this.isScheduleAllowed=void 0,this.isRegistrationAllowed=void 0,this.isCertificateAllowed=void 0,this.isReportingAllowed=void 0,this.courseCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.providerId=e.providerId,this.name=e.name,this.isInHouse=e.isInHouse,this.isActive=e.isActive,this.code=e.code,this.url=e.url,this.isScheduleAllowed=e.isScheduleAllowed,this.isRegistrationAllowed=e.isRegistrationAllowed,this.isCertificateAllowed=e.isCertificateAllowed,this.isReportingAllowed=e.isReportingAllowed,this.courseCount=e.courseCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).providerId=this.providerId,e.name=this.name,e.isInHouse=this.isInHouse,e.isActive=this.isActive,e.code=this.code,e.url=this.url,e.isScheduleAllowed=this.isScheduleAllowed,e.isRegistrationAllowed=this.isRegistrationAllowed,e.isCertificateAllowed=this.isCertificateAllowed,e.isReportingAllowed=this.isReportingAllowed,e.courseCount=this.courseCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ca=function(){function e(t){if(Object(O.a)(this,e),this.providers=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.providers)){this.providers=[];var t,i=Object(I.a)(e.providers);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.providers.push(ja.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.providers)){e.providers=[];var t,i=Object(I.a)(this.providers);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.providers.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.AdministrativeAssistant=1]="AdministrativeAssistant",e[e.Supervisor=2]="Supervisor",e[e.Coach=3]="Coach",e[e.Mentor=4]="Mentor",e[e.MatrixManager=5]="MatrixManager",e[e.PracticeGroupLeader=6]="PracticeGroupLeader"}(pa||(pa={}));var Pa,Ea=function(){function e(t){if(Object(O.a)(this,e),this.reminderScheduleId=void 0,this.isActive=void 0,this.frequency=void 0,this.jobId=void 0,this.lastEmailSent=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.reminderScheduleId=e.reminderScheduleId,this.isActive=e.isActive,this.frequency=e.frequency,this.jobId=e.jobId,this.lastEmailSent=e.lastEmailSent?new Date(e.lastEmailSent.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).reminderScheduleId=this.reminderScheduleId,e.isActive=this.isActive,e.frequency=this.frequency,e.jobId=this.jobId,e.lastEmailSent=this.lastEmailSent?this.lastEmailSent.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wa=function(){function e(t){if(Object(O.a)(this,e),this.reminderScheduleId=void 0,this.isActive=void 0,this.minimumCredit=void 0,this.reminderPeriod=void 0,this.licenseIds=void 0,this.emailTemplateId=void 0,this.template=void 0,this.frequency=void 0,this.time=void 0,this.timezoneId=void 0,this.timezone=void 0,this.recurDayOfWeek=void 0,this.monthlyOption=void 0,this.monthlyDay=void 0,this.monthlyDayOfMonth=void 0,this.monthlyDayOfWeek=void 0,this.numberOfMonths=void 0,this.monthlyDayWithInterval=void 0,this.numberOfMonthsInterval=void 0,this.dayOfMonthWithInterval=void 0,this.dayOfWeekWithInterval=void 0,this.jobId=void 0,this.sendToAdmin=void 0,this.sendToAdminAssistant=void 0,this.sendSeparateCCCopy=void 0,this.recipients=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.reminderScheduleId=e.reminderScheduleId,this.isActive=e.isActive,this.minimumCredit=e.minimumCredit,this.reminderPeriod=e.reminderPeriod,this.licenseIds=e.licenseIds,this.emailTemplateId=e.emailTemplateId,this.template=e.template?ui.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Dn.fromJS(e.timezone):void 0,Array.isArray(e.recurDayOfWeek)){this.recurDayOfWeek=[];var t,i=Object(I.a)(e.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.recurDayOfWeek.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var a,n=Object(I.a)(e.monthlyDay);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.monthlyDay.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(this.monthlyDayOfMonth=e.monthlyDayOfMonth,this.monthlyDayOfWeek=e.monthlyDayOfWeek,this.numberOfMonths=e.numberOfMonths,Array.isArray(e.monthlyDayWithInterval)){this.monthlyDayWithInterval=[];var o,c=Object(I.a)(e.monthlyDayWithInterval);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.monthlyDayWithInterval.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(this.numberOfMonthsInterval=e.numberOfMonthsInterval,this.dayOfMonthWithInterval=e.dayOfMonthWithInterval,this.dayOfWeekWithInterval=e.dayOfWeekWithInterval,this.jobId=e.jobId,this.sendToAdmin=e.sendToAdmin,this.sendToAdminAssistant=e.sendToAdminAssistant,this.sendSeparateCCCopy=e.sendSeparateCCCopy,Array.isArray(e.recipients)){this.recipients=[];var d,u=Object(I.a)(e.recipients);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.recipients.push(li.fromJS(h))}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).reminderScheduleId=this.reminderScheduleId,e.isActive=this.isActive,e.minimumCredit=this.minimumCredit,e.reminderPeriod=this.reminderPeriod,e.licenseIds=this.licenseIds,e.emailTemplateId=this.emailTemplateId,e.template=this.template?this.template.toJSON():void 0,e.frequency=this.frequency,e.time=this.time,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,Array.isArray(this.recurDayOfWeek)){e.recurDayOfWeek=[];var t,i=Object(I.a)(this.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.recurDayOfWeek.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var a,n=Object(I.a)(this.monthlyDay);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.monthlyDay.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(e.monthlyDayOfMonth=this.monthlyDayOfMonth,e.monthlyDayOfWeek=this.monthlyDayOfWeek,e.numberOfMonths=this.numberOfMonths,Array.isArray(this.monthlyDayWithInterval)){e.monthlyDayWithInterval=[];var o,c=Object(I.a)(this.monthlyDayWithInterval);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.monthlyDayWithInterval.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(e.numberOfMonthsInterval=this.numberOfMonthsInterval,e.dayOfMonthWithInterval=this.dayOfMonthWithInterval,e.dayOfWeekWithInterval=this.dayOfWeekWithInterval,e.jobId=this.jobId,e.sendToAdmin=this.sendToAdmin,e.sendToAdminAssistant=this.sendToAdminAssistant,e.sendSeparateCCCopy=this.sendSeparateCCCopy,Array.isArray(this.recipients)){e.recipients=[];var d,u=Object(I.a)(this.recipients);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.recipients.push(h.toJSON())}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.SystemUsers=1]="SystemUsers",e[e.ComplianceReports=2]="ComplianceReports",e[e.CoursesAndActivities=3]="CoursesAndActivities",e[e.LearningPlans=4]="LearningPlans",e[e.ProviderReports=5]="ProviderReports",e[e.MaterialAndELearning=6]="MaterialAndELearning",e[e.CustomReports=7]="CustomReports"}(Pa||(Pa={}));var ka,Ta=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.loginName=void 0,this.userStatus=void 0,this.location=void 0,this.complianceReports=void 0,this.courseHistory=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,this.loginName=e.loginName,this.userStatus=e.userStatus,this.location=e.location,this.complianceReports=e.complianceReports?Ia.fromJS(e.complianceReports):void 0,Array.isArray(e.courseHistory))){this.courseHistory=[];var t,i=Object(I.a)(e.courseHistory);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseHistory.push(Oa.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.loginName=this.loginName,e.userStatus=this.userStatus,e.location=this.location,e.complianceReports=this.complianceReports?this.complianceReports.toJSON():void 0,Array.isArray(this.courseHistory)){e.courseHistory=[];var t,i=Object(I.a)(this.courseHistory);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseHistory.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Na=function(){function e(t){if(Object(O.a)(this,e),this.reportComplianceList=void 0,this.totalRecords=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.reportComplianceList)){this.reportComplianceList=[];var t,i=Object(I.a)(e.reportComplianceList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.reportComplianceList.push(Ta.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.totalRecords=e.totalRecords}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.reportComplianceList)){e.reportComplianceList=[];var t,i=Object(I.a)(this.reportComplianceList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.reportComplianceList.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.totalRecords=this.totalRecords,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ja=function(){function e(t){if(Object(O.a)(this,e),this.reportGuid=void 0,this.name=void 0,this.description=void 0,this.categoryId=void 0,this.categoryName=void 0,this.reportType=void 0,this.licenseId=void 0,this.isEnabled=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.reportGuid=e.reportGuid,this.name=e.name,this.description=e.description,this.categoryId=e.categoryId,this.categoryName=e.categoryName,this.reportType=e.reportType,this.licenseId=e.licenseId,this.isEnabled=e.isEnabled)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).reportGuid=this.reportGuid,e.name=this.name,e.description=this.description,e.categoryId=this.categoryId,e.categoryName=this.categoryName,e.reportType=this.reportType,e.licenseId=this.licenseId,e.isEnabled=this.isEnabled,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Da=function(){function e(t){if(Object(O.a)(this,e),this.title=void 0,this.questions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.title=e.title,Array.isArray(e.questions))){this.questions=[];var t,i=Object(I.a)(e.questions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.questions.push(Ua.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).title=this.title,Array.isArray(this.questions)){e.questions=[];var t,i=Object(I.a)(this.questions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.questions.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),La=function(){function e(t){if(Object(O.a)(this,e),this.evaluationSummary=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.evaluationSummary)){this.evaluationSummary=[];var t,i=Object(I.a)(e.evaluationSummary);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.evaluationSummary.push(Da.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.evaluationSummary)){e.evaluationSummary=[];var t,i=Object(I.a)(this.evaluationSummary);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.evaluationSummary.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ua=function(){function e(t){if(Object(O.a)(this,e),this.sessionId=void 0,this.questionId=void 0,this.name=void 0,this.questionType=void 0,this.texts=void 0,this.responses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.questionId=e.questionId,this.name=e.name,this.questionType=e.questionType,Array.isArray(e.texts)){this.texts=[];var t,i=Object(I.a)(e.texts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.texts.push(r)}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.responses)){this.responses=[];var a,n=Object(I.a)(e.responses);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.responses.push(Ra.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.questionId=this.questionId,e.name=this.name,e.questionType=this.questionType,Array.isArray(this.texts)){e.texts=[];var t,i=Object(I.a)(this.texts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.texts.push(r)}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.responses)){e.responses=[];var a,n=Object(I.a)(this.responses);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.responses.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ra=function(){function e(t){if(Object(O.a)(this,e),this.answerId=void 0,this.questionId=void 0,this.text=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.answerId=e.answerId,this.questionId=e.questionId,this.text=e.text,this.count=e.count)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).answerId=this.answerId,e.questionId=this.questionId,e.text=this.text,e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xa=function(){function e(t){if(Object(O.a)(this,e),this.sessionId=void 0,this.scheduleId=void 0,this.courseId=void 0,this.title=void 0,this.sessionTypeId=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezone=void 0,this.location=void 0,this.room=void 0,this.courseFormat=void 0,this.courseFormatPortalCategory=void 0,this.isInHouse=void 0,this.isPublished=void 0,this.pcamId=void 0,this.sessionInstructors=void 0,this.courseTitle=void 0,this.cancelledDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,this.courseId=e.courseId,this.title=e.title,this.sessionTypeId=e.sessionTypeId,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezone=e.timezone,this.location=e.location,this.room=e.room,this.courseFormat=e.courseFormat,this.courseFormatPortalCategory=e.courseFormatPortalCategory,this.isInHouse=e.isInHouse,this.isPublished=e.isPublished,this.pcamId=e.pcamId,Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var t,i=Object(I.a)(e.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionInstructors.push(r)}}catch(a){i.e(a)}finally{i.f()}}this.courseTitle=e.courseTitle,this.cancelledDate=e.cancelledDate?new Date(e.cancelledDate.toString()):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.scheduleId=this.scheduleId,e.courseId=this.courseId,e.title=this.title,e.sessionTypeId=this.sessionTypeId,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezone=this.timezone,e.location=this.location,e.room=this.room,e.courseFormat=this.courseFormat,e.courseFormatPortalCategory=this.courseFormatPortalCategory,e.isInHouse=this.isInHouse,e.isPublished=this.isPublished,e.pcamId=this.pcamId,Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var t,i=Object(I.a)(this.sessionInstructors);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionInstructors.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e.courseTitle=this.courseTitle,e.cancelledDate=this.cancelledDate?this.cancelledDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fa=function(){function e(t){if(Object(O.a)(this,e),this.resultList=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.resultList)){this.resultList=[];var t,i=Object(I.a)(e.resultList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.resultList.push(xa.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.count=e.count}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.resultList)){e.resultList=[];var t,i=Object(I.a)(this.resultList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.resultList.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ma=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.recordType=void 0,this.pcamCourseId=void 0,this.attendanceDate=void 0,this.attendanceMethod=void 0,this.ardcNumber=void 0,this.firstName=void 0,this.lastName=void 0,this.hardshipIndicator=void 0,this.deleteIndicator=void 0,this.totalCreditHours=void 0,this.prMhsa=void 0,this.prDiv=void 0,this.prOther=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.recordType=e.recordType,this.pcamCourseId=e.pcamCourseId,this.attendanceDate=e.attendanceDate,this.attendanceMethod=e.attendanceMethod,this.ardcNumber=e.ardcNumber,this.firstName=e.firstName,this.lastName=e.lastName,this.hardshipIndicator=e.hardshipIndicator,this.deleteIndicator=e.deleteIndicator,this.totalCreditHours=e.totalCreditHours,this.prMhsa=e.prMhsa,this.prDiv=e.prDiv,this.prOther=e.prOther)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.recordType=this.recordType,e.pcamCourseId=this.pcamCourseId,e.attendanceDate=this.attendanceDate,e.attendanceMethod=this.attendanceMethod,e.ardcNumber=this.ardcNumber,e.firstName=this.firstName,e.lastName=this.lastName,e.hardshipIndicator=this.hardshipIndicator,e.deleteIndicator=this.deleteIndicator,e.totalCreditHours=this.totalCreditHours,e.prMhsa=this.prMhsa,e.prDiv=this.prDiv,e.prOther=this.prOther,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ga=function(){function e(t){if(Object(O.a)(this,e),this.attendanceList=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.attendanceList)){this.attendanceList=[];var t,i=Object(I.a)(e.attendanceList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.attendanceList.push(Ma.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.count=e.count}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.attendanceList)){e.attendanceList=[];var t,i=Object(I.a)(this.attendanceList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.attendanceList.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ba=function(){function e(t){if(Object(O.a)(this,e),this.sessionId=void 0,this.sessionTitle=void 0,this.courseTitle=void 0,this.courseNumber=void 0,this.rowData=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionId=e.sessionId,this.sessionTitle=e.sessionTitle,this.courseTitle=e.courseTitle,this.courseNumber=e.courseNumber,Array.isArray(e.rowData))){this.rowData=[];var t,i=Object(I.a)(e.rowData);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.rowData.push(Va.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.sessionTitle=this.sessionTitle,e.courseTitle=this.courseTitle,e.courseNumber=this.courseNumber,Array.isArray(this.rowData)){e.rowData=[];var t,i=Object(I.a)(this.rowData);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.rowData.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qa=function(){function e(t){if(Object(O.a)(this,e),this.courseList=void 0,this.count=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.courseList)){this.courseList=[];var t,i=Object(I.a)(e.courseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseList.push(Ba.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.count=e.count}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.courseList)){e.courseList=[];var t,i=Object(I.a)(this.courseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseList.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.count=this.count,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Va=function(){function e(t){if(Object(O.a)(this,e),this.rowNumber=void 0,this.pcamIdNumber=void 0,this.sessionTitle=void 0,this.sessionDescription=void 0,this.sessionId=void 0,this.isInHouse=void 0,this.isBasicSkills=void 0,this.cost=void 0,this.credits=void 0,this.valAllLic=void 0,this.methodTypeDesc=void 0,this.locationName=void 0,this.isInternational=void 0,this.stateAbbreviation=void 0,this.address=void 0,this.zip=void 0,this.city=void 0,this.countryName=void 0,this.startDate=void 0,this.endDate=void 0,this.licenseList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.rowNumber=e.rowNumber,this.pcamIdNumber=e.pcamIdNumber,this.sessionTitle=e.sessionTitle,this.sessionDescription=e.sessionDescription,this.sessionId=e.sessionId,this.isInHouse=e.isInHouse,this.isBasicSkills=e.isBasicSkills,this.cost=e.cost,this.credits=e.credits,this.valAllLic=e.valAllLic,this.methodTypeDesc=e.methodTypeDesc,this.locationName=e.locationName,this.isInternational=e.isInternational,this.stateAbbreviation=e.stateAbbreviation,this.address=e.address,this.zip=e.zip,this.city=e.city,this.countryName=e.countryName,this.startDate=e.startDate,this.endDate=e.endDate,this.licenseList=e.licenseList)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).rowNumber=this.rowNumber,e.pcamIdNumber=this.pcamIdNumber,e.sessionTitle=this.sessionTitle,e.sessionDescription=this.sessionDescription,e.sessionId=this.sessionId,e.isInHouse=this.isInHouse,e.isBasicSkills=this.isBasicSkills,e.cost=this.cost,e.credits=this.credits,e.valAllLic=this.valAllLic,e.methodTypeDesc=this.methodTypeDesc,e.locationName=this.locationName,e.isInternational=this.isInternational,e.stateAbbreviation=this.stateAbbreviation,e.address=this.address,e.zip=this.zip,e.city=this.city,e.countryName=this.countryName,e.startDate=this.startDate,e.endDate=this.endDate,e.licenseList=this.licenseList,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wa=function(){function e(t){if(Object(O.a)(this,e),this.reports=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.reports)){this.reports=[];var t,i=Object(I.a)(e.reports);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.reports.push(Ja.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.reports)){e.reports=[];var t,i=Object(I.a)(this.reports);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.reports.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),za=function(){function e(t){if(Object(O.a)(this,e),this.sessionId=void 0,this.userId=void 0,this.providerName=void 0,this.title=void 0,this.completionDate=void 0,this.isInstructor=void 0,this.courseFormatId=void 0,this.earned=void 0,this.fCredits=void 0,this.pdCredits=void 0,this.sCredits=void 0,this.cCredits=void 0,this.tcCredits=void 0,this.iCredits=void 0,this.pCredits=void 0,this.eCredits=void 0,this.isNasbaApproved=void 0,this.isSelfStudyAdjusted=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.userId=e.userId,this.providerName=e.providerName,this.title=e.title,this.completionDate=e.completionDate,this.isInstructor=e.isInstructor,this.courseFormatId=e.courseFormatId,this.earned=e.earned,this.fCredits=e.fCredits,this.pdCredits=e.pdCredits,this.sCredits=e.sCredits,this.cCredits=e.cCredits,this.tcCredits=e.tcCredits,this.iCredits=e.iCredits,this.pCredits=e.pCredits,this.eCredits=e.eCredits,this.isNasbaApproved=e.isNasbaApproved,this.isSelfStudyAdjusted=e.isSelfStudyAdjusted)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.userId=this.userId,e.providerName=this.providerName,e.title=this.title,e.completionDate=this.completionDate,e.isInstructor=this.isInstructor,e.courseFormatId=this.courseFormatId,e.earned=this.earned,e.fCredits=this.fCredits,e.pdCredits=this.pdCredits,e.sCredits=this.sCredits,e.cCredits=this.cCredits,e.tcCredits=this.tcCredits,e.iCredits=this.iCredits,e.pCredits=this.pCredits,e.eCredits=this.eCredits,e.isNasbaApproved=this.isNasbaApproved,e.isSelfStudyAdjusted=this.isSelfStudyAdjusted,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ha=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.address=void 0,this.email=void 0,this.firmName=void 0,this.phone=void 0,this.birthYear=void 0,this.yearOnePDCredits=void 0,this.yearTwoPDCredits=void 0,this.courseList=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.name=e.name,this.address=e.address,this.email=e.email,this.firmName=e.firmName,this.phone=e.phone,this.birthYear=e.birthYear,this.yearOnePDCredits=e.yearOnePDCredits,this.yearTwoPDCredits=e.yearTwoPDCredits,Array.isArray(e.courseList))){this.courseList=[];var t,i=Object(I.a)(e.courseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.courseList.push(za.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).name=this.name,e.address=this.address,e.email=this.email,e.firmName=this.firmName,e.phone=this.phone,e.birthYear=this.birthYear,e.yearOnePDCredits=this.yearOnePDCredits,e.yearTwoPDCredits=this.yearTwoPDCredits,Array.isArray(this.courseList)){e.courseList=[];var t,i=Object(I.a)(this.courseList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.courseList.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$a=function(){function e(t){if(Object(O.a)(this,e),this.userReports=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userReports)){this.userReports=[];var t,i=Object(I.a)(e.userReports);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userReports.push(Ha.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userReports)){e.userReports=[];var t,i=Object(I.a)(this.userReports);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userReports.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_a=function(){function e(t){if(Object(O.a)(this,e),this.title=void 0,this.sessionTitle=void 0,this.isAppropriateForNewlyAdmittedAttorneys=void 0,this.hasEthicsCredits=void 0,this.hasDiversityCredits=void 0,this.sessionDate=void 0,this.countyName=void 0,this.averageFeeLiveFormat=void 0,this.averageFeeRecordedFormat=void 0,this.averageFeeOtherFormat=void 0,this.totalCreditHours=void 0,this.financialAidRequests=void 0,this.financialAidRequestsGranted=void 0,this.format1=void 0,this.format2=void 0,this.format3=void 0,this.format4=void 0,this.format5=void 0,this.format6=void 0,this.format=void 0,this.otherFormats=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.title=e.title,this.sessionTitle=e.sessionTitle,this.isAppropriateForNewlyAdmittedAttorneys=e.isAppropriateForNewlyAdmittedAttorneys,this.hasEthicsCredits=e.hasEthicsCredits,this.hasDiversityCredits=e.hasDiversityCredits,this.sessionDate=e.sessionDate?new Date(e.sessionDate.toString()):void 0,this.countyName=e.countyName,this.averageFeeLiveFormat=e.averageFeeLiveFormat,this.averageFeeRecordedFormat=e.averageFeeRecordedFormat,this.averageFeeOtherFormat=e.averageFeeOtherFormat,this.totalCreditHours=e.totalCreditHours,this.financialAidRequests=e.financialAidRequests,this.financialAidRequestsGranted=e.financialAidRequestsGranted,this.format1=e.format1,this.format2=e.format2,this.format3=e.format3,this.format4=e.format4,this.format5=e.format5,this.format6=e.format6,this.format=e.format,this.otherFormats=e.otherFormats)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).title=this.title,e.sessionTitle=this.sessionTitle,e.isAppropriateForNewlyAdmittedAttorneys=this.isAppropriateForNewlyAdmittedAttorneys,e.hasEthicsCredits=this.hasEthicsCredits,e.hasDiversityCredits=this.hasDiversityCredits,e.sessionDate=this.sessionDate?this.sessionDate.toISOString():void 0,e.countyName=this.countyName,e.averageFeeLiveFormat=this.averageFeeLiveFormat,e.averageFeeRecordedFormat=this.averageFeeRecordedFormat,e.averageFeeOtherFormat=this.averageFeeOtherFormat,e.totalCreditHours=this.totalCreditHours,e.financialAidRequests=this.financialAidRequests,e.financialAidRequestsGranted=this.financialAidRequestsGranted,e.format1=this.format1,e.format2=this.format2,e.format3=this.format3,e.format4=this.format4,e.format5=this.format5,e.format6=this.format6,e.format=this.format,e.otherFormats=this.otherFormats,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ya=function(){function e(t){if(Object(O.a)(this,e),this.providerName=void 0,this.address=void 0,this.contactPerson=void 0,this.telephone=void 0,this.email=void 0,this.format1InsideNYCount=void 0,this.format1OutsideNYCount=void 0,this.format2Count=void 0,this.format3Count=void 0,this.format4Count=void 0,this.format5Count=void 0,this.format6Count=void 0,this.otherFormats=void 0,this.ethicsCount=void 0,this.diversityCount=void 0,this.financialAidRequestsCount=void 0,this.financialAidRequestsGrantedCount=void 0,this.activityTableRows=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.providerName=e.providerName,this.address=e.address,this.contactPerson=e.contactPerson,this.telephone=e.telephone,this.email=e.email,this.format1InsideNYCount=e.format1InsideNYCount,this.format1OutsideNYCount=e.format1OutsideNYCount,this.format2Count=e.format2Count,this.format3Count=e.format3Count,this.format4Count=e.format4Count,this.format5Count=e.format5Count,this.format6Count=e.format6Count,this.otherFormats=e.otherFormats,this.ethicsCount=e.ethicsCount,this.diversityCount=e.diversityCount,this.financialAidRequestsCount=e.financialAidRequestsCount,this.financialAidRequestsGrantedCount=e.financialAidRequestsGrantedCount,Array.isArray(e.activityTableRows))){this.activityTableRows=[];var t,i=Object(I.a)(e.activityTableRows);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.activityTableRows.push(_a.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).providerName=this.providerName,e.address=this.address,e.contactPerson=this.contactPerson,e.telephone=this.telephone,e.email=this.email,e.format1InsideNYCount=this.format1InsideNYCount,e.format1OutsideNYCount=this.format1OutsideNYCount,e.format2Count=this.format2Count,e.format3Count=this.format3Count,e.format4Count=this.format4Count,e.format5Count=this.format5Count,e.format6Count=this.format6Count,e.otherFormats=this.otherFormats,e.ethicsCount=this.ethicsCount,e.diversityCount=this.diversityCount,e.financialAidRequestsCount=this.financialAidRequestsCount,e.financialAidRequestsGrantedCount=this.financialAidRequestsGrantedCount,Array.isArray(this.activityTableRows)){e.activityTableRows=[];var t,i=Object(I.a)(this.activityTableRows);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.activityTableRows.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qa=function(){function e(t){if(Object(O.a)(this,e),this.courseId=void 0,this.sessionId=void 0,this.title=void 0,this.deliveryMethod=void 0,this.cpeCredits=void 0,this.date=void 0,this.fosCreditList=void 0,this.location=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.courseId=e.courseId,this.sessionId=e.sessionId,this.title=e.title,this.deliveryMethod=e.deliveryMethod,this.cpeCredits=e.cpeCredits,this.date=e.date,Array.isArray(e.fosCreditList)){this.fosCreditList=[];var t,i=Object(I.a)(e.fosCreditList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.fosCreditList.push(Ka.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.location=e.location}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).courseId=this.courseId,e.sessionId=this.sessionId,e.title=this.title,e.deliveryMethod=this.deliveryMethod,e.cpeCredits=this.cpeCredits,e.date=this.date,Array.isArray(this.fosCreditList)){e.fosCreditList=[];var t,i=Object(I.a)(this.fosCreditList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.fosCreditList.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.location=this.location,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ka=function(){function e(t){if(Object(O.a)(this,e),this.sessionId=void 0,this.creditName=void 0,this.creditValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionId=e.sessionId,this.creditName=e.creditName,this.creditValue=e.creditValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,e.creditName=this.creditName,e.creditValue=this.creditValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Za=function(){function e(t){if(Object(O.a)(this,e),this.programList=void 0,this.programCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.programList)){this.programList=[];var t,i=Object(I.a)(e.programList);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.programList.push(Qa.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.programCount=e.programCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.programList)){e.programList=[];var t,i=Object(I.a)(this.programList);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.programList.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.programCount=this.programCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xa=function(){function e(t){if(Object(O.a)(this,e),this.tenantId=void 0,this.tenantName=void 0,this.token=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.tenantId=e.tenantId,this.tenantName=e.tenantName,this.token=e.token)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tenantId=this.tenantId,e.tenantName=this.tenantName,e.token=this.token,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Izenda=1]="Izenda",e[e.Html=2]="Html"}(ka||(ka={}));var en,tn=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.apiClientId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.apiClientId=e.apiClientId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.apiClientId=this.apiClientId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rn=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.isDefault=void 0,this.isSystem=void 0,this.type=void 0,this.subRoleType=void 0,this.lastModifiedDate=void 0,this.createdDate=void 0,this.roleApiClients=void 0,this.rolePermissionSets=void 0,this.roleLicenseLimitations=void 0,this.userCount=void 0,this.isRoleSettingsEnabled=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.roleId=e.roleId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isDefault=e.isDefault,this.isSystem=e.isSystem,this.type=e.type,this.subRoleType=e.subRoleType,this.lastModifiedDate=e.lastModifiedDate?new Date(e.lastModifiedDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,Array.isArray(e.roleApiClients)){this.roleApiClients=[];var t,i=Object(I.a)(e.roleApiClients);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roleApiClients.push(tn.fromJS(r))}}catch(d){i.e(d)}finally{i.f()}}if(Array.isArray(e.rolePermissionSets)){this.rolePermissionSets=[];var a,n=Object(I.a)(e.rolePermissionSets);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.rolePermissionSets.push(sn.fromJS(s))}}catch(d){n.e(d)}finally{n.f()}}if(Array.isArray(e.roleLicenseLimitations)){this.roleLicenseLimitations=[];var o,c=Object(I.a)(e.roleLicenseLimitations);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.roleLicenseLimitations.push(an.fromJS(l))}}catch(d){c.e(d)}finally{c.f()}}this.userCount=e.userCount,this.isRoleSettingsEnabled=e.isRoleSettingsEnabled}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.isDefault=this.isDefault,e.isSystem=this.isSystem,e.type=this.type,e.subRoleType=this.subRoleType,e.lastModifiedDate=this.lastModifiedDate?this.lastModifiedDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,Array.isArray(this.roleApiClients)){e.roleApiClients=[];var t,i=Object(I.a)(this.roleApiClients);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roleApiClients.push(r.toJSON())}}catch(d){i.e(d)}finally{i.f()}}if(Array.isArray(this.rolePermissionSets)){e.rolePermissionSets=[];var a,n=Object(I.a)(this.rolePermissionSets);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.rolePermissionSets.push(s.toJSON())}}catch(d){n.e(d)}finally{n.f()}}if(Array.isArray(this.roleLicenseLimitations)){e.roleLicenseLimitations=[];var o,c=Object(I.a)(this.roleLicenseLimitations);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.roleLicenseLimitations.push(l.toJSON())}}catch(d){c.e(d)}finally{c.f()}}return e.userCount=this.userCount,e.isRoleSettingsEnabled=this.isRoleSettingsEnabled,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),an=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.licenseId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.licenseId=e.licenseId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.licenseId=this.licenseId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nn=function(){function e(t){if(Object(O.a)(this,e),this.roles=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.roles)){this.roles=[];var t,i=Object(I.a)(e.roles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roles.push(rn.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.roles)){e.roles=[];var t,i=Object(I.a)(this.roles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roles.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sn=function(){function e(t){if(Object(O.a)(this,e),this.permissionSetId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.permissionSetId=e.permissionSetId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).permissionSetId=this.permissionSetId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Administrator=1]="Administrator",e[e.Client=2]="Client",e[e.Employee=3]="Employee",e[e.GlobalWorkAdministrator=4]="GlobalWorkAdministrator",e[e.GlobalWorkManager=5]="GlobalWorkManager",e[e.GlobalWorkEmployee=6]="GlobalWorkEmployee",e[e.ApiClient=7]="ApiClient",e[e.LawCruitBizCruitAdministrator=8]="LawCruitBizCruitAdministrator",e[e.LawCruitBizCruitEmployee=9]="LawCruitBizCruitEmployee",e[e.LawCruitBizCruitInterviewer=10]="LawCruitBizCruitInterviewer",e[e.LawCruitBizCruitHiringManager=11]="LawCruitBizCruitHiringManager"}(en||(en={}));var on,cn=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.userId=void 0,this.canBeDeleted=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.email=void 0,this.avatar=void 0,this.isActive=void 0,this.userType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.userId=e.userId,this.canBeDeleted=e.canBeDeleted,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.email=e.email,this.avatar=e.avatar,this.isActive=e.isActive,this.userType=e.userType)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.userId=this.userId,e.canBeDeleted=this.canBeDeleted,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.email=this.email,e.avatar=this.avatar,e.isActive=this.isActive,e.userType=this.userType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ln=function(){function e(t){if(Object(O.a)(this,e),this.userRoles=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userRoles)){this.userRoles=[];var t,i=Object(I.a)(e.userRoles);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRoles.push(cn.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userRoles)){e.userRoles=[];var t,i=Object(I.a)(this.userRoles);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRoles.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dn=function(){function e(t){if(Object(O.a)(this,e),this.roomId=void 0,this.locationId=void 0,this.location=void 0,this.name=void 0,this.capacity=void 0,this.isActive=void 0,this.code=void 0,this.sessionCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roomId=e.roomId,this.locationId=e.locationId,this.location=e.location,this.name=e.name,this.capacity=e.capacity,this.isActive=e.isActive,this.code=e.code,this.sessionCount=e.sessionCount)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roomId=this.roomId,e.locationId=this.locationId,e.location=this.location,e.name=this.name,e.capacity=this.capacity,e.isActive=this.isActive,e.code=this.code,e.sessionCount=this.sessionCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),un=function(){function e(t){if(Object(O.a)(this,e),this.rulesHistoryTimelineId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.programmedDate=void 0,this.description=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.rulesHistoryTimelineId=e.rulesHistoryTimelineId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.programmedDate=e.programmedDate?new Date(e.programmedDate.toString()):void 0,this.description=e.description)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).rulesHistoryTimelineId=this.rulesHistoryTimelineId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.programmedDate=this.programmedDate?this.programmedDate.toISOString():void 0,e.description=this.description,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hn=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.securityGroupId=void 0,this.name=void 0,this.criteriaStatus=void 0,this.isIncluded=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.securityGroupId=e.securityGroupId,this.name=e.name,this.criteriaStatus=e.criteriaStatus,this.isIncluded=e.isIncluded)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.securityGroupId=this.securityGroupId,e.name=this.name,e.criteriaStatus=this.criteriaStatus,e.isIncluded=this.isIncluded,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.DoNotSendToResponded=0]="DoNotSendToResponded",e[e.SendToAll=1]="SendToAll"}(on||(on={}));var fn,vn=function(){function e(t){if(Object(O.a)(this,e),this.creditId=void 0,this.creditName=void 0,this.creditValue=void 0,this.isArchived=void 0,this.isFieldsOfStudyApproved=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.creditId=e.creditId,this.creditName=e.creditName,this.creditValue=e.creditValue,this.isArchived=e.isArchived,this.isFieldsOfStudyApproved=e.isFieldsOfStudyApproved)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).creditId=this.creditId,e.creditName=this.creditName,e.creditValue=this.creditValue,e.isArchived=this.isArchived,e.isFieldsOfStudyApproved=this.isFieldsOfStudyApproved,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pn=function(){function e(t){if(Object(O.a)(this,e),this.sessionId=void 0,this.licenseId=void 0,this.name=void 0,this.expirationDate=void 0,this.licenseStatus=void 0,this.sessionLicenseCredits=void 0,this.sessionLicenseProperties=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionId=e.sessionId,this.licenseId=e.licenseId,this.name=e.name,this.expirationDate=e.expirationDate?new Date(e.expirationDate.toString()):void 0,this.licenseStatus=e.licenseStatus,Array.isArray(e.sessionLicenseCredits)){this.sessionLicenseCredits=[];var t,i=Object(I.a)(e.sessionLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenseCredits.push(vn.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.sessionLicenseProperties)){this.sessionLicenseProperties=[];var a,n=Object(I.a)(e.sessionLicenseProperties);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.sessionLicenseProperties.push(mn.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.licenseId=this.licenseId,e.name=this.name,e.expirationDate=this.expirationDate?this.expirationDate.toISOString():void 0,e.licenseStatus=this.licenseStatus,Array.isArray(this.sessionLicenseCredits)){e.sessionLicenseCredits=[];var t,i=Object(I.a)(this.sessionLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenseCredits.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.sessionLicenseProperties)){e.sessionLicenseProperties=[];var a,n=Object(I.a)(this.sessionLicenseProperties);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.sessionLicenseProperties.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mn=function(){function e(t){if(Object(O.a)(this,e),this.propertyId=void 0,this.propertyLabel=void 0,this.propertyValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.propertyId=e.propertyId,this.propertyLabel=e.propertyLabel,this.propertyValue=e.propertyValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).propertyId=this.propertyId,e.propertyLabel=this.propertyLabel,e.propertyValue=this.propertyValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yn=function(){function e(t){if(Object(O.a)(this,e),this.sessionMaterialId=void 0,this.sessionId=void 0,this.fileId=void 0,this.isPublic=void 0,this.isAttendanceSheet=void 0,this.libraryFile=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionMaterialId=e.sessionMaterialId,this.sessionId=e.sessionId,this.fileId=e.fileId,this.isPublic=e.isPublic,this.isAttendanceSheet=e.isAttendanceSheet,this.libraryFile=e.libraryFile?Gr.fromJS(e.libraryFile):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionMaterialId=this.sessionMaterialId,e.sessionId=this.sessionId,e.fileId=this.fileId,e.isPublic=this.isPublic,e.isAttendanceSheet=this.isAttendanceSheet,e.libraryFile=this.libraryFile?this.libraryFile.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Registered=1]="Registered",e[e.Validated=2]="Validated",e[e.Tentative=3]="Tentative",e[e.Pending=4]="Pending",e[e.Excused=5]="Excused",e[e.Unexcused=6]="Unexcused",e[e.InProgress=7]="InProgress",e[e.Disqualified=8]="Disqualified",e[e.Declined=9]="Declined",e[e.Failed=10]="Failed",e[e.DisplayOnly=11]="DisplayOnly"}(fn||(fn={}));var bn;!function(e){e[e.Single=1]="Single",e[e.Simultaneous=2]="Simultaneous",e[e.Multipart=3]="Multipart",e[e.Recurring=4]="Recurring"}(bn||(bn={}));var Sn,gn=function(){function e(t){if(Object(O.a)(this,e),this.statementScheduleId=void 0,this.isActive=void 0,this.frequency=void 0,this.jobId=void 0,this.lastEmailSent=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.statementScheduleId=e.statementScheduleId,this.isActive=e.isActive,this.frequency=e.frequency,this.jobId=e.jobId,this.lastEmailSent=e.lastEmailSent?new Date(e.lastEmailSent.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).statementScheduleId=this.statementScheduleId,e.isActive=this.isActive,e.frequency=this.frequency,e.jobId=this.jobId,e.lastEmailSent=this.lastEmailSent?this.lastEmailSent.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),In=function(){function e(t){if(Object(O.a)(this,e),this.statementScheduleId=void 0,this.isActive=void 0,this.licenseIds=void 0,this.emailTemplateId=void 0,this.template=void 0,this.frequency=void 0,this.time=void 0,this.timezoneId=void 0,this.timezone=void 0,this.recurDayOfWeek=void 0,this.monthlyOption=void 0,this.monthlyDay=void 0,this.monthlyDayOfMonth=void 0,this.monthlyDayOfWeek=void 0,this.numberOfMonths=void 0,this.monthlyDayWithInterval=void 0,this.numberOfMonthsInterval=void 0,this.dayOfMonthWithInterval=void 0,this.dayOfWeekWithInterval=void 0,this.jobId=void 0,this.sendToAdmin=void 0,this.sendToAdminAssistant=void 0,this.sendSeparateCCCopy=void 0,this.recipients=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.statementScheduleId=e.statementScheduleId,this.isActive=e.isActive,this.licenseIds=e.licenseIds,this.emailTemplateId=e.emailTemplateId,this.template=e.template?di.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Dn.fromJS(e.timezone):void 0,Array.isArray(e.recurDayOfWeek)){this.recurDayOfWeek=[];var t,i=Object(I.a)(e.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.recurDayOfWeek.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var a,n=Object(I.a)(e.monthlyDay);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.monthlyDay.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(this.monthlyDayOfMonth=e.monthlyDayOfMonth,this.monthlyDayOfWeek=e.monthlyDayOfWeek,this.numberOfMonths=e.numberOfMonths,Array.isArray(e.monthlyDayWithInterval)){this.monthlyDayWithInterval=[];var o,c=Object(I.a)(e.monthlyDayWithInterval);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.monthlyDayWithInterval.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(this.numberOfMonthsInterval=e.numberOfMonthsInterval,this.dayOfMonthWithInterval=e.dayOfMonthWithInterval,this.dayOfWeekWithInterval=e.dayOfWeekWithInterval,this.jobId=e.jobId,this.sendToAdmin=e.sendToAdmin,this.sendToAdminAssistant=e.sendToAdminAssistant,this.sendSeparateCCCopy=e.sendSeparateCCCopy,Array.isArray(e.recipients)){this.recipients=[];var d,u=Object(I.a)(e.recipients);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.recipients.push(li.fromJS(h))}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).statementScheduleId=this.statementScheduleId,e.isActive=this.isActive,e.licenseIds=this.licenseIds,e.emailTemplateId=this.emailTemplateId,e.template=this.template?this.template.toJSON():void 0,e.frequency=this.frequency,e.time=this.time,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,Array.isArray(this.recurDayOfWeek)){e.recurDayOfWeek=[];var t,i=Object(I.a)(this.recurDayOfWeek);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.recurDayOfWeek.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var a,n=Object(I.a)(this.monthlyDay);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.monthlyDay.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(e.monthlyDayOfMonth=this.monthlyDayOfMonth,e.monthlyDayOfWeek=this.monthlyDayOfWeek,e.numberOfMonths=this.numberOfMonths,Array.isArray(this.monthlyDayWithInterval)){e.monthlyDayWithInterval=[];var o,c=Object(I.a)(this.monthlyDayWithInterval);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.monthlyDayWithInterval.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(e.numberOfMonthsInterval=this.numberOfMonthsInterval,e.dayOfMonthWithInterval=this.dayOfMonthWithInterval,e.dayOfWeekWithInterval=this.dayOfWeekWithInterval,e.jobId=this.jobId,e.sendToAdmin=this.sendToAdmin,e.sendToAdminAssistant=this.sendToAdminAssistant,e.sendSeparateCCCopy=this.sendSeparateCCCopy,Array.isArray(this.recipients)){e.recipients=[];var d,u=Object(I.a)(this.recipients);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.recipients.push(h.toJSON())}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),On=function(){function e(t){if(Object(O.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance}}},{key:"toJSON",value:function(e){for(var t in e="object"===typeof e?e:{},this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e.type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),An=function(){function e(t){if(Object(O.a)(this,e),this.subjectAreaCreditId=void 0,this.licenseId=void 0,this.creditId=void 0,this.name=void 0,this.shortName=void 0,this.isArchived=void 0,this.isTechnical=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.subjectAreaCreditId=e.subjectAreaCreditId,this.licenseId=e.licenseId,this.creditId=e.creditId,this.name=e.name,this.shortName=e.shortName,this.isArchived=e.isArchived,this.isTechnical=e.isTechnical)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).subjectAreaCreditId=this.subjectAreaCreditId,e.licenseId=this.licenseId,e.creditId=this.creditId,e.name=this.name,e.shortName=this.shortName,e.isArchived=this.isArchived,e.isTechnical=this.isTechnical,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jn=function(){function e(t){if(Object(O.a)(this,e),this.subjectAreaCredits=void 0,this.licenseCredits=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.subjectAreaCredits)){this.subjectAreaCredits=[];var t,i=Object(I.a)(e.subjectAreaCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subjectAreaCredits.push(An.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.licenseCredits)){this.licenseCredits=[];var a,n=Object(I.a)(e.licenseCredits);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.licenseCredits.push(_r.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.subjectAreaCredits)){e.subjectAreaCredits=[];var t,i=Object(I.a)(this.subjectAreaCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subjectAreaCredits.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.licenseCredits)){e.licenseCredits=[];var a,n=Object(I.a)(this.licenseCredits);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.licenseCredits.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cn=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pn=function(){function e(t){if(Object(O.a)(this,e),this.mappedLicenses=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.mappedLicenses)){this.mappedLicenses=[];var t,i=Object(I.a)(e.mappedLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.mappedLicenses.push(Cn.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.mappedLicenses)){e.mappedLicenses=[];var t,i=Object(I.a)(this.mappedLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.mappedLicenses.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),En=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.subjectAreaMappingId=void 0,this.licenseName=void 0,this.licenseCreditId=void 0,this.licenseCreditName=void 0,this.subjectAreaCreditId=void 0,this.subjectAreaCreditName=void 0,this.isApprovalRequired=void 0,this.isTechnical=void 0,this.isArchived=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.subjectAreaMappingId=e.subjectAreaMappingId,this.licenseName=e.licenseName,this.licenseCreditId=e.licenseCreditId,this.licenseCreditName=e.licenseCreditName,this.subjectAreaCreditId=e.subjectAreaCreditId,this.subjectAreaCreditName=e.subjectAreaCreditName,this.isApprovalRequired=e.isApprovalRequired,this.isTechnical=e.isTechnical,this.isArchived=e.isArchived)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.subjectAreaMappingId=this.subjectAreaMappingId,e.licenseName=this.licenseName,e.licenseCreditId=this.licenseCreditId,e.licenseCreditName=this.licenseCreditName,e.subjectAreaCreditId=this.subjectAreaCreditId,e.subjectAreaCreditName=this.subjectAreaCreditName,e.isApprovalRequired=this.isApprovalRequired,e.isTechnical=this.isTechnical,e.isArchived=this.isArchived,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wn=function(){function e(t){if(Object(O.a)(this,e),this.groupName=void 0,this.subjectAreaMappings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.groupName=e.groupName,Array.isArray(e.subjectAreaMappings))){this.subjectAreaMappings=[];var t,i=Object(I.a)(e.subjectAreaMappings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subjectAreaMappings.push(En.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).groupName=this.groupName,Array.isArray(this.subjectAreaMappings)){e.subjectAreaMappings=[];var t,i=Object(I.a)(this.subjectAreaMappings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subjectAreaMappings.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kn=function(){function e(t){if(Object(O.a)(this,e),this.subjectAreaMappingGroups=void 0,this.isSubjectAreaLinked=void 0,this.isUsingDefaultMappings=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.subjectAreaMappingGroups)){this.subjectAreaMappingGroups=[];var t,i=Object(I.a)(e.subjectAreaMappingGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subjectAreaMappingGroups.push(wn.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.isSubjectAreaLinked=e.isSubjectAreaLinked,this.isUsingDefaultMappings=e.isUsingDefaultMappings,this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.subjectAreaMappingGroups)){e.subjectAreaMappingGroups=[];var t,i=Object(I.a)(this.subjectAreaMappingGroups);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subjectAreaMappingGroups.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.isSubjectAreaLinked=this.isSubjectAreaLinked,e.isUsingDefaultMappings=this.isUsingDefaultMappings,e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tn=function(){function e(t){if(Object(O.a)(this,e),this.subLicenseId=void 0,this.name=void 0,this.shortName=void 0,this.parentLicenseId=void 0,this.subLicenseCredits=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.subLicenseId=e.subLicenseId,this.name=e.name,this.shortName=e.shortName,this.parentLicenseId=e.parentLicenseId,Array.isArray(e.subLicenseCredits))){this.subLicenseCredits=[];var t,i=Object(I.a)(e.subLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subLicenseCredits.push($r.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).subLicenseId=this.subLicenseId,e.name=this.name,e.shortName=this.shortName,e.parentLicenseId=this.parentLicenseId,Array.isArray(this.subLicenseCredits)){e.subLicenseCredits=[];var t,i=Object(I.a)(this.subLicenseCredits);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subLicenseCredits.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.None=0]="None",e[e.AdministrativeAssistant=1]="AdministrativeAssistant",e[e.Supervisor=2]="Supervisor"}(Sn||(Sn={}));var Nn,Jn=function(){function e(t){if(Object(O.a)(this,e),this.appId=void 0,this.name=void 0,this.code=void 0,this.adminClientId=void 0,this.adminUrl=void 0,this.portalClientId=void 0,this.portalUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.appId=e.appId,this.name=e.name,this.code=e.code,this.adminClientId=e.adminClientId,this.adminUrl=e.adminUrl,this.portalClientId=e.portalClientId,this.portalUrl=e.portalUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).appId=this.appId,e.name=this.name,e.code=this.code,e.adminClientId=this.adminClientId,e.adminUrl=this.adminUrl,e.portalClientId=this.portalClientId,e.portalUrl=this.portalUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dn=function(){function e(t){if(Object(O.a)(this,e),this.timezoneId=void 0,this.abbreviation=void 0,this.dstAbbreviation=void 0,this.description=void 0,this.name=void 0,this.hasDst=void 0,this.utcOffset=void 0,this.dstOffset=void 0,this.isActive=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.timezoneId=e.timezoneId,this.abbreviation=e.abbreviation,this.dstAbbreviation=e.dstAbbreviation,this.description=e.description,this.name=e.name,this.hasDst=e.hasDst,this.utcOffset=e.utcOffset,this.dstOffset=e.dstOffset,this.isActive=e.isActive,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).timezoneId=this.timezoneId,e.abbreviation=this.abbreviation,e.dstAbbreviation=this.dstAbbreviation,e.description=this.description,e.name=this.name,e.hasDst=this.hasDst,e.utcOffset=this.utcOffset,e.dstOffset=this.dstOffset,e.isActive=this.isActive,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ln=function(){function e(t){if(Object(O.a)(this,e),this.timezones=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.timezones)){this.timezones=[];var t,i=Object(I.a)(e.timezones);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.timezones.push(Dn.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.timezones)){e.timezones=[];var t,i=Object(I.a)(this.timezones);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.timezones.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Un=function(){function e(t){if(Object(O.a)(this,e),this.tokenId=void 0,this.name=void 0,this.code=void 0,this.type=void 0,this.group=void 0,this.defaultValue=void 0,this.pattern=void 0,this.previewValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.tokenId=e.tokenId,this.name=e.name,this.code=e.code,this.type=e.type,this.group=e.group,this.defaultValue=e.defaultValue,this.pattern=e.pattern,this.previewValue=e.previewValue)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).tokenId=this.tokenId,e.name=this.name,e.code=this.code,e.type=this.type,e.group=this.group,e.defaultValue=this.defaultValue,e.pattern=this.pattern,e.previewValue=this.previewValue,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.EmailDetails=1]="EmailDetails",e[e.RecipientInformation=2]="RecipientInformation",e[e.SenderInformation=3]="SenderInformation",e[e.FirmInformation=4]="FirmInformation",e[e.Default=5]="Default",e[e.Custom=6]="Custom"}(Nn||(Nn={}));var Rn,xn=function(){function e(t){if(Object(O.a)(this,e),this.apiClientId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.roleId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.apiClientId=e.apiClientId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.roleId=e.roleId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).apiClientId=this.apiClientId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.roleId=this.roleId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fn=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.firmGroupId=void 0,this.locationId=void 0,this.renewalDate=void 0,this.industryId=void 0,this.isFromMM=void 0,this.language=void 0,this.dateFormat=void 0,this.timezone=void 0,this.isLoginScreenEnabled=void 0,this.signInLabels=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.name=e.name,this.firmGroupId=e.firmGroupId,this.locationId=e.locationId,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.industryId=e.industryId,this.isFromMM=e.isFromMM,this.language=e.language,this.dateFormat=e.dateFormat,this.timezone=e.timezone,this.isLoginScreenEnabled=e.isLoginScreenEnabled,this.signInLabels=e.signInLabels)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).name=this.name,e.firmGroupId=this.firmGroupId,e.locationId=this.locationId,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.industryId=this.industryId,e.isFromMM=this.isFromMM,e.language=this.language,e.dateFormat=this.dateFormat,e.timezone=this.timezone,e.isLoginScreenEnabled=this.isLoginScreenEnabled,e.signInLabels=this.signInLabels,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mn=function(){function e(t){if(Object(O.a)(this,e),this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.settings=[])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.settings)){this.settings=[];var t,i=Object(I.a)(e.settings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.settings.push(Ci.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.settings)){e.settings=[];var t,i=Object(I.a)(this.settings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.settings.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gn=function(){function e(t){if(Object(O.a)(this,e),this.integrationId=void 0,this.name=void 0,this.description=void 0,this.url=void 0,this.logo=void 0,this.isEnabled=void 0,this.isVisible=void 0,this.allowManualRun=void 0,this.allowSchedule=void 0,this.schedule=void 0,this.timezoneId=void 0,this.timezone=void 0,this.tags=void 0,this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.integrationId=e.integrationId,this.name=e.name,this.description=e.description,this.url=e.url,this.logo=e.logo,this.isEnabled=e.isEnabled,this.isVisible=e.isVisible,this.allowManualRun=e.allowManualRun,this.allowSchedule=e.allowSchedule,this.schedule=e.schedule,this.timezoneId=e.timezoneId,this.timezone=e.timezone?Dn.fromJS(e.timezone):void 0,Array.isArray(e.tags)){this.tags=[];var t,i=Object(I.a)(e.tags);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.tags.push(pr.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.settings)){this.settings=[];var a,n=Object(I.a)(e.settings);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.settings.push(vr.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).integrationId=this.integrationId,e.name=this.name,e.description=this.description,e.url=this.url,e.logo=this.logo,e.isEnabled=this.isEnabled,e.isVisible=this.isVisible,e.allowManualRun=this.allowManualRun,e.allowSchedule=this.allowSchedule,e.schedule=this.schedule,e.timezoneId=this.timezoneId,e.timezone=this.timezone?this.timezone.toJSON():void 0,Array.isArray(this.tags)){e.tags=[];var t,i=Object(I.a)(this.tags);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.tags.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.settings)){e.settings=[];var a,n=Object(I.a)(this.settings);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.settings.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bn=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,this.description=void 0,this.isActive=void 0,this.isDefault=void 0,this.roleTypeId=void 0,this.rolePermissionSets=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.roleId=e.roleId,this.name=e.name,this.description=e.description,this.isActive=e.isActive,this.isDefault=e.isDefault,this.roleTypeId=e.roleTypeId,Array.isArray(e.rolePermissionSets))){this.rolePermissionSets=[];var t,i=Object(I.a)(e.rolePermissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.rolePermissionSets.push(r)}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.description=this.description,e.isActive=this.isActive,e.isDefault=this.isDefault,e.roleTypeId=this.roleTypeId,Array.isArray(this.rolePermissionSets)){e.rolePermissionSets=[];var t,i=Object(I.a)(this.rolePermissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.rolePermissionSets.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qn=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.firmSubjectAreaMappingId=void 0,this.isLinked=void 0,this.isUsingDefaultMapping=void 0,this.isMappingRemoved=void 0,this.isUpdatingRow=void 0,this.isApprovalRequired=void 0,this.isLinkUpdate=void 0,this.subjectAreaMappings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.licenseId=e.licenseId,this.firmSubjectAreaMappingId=e.firmSubjectAreaMappingId,this.isLinked=e.isLinked,this.isUsingDefaultMapping=e.isUsingDefaultMapping,this.isMappingRemoved=e.isMappingRemoved,this.isUpdatingRow=e.isUpdatingRow,this.isApprovalRequired=e.isApprovalRequired,this.isLinkUpdate=e.isLinkUpdate,Array.isArray(e.subjectAreaMappings))){this.subjectAreaMappings=[];var t,i=Object(I.a)(e.subjectAreaMappings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.subjectAreaMappings.push(Pi.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).licenseId=this.licenseId,e.firmSubjectAreaMappingId=this.firmSubjectAreaMappingId,e.isLinked=this.isLinked,e.isUsingDefaultMapping=this.isUsingDefaultMapping,e.isMappingRemoved=this.isMappingRemoved,e.isUpdatingRow=this.isUpdatingRow,e.isApprovalRequired=this.isApprovalRequired,e.isLinkUpdate=this.isLinkUpdate,Array.isArray(this.subjectAreaMappings)){e.subjectAreaMappings=[];var t,i=Object(I.a)(this.subjectAreaMappings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.subjectAreaMappings.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vn=function(){function e(t){if(Object(O.a)(this,e),this.activityId=void 0,this.title=void 0,this.description=void 0,this.note=void 0,this.archivedDate=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.title=e.title,this.description=e.description,this.note=e.note,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.title=this.title,e.description=this.description,e.note=this.note,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wn=function(){function e(t){if(Object(O.a)(this,e),this.isAdmin=void 0,this.appClientId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.isAdmin=e.isAdmin,this.appClientId=e.appClientId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).isAdmin=this.isAdmin,e.appClientId=this.appClientId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zn=function(){function e(t){if(Object(O.a)(this,e),this.idpId=void 0,this.isActive=void 0,this.portalAccessEnabled=void 0,this.userType=void 0,this.userApplicationAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.idpId=e.idpId,this.isActive=e.isActive,this.portalAccessEnabled=e.portalAccessEnabled,this.userType=e.userType,Array.isArray(e.userApplicationAccess))){this.userApplicationAccess=[];var t,i=Object(I.a)(e.userApplicationAccess);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userApplicationAccess.push(Et.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).idpId=this.idpId,e.isActive=this.isActive,e.portalAccessEnabled=this.portalAccessEnabled,e.userType=this.userType,Array.isArray(this.userApplicationAccess)){e.userApplicationAccess=[];var t,i=Object(I.a)(this.userApplicationAccess);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userApplicationAccess.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hn=function(){function e(t){if(Object(O.a)(this,e),this.userAvatarId=void 0,this.fileId=void 0,this.userAvatarUrl=void 0,this.userAvatarThumbnailURl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userAvatarId=e.userAvatarId,this.fileId=e.fileId,this.userAvatarUrl=e.userAvatarUrl,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userAvatarId=this.userAvatarId,e.fileId=this.fileId,e.userAvatarUrl=this.userAvatarUrl,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$n=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_n=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantCertificateId=void 0,this.sessionParticipantId=void 0,this.fileId=void 0,this.fileName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantCertificateId=e.sessionParticipantCertificateId,this.sessionParticipantId=e.sessionParticipantId,this.fileId=e.fileId,this.fileName=e.fileName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantCertificateId=this.sessionParticipantCertificateId,e.sessionParticipantId=this.sessionParticipantId,e.fileId=this.fileId,e.fileName=this.fileName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yn=function(){function e(t){if(Object(O.a)(this,e),this.classYearId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.classYearId=e.classYearId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).classYearId=this.classYearId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Qn=function(){function e(t){if(Object(O.a)(this,e),this.departmentId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kn=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.userType=void 0,this.value=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.nickname=void 0,this.genderId=void 0,this.gender=void 0,this.birthDate=void 0,this.graduationDate=void 0,this.createdDate=void 0,this.hireDate=void 0,this.fireDate=void 0,this.inactiveDate=void 0,this.locationId=void 0,this.location=void 0,this.street=void 0,this.city=void 0,this.stateId=void 0,this.countryId=void 0,this.zip=void 0,this.phone=void 0,this.emailSecretary=void 0,this.emailPracticeLeader=void 0,this.email=void 0,this.emailVerified=void 0,this.userName=void 0,this.personnelId=void 0,this.note=void 0,this.affiliationId=void 0,this.portalAccessEnabled=void 0,this.position=void 0,this.idpId=void 0,this.userAvatarId=void 0,this.hasUKLicense=void 0,this.hasPortalDevelopmentPlanAccess=void 0,this.userAvatar=void 0,this.userClassYear=void 0,this.userDepartment=void 0,this.userEthnicity=void 0,this.userLevel=void 0,this.userPracticeArea=void 0,this.userPosition=void 0,this.userLicense=void 0,this.userRole=void 0,this.securityUserSecurityGroup=void 0,this.userRelationship=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.userType=e.userType,this.value=e.value,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.nickname=e.nickname,this.genderId=e.genderId,this.gender=e.gender?wi.fromJS(e.gender):void 0,this.birthDate=e.birthDate?new Date(e.birthDate.toString()):void 0,this.graduationDate=e.graduationDate?new Date(e.graduationDate.toString()):void 0,this.createdDate=e.createdDate?new Date(e.createdDate.toString()):void 0,this.hireDate=e.hireDate?new Date(e.hireDate.toString()):void 0,this.fireDate=e.fireDate?new Date(e.fireDate.toString()):void 0,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.locationId=e.locationId,this.location=e.location?na.fromJS(e.location):void 0,this.street=e.street,this.city=e.city,this.stateId=e.stateId,this.countryId=e.countryId,this.zip=e.zip,this.phone=e.phone,this.emailSecretary=e.emailSecretary,this.emailPracticeLeader=e.emailPracticeLeader,this.email=e.email,this.emailVerified=e.emailVerified,this.userName=e.userName,this.personnelId=e.personnelId,this.note=e.note,this.affiliationId=e.affiliationId,this.portalAccessEnabled=e.portalAccessEnabled,this.position=e.position,this.idpId=e.idpId,this.userAvatarId=e.userAvatarId,this.hasUKLicense=e.hasUKLicense,this.hasPortalDevelopmentPlanAccess=e.hasPortalDevelopmentPlanAccess,this.userAvatar=e.userAvatar?Hn.fromJS(e.userAvatar):void 0,Array.isArray(e.userClassYear)){this.userClassYear=[];var t,i=Object(I.a)(e.userClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userClassYear.push(Yn.fromJS(r))}}catch(J){i.e(J)}finally{i.f()}}if(Array.isArray(e.userDepartment)){this.userDepartment=[];var a,n=Object(I.a)(e.userDepartment);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.userDepartment.push(Qn.fromJS(s))}}catch(J){n.e(J)}finally{n.f()}}if(Array.isArray(e.userEthnicity)){this.userEthnicity=[];var o,c=Object(I.a)(e.userEthnicity);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userEthnicity.push(Xn.fromJS(l))}}catch(J){c.e(J)}finally{c.f()}}if(Array.isArray(e.userLevel)){this.userLevel=[];var d,u=Object(I.a)(e.userLevel);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.userLevel.push(ls.fromJS(h))}}catch(J){u.e(J)}finally{u.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var f,v=Object(I.a)(e.userPracticeArea);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.userPracticeArea.push(Os.fromJS(p))}}catch(J){v.e(J)}finally{v.f()}}if(Array.isArray(e.userPosition)){this.userPosition=[];var m,y=Object(I.a)(e.userPosition);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.userPosition.push(Is.fromJS(b))}}catch(J){y.e(J)}finally{y.f()}}if(Array.isArray(e.userLicense)){this.userLicense=[];var S,g=Object(I.a)(e.userLicense);try{for(g.s();!(S=g.n()).done;){var O=S.value;this.userLicense.push(fs.fromJS(O))}}catch(J){g.e(J)}finally{g.f()}}if(Array.isArray(e.userRole)){this.userRole=[];var A,j=Object(I.a)(e.userRole);try{for(j.s();!(A=j.n()).done;){var C=A.value;this.userRole.push(Cs.fromJS(C))}}catch(J){j.e(J)}finally{j.f()}}if(Array.isArray(e.securityUserSecurityGroup)){this.securityUserSecurityGroup=[];var P,E=Object(I.a)(e.securityUserSecurityGroup);try{for(E.s();!(P=E.n()).done;){var w=P.value;this.securityUserSecurityGroup.push(hn.fromJS(w))}}catch(J){E.e(J)}finally{E.f()}}if(Array.isArray(e.userRelationship)){this.userRelationship=[];var k,T=Object(I.a)(e.userRelationship);try{for(T.s();!(k=T.n()).done;){var N=k.value;this.userRelationship.push(js.fromJS(N))}}catch(J){T.e(J)}finally{T.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.userType=this.userType,e.value=this.value,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.nickname=this.nickname,e.genderId=this.genderId,e.gender=this.gender?this.gender.toJSON():void 0,e.birthDate=this.birthDate?this.birthDate.toISOString():void 0,e.graduationDate=this.graduationDate?this.graduationDate.toISOString():void 0,e.createdDate=this.createdDate?this.createdDate.toISOString():void 0,e.hireDate=this.hireDate?this.hireDate.toISOString():void 0,e.fireDate=this.fireDate?this.fireDate.toISOString():void 0,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.locationId=this.locationId,e.location=this.location?this.location.toJSON():void 0,e.street=this.street,e.city=this.city,e.stateId=this.stateId,e.countryId=this.countryId,e.zip=this.zip,e.phone=this.phone,e.emailSecretary=this.emailSecretary,e.emailPracticeLeader=this.emailPracticeLeader,e.email=this.email,e.emailVerified=this.emailVerified,e.userName=this.userName,e.personnelId=this.personnelId,e.note=this.note,e.affiliationId=this.affiliationId,e.portalAccessEnabled=this.portalAccessEnabled,e.position=this.position,e.idpId=this.idpId,e.userAvatarId=this.userAvatarId,e.hasUKLicense=this.hasUKLicense,e.hasPortalDevelopmentPlanAccess=this.hasPortalDevelopmentPlanAccess,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,Array.isArray(this.userClassYear)){e.userClassYear=[];var t,i=Object(I.a)(this.userClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userClassYear.push(r.toJSON())}}catch(J){i.e(J)}finally{i.f()}}if(Array.isArray(this.userDepartment)){e.userDepartment=[];var a,n=Object(I.a)(this.userDepartment);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.userDepartment.push(s.toJSON())}}catch(J){n.e(J)}finally{n.f()}}if(Array.isArray(this.userEthnicity)){e.userEthnicity=[];var o,c=Object(I.a)(this.userEthnicity);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userEthnicity.push(l.toJSON())}}catch(J){c.e(J)}finally{c.f()}}if(Array.isArray(this.userLevel)){e.userLevel=[];var d,u=Object(I.a)(this.userLevel);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.userLevel.push(h.toJSON())}}catch(J){u.e(J)}finally{u.f()}}if(Array.isArray(this.userPracticeArea)){e.userPracticeArea=[];var f,v=Object(I.a)(this.userPracticeArea);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.userPracticeArea.push(p.toJSON())}}catch(J){v.e(J)}finally{v.f()}}if(Array.isArray(this.userPosition)){e.userPosition=[];var m,y=Object(I.a)(this.userPosition);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.userPosition.push(b.toJSON())}}catch(J){y.e(J)}finally{y.f()}}if(Array.isArray(this.userLicense)){e.userLicense=[];var S,g=Object(I.a)(this.userLicense);try{for(g.s();!(S=g.n()).done;){var O=S.value;e.userLicense.push(O.toJSON())}}catch(J){g.e(J)}finally{g.f()}}if(Array.isArray(this.userRole)){e.userRole=[];var A,j=Object(I.a)(this.userRole);try{for(j.s();!(A=j.n()).done;){var C=A.value;e.userRole.push(C.toJSON())}}catch(J){j.e(J)}finally{j.f()}}if(Array.isArray(this.securityUserSecurityGroup)){e.securityUserSecurityGroup=[];var P,E=Object(I.a)(this.securityUserSecurityGroup);try{for(E.s();!(P=E.n()).done;){var w=P.value;e.securityUserSecurityGroup.push(w.toJSON())}}catch(J){E.e(J)}finally{E.f()}}if(Array.isArray(this.userRelationship)){e.userRelationship=[];var k,T=Object(I.a)(this.userRelationship);try{for(T.s();!(k=T.n()).done;){var N=k.value;e.userRelationship.push(N.toJSON())}}catch(J){T.e(J)}finally{T.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zn=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.locationId=void 0,this.location=void 0,this.genderId=void 0,this.email=void 0,this.username=void 0,this.personnelId=void 0,this.userAvatar=void 0,this.position=void 0,this.userClassYear=void 0,this.userDepartment=void 0,this.userEthnicity=void 0,this.userLevel=void 0,this.userPracticeArea=void 0,this.userPosition=void 0,this.isExistingInCEM=void 0,this.isExistingInUserPool=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.locationId=e.locationId,this.location=e.location?na.fromJS(e.location):void 0,this.genderId=e.genderId,this.email=e.email,this.username=e.username,this.personnelId=e.personnelId,this.userAvatar=e.userAvatar?Hn.fromJS(e.userAvatar):void 0,this.position=e.position,Array.isArray(e.userClassYear)){this.userClassYear=[];var t,i=Object(I.a)(e.userClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userClassYear.push(Yn.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.userDepartment)){this.userDepartment=[];var a,n=Object(I.a)(e.userDepartment);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.userDepartment.push(Qn.fromJS(s))}}catch(S){n.e(S)}finally{n.f()}}if(Array.isArray(e.userEthnicity)){this.userEthnicity=[];var o,c=Object(I.a)(e.userEthnicity);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userEthnicity.push(Xn.fromJS(l))}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(e.userLevel)){this.userLevel=[];var d,u=Object(I.a)(e.userLevel);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.userLevel.push(ls.fromJS(h))}}catch(S){u.e(S)}finally{u.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var f,v=Object(I.a)(e.userPracticeArea);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.userPracticeArea.push(Os.fromJS(p))}}catch(S){v.e(S)}finally{v.f()}}if(Array.isArray(e.userPosition)){this.userPosition=[];var m,y=Object(I.a)(e.userPosition);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.userPosition.push(Is.fromJS(b))}}catch(S){y.e(S)}finally{y.f()}}this.isExistingInCEM=e.isExistingInCEM,this.isExistingInUserPool=e.isExistingInUserPool}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.locationId=this.locationId,e.location=this.location?this.location.toJSON():void 0,e.genderId=this.genderId,e.email=this.email,e.username=this.username,e.personnelId=this.personnelId,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,e.position=this.position,Array.isArray(this.userClassYear)){e.userClassYear=[];var t,i=Object(I.a)(this.userClassYear);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userClassYear.push(r.toJSON())}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(this.userDepartment)){e.userDepartment=[];var a,n=Object(I.a)(this.userDepartment);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.userDepartment.push(s.toJSON())}}catch(S){n.e(S)}finally{n.f()}}if(Array.isArray(this.userEthnicity)){e.userEthnicity=[];var o,c=Object(I.a)(this.userEthnicity);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userEthnicity.push(l.toJSON())}}catch(S){c.e(S)}finally{c.f()}}if(Array.isArray(this.userLevel)){e.userLevel=[];var d,u=Object(I.a)(this.userLevel);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.userLevel.push(h.toJSON())}}catch(S){u.e(S)}finally{u.f()}}if(Array.isArray(this.userPracticeArea)){e.userPracticeArea=[];var f,v=Object(I.a)(this.userPracticeArea);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.userPracticeArea.push(p.toJSON())}}catch(S){v.e(S)}finally{v.f()}}if(Array.isArray(this.userPosition)){e.userPosition=[];var m,y=Object(I.a)(this.userPosition);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.userPosition.push(b.toJSON())}}catch(S){y.e(S)}finally{y.f()}}return e.isExistingInCEM=this.isExistingInCEM,e.isExistingInUserPool=this.isExistingInUserPool,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xn=function(){function e(t){if(Object(O.a)(this,e),this.ethnicityId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.ethnicityId=e.ethnicityId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).ethnicityId=this.ethnicityId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),es=function(){function e(t){if(Object(O.a)(this,e),this.sessionEvaluationId=void 0,this.evaluationDate=void 0,this.declinedDate=void 0,this.evaluationId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionEvaluationId=e.sessionEvaluationId,this.evaluationDate=e.evaluationDate?new Date(e.evaluationDate.toString()):void 0,this.declinedDate=e.declinedDate?new Date(e.declinedDate.toString()):void 0,this.evaluationId=e.evaluationId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionEvaluationId=this.sessionEvaluationId,e.evaluationDate=this.evaluationDate?this.evaluationDate.toISOString():void 0,e.declinedDate=this.declinedDate?this.declinedDate.toISOString():void 0,e.evaluationId=this.evaluationId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ts=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.reportName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.reportName=e.reportName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.reportName=this.reportName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Registered=1]="Registered",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(Rn||(Rn={}));var is,rs=function(){function e(t){if(Object(O.a)(this,e),this.activityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.activityId=e.activityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).activityId=this.activityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),as=function(){function e(t){if(Object(O.a)(this,e),this.courseId=void 0,this.displayOrder=void 0,this.name=void 0,this.type=void 0,this.prerequisiteOf=void 0,this.prerequisiteCount=void 0,this.providerName=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.courseId=e.courseId,this.displayOrder=e.displayOrder,this.name=e.name,this.type=e.type,this.prerequisiteOf=e.prerequisiteOf,this.prerequisiteCount=e.prerequisiteCount,this.providerName=e.providerName)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,e.displayOrder=this.displayOrder,e.name=this.name,e.type=this.type,e.prerequisiteOf=this.prerequisiteOf,e.prerequisiteCount=this.prerequisiteCount,e.providerName=this.providerName,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ns=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.title=void 0,this.description=void 0,this.notes=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.criteriaStatus=void 0,this.status=void 0,this.isIncluded=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.materialsCount=void 0,this.isSelfEnrolled=void 0,this.archivedDate=void 0,this.completedDate=void 0,this.learningPlanCompetencies=void 0,this.learningPlanTags=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,this.learningPlanMaterials=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.title=e.title,this.description=e.description,this.notes=e.notes,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.criteriaStatus=e.criteriaStatus,this.status=e.status,this.isIncluded=e.isIncluded,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.materialsCount=e.materialsCount,this.isSelfEnrolled=e.isSelfEnrolled,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,Array.isArray(e.learningPlanCompetencies)){this.learningPlanCompetencies=[];var t,i=Object(I.a)(e.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCompetencies.push(Tr.fromJS(r))}}catch(m){i.e(m)}finally{i.f()}}if(Array.isArray(e.learningPlanTags)){this.learningPlanTags=[];var a,n=Object(I.a)(e.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.learningPlanTags.push(Ur.fromJS(s))}}catch(m){n.e(m)}finally{n.f()}}if(Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var o,c=Object(I.a)(e.learningPlanCourses);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.learningPlanCourses.push(as.fromJS(l))}}catch(m){c.e(m)}finally{c.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var d,u=Object(I.a)(e.learningPlanActivities);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.learningPlanActivities.push(rs.fromJS(h))}}catch(m){u.e(m)}finally{u.f()}}if(Array.isArray(e.learningPlanMaterials)){this.learningPlanMaterials=[];var f,v=Object(I.a)(e.learningPlanMaterials);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.learningPlanMaterials.push(Jr.fromJS(p))}}catch(m){v.e(m)}finally{v.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.title=this.title,e.description=this.description,e.notes=this.notes,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.criteriaStatus=this.criteriaStatus,e.status=this.status,e.isIncluded=this.isIncluded,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.materialsCount=this.materialsCount,e.isSelfEnrolled=this.isSelfEnrolled,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,Array.isArray(this.learningPlanCompetencies)){e.learningPlanCompetencies=[];var t,i=Object(I.a)(this.learningPlanCompetencies);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCompetencies.push(r.toJSON())}}catch(m){i.e(m)}finally{i.f()}}if(Array.isArray(this.learningPlanTags)){e.learningPlanTags=[];var a,n=Object(I.a)(this.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.learningPlanTags.push(s.toJSON())}}catch(m){n.e(m)}finally{n.f()}}if(Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var o,c=Object(I.a)(this.learningPlanCourses);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.learningPlanCourses.push(l.toJSON())}}catch(m){c.e(m)}finally{c.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var d,u=Object(I.a)(this.learningPlanActivities);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.learningPlanActivities.push(h.toJSON())}}catch(m){u.e(m)}finally{u.f()}}if(Array.isArray(this.learningPlanMaterials)){e.learningPlanMaterials=[];var f,v=Object(I.a)(this.learningPlanMaterials);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.learningPlanMaterials.push(p.toJSON())}}catch(m){v.e(m)}finally{v.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ss=function(){function e(t){if(Object(O.a)(this,e),this.userLearningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLearningPlans)){this.userLearningPlans=[];var t,i=Object(I.a)(e.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLearningPlans.push(ns.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLearningPlans)){e.userLearningPlans=[];var t,i=Object(I.a)(this.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLearningPlans.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),os=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanId=void 0,this.participantId=void 0,this.title=void 0,this.description=void 0,this.notes=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,this.requiredCourses=void 0,this.status=void 0,this.activityStatus=void 0,this.learnersChoiceStatus=void 0,this.mandatoryStatus=void 0,this.mandatoryCount=void 0,this.learnersChoiceCount=void 0,this.activityCount=void 0,this.isSelfEnrolled=void 0,this.archivedDate=void 0,this.completedDate=void 0,this.learningPlanCourses=void 0,this.learningPlanActivities=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.learningPlanId=e.learningPlanId,this.participantId=e.participantId,this.title=e.title,this.description=e.description,this.notes=e.notes,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType,this.requiredCourses=e.requiredCourses,this.status=e.status,this.activityStatus=e.activityStatus,this.learnersChoiceStatus=e.learnersChoiceStatus,this.mandatoryStatus=e.mandatoryStatus,this.mandatoryCount=e.mandatoryCount,this.learnersChoiceCount=e.learnersChoiceCount,this.activityCount=e.activityCount,this.isSelfEnrolled=e.isSelfEnrolled,this.archivedDate=e.archivedDate?new Date(e.archivedDate.toString()):void 0,this.completedDate=e.completedDate?new Date(e.completedDate.toString()):void 0,Array.isArray(e.learningPlanCourses)){this.learningPlanCourses=[];var t,i=Object(I.a)(e.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.learningPlanCourses.push(Dr.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.learningPlanActivities)){this.learningPlanActivities=[];var a,n=Object(I.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.learningPlanActivities.push(Dr.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.participantId=this.participantId,e.title=this.title,e.description=this.description,e.notes=this.notes,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e.requiredCourses=this.requiredCourses,e.status=this.status,e.activityStatus=this.activityStatus,e.learnersChoiceStatus=this.learnersChoiceStatus,e.mandatoryStatus=this.mandatoryStatus,e.mandatoryCount=this.mandatoryCount,e.learnersChoiceCount=this.learnersChoiceCount,e.activityCount=this.activityCount,e.isSelfEnrolled=this.isSelfEnrolled,e.archivedDate=this.archivedDate?this.archivedDate.toISOString():void 0,e.completedDate=this.completedDate?this.completedDate.toISOString():void 0,Array.isArray(this.learningPlanCourses)){e.learningPlanCourses=[];var t,i=Object(I.a)(this.learningPlanCourses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.learningPlanCourses.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.learningPlanActivities)){e.learningPlanActivities=[];var a,n=Object(I.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.learningPlanActivities.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cs=function(){function e(t){if(Object(O.a)(this,e),this.userLearningPlans=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLearningPlans)){this.userLearningPlans=[];var t,i=Object(I.a)(e.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLearningPlans.push(os.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLearningPlans)){e.userLearningPlans=[];var t,i=Object(I.a)(this.userLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLearningPlans.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ls=function(){function e(t){if(Object(O.a)(this,e),this.levelId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ds=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseCompliancePeriods=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userLicenseCompliancePeriods)){this.userLicenseCompliancePeriods=[];var t,i=Object(I.a)(e.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCompliancePeriods.push(us.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userLicenseCompliancePeriods)){e.userLicenseCompliancePeriods=[];var t,i=Object(I.a)(this.userLicenseCompliancePeriods);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCompliancePeriods.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),us=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodLabel=void 0,this.isLocked=void 0,this.lockedBy=void 0,this.periodFromCourse=void 0,this.periodToDisplay=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,this.rulesLink=void 0,this.stateBarOrganization=void 0,this.shortSummary=void 0,this.renewalDate=void 0,this.userSubLicenseCompliancePeriod=void 0,this.complianceStatusEnum=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodLabel=e.periodLabel,this.isLocked=e.isLocked,this.lockedBy=e.lockedBy,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus,this.rulesLink=e.rulesLink,this.stateBarOrganization=e.stateBarOrganization,this.shortSummary=e.shortSummary,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.userSubLicenseCompliancePeriod=e.userSubLicenseCompliancePeriod?ks.fromJS(e.userSubLicenseCompliancePeriod):void 0,this.complianceStatusEnum=e.complianceStatusEnum)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodLabel=this.periodLabel,e.isLocked=this.isLocked,e.lockedBy=this.lockedBy,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e.rulesLink=this.rulesLink,e.stateBarOrganization=this.stateBarOrganization,e.shortSummary=this.shortSummary,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.userSubLicenseCompliancePeriod=this.userSubLicenseCompliancePeriod?this.userSubLicenseCompliancePeriod.toJSON():void 0,e.complianceStatusEnum=this.complianceStatusEnum,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hs=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.creditId=void 0,this.creditName=void 0,this.value=void 0,this.isFieldsOfStudyApproved=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.creditId=e.creditId,this.creditName=e.creditName,this.value=e.value,this.isFieldsOfStudyApproved=e.isFieldsOfStudyApproved)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.creditId=this.creditId,e.creditName=this.creditName,e.value=this.value,e.isFieldsOfStudyApproved=this.isFieldsOfStudyApproved,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fs=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.licenseId=void 0,this.name=void 0,this.complianceStatusId=void 0,this.industryId=void 0,this.userLicenseProfileValue=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,this.licenseId=e.licenseId,this.name=e.name,this.complianceStatusId=e.complianceStatusId,this.industryId=e.industryId,Array.isArray(e.userLicenseProfileValue))){this.userLicenseProfileValue=[];var t,i=Object(I.a)(e.userLicenseProfileValue);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseProfileValue.push(ps.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.licenseId=this.licenseId,e.name=this.name,e.complianceStatusId=this.complianceStatusId,e.industryId=this.industryId,Array.isArray(this.userLicenseProfileValue)){e.userLicenseProfileValue=[];var t,i=Object(I.a)(this.userLicenseProfileValue);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseProfileValue.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vs=function(){function e(t){if(Object(O.a)(this,e),this.fieldName=void 0,this.profileId=void 0,this.fieldType=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueOption=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.fieldName=e.fieldName,this.profileId=e.profileId,this.fieldType=e.fieldType,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueOption=e.valueOption)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).fieldName=this.fieldName,e.profileId=this.profileId,e.fieldType=this.fieldType,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ps=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.profileId=void 0,this.name=void 0,this.typeId=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueOption=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.profileId=e.profileId,this.name=e.name,this.typeId=e.typeId,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueOption=e.valueOption,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.profileId=this.profileId,e.name=this.name,e.typeId=this.typeId,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ms=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.propertyId=void 0,this.fieldType=void 0,this.propertyLabel=void 0,this.valueBit=void 0,this.valueInt=void 0,this.valueDecimal=void 0,this.valueDate=void 0,this.valueChar=void 0,this.valueOption=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.propertyId=e.propertyId,this.fieldType=e.fieldType,this.propertyLabel=e.propertyLabel,this.valueBit=e.valueBit,this.valueInt=e.valueInt,this.valueDecimal=e.valueDecimal,this.valueDate=e.valueDate?new Date(e.valueDate.toString()):void 0,this.valueChar=e.valueChar,this.valueOption=e.valueOption)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.propertyId=this.propertyId,e.fieldType=this.fieldType,e.propertyLabel=this.propertyLabel,e.valueBit=this.valueBit,e.valueInt=this.valueInt,e.valueDecimal=this.valueDecimal,e.valueDate=this.valueDate?this.valueDate.toISOString():void 0,e.valueChar=this.valueChar,e.valueOption=this.valueOption,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ys=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.parentLicenseId=void 0,this.industry=void 0,this.isNotTracked=void 0,this.periodEndDate=void 0,this.periodNumber=void 0,this.creditsNeeded=void 0,this.complianceStatusId=void 0,this.priorPeriodDeficiency=void 0,this.isAdditionalRequirementNeeded=void 0,this.renewalDate=void 0,this.jurisdictionReportGuid=void 0,this.isLicenseNotDisplayedToTheProfessional=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.parentLicenseId=e.parentLicenseId,this.industry=e.industry,this.isNotTracked=e.isNotTracked,this.periodEndDate=e.periodEndDate?new Date(e.periodEndDate.toString()):void 0,this.periodNumber=e.periodNumber,this.creditsNeeded=e.creditsNeeded,this.complianceStatusId=e.complianceStatusId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.isAdditionalRequirementNeeded=e.isAdditionalRequirementNeeded,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.jurisdictionReportGuid=e.jurisdictionReportGuid,this.isLicenseNotDisplayedToTheProfessional=e.isLicenseNotDisplayedToTheProfessional)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.parentLicenseId=this.parentLicenseId,e.industry=this.industry,e.isNotTracked=this.isNotTracked,e.periodEndDate=this.periodEndDate?this.periodEndDate.toISOString():void 0,e.periodNumber=this.periodNumber,e.creditsNeeded=this.creditsNeeded,e.complianceStatusId=this.complianceStatusId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.isAdditionalRequirementNeeded=this.isAdditionalRequirementNeeded,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.jurisdictionReportGuid=this.jurisdictionReportGuid,e.isLicenseNotDisplayedToTheProfessional=this.isLicenseNotDisplayedToTheProfessional,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bs=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.licenseName=void 0,this.parentLicenseId=void 0,this.industry=void 0,this.isNotTracked=void 0,this.periodEndDate=void 0,this.periodNumber=void 0,this.creditsNeeded=void 0,this.complianceStatusId=void 0,this.priorPeriodDeficiency=void 0,this.isAdditionalRequirementNeeded=void 0,this.renewalDate=void 0,this.jurisdictionReportGuid=void 0,this.isLicenseNotDisplayedToTheProfessional=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.parentLicenseId=e.parentLicenseId,this.industry=e.industry,this.isNotTracked=e.isNotTracked,this.periodEndDate=e.periodEndDate?new Date(e.periodEndDate.toString()):void 0,this.periodNumber=e.periodNumber,this.creditsNeeded=e.creditsNeeded,this.complianceStatusId=e.complianceStatusId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.isAdditionalRequirementNeeded=e.isAdditionalRequirementNeeded,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.jurisdictionReportGuid=e.jurisdictionReportGuid,this.isLicenseNotDisplayedToTheProfessional=e.isLicenseNotDisplayedToTheProfessional)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.licenseName=this.licenseName,e.parentLicenseId=this.parentLicenseId,e.industry=this.industry,e.isNotTracked=this.isNotTracked,e.periodEndDate=this.periodEndDate?this.periodEndDate.toISOString():void 0,e.periodNumber=this.periodNumber,e.creditsNeeded=this.creditsNeeded,e.complianceStatusId=this.complianceStatusId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.isAdditionalRequirementNeeded=this.isAdditionalRequirementNeeded,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.jurisdictionReportGuid=this.jurisdictionReportGuid,e.isLicenseNotDisplayedToTheProfessional=this.isLicenseNotDisplayedToTheProfessional,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ss=function(){function e(t){if(Object(O.a)(this,e),this.licenseId=void 0,this.fieldName=void 0,this.validationMessage=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.licenseId=e.licenseId,this.fieldName=e.fieldName,this.validationMessage=e.validationMessage)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).licenseId=this.licenseId,e.fieldName=this.fieldName,e.validationMessage=this.validationMessage,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gs=function(){function e(t){if(Object(O.a)(this,e),this.users=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.users)){this.users=[];var t,i=Object(I.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(Kn.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(I.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Is=function(){function e(t){if(Object(O.a)(this,e),this.positionId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.positionId=e.positionId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).positionId=this.positionId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Os=function(){function e(t){if(Object(O.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,this.code=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name,this.code=e.code)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e.code=this.code,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),As=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.dateFormat=void 0,this.timezone=void 0,this.signatureFileId=void 0,this.signatureUrl=void 0,this.thumbnailUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.dateFormat=e.dateFormat,this.timezone=e.timezone,this.signatureFileId=e.signatureFileId,this.signatureUrl=e.signatureUrl,this.thumbnailUrl=e.thumbnailUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.dateFormat=this.dateFormat,e.timezone=this.timezone,e.signatureFileId=this.signatureFileId,e.signatureUrl=this.signatureUrl,e.thumbnailUrl=this.thumbnailUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),js=function(){function e(t){if(Object(O.a)(this,e),this.sourceUserId=void 0,this.sourceFullName=void 0,this.sourceFirstName=void 0,this.sourceLastName=void 0,this.sourceEmail=void 0,this.targetUserId=void 0,this.name=void 0,this.relationshipTypeId=void 0,this.personnelId=void 0,this.relationship=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sourceUserId=e.sourceUserId,this.sourceFullName=e.sourceFullName,this.sourceFirstName=e.sourceFirstName,this.sourceLastName=e.sourceLastName,this.sourceEmail=e.sourceEmail,this.targetUserId=e.targetUserId,this.name=e.name,this.relationshipTypeId=e.relationshipTypeId,this.personnelId=e.personnelId,this.relationship=e.relationship)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sourceUserId=this.sourceUserId,e.sourceFullName=this.sourceFullName,e.sourceFirstName=this.sourceFirstName,e.sourceLastName=this.sourceLastName,e.sourceEmail=this.sourceEmail,e.targetUserId=this.targetUserId,e.name=this.name,e.relationshipTypeId=this.relationshipTypeId,e.personnelId=this.personnelId,e.relationship=this.relationship,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cs=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,this.roleTypeId=void 0,this.subRoleId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.name=e.name,this.roleTypeId=e.roleTypeId,this.subRoleId=e.subRoleId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.roleTypeId=this.roleTypeId,e.subRoleId=this.subRoleId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ps=function(){function e(t){if(Object(O.a)(this,e),this.sessionId=void 0,this.scheduleId=void 0,this.title=void 0,this.formatId=void 0,this.format=void 0,this.formatPortalCategory=void 0,this.startDate=void 0,this.endDate=void 0,this.startTime=void 0,this.endTime=void 0,this.timezone=void 0,this.locationId=void 0,this.location=void 0,this.roomId=void 0,this.room=void 0,this.isIndividualSessionDateAllowed=void 0,this.sessionLicenses=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.sessionId=e.sessionId,this.scheduleId=e.scheduleId,this.title=e.title,this.formatId=e.formatId,this.format=e.format,this.formatPortalCategory=e.formatPortalCategory,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.startTime=e.startTime,this.endTime=e.endTime,this.timezone=e.timezone,this.locationId=e.locationId,this.location=e.location,this.roomId=e.roomId,this.room=e.room,this.isIndividualSessionDateAllowed=e.isIndividualSessionDateAllowed,Array.isArray(e.sessionLicenses))){this.sessionLicenses=[];var t,i=Object(I.a)(e.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionLicenses.push(pn.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionId=this.sessionId,e.scheduleId=this.scheduleId,e.title=this.title,e.formatId=this.formatId,e.format=this.format,e.formatPortalCategory=this.formatPortalCategory,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.startTime=this.startTime,e.endTime=this.endTime,e.timezone=this.timezone,e.locationId=this.locationId,e.location=this.location,e.roomId=this.roomId,e.room=this.room,e.isIndividualSessionDateAllowed=this.isIndividualSessionDateAllowed,Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var t,i=Object(I.a)(this.sessionLicenses);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionLicenses.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Es=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.registrationDate=void 0,this.registeredBy=void 0,this.validationDate=void 0,this.validatedBy=void 0,this.completionDate=void 0,this.tentativeDate=void 0,this.isCreditAdjusted=void 0,this.sessionParticipantStatusId=void 0,this.previousStatusId=void 0,this.courseId=void 0,this.courseTitle=void 0,this.providerId=void 0,this.providerName=void 0,this.userLicenseCreditValues=void 0,this.session=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.registeredBy=e.registeredBy,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.validatedBy=e.validatedBy,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.isCreditAdjusted=e.isCreditAdjusted,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.previousStatusId=e.previousStatusId,this.courseId=e.courseId,this.courseTitle=e.courseTitle,this.providerId=e.providerId,this.providerName=e.providerName,Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var t,i=Object(I.a)(e.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicenseCreditValues.push(Ds.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.session=e.session?Ps.fromJS(e.session):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.registeredBy=this.registeredBy,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.validatedBy=this.validatedBy,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.isCreditAdjusted=this.isCreditAdjusted,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.previousStatusId=this.previousStatusId,e.courseId=this.courseId,e.courseTitle=this.courseTitle,e.providerId=this.providerId,e.providerName=this.providerName,Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var t,i=Object(I.a)(this.userLicenseCreditValues);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicenseCreditValues.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.session=this.session?this.session.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ws=function(){function e(t){if(Object(O.a)(this,e),this.userTranscripts=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(I.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(Es.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(I.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ks=function(){function e(t){if(Object(O.a)(this,e),this.userLicenseComplianceId=void 0,this.userId=void 0,this.licenseId=void 0,this.licenseName=void 0,this.periodNumber=void 0,this.periodTypeId=void 0,this.periodFrom=void 0,this.periodTo=void 0,this.complianceStatusId=void 0,this.complianceStatus=void 0,this.periodLabel=void 0,this.isLocked=void 0,this.lockedBy=void 0,this.periodFromCourse=void 0,this.periodToDisplay=void 0,this.parentLicenseId=void 0,this.priorPeriodDeficiency=void 0,this.totalCreditsNeeded=void 0,this.additionalRequirementStatus=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userLicenseComplianceId=e.userLicenseComplianceId,this.userId=e.userId,this.licenseId=e.licenseId,this.licenseName=e.licenseName,this.periodNumber=e.periodNumber,this.periodTypeId=e.periodTypeId,this.periodFrom=e.periodFrom?new Date(e.periodFrom.toString()):void 0,this.periodTo=e.periodTo?new Date(e.periodTo.toString()):void 0,this.complianceStatusId=e.complianceStatusId,this.complianceStatus=e.complianceStatus,this.periodLabel=e.periodLabel,this.isLocked=e.isLocked,this.lockedBy=e.lockedBy,this.periodFromCourse=e.periodFromCourse?new Date(e.periodFromCourse.toString()):void 0,this.periodToDisplay=e.periodToDisplay?new Date(e.periodToDisplay.toString()):void 0,this.parentLicenseId=e.parentLicenseId,this.priorPeriodDeficiency=e.priorPeriodDeficiency,this.totalCreditsNeeded=e.totalCreditsNeeded,this.additionalRequirementStatus=e.additionalRequirementStatus)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userLicenseComplianceId=this.userLicenseComplianceId,e.userId=this.userId,e.licenseId=this.licenseId,e.licenseName=this.licenseName,e.periodNumber=this.periodNumber,e.periodTypeId=this.periodTypeId,e.periodFrom=this.periodFrom?this.periodFrom.toISOString():void 0,e.periodTo=this.periodTo?this.periodTo.toISOString():void 0,e.complianceStatusId=this.complianceStatusId,e.complianceStatus=this.complianceStatus,e.periodLabel=this.periodLabel,e.isLocked=this.isLocked,e.lockedBy=this.lockedBy,e.periodFromCourse=this.periodFromCourse?this.periodFromCourse.toISOString():void 0,e.periodToDisplay=this.periodToDisplay?this.periodToDisplay.toISOString():void 0,e.parentLicenseId=this.parentLicenseId,e.priorPeriodDeficiency=this.priorPeriodDeficiency,e.totalCreditsNeeded=this.totalCreditsNeeded,e.additionalRequirementStatus=this.additionalRequirementStatus,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ts=function(){function e(t){if(Object(O.a)(this,e),this.transcriptId=void 0,this.sessionParticipantId=void 0,this.sessionId=void 0,this.userId=void 0,this.isInstructor=void 0,this.isValidated=void 0,this.registrationDate=void 0,this.registeredBy=void 0,this.validationDate=void 0,this.validatedBy=void 0,this.completionDate=void 0,this.startDate=void 0,this.endDate=void 0,this.shouldDisplayDateRange=void 0,this.tentativeDate=void 0,this.isCreditAdjusted=void 0,this.sessionParticipantStatusId=void 0,this.previousStatusId=void 0,this.courseId=void 0,this.title=void 0,this.providerId=void 0,this.providerName=void 0,this.formatId=void 0,this.format=void 0,this.userLicense=void 0,this.userLicenseCreditValues=void 0,this.userLicensePropertyValues=void 0,this.session=void 0,this.certificates=void 0,this.certificateDisplayStatusId=void 0,this.certificateDisplayStatus=void 0,this.activityParticipantId=void 0,this.activityId=void 0,this.hoursSpent=void 0,this.personnelId=void 0,this.activity=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.transcriptId=e.transcriptId,this.sessionParticipantId=e.sessionParticipantId,this.sessionId=e.sessionId,this.userId=e.userId,this.isInstructor=e.isInstructor,this.isValidated=e.isValidated,this.registrationDate=e.registrationDate?new Date(e.registrationDate.toString()):void 0,this.registeredBy=e.registeredBy,this.validationDate=e.validationDate?new Date(e.validationDate.toString()):void 0,this.validatedBy=e.validatedBy,this.completionDate=e.completionDate?new Date(e.completionDate.toString()):void 0,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.shouldDisplayDateRange=e.shouldDisplayDateRange,this.tentativeDate=e.tentativeDate?new Date(e.tentativeDate.toString()):void 0,this.isCreditAdjusted=e.isCreditAdjusted,this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.previousStatusId=e.previousStatusId,this.courseId=e.courseId,this.title=e.title,this.providerId=e.providerId,this.providerName=e.providerName,this.formatId=e.formatId,this.format=e.format,Array.isArray(e.userLicense)){this.userLicense=[];var t,i=Object(I.a)(e.userLicense);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userLicense.push(fs.fromJS(r))}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var a,n=Object(I.a)(e.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.userLicenseCreditValues.push(hs.fromJS(s))}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var o,c=Object(I.a)(e.userLicensePropertyValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.userLicensePropertyValues.push(ms.fromJS(l))}}catch(f){c.e(f)}finally{c.f()}}if(this.session=e.session?Ps.fromJS(e.session):void 0,Array.isArray(e.certificates)){this.certificates=[];var d,u=Object(I.a)(e.certificates);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.certificates.push(_n.fromJS(h))}}catch(f){u.e(f)}finally{u.f()}}this.certificateDisplayStatusId=e.certificateDisplayStatusId,this.certificateDisplayStatus=e.certificateDisplayStatus,this.activityParticipantId=e.activityParticipantId,this.activityId=e.activityId,this.hoursSpent=e.hoursSpent,this.personnelId=e.personnelId,this.activity=e.activity?Vn.fromJS(e.activity):void 0}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).transcriptId=this.transcriptId,e.sessionParticipantId=this.sessionParticipantId,e.sessionId=this.sessionId,e.userId=this.userId,e.isInstructor=this.isInstructor,e.isValidated=this.isValidated,e.registrationDate=this.registrationDate?this.registrationDate.toISOString():void 0,e.registeredBy=this.registeredBy,e.validationDate=this.validationDate?this.validationDate.toISOString():void 0,e.validatedBy=this.validatedBy,e.completionDate=this.completionDate?this.completionDate.toISOString():void 0,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.shouldDisplayDateRange=this.shouldDisplayDateRange,e.tentativeDate=this.tentativeDate?this.tentativeDate.toISOString():void 0,e.isCreditAdjusted=this.isCreditAdjusted,e.sessionParticipantStatusId=this.sessionParticipantStatusId,e.previousStatusId=this.previousStatusId,e.courseId=this.courseId,e.title=this.title,e.providerId=this.providerId,e.providerName=this.providerName,e.formatId=this.formatId,e.format=this.format,Array.isArray(this.userLicense)){e.userLicense=[];var t,i=Object(I.a)(this.userLicense);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userLicense.push(r.toJSON())}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var a,n=Object(I.a)(this.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.userLicenseCreditValues.push(s.toJSON())}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.userLicensePropertyValues)){e.userLicensePropertyValues=[];var o,c=Object(I.a)(this.userLicensePropertyValues);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.userLicensePropertyValues.push(l.toJSON())}}catch(f){c.e(f)}finally{c.f()}}if(e.session=this.session?this.session.toJSON():void 0,Array.isArray(this.certificates)){e.certificates=[];var d,u=Object(I.a)(this.certificates);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.certificates.push(h.toJSON())}}catch(f){u.e(f)}finally{u.f()}}return e.certificateDisplayStatusId=this.certificateDisplayStatusId,e.certificateDisplayStatus=this.certificateDisplayStatus,e.activityParticipantId=this.activityParticipantId,e.activityId=this.activityId,e.hoursSpent=this.hoursSpent,e.personnelId=this.personnelId,e.activity=this.activity?this.activity.toJSON():void 0,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ns=function(){function e(t){if(Object(O.a)(this,e),this.userTranscripts=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.userTranscripts)){this.userTranscripts=[];var t,i=Object(I.a)(e.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTranscripts.push(Ts.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTranscripts)){e.userTranscripts=[];var t,i=Object(I.a)(this.userTranscripts);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTranscripts.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Js=function(){function e(t){if(Object(O.a)(this,e),this.transcript=void 0,this.user=void 0,this.licenseId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.transcript=e.transcript?ba.fromJS(e.transcript):void 0,this.user=e.user?Kn.fromJS(e.user):void 0,this.licenseId=e.licenseId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).transcript=this.transcript?this.transcript.toJSON():void 0,e.user=this.user?this.user.toJSON():void 0,e.licenseId=this.licenseId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ds=function(){function e(t){if(Object(O.a)(this,e),this.sessionParticipantId=void 0,this.licenseId=void 0,this.creditId=void 0,this.creditName=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sessionParticipantId=e.sessionParticipantId,this.licenseId=e.licenseId,this.creditId=e.creditId,this.creditName=e.creditName,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionParticipantId=this.sessionParticipantId,e.licenseId=this.licenseId,e.creditId=this.creditId,e.creditName=this.creditName,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ls=function(){function e(t){if(Object(O.a)(this,e),this.typeId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.typeId=e.typeId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).typeId=this.typeId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Administrator=1]="Administrator",e[e.Client=2]="Client",e[e.Employee=3]="Employee"}(is||(is={}));var Us=function(){function e(t){if(Object(O.a)(this,e),this.userTypes=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userTypes)){this.userTypes=[];var t,i=Object(I.a)(e.userTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userTypes.push(Ls.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userTypes)){e.userTypes=[];var t,i=Object(I.a)(this.userTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userTypes.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rs=function(){function e(t){if(Object(O.a)(this,e),this.learningPlanId=void 0,this.title=void 0,this.type=void 0,this.timeframeOfCompletion=void 0,this.startDate=void 0,this.endDate=void 0,this.duration=void 0,this.durationType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.learningPlanId=e.learningPlanId,this.title=e.title,this.type=e.type,this.timeframeOfCompletion=e.timeframeOfCompletion,this.startDate=e.startDate?new Date(e.startDate.toString()):void 0,this.endDate=e.endDate?new Date(e.endDate.toString()):void 0,this.duration=e.duration,this.durationType=e.durationType)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).learningPlanId=this.learningPlanId,e.title=this.title,e.type=this.type,e.timeframeOfCompletion=this.timeframeOfCompletion,e.startDate=this.startDate?this.startDate.toISOString():void 0,e.endDate=this.endDate?this.endDate.toISOString():void 0,e.duration=this.duration,e.durationType=this.durationType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xs=function(){function e(t){if(Object(O.a)(this,e),this.userUnregisteredLearningPlans=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userUnregisteredLearningPlans)){this.userUnregisteredLearningPlans=[];var t,i=Object(I.a)(e.userUnregisteredLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userUnregisteredLearningPlans.push(Rs.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userUnregisteredLearningPlans)){e.userUnregisteredLearningPlans=[];var t,i=Object(I.a)(this.userUnregisteredLearningPlans);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userUnregisteredLearningPlans.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fs=function(){function e(t){if(Object(O.a)(this,e),this.userValidationError=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userValidationError)){this.userValidationError=[];var t,i=Object(I.a)(e.userValidationError);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userValidationError.push(Ss.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userValidationError)){e.userValidationError=[];var t,i=Object(I.a)(this.userValidationError);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userValidationError.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ms=function(){function e(t){if(Object(O.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,this.errors=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance,e.errors)for(var i in this.errors={},e.errors)e.errors.hasOwnProperty(i)&&(this.errors[i]=void 0!==e.errors[i]?e.errors[i]:[])}}},{key:"toJSON",value:function(e){for(var t in e="object"===typeof e?e:{},this)this.hasOwnProperty(t)&&(e[t]=this[t]);if(e.type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,this.errors)for(var i in e.errors={},this.errors)this.errors.hasOwnProperty(i)&&(e.errors[i]=this.errors[i]);return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gs=function(e){Object(b.a)(i,e);var t=Object(S.a)(i);function i(e,r,a,n,s){var o;return Object(O.a)(this,i),(o=t.call(this)).message=void 0,o.status=void 0,o.response=void 0,o.headers=void 0,o.result=void 0,o.isApiException=!0,o.message=e,o.status=r,o.response=a,o.headers=n,o.result=s,o}return Object(A.a)(i,null,[{key:"isApiException",value:function(e){return!0===e.isApiException}}]),i}(Object(g.a)(Error));function Bs(e,t,i,r,a){throw null!==a&&void 0!==a?a:new Gs(e,t,i,r,null)}function qs(e){return e&&!0===e.isAxiosError}var Vs,Ws=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return Co.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getAllByRelationship",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllByRelationship";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllByRelationship(e)}))}},{key:"processGetAllByRelationship",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Eo.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return a}if(404===t){var l=e.data,d=l;return lc("Not Found",t,l,i,sc.fromJS(d))}var u=e.data,h=u;return lc("Error",t,u,i,sc.fromJS(h))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0,s=n&&n.length>1?n[1]:void 0;return Promise.resolve({fileName:s,status:t,data:e.data,headers:i})}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0,s=n&&n.length>1?n[1]:void 0;return Promise.resolve({fileName:s,status:t,data:e.data,headers:i})}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetById/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getByIdpId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByIdpId(e)}))}},{key:"processGetByIdpId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getUserListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserListById(e)}))}},{key:"processGetUserListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return Co.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getUserApplicationByIdpId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserApplicationByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserApplicationByIdpId(e)}))}},{key:"processGetUserApplicationByIdpId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return uo.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getActiveUserAdmins",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetActiveUserAdmins",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetActiveUserAdmins(e)}))}},{key:"processGetActiveUserAdmins",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(lo.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return a}if(404===t){var l=e.data,d=l;return lc("Not Found",t,l,i,sc.fromJS(d))}var u=e.data,h=u;return lc("Error",t,u,i,sc.fromJS(h))}},{key:"getFilteredUserOption",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetFilteredUserOption";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetFilteredUserOption(e)}))}},{key:"processGetFilteredUserOption",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(lo.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return a}if(404===t){var l=e.data,d=l;return lc("Not Found",t,l,i,sc.fromJS(d))}var u=e.data,h=u;return lc("Error",t,u,i,sc.fromJS(h))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"createTenantUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/CreateTenantUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateTenantUser(e)}))}},{key:"processCreateTenantUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"validateRelationship",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ValidateRelationship";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateRelationship(e)}))}},{key:"processValidateRelationship",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return Uo.fromJS(a)}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return lc("Bad Request",t,a,i,oc.fromJS(n))}if(404===t){var s=e.data,o=s;return lc("Not Found",t,s,i,sc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updateProfileInformation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateProfileInformation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateProfileInformation(e)}))}},{key:"processUpdateProfileInformation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updateEducations",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEducations";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEducations(e)}))}},{key:"processUpdateEducations",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updateEmails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEmails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEmails(e)}))}},{key:"processUpdateEmails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updatePhones",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdatePhones";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePhones(e)}))}},{key:"processUpdatePhones",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updateJobProfile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateJobProfile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateJobProfile(e)}))}},{key:"processUpdateJobProfile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updatePracticeAreas",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdatePracticeAreas";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePracticeAreas(e)}))}},{key:"processUpdatePracticeAreas",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updateJobRelationships",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateJobRelationships";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateJobRelationships(e)}))}},{key:"processUpdateJobRelationships",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updateSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSettings(e)}))}},{key:"processUpdateSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updateEmailNotificationSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEmailNotificationSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEmailNotificationSettings(e)}))}},{key:"processUpdateEmailNotificationSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"updateSecurity",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateSecurity";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSecurity(e)}))}},{key:"processUpdateSecurity",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return po.fromJS(a)}if(201===t){var n=e.data;return po.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"validateUserEmail",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserEmail?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'email' cannot be null.");void 0!==t&&(n+="email="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserEmail(e)}))}},{key:"processValidateUserEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return void 0!==a?a:null}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserLoginId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserLoginId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'loginId' cannot be null.");void 0!==t&&(n+="loginId="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserLoginId(e)}))}},{key:"processValidateUserLoginId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return void 0!==a?a:null}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserEmployeeId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserEmployeeId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'employeeId' cannot be null.");void 0!==t&&(n+="employeeId="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserEmployeeId(e)}))}},{key:"processValidateUserEmployeeId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return void 0!==a?a:null}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserPhone",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserPhone?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'phone' cannot be null.");void 0!==t&&(n+="phone="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserPhone(e)}))}},{key:"processValidateUserPhone",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return void 0!==a?a:null}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserMFAPhone",value:function(e,t,i,r,a){var n=this,s=this.baseUrl+"/api/User/ValidateUserMFAPhone?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(s+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'phone' cannot be null.");if(void 0!==t&&(s+="phone="+encodeURIComponent(""+t)+"&"),null===i)throw new Error("The parameter 'email' cannot be null.");void 0!==i&&(s+="email="+encodeURIComponent(""+i)+"&");var o={method:"POST",url:s=s.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==r&&null!==r?""+r:"",Accept:"application/json"},cancelToken:a};return this.instance.request(o).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return n.processValidateUserMFAPhone(e)}))}},{key:"processValidateUserMFAPhone",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return void 0!==a?a:null}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllRoleType",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllRoleType";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllRoleType(e)}))}},{key:"processGetAllRoleType",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return oo.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Eo.fromJS(c))}}catch(p){o.e(p)}finally{o.f()}}else a=null;return a}if(204===t)return lc("Success",t,e.data,i);if(400===t){var l=e.data,d=l;return lc("Bad Request",t,l,i,oc.fromJS(d))}if(404===t){var u=e.data,h=u;return lc("Not Found",t,u,i,sc.fromJS(h))}var f=e.data,v=f;return lc("Error",t,f,i,sc.fromJS(v))}},{key:"changePassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ChangePassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processChangePassword(e)}))}},{key:"processChangePassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?lc("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getUserPreferences",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetUserPreferences",a={method:"POST",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetUserPreferences(e)}))}},{key:"processGetUserPreferences",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ao.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"updatePreferences",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdatePreferences";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePreferences(e)}))}},{key:"processUpdatePreferences",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ao.fromJS(a)}if(201===t){var n=e.data;return ao.fromJS(n)}if(400===t){var s=e.data,o=s;return lc("Bad Request",t,s,i,oc.fromJS(o))}var c=e.data,l=c;return lc("Error",t,c,i,sc.fromJS(l))}},{key:"getAllUserOptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserOptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserOptions(e)}))}},{key:"processGetAllUserOptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Eo.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return a}if(404===t){var l=e.data,d=l;return lc("Not Found",t,l,i,sc.fromJS(d))}var u=e.data,h=u;return lc("Error",t,u,i,sc.fromJS(h))}},{key:"getUserHeaderInformation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserHeaderInformation/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserHeaderInformation(e)}))}},{key:"processGetUserHeaderInformation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return Oo.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getUserAccounting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserAccounting/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserAccounting(e)}))}},{key:"processGetUserAccounting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return co.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getProjectUsersOptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetProjectUsersOptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetProjectUsersOptions(e)}))}},{key:"processGetProjectUsersOptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return wo.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getPortalProjectUsersOptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetPortalProjectUsersOptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPortalProjectUsersOptions(e)}))}},{key:"processGetPortalProjectUsersOptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return wo.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getAllPortalUserOptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllPortalUserOptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllPortalUserOptions(e)}))}},{key:"processGetAllPortalUserOptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Eo.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return a}if(404===t){var l=e.data,d=l;return lc("Not Found",t,l,i,sc.fromJS(d))}var u=e.data,h=u;return lc("Error",t,u,i,sc.fromJS(h))}},{key:"getUserApplicationStatusByUsernameOrEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserApplicationStatusByUsernameOrEmail/{usernameOrEmail}";if(void 0===e||null===e)throw new Error("The parameter 'usernameOrEmail' must be defined.");var n={method:"GET",url:a=(a=a.replace("{usernameOrEmail}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserApplicationStatusByUsernameOrEmail(e)}))}},{key:"processGetUserApplicationStatusByUsernameOrEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return fo.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"getUserExistingApplications",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserExistingApplications/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserExistingApplications(e)}))}},{key:"processGetUserExistingApplications",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return ho.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}},{key:"updateEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEmail(e)}))}},{key:"processUpdateEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return lc("Bad Request",t,a,i,oc.fromJS(n))}var s=e.data,o=s;return lc("Error",t,s,i,sc.fromJS(o))}},{key:"getUserRolesAndPermissionSet",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetUserRolesAndPermissionSet",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(dc(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetUserRolesAndPermissionSet(e)}))}},{key:"processGetUserRolesAndPermissionSet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=e.data;return xo.fromJS(a)}if(404===t){var n=e.data,s=n;return lc("Not Found",t,n,i,sc.fromJS(s))}var o=e.data,c=o;return lc("Error",t,o,i,sc.fromJS(c))}}]),e}(),zs=function(){function e(t){if(Object(O.a)(this,e),this.appId=void 0,this.name=void 0,this.code=void 0,this.adminClientId=void 0,this.adminUrl=void 0,this.portalClientId=void 0,this.portalUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.appId=e.appId,this.name=e.name,this.code=e.code,this.adminClientId=e.adminClientId,this.adminUrl=e.adminUrl,this.portalClientId=e.portalClientId,this.portalUrl=e.portalUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).appId=this.appId,e.name=this.name,e.code=this.code,e.adminClientId=this.adminClientId,e.adminUrl=this.adminUrl,e.portalClientId=this.portalClientId,e.portalUrl=this.portalUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Izenda=1]="Izenda",e[e.Html=2]="Html"}(Vs||(Vs={}));var Hs,$s,_s,Ys,Qs,Ks,Zs,Xs,eo,to,io,ro=function(){function e(t){if(Object(O.a)(this,e),this.userAvatarId=void 0,this.fileId=void 0,this.userAvatarUrl=void 0,this.userAvatarThumbnailURl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userAvatarId=e.userAvatarId,this.fileId=e.fileId,this.userAvatarUrl=e.userAvatarUrl,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userAvatarId=this.userAvatarId,e.fileId=this.fileId,e.userAvatarUrl=this.userAvatarUrl,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ao=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.dateFormat=void 0,this.timezone=void 0,this.displayNameType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.dateFormat=e.dateFormat,this.timezone=e.timezone,this.displayNameType=e.displayNameType)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.dateFormat=this.dateFormat,e.timezone=this.timezone,e.displayNameType=this.displayNameType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),no=function(){function e(t){if(Object(O.a)(this,e),this.app=void 0,this.hasAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.app=e.app?zs.fromJS(e.app):void 0,this.hasAccess=e.hasAccess)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).app=this.app?this.app.toJSON():void 0,e.hasAccess=this.hasAccess,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),so=function(){function e(t){if(Object(O.a)(this,e),this.typeId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.typeId=e.typeId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).typeId=this.typeId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),oo=function(){function e(t){if(Object(O.a)(this,e),this.roleTypes=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.roleTypes)){this.roleTypes=[];var t,i=Object(I.a)(e.roleTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roleTypes.push(so.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.roleTypes)){e.roleTypes=[];var t,i=Object(I.a)(this.roleTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roleTypes.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),co=function(){function e(t){if(Object(O.a)(this,e),this.billableHours=void 0,this.nonBillableHours=void 0,this.committedHours=void 0,this.probonoHours=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.billableHours=e.billableHours,this.nonBillableHours=e.nonBillableHours,this.committedHours=e.committedHours,this.probonoHours=e.probonoHours)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).billableHours=this.billableHours,e.nonBillableHours=this.nonBillableHours,e.committedHours=this.committedHours,e.probonoHours=this.probonoHours,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),lo=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.userName=void 0,this.firstName=void 0,this.lastName=void 0,this.middleName=void 0,this.email=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.userName=e.userName,this.firstName=e.firstName,this.lastName=e.lastName,this.middleName=e.middleName,this.email=e.email)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.userName=this.userName,e.firstName=this.firstName,e.lastName=this.lastName,e.middleName=this.middleName,e.email=this.email,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),uo=function(){function e(t){if(Object(O.a)(this,e),this.idpId=void 0,this.isActive=void 0,this.portalAccessEnabled=void 0,this.userType=void 0,this.userApplicationAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.idpId=e.idpId,this.isActive=e.isActive,this.portalAccessEnabled=e.portalAccessEnabled,this.userType=e.userType,Array.isArray(e.userApplicationAccess))){this.userApplicationAccess=[];var t,i=Object(I.a)(e.userApplicationAccess);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userApplicationAccess.push(no.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).idpId=this.idpId,e.isActive=this.isActive,e.portalAccessEnabled=this.portalAccessEnabled,e.userType=this.userType,Array.isArray(this.userApplicationAccess)){e.userApplicationAccess=[];var t,i=Object(I.a)(this.userApplicationAccess);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userApplicationAccess.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ho=function(){function e(t){if(Object(O.a)(this,e),this.hasCemUser=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.hasCemUser=e.hasCemUser)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).hasCemUser=this.hasCemUser,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fo=function(){function e(t){if(Object(O.a)(this,e),this.hasApplicationAccess=void 0,this.isInvalidUsernameOrEmail=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.hasApplicationAccess=e.hasApplicationAccess,this.isInvalidUsernameOrEmail=e.isInvalidUsernameOrEmail)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).hasApplicationAccess=this.hasApplicationAccess,e.isInvalidUsernameOrEmail=this.isInvalidUsernameOrEmail,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vo=function(){function e(t){if(Object(O.a)(this,e),this.departmentId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),po=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.employeeId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.fullName=void 0,this.preferredName=void 0,this.nickName=void 0,this.birthDate=void 0,this.hireDate=void 0,this.terminationDate=void 0,this.inactiveDate=void 0,this.email=void 0,this.emailVerified=void 0,this.smsMfaEnabled=void 0,this.mfaPhoneNumber=void 0,this.partner=void 0,this.partnerDate=void 0,this.createOn=void 0,this.createdBy=void 0,this.updatedOn=void 0,this.updatedBy=void 0,this.userName=void 0,this.idpId=void 0,this.userAvatarId=void 0,this.displayNameType=void 0,this.accounting=void 0,this.title=void 0,this.suffix=void 0,this.gender=void 0,this.lgbtq=void 0,this.location=void 0,this.userAvatar=void 0,this.settings=void 0,this.employmentType=void 0,this.emailNotificationSettings=void 0,this.departments=void 0,this.educations=void 0,this.emails=void 0,this.ethnicities=void 0,this.levels=void 0,this.phones=void 0,this.positions=void 0,this.skills=void 0,this.practiceAreas=void 0,this.relationships=void 0,this.roles=void 0,this.securityGroups=void 0,this.teams=void 0,this.pronouns=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.employeeId=e.employeeId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.fullName=e.fullName,this.preferredName=e.preferredName,this.nickName=e.nickName,this.birthDate=e.birthDate?new Date(e.birthDate.toString()):void 0,this.hireDate=e.hireDate?new Date(e.hireDate.toString()):void 0,this.terminationDate=e.terminationDate?new Date(e.terminationDate.toString()):void 0,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.email=e.email,this.emailVerified=e.emailVerified,this.smsMfaEnabled=e.smsMfaEnabled,this.mfaPhoneNumber=e.mfaPhoneNumber,this.partner=e.partner,this.partnerDate=e.partnerDate?new Date(e.partnerDate.toString()):void 0,this.createOn=e.createOn?new Date(e.createOn.toString()):void 0,this.createdBy=e.createdBy,this.updatedOn=e.updatedOn?new Date(e.updatedOn.toString()):void 0,this.updatedBy=e.updatedBy,this.userName=e.userName,this.idpId=e.idpId,this.userAvatarId=e.userAvatarId,this.displayNameType=e.displayNameType,this.accounting=e.accounting?co.fromJS(e.accounting):void 0,this.title=e.title?Wo.fromJS(e.title):void 0,this.suffix=e.suffix?qo.fromJS(e.suffix):void 0,this.gender=e.gender?Io.fromJS(e.gender):void 0,this.lgbtq=e.lgbtq?jo.fromJS(e.lgbtq):void 0,this.location=e.location?Po.fromJS(e.location):void 0,this.userAvatar=e.userAvatar?ro.fromJS(e.userAvatar):void 0,this.settings=e.settings?Go.fromJS(e.settings):void 0,this.employmentType=e.employmentType?So.fromJS(e.employmentType):void 0,this.emailNotificationSettings=e.emailNotificationSettings?bo.fromJS(e.emailNotificationSettings):void 0,Array.isArray(e.departments)){this.departments=[];var t,i=Object(I.a)(e.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.departments.push(vo.fromJS(r))}}catch(W){i.e(W)}finally{i.f()}}if(Array.isArray(e.educations)){this.educations=[];var a,n=Object(I.a)(e.educations);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.educations.push(mo.fromJS(s))}}catch(W){n.e(W)}finally{n.f()}}if(Array.isArray(e.emails)){this.emails=[];var o,c=Object(I.a)(e.emails);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.emails.push(yo.fromJS(l))}}catch(W){c.e(W)}finally{c.f()}}if(Array.isArray(e.ethnicities)){this.ethnicities=[];var d,u=Object(I.a)(e.ethnicities);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.ethnicities.push(go.fromJS(h))}}catch(W){u.e(W)}finally{u.f()}}if(Array.isArray(e.levels)){this.levels=[];var f,v=Object(I.a)(e.levels);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.levels.push(Ao.fromJS(p))}}catch(W){v.e(W)}finally{v.f()}}if(Array.isArray(e.phones)){this.phones=[];var m,y=Object(I.a)(e.phones);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.phones.push(ko.fromJS(b))}}catch(W){y.e(W)}finally{y.f()}}if(Array.isArray(e.positions)){this.positions=[];var S,g=Object(I.a)(e.positions);try{for(g.s();!(S=g.n()).done;){var O=S.value;this.positions.push(To.fromJS(O))}}catch(W){g.e(W)}finally{g.f()}}if(Array.isArray(e.skills)){this.skills=[];var A,j=Object(I.a)(e.skills);try{for(j.s();!(A=j.n()).done;){var C=A.value;this.skills.push(Bo.fromJS(C))}}catch(W){j.e(W)}finally{j.f()}}if(Array.isArray(e.practiceAreas)){this.practiceAreas=[];var P,E=Object(I.a)(e.practiceAreas);try{for(E.s();!(P=E.n()).done;){var w=P.value;this.practiceAreas.push(No.fromJS(w))}}catch(W){E.e(W)}finally{E.f()}}if(Array.isArray(e.relationships)){this.relationships=[];var k,T=Object(I.a)(e.relationships);try{for(T.s();!(k=T.n()).done;){var N=k.value;this.relationships.push(Do.fromJS(N))}}catch(W){T.e(W)}finally{T.f()}}if(Array.isArray(e.roles)){this.roles=[];var J,D=Object(I.a)(e.roles);try{for(D.s();!(J=D.n()).done;){var L=J.value;this.roles.push(Ro.fromJS(L))}}catch(W){D.e(W)}finally{D.f()}}if(Array.isArray(e.securityGroups)){this.securityGroups=[];var U,R=Object(I.a)(e.securityGroups);try{for(R.s();!(U=R.n()).done;){var x=U.value;this.securityGroups.push(Mo.fromJS(x))}}catch(W){R.e(W)}finally{R.f()}}if(Array.isArray(e.teams)){this.teams=[];var F,M=Object(I.a)(e.teams);try{for(M.s();!(F=M.n()).done;){var G=F.value;this.teams.push(Vo.fromJS(G))}}catch(W){M.e(W)}finally{M.f()}}if(Array.isArray(e.pronouns)){this.pronouns=[];var B,q=Object(I.a)(e.pronouns);try{for(q.s();!(B=q.n()).done;){var V=B.value;this.pronouns.push(Jo.fromJS(V))}}catch(W){q.e(W)}finally{q.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.employeeId=this.employeeId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.fullName=this.fullName,e.preferredName=this.preferredName,e.nickName=this.nickName,e.birthDate=this.birthDate?this.birthDate.toISOString():void 0,e.hireDate=this.hireDate?this.hireDate.toISOString():void 0,e.terminationDate=this.terminationDate?this.terminationDate.toISOString():void 0,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.email=this.email,e.emailVerified=this.emailVerified,e.smsMfaEnabled=this.smsMfaEnabled,e.mfaPhoneNumber=this.mfaPhoneNumber,e.partner=this.partner,e.partnerDate=this.partnerDate?this.partnerDate.toISOString():void 0,e.createOn=this.createOn?this.createOn.toISOString():void 0,e.createdBy=this.createdBy,e.updatedOn=this.updatedOn?this.updatedOn.toISOString():void 0,e.updatedBy=this.updatedBy,e.userName=this.userName,e.idpId=this.idpId,e.userAvatarId=this.userAvatarId,e.displayNameType=this.displayNameType,e.accounting=this.accounting?this.accounting.toJSON():void 0,e.title=this.title?this.title.toJSON():void 0,e.suffix=this.suffix?this.suffix.toJSON():void 0,e.gender=this.gender?this.gender.toJSON():void 0,e.lgbtq=this.lgbtq?this.lgbtq.toJSON():void 0,e.location=this.location?this.location.toJSON():void 0,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,e.settings=this.settings?this.settings.toJSON():void 0,e.employmentType=this.employmentType?this.employmentType.toJSON():void 0,e.emailNotificationSettings=this.emailNotificationSettings?this.emailNotificationSettings.toJSON():void 0,Array.isArray(this.departments)){e.departments=[];var t,i=Object(I.a)(this.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.departments.push(r.toJSON())}}catch(W){i.e(W)}finally{i.f()}}if(Array.isArray(this.educations)){e.educations=[];var a,n=Object(I.a)(this.educations);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.educations.push(s.toJSON())}}catch(W){n.e(W)}finally{n.f()}}if(Array.isArray(this.emails)){e.emails=[];var o,c=Object(I.a)(this.emails);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.emails.push(l.toJSON())}}catch(W){c.e(W)}finally{c.f()}}if(Array.isArray(this.ethnicities)){e.ethnicities=[];var d,u=Object(I.a)(this.ethnicities);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.ethnicities.push(h.toJSON())}}catch(W){u.e(W)}finally{u.f()}}if(Array.isArray(this.levels)){e.levels=[];var f,v=Object(I.a)(this.levels);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.levels.push(p.toJSON())}}catch(W){v.e(W)}finally{v.f()}}if(Array.isArray(this.phones)){e.phones=[];var m,y=Object(I.a)(this.phones);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.phones.push(b.toJSON())}}catch(W){y.e(W)}finally{y.f()}}if(Array.isArray(this.positions)){e.positions=[];var S,g=Object(I.a)(this.positions);try{for(g.s();!(S=g.n()).done;){var O=S.value;e.positions.push(O.toJSON())}}catch(W){g.e(W)}finally{g.f()}}if(Array.isArray(this.skills)){e.skills=[];var A,j=Object(I.a)(this.skills);try{for(j.s();!(A=j.n()).done;){var C=A.value;e.skills.push(C.toJSON())}}catch(W){j.e(W)}finally{j.f()}}if(Array.isArray(this.practiceAreas)){e.practiceAreas=[];var P,E=Object(I.a)(this.practiceAreas);try{for(E.s();!(P=E.n()).done;){var w=P.value;e.practiceAreas.push(w.toJSON())}}catch(W){E.e(W)}finally{E.f()}}if(Array.isArray(this.relationships)){e.relationships=[];var k,T=Object(I.a)(this.relationships);try{for(T.s();!(k=T.n()).done;){var N=k.value;e.relationships.push(N.toJSON())}}catch(W){T.e(W)}finally{T.f()}}if(Array.isArray(this.roles)){e.roles=[];var J,D=Object(I.a)(this.roles);try{for(D.s();!(J=D.n()).done;){var L=J.value;e.roles.push(L.toJSON())}}catch(W){D.e(W)}finally{D.f()}}if(Array.isArray(this.securityGroups)){e.securityGroups=[];var U,R=Object(I.a)(this.securityGroups);try{for(R.s();!(U=R.n()).done;){var x=U.value;e.securityGroups.push(x.toJSON())}}catch(W){R.e(W)}finally{R.f()}}if(Array.isArray(this.teams)){e.teams=[];var F,M=Object(I.a)(this.teams);try{for(M.s();!(F=M.n()).done;){var G=F.value;e.teams.push(G.toJSON())}}catch(W){M.e(W)}finally{M.f()}}if(Array.isArray(this.pronouns)){e.pronouns=[];var B,q=Object(I.a)(this.pronouns);try{for(q.s();!(B=q.n()).done;){var V=B.value;e.pronouns.push(V.toJSON())}}catch(W){q.e(W)}finally{q.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),mo=function(){function e(t){if(Object(O.a)(this,e),this.userEducationId=void 0,this.schoolId=void 0,this.degreeTypeId=void 0,this.graduationYear=void 0,this.order=void 0,this.school=void 0,this.degreeType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userEducationId=e.userEducationId,this.schoolId=e.schoolId,this.degreeTypeId=e.degreeTypeId,this.graduationYear=e.graduationYear,this.order=e.order,this.school=e.school,this.degreeType=e.degreeType)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userEducationId=this.userEducationId,e.schoolId=this.schoolId,e.degreeTypeId=this.degreeTypeId,e.graduationYear=this.graduationYear,e.order=this.order,e.school=this.school,e.degreeType=this.degreeType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yo=function(){function e(t){if(Object(O.a)(this,e),this.userEmailId=void 0,this.emailType=void 0,this.email=void 0,this.order=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userEmailId=e.userEmailId,this.emailType=e.emailType,this.email=e.email,this.order=e.order)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userEmailId=this.userEmailId,e.emailType=this.emailType,e.email=this.email,e.order=this.order,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bo=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.enableProjectNotification=void 0,this.enableProjectReminder=void 0,this.enableTaskNotification=void 0,this.enableTaskReminder=void 0,this.enableSystemNotification=void 0,this.enableSystemReminder=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.enableProjectNotification=e.enableProjectNotification,this.enableProjectReminder=e.enableProjectReminder,this.enableTaskNotification=e.enableTaskNotification,this.enableTaskReminder=e.enableTaskReminder,this.enableSystemNotification=e.enableSystemNotification,this.enableSystemReminder=e.enableSystemReminder)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.enableProjectNotification=this.enableProjectNotification,e.enableProjectReminder=this.enableProjectReminder,e.enableTaskNotification=this.enableTaskNotification,e.enableTaskReminder=this.enableTaskReminder,e.enableSystemNotification=this.enableSystemNotification,e.enableSystemReminder=this.enableSystemReminder,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),So=function(){function e(t){if(Object(O.a)(this,e),this.employmentTypeId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.employmentTypeId=e.employmentTypeId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).employmentTypeId=this.employmentTypeId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),go=function(){function e(t){if(Object(O.a)(this,e),this.ethnicityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.ethnicityId=e.ethnicityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).ethnicityId=this.ethnicityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Io=function(){function e(t){if(Object(O.a)(this,e),this.genderId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.genderId=e.genderId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).genderId=this.genderId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Oo=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.inactiveDate=void 0,this.email=void 0,this.location=void 0,this.userAvatar=void 0,this.departments=void 0,this.positions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.email=e.email,this.location=e.location?Po.fromJS(e.location):void 0,this.userAvatar=e.userAvatar?ro.fromJS(e.userAvatar):void 0,Array.isArray(e.departments)){this.departments=[];var t,i=Object(I.a)(e.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.departments.push(vo.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.positions)){this.positions=[];var a,n=Object(I.a)(e.positions);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.positions.push(To.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.email=this.email,e.location=this.location?this.location.toJSON():void 0,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,Array.isArray(this.departments)){e.departments=[];var t,i=Object(I.a)(this.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.departments.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.positions)){e.positions=[];var a,n=Object(I.a)(this.positions);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.positions.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ao=function(){function e(t){if(Object(O.a)(this,e),this.levelId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jo=function(){function e(t){if(Object(O.a)(this,e),this.lgbtqId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.lgbtqId=e.lgbtqId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).lgbtqId=this.lgbtqId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Co=function(){function e(t){if(Object(O.a)(this,e),this.users=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.users)){this.users=[];var t,i=Object(I.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(Fo.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(I.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Po=function(){function e(t){if(Object(O.a)(this,e),this.locationId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.locationId=e.locationId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Eo=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.employeeId=void 0,this.firstName=void 0,this.lastName=void 0,this.middleName=void 0,this.email=void 0,this.userAvatarUrl=void 0,this.userLocation=void 0,this.projectUserType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.employeeId=e.employeeId,this.firstName=e.firstName,this.lastName=e.lastName,this.middleName=e.middleName,this.email=e.email,this.userAvatarUrl=e.userAvatarUrl,this.userLocation=e.userLocation,this.projectUserType=e.projectUserType)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.employeeId=this.employeeId,e.firstName=this.firstName,e.lastName=this.lastName,e.middleName=this.middleName,e.email=this.email,e.userAvatarUrl=this.userAvatarUrl,e.userLocation=this.userLocation,e.projectUserType=this.projectUserType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wo=function(){function e(t){if(Object(O.a)(this,e),this.users=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.users)){this.users=[];var t,i=Object(I.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(Eo.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(I.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ko=function(){function e(t){if(Object(O.a)(this,e),this.userPhoneId=void 0,this.phoneType=void 0,this.phone=void 0,this.order=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userPhoneId=e.userPhoneId,this.phoneType=e.phoneType,this.phone=e.phone,this.order=e.order)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userPhoneId=this.userPhoneId,e.phoneType=this.phoneType,e.phone=this.phone,e.order=this.order,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),To=function(){function e(t){if(Object(O.a)(this,e),this.positionId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.positionId=e.positionId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).positionId=this.positionId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),No=function(){function e(t){if(Object(O.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,this.order=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name,this.order=e.order)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e.order=this.order,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jo=function(){function e(t){if(Object(O.a)(this,e),this.pronounId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.pronounId=e.pronounId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).pronounId=this.pronounId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Do=function(){function e(t){if(Object(O.a)(this,e),this.sourceUserId=void 0,this.sourceFullName=void 0,this.sourceFirstName=void 0,this.sourceLastName=void 0,this.sourceMiddleName=void 0,this.sourceEmail=void 0,this.sourceAvatarUrl=void 0,this.sourceLocation=void 0,this.targetUserId=void 0,this.targetFullName=void 0,this.targetFirstName=void 0,this.targetLastName=void 0,this.targetMiddleName=void 0,this.targetEmail=void 0,this.targetAvatarUrl=void 0,this.targetLocation=void 0,this.relationshipTypeId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sourceUserId=e.sourceUserId,this.sourceFullName=e.sourceFullName,this.sourceFirstName=e.sourceFirstName,this.sourceLastName=e.sourceLastName,this.sourceMiddleName=e.sourceMiddleName,this.sourceEmail=e.sourceEmail,this.sourceAvatarUrl=e.sourceAvatarUrl,this.sourceLocation=e.sourceLocation,this.targetUserId=e.targetUserId,this.targetFullName=e.targetFullName,this.targetFirstName=e.targetFirstName,this.targetLastName=e.targetLastName,this.targetMiddleName=e.targetMiddleName,this.targetEmail=e.targetEmail,this.targetAvatarUrl=e.targetAvatarUrl,this.targetLocation=e.targetLocation,this.relationshipTypeId=e.relationshipTypeId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sourceUserId=this.sourceUserId,e.sourceFullName=this.sourceFullName,e.sourceFirstName=this.sourceFirstName,e.sourceLastName=this.sourceLastName,e.sourceMiddleName=this.sourceMiddleName,e.sourceEmail=this.sourceEmail,e.sourceAvatarUrl=this.sourceAvatarUrl,e.sourceLocation=this.sourceLocation,e.targetUserId=this.targetUserId,e.targetFullName=this.targetFullName,e.targetFirstName=this.targetFirstName,e.targetLastName=this.targetLastName,e.targetMiddleName=this.targetMiddleName,e.targetEmail=this.targetEmail,e.targetAvatarUrl=this.targetAvatarUrl,e.targetLocation=this.targetLocation,e.relationshipTypeId=this.relationshipTypeId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Lo=function(){function e(t){if(Object(O.a)(this,e),this.fieldId=void 0,this.message=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.fieldId=e.fieldId,this.message=e.message)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).fieldId=this.fieldId,e.message=this.message,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Uo=function(){function e(t){if(Object(O.a)(this,e),this.userRelationshipError=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userRelationshipError)){this.userRelationshipError=[];var t,i=Object(I.a)(e.userRelationshipError);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRelationshipError.push(Lo.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userRelationshipError)){e.userRelationshipError=[];var t,i=Object(I.a)(this.userRelationshipError);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRelationshipError.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ro=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,this.type=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.name=e.name,this.type=e.type)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.type=this.type,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xo=function(){function e(t){if(Object(O.a)(this,e),this.permissionSets=void 0,this.userRoles=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.permissionSets)){this.permissionSets=[];var t,i=Object(I.a)(e.permissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.permissionSets.push(r)}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.userRoles)){this.userRoles=[];var a,n=Object(I.a)(e.userRoles);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.userRoles.push(Ro.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.permissionSets)){e.permissionSets=[];var t,i=Object(I.a)(this.permissionSets);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.permissionSets.push(r)}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.userRoles)){e.userRoles=[];var a,n=Object(I.a)(this.userRoles);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.userRoles.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fo=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.employeeId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.fullName=void 0,this.preferredName=void 0,this.nickName=void 0,this.hireDate=void 0,this.inactiveDate=void 0,this.email=void 0,this.partner=void 0,this.partnerDate=void 0,this.createOn=void 0,this.createdBy=void 0,this.updatedOn=void 0,this.updatedBy=void 0,this.userName=void 0,this.userAvatarId=void 0,this.gender=void 0,this.lgbtq=void 0,this.suffix=void 0,this.title=void 0,this.location=void 0,this.userAvatar=void 0,this.departments=void 0,this.emails=void 0,this.ethnicities=void 0,this.levels=void 0,this.phones=void 0,this.positions=void 0,this.practiceAreas=void 0,this.teams=void 0,this.skills=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.employeeId=e.employeeId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.fullName=e.fullName,this.preferredName=e.preferredName,this.nickName=e.nickName,this.hireDate=e.hireDate?new Date(e.hireDate.toString()):void 0,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.email=e.email,this.partner=e.partner,this.partnerDate=e.partnerDate?new Date(e.partnerDate.toString()):void 0,this.createOn=e.createOn?new Date(e.createOn.toString()):void 0,this.createdBy=e.createdBy,this.updatedOn=e.updatedOn?new Date(e.updatedOn.toString()):void 0,this.updatedBy=e.updatedBy,this.userName=e.userName,this.userAvatarId=e.userAvatarId,this.gender=e.gender?Io.fromJS(e.gender):void 0,this.lgbtq=e.lgbtq?jo.fromJS(e.lgbtq):void 0,this.suffix=e.suffix?qo.fromJS(e.suffix):void 0,this.title=e.title?Wo.fromJS(e.title):void 0,this.location=e.location?Po.fromJS(e.location):void 0,this.userAvatar=e.userAvatar?ro.fromJS(e.userAvatar):void 0,Array.isArray(e.departments)){this.departments=[];var t,i=Object(I.a)(e.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.departments.push(vo.fromJS(r))}}catch(k){i.e(k)}finally{i.f()}}if(Array.isArray(e.emails)){this.emails=[];var a,n=Object(I.a)(e.emails);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.emails.push(yo.fromJS(s))}}catch(k){n.e(k)}finally{n.f()}}if(Array.isArray(e.ethnicities)){this.ethnicities=[];var o,c=Object(I.a)(e.ethnicities);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.ethnicities.push(go.fromJS(l))}}catch(k){c.e(k)}finally{c.f()}}if(Array.isArray(e.levels)){this.levels=[];var d,u=Object(I.a)(e.levels);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.levels.push(Ao.fromJS(h))}}catch(k){u.e(k)}finally{u.f()}}if(Array.isArray(e.phones)){this.phones=[];var f,v=Object(I.a)(e.phones);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.phones.push(ko.fromJS(p))}}catch(k){v.e(k)}finally{v.f()}}if(Array.isArray(e.positions)){this.positions=[];var m,y=Object(I.a)(e.positions);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.positions.push(To.fromJS(b))}}catch(k){y.e(k)}finally{y.f()}}if(Array.isArray(e.practiceAreas)){this.practiceAreas=[];var S,g=Object(I.a)(e.practiceAreas);try{for(g.s();!(S=g.n()).done;){var O=S.value;this.practiceAreas.push(No.fromJS(O))}}catch(k){g.e(k)}finally{g.f()}}if(Array.isArray(e.teams)){this.teams=[];var A,j=Object(I.a)(e.teams);try{for(j.s();!(A=j.n()).done;){var C=A.value;this.teams.push(Vo.fromJS(C))}}catch(k){j.e(k)}finally{j.f()}}if(Array.isArray(e.skills)){this.skills=[];var P,E=Object(I.a)(e.skills);try{for(E.s();!(P=E.n()).done;){var w=P.value;this.skills.push(Bo.fromJS(w))}}catch(k){E.e(k)}finally{E.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.employeeId=this.employeeId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.fullName=this.fullName,e.preferredName=this.preferredName,e.nickName=this.nickName,e.hireDate=this.hireDate?this.hireDate.toISOString():void 0,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.email=this.email,e.partner=this.partner,e.partnerDate=this.partnerDate?this.partnerDate.toISOString():void 0,e.createOn=this.createOn?this.createOn.toISOString():void 0,e.createdBy=this.createdBy,e.updatedOn=this.updatedOn?this.updatedOn.toISOString():void 0,e.updatedBy=this.updatedBy,e.userName=this.userName,e.userAvatarId=this.userAvatarId,e.gender=this.gender?this.gender.toJSON():void 0,e.lgbtq=this.lgbtq?this.lgbtq.toJSON():void 0,e.suffix=this.suffix?this.suffix.toJSON():void 0,e.title=this.title?this.title.toJSON():void 0,e.location=this.location?this.location.toJSON():void 0,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,Array.isArray(this.departments)){e.departments=[];var t,i=Object(I.a)(this.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.departments.push(r.toJSON())}}catch(k){i.e(k)}finally{i.f()}}if(Array.isArray(this.emails)){e.emails=[];var a,n=Object(I.a)(this.emails);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.emails.push(s.toJSON())}}catch(k){n.e(k)}finally{n.f()}}if(Array.isArray(this.ethnicities)){e.ethnicities=[];var o,c=Object(I.a)(this.ethnicities);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.ethnicities.push(l.toJSON())}}catch(k){c.e(k)}finally{c.f()}}if(Array.isArray(this.levels)){e.levels=[];var d,u=Object(I.a)(this.levels);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.levels.push(h.toJSON())}}catch(k){u.e(k)}finally{u.f()}}if(Array.isArray(this.phones)){e.phones=[];var f,v=Object(I.a)(this.phones);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.phones.push(p.toJSON())}}catch(k){v.e(k)}finally{v.f()}}if(Array.isArray(this.positions)){e.positions=[];var m,y=Object(I.a)(this.positions);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.positions.push(b.toJSON())}}catch(k){y.e(k)}finally{y.f()}}if(Array.isArray(this.practiceAreas)){e.practiceAreas=[];var S,g=Object(I.a)(this.practiceAreas);try{for(g.s();!(S=g.n()).done;){var O=S.value;e.practiceAreas.push(O.toJSON())}}catch(k){g.e(k)}finally{g.f()}}if(Array.isArray(this.teams)){e.teams=[];var A,j=Object(I.a)(this.teams);try{for(j.s();!(A=j.n()).done;){var C=A.value;e.teams.push(C.toJSON())}}catch(k){j.e(k)}finally{j.f()}}if(Array.isArray(this.skills)){e.skills=[];var P,E=Object(I.a)(this.skills);try{for(E.s();!(P=E.n()).done;){var w=P.value;e.skills.push(w.toJSON())}}catch(k){E.e(k)}finally{E.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Mo=function(){function e(t){if(Object(O.a)(this,e),this.securityGroupId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.securityGroupId=e.securityGroupId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).securityGroupId=this.securityGroupId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Go=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.isProjectOwner=void 0,this.isProjectCollaborator=void 0,this.isProjectSupervisor=void 0,this.isTaskAssignee=void 0,this.isTaskCollaborator=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.isProjectOwner=e.isProjectOwner,this.isProjectCollaborator=e.isProjectCollaborator,this.isProjectSupervisor=e.isProjectSupervisor,this.isTaskAssignee=e.isTaskAssignee,this.isTaskCollaborator=e.isTaskCollaborator)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.isProjectOwner=this.isProjectOwner,e.isProjectCollaborator=this.isProjectCollaborator,e.isProjectSupervisor=this.isProjectSupervisor,e.isTaskAssignee=this.isTaskAssignee,e.isTaskCollaborator=this.isTaskCollaborator,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bo=function(){function e(t){if(Object(O.a)(this,e),this.skillId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.skillId=e.skillId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).skillId=this.skillId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),qo=function(){function e(t){if(Object(O.a)(this,e),this.suffixId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.suffixId=e.suffixId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).suffixId=this.suffixId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vo=function(){function e(t){if(Object(O.a)(this,e),this.teamId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.teamId=e.teamId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).teamId=this.teamId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wo=function(){function e(t){if(Object(O.a)(this,e),this.titleId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.titleId=e.titleId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).titleId=this.titleId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Admin=1]="Admin",e[e.Manager=2]="Manager",e[e.Employee=3]="Employee",e[e.Talent=4]="Talent"}(Hs||(Hs={})),function(e){e[e.Employees=0]="Employees",e[e.Projects=1]="Projects",e[e.AssignmentAndTasks=2]="AssignmentAndTasks"}($s||($s={})),function(e){e[e.Employee_General_Message=1]="Employee_General_Message",e[e.Summer_Associate_General_Message=2]="Summer_Associate_General_Message",e[e.Project_Assignment=3]="Project_Assignment",e[e.Project_Completion=4]="Project_Completion",e[e.Project_Status_Summary=5]="Project_Status_Summary",e[e.Evaluation_General_Message=6]="Evaluation_General_Message",e[e.Assignment_Completion=7]="Assignment_Completion",e[e.Assignment_Reminders=8]="Assignment_Reminders",e[e.Task_Assignment=9]="Task_Assignment",e[e.Task_Completion=10]="Task_Completion",e[e.Task_Reminders=11]="Task_Reminders"}(_s||(_s={})),function(e){e[e.GeneralProject=1]="GeneralProject",e[e.ClientProject=2]="ClientProject",e[e.SummerProject=3]="SummerProject"}(Ys||(Ys={})),function(e){e[e.Employee=1]="Employee",e[e.Project=2]="Project"}(Qs||(Qs={})),function(e){e[e.GlobalWorkDashboard=4001e3]="GlobalWorkDashboard",e[e.GlobalWorkPeople=4002e3]="GlobalWorkPeople",e[e.GlobalWorkProjects=4003e3]="GlobalWorkProjects",e[e.GlobalWorkAssignments=4005e3]="GlobalWorkAssignments",e[e.GlobalWorkTasks=4006e3]="GlobalWorkTasks",e[e.GlobalWorkConfigurationsSettings=401e4]="GlobalWorkConfigurationsSettings",e[e.GlobalWorkConfigurationsTemplates=4011e3]="GlobalWorkConfigurationsTemplates",e[e.GlobalWorkDataManagement=4012e3]="GlobalWorkDataManagement",e[e.GlobalWorkSecurity=4013e3]="GlobalWorkSecurity",e[e.GlobalWorkPortalSettings=4014005]="GlobalWorkPortalSettings",e[e.GlobalWorkEmployeeDashboard=4014100]="GlobalWorkEmployeeDashboard",e[e.GlobalWorkEmployeeProjects=4014200]="GlobalWorkEmployeeProjects",e[e.GlobalWorkTalentDashboard=4015e3]="GlobalWorkTalentDashboard",e[e.GlobalWorkIntegrations=4016e3]="GlobalWorkIntegrations"}(Ks||(Ks={})),function(e){e[e.NotSet=0]="NotSet",e[e.ViewDashboardProjectStatusBar=4001001]="ViewDashboardProjectStatusBar",e[e.ViewDashboardWelcomeMessageTile=4001002]="ViewDashboardWelcomeMessageTile",e[e.ViewDashboardProjectStatusTile=4001003]="ViewDashboardProjectStatusTile",e[e.ViewDashboardScheduleTile=4001004]="ViewDashboardScheduleTile",e[e.ViewDashboardWorkAllocationTile=4001005]="ViewDashboardWorkAllocationTile",e[e.ViewDashboardActivityTile=4001006]="ViewDashboardActivityTile",e[e.ViewDashboardFavoriteReportsTile=4001007]="ViewDashboardFavoriteReportsTile",e[e.ViewDashboardNewsTile=4001008]="ViewDashboardNewsTile",e[e.ViewDashboardAnnouncementTile=4001009]="ViewDashboardAnnouncementTile",e[e.ViewDashboardHelpTile=4001010]="ViewDashboardHelpTile",e[e.ViewUsers=4002001]="ViewUsers",e[e.ManageUsers=4002002]="ManageUsers",e[e.DeleteUsers=4002003]="DeleteUsers",e[e.ImportUsers=4002006]="ImportUsers",e[e.UpdateUserNotesOwn=4002014]="UpdateUserNotesOwn",e[e.UpdateUserNotesAll=4002015]="UpdateUserNotesAll",e[e.DeleteUserNotesOwn=4002016]="DeleteUserNotesOwn",e[e.DeleteUserNotesAll=4002017]="DeleteUserNotesAll",e[e.ViewAccountingTile=4002501]="ViewAccountingTile",e[e.ViewTeamViewTile=4002502]="ViewTeamViewTile",e[e.ViewAttachmentsTile=4002503]="ViewAttachmentsTile",e[e.ViewTimeAndBillingTile=4002504]="ViewTimeAndBillingTile",e[e.ViewTaskStatusTile=4002506]="ViewTaskStatusTile",e[e.ViewScheduleTile=4002507]="ViewScheduleTile",e[e.ViewCourseHistoryTile=4002508]="ViewCourseHistoryTile",e[e.ViewLearningPlansTile=4002509]="ViewLearningPlansTile",e[e.ViewComplianceTile=4002510]="ViewComplianceTile",e[e.ViewReviewsTile=4002511]="ViewReviewsTile",e[e.ViewGoalsTile=4002512]="ViewGoalsTile",e[e.ViewDevelopmentPlanTile=4002513]="ViewDevelopmentPlanTile",e[e.ViewRecommendationsTile=4002514]="ViewRecommendationsTile",e[e.CreateRecommendations=4002515]="CreateRecommendations",e[e.ViewAllProjects=4003001]="ViewAllProjects",e[e.ManageAllProjects=4003002]="ManageAllProjects",e[e.DeleteAllProjects=4003003]="DeleteAllProjects",e[e.ViewProjectOwnedAndSupervised=4003006]="ViewProjectOwnedAndSupervised",e[e.ManageProjectOwnedAndSupervised=4003007]="ManageProjectOwnedAndSupervised",e[e.DeleteProjectOwnedAndSupervised=4003008]="DeleteProjectOwnedAndSupervised",e[e.ViewProjectDetails=4003009]="ViewProjectDetails",e[e.ViewReports=4004001]="ViewReports",e[e.ManageReports=4004002]="ManageReports",e[e.DeleteReports=4004003]="DeleteReports",e[e.ExportReports=4004005]="ExportReports",e[e.ViewAssignments=4005001]="ViewAssignments",e[e.ViewAssignmentDetails=4005002]="ViewAssignmentDetails",e[e.ManageAssignments=4005003]="ManageAssignments",e[e.DeleteAssignments=4005004]="DeleteAssignments",e[e.ViewTasks=4006001]="ViewTasks",e[e.ViewTaskDetails=4006002]="ViewTaskDetails",e[e.ManageTasks=4006003]="ManageTasks",e[e.DeleteTasks=4006004]="DeleteTasks",e[e.ViewSettings=4010001]="ViewSettings",e[e.ManageSettings=4010002]="ManageSettings",e[e.ViewTemplates=4011001]="ViewTemplates",e[e.ManageTemplates=4011002]="ManageTemplates",e[e.ViewDataManagement=4012001]="ViewDataManagement",e[e.ManageDataManagement=4012002]="ManageDataManagement",e[e.DeleteDataManagement=4012003]="DeleteDataManagement",e[e.ViewSecurityUser=4013001]="ViewSecurityUser",e[e.ManageSecurityUser=4013002]="ManageSecurityUser",e[e.ViewRoles=4013101]="ViewRoles",e[e.ManageRoles=4013102]="ManageRoles",e[e.DeleteRoles=4013103]="DeleteRoles",e[e.ViewSecurityGroups=4013201]="ViewSecurityGroups",e[e.ManageSecurityGroups=4013202]="ManageSecurityGroups",e[e.DeleteSecurityGroups=4013203]="DeleteSecurityGroups",e[e.ViewPortalUserPreference=4014016]="ViewPortalUserPreference",e[e.ViewEmployeeDashboardProjectStatusBar=4014101]="ViewEmployeeDashboardProjectStatusBar",e[e.ViewEmployeeDashboardWelcomeMessageTile=4014102]="ViewEmployeeDashboardWelcomeMessageTile",e[e.ViewEmployeeDashboardProjectScheduleTile=4014103]="ViewEmployeeDashboardProjectScheduleTile",e[e.ViewEmployeeDashboardProjectStatusTile=4014104]="ViewEmployeeDashboardProjectStatusTile",e[e.ViewEmployeeDashboardAssignmentStatusTile=4014105]="ViewEmployeeDashboardAssignmentStatusTile",e[e.ViewEmployeeProjects=4014201]="ViewEmployeeProjects",e[e.ManageEmployeeProjects=4014202]="ManageEmployeeProjects",e[e.DeleteEmployeeProjects=4014203]="DeleteEmployeeProjects",e[e.ExportEmployeeProjects=4014204]="ExportEmployeeProjects",e[e.ImportReports=4015001]="ImportReports",e[e.ImportDataManagement=4015002]="ImportDataManagement",e[e.ViewApiDocumentation=4016001]="ViewApiDocumentation"}(Zs||(Zs={})),function(e){e[e.Owner=1]="Owner",e[e.Supervisor=2]="Supervisor",e[e.Collaborator=3]="Collaborator"}(Xs||(Xs={})),function(e){e[e.AssignmentDetails=1]="AssignmentDetails",e[e.ClientDetails=2]="ClientDetails",e[e.SenderInformation=3]="SenderInformation",e[e.ProjectDetails=4]="ProjectDetails",e[e.RecipientInformation=5]="RecipientInformation",e[e.TaskDetails=6]="TaskDetails",e[e.FirmInformation=7]="FirmInformation"}(eo||(eo={})),function(e){e[e.Administrator=4]="Administrator",e[e.Manager=5]="Manager",e[e.Employee=6]="Employee"}(to||(to={})),function(e){e[e.Assignment=1]="Assignment",e[e.Task=2]="Task"}(io||(io={}));var zo,Ho,$o,_o,Yo,Qo,Ko,Zo,Xo,ec,tc,ic,rc,ac,nc,sc=function(){function e(t){if(Object(O.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.CEManager=1]="CEManager",e[e.LawCruitBizCruit=2]="LawCruitBizCruit",e[e.TopPerformance=3]="TopPerformance",e[e.GlobalWork=4]="GlobalWork"}(zo||(zo={})),function(e){e[e.ToDo=1]="ToDo",e[e.InProgress=2]="InProgress",e[e.Done=3]="Done"}(Ho||(Ho={})),function(e){e[e.Work=1]="Work",e[e.Personal=2]="Personal",e[e.Other=3]="Other"}($o||($o={})),function(e){e[e.Insert=1]="Insert",e[e.Update=2]="Update",e[e.Exclude=3]="Exclude",e[e.Error=4]="Error"}(_o||(_o={})),function(e){e[e.Configuring=0]="Configuring",e[e.Scheduled=1]="Scheduled",e[e.Processing=2]="Processing",e[e.PartiallySuccessful=3]="PartiallySuccessful",e[e.Success=4]="Success",e[e.Error=5]="Error",e[e.Skipped=6]="Skipped"}(Yo||(Yo={})),function(e){e[e.EnableCustomVideoSetting=1]="EnableCustomVideoSetting",e[e.EnableSeekbar=2]="EnableSeekbar"}(Qo||(Qo={})),function(e){e[e.View=0]="View",e[e.Update=1]="Update",e[e.Create=2]="Create",e[e.Delete=3]="Delete",e[e.Remove=4]="Remove",e[e.Add=5]="Add",e[e.Sync=6]="Sync"}(Ko||(Ko={})),function(e){e[e.Api=0]="Api",e[e.View=1]="View",e[e.Field=2]="Field"}(Zo||(Zo={})),function(e){e[e.Home=1]="Home",e[e.CourseCatalog=2]="CourseCatalog",e[e.CourseCalendar=3]="CourseCalendar",e[e.UserCourses=4]="UserCourses",e[e.Compliance=5]="Compliance",e[e.LearningPlans=6]="LearningPlans",e[e.Transcripts=7]="Transcripts",e[e.InstructorView=8]="InstructorView",e[e.TeamView=9]="TeamView"}(Xo||(Xo={})),function(e){e[e.Lowest=1]="Lowest",e[e.Low=2]="Low",e[e.Medium=3]="Medium",e[e.High=4]="High",e[e.Highest=5]="Highest"}(ec||(ec={})),function(e){e[e.ToDo=1]="ToDo",e[e.InProgress=2]="InProgress",e[e.Done=3]="Done",e[e.Hold=4]="Hold",e[e.Pending=5]="Pending"}(tc||(tc={})),function(e){e[e.AdministrativeAssistant=1]="AdministrativeAssistant",e[e.Supervisor=2]="Supervisor",e[e.Coach=3]="Coach",e[e.Mentor=4]="Mentor",e[e.MatrixManager=5]="MatrixManager",e[e.PracticeGroupLeader=6]="PracticeGroupLeader"}(ic||(ic={})),function(e){e[e.Administrator=1]="Administrator",e[e.Client=2]="Client",e[e.Employee=3]="Employee",e[e.GlobalWorkAdministrator=4]="GlobalWorkAdministrator",e[e.GlobalWorkManager=5]="GlobalWorkManager",e[e.GlobalWorkEmployee=6]="GlobalWorkEmployee",e[e.ApiClient=7]="ApiClient",e[e.LawCruitBizCruitAdministrator=8]="LawCruitBizCruitAdministrator",e[e.LawCruitBizCruitEmployee=9]="LawCruitBizCruitEmployee",e[e.LawCruitBizCruitInterviewer=10]="LawCruitBizCruitInterviewer",e[e.LawCruitBizCruitHiringManager=11]="LawCruitBizCruitHiringManager"}(rc||(rc={})),function(e){e[e.User=1]="User",e[e.Role=2]="Role",e[e.Security=3]="Security",e[e.Project=4]="Project",e[e.EmailTemplate=5]="EmailTemplate",e[e.Group=6]="Group",e[e.ReportCriteria=7]="ReportCriteria",e[e.ClientMatterBilling=8]="ClientMatterBilling",e[e.PortalProject=9]="PortalProject",e[e.Assignment=10]="Assignment",e[e.Task=11]="Task",e[e.PortalAssignment=12]="PortalAssignment",e[e.MaintenanceTable=13]="MaintenanceTable",e[e.PortalTask=14]="PortalTask"}(ac||(ac={})),function(e){e[e.ToDo=1]="ToDo",e[e.InProgress=2]="InProgress",e[e.Done=3]="Done"}(nc||(nc={}));var oc=function(){function e(t){if(Object(O.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,this.errors=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance,e.errors))for(var t in this.errors={},e.errors)e.errors.hasOwnProperty(t)&&(this.errors[t]=void 0!==e.errors[t]?e.errors[t]:[])}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,this.errors)for(var t in e.errors={},this.errors)this.errors.hasOwnProperty(t)&&(e.errors[t]=this.errors[t]);return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cc=function(e){Object(b.a)(i,e);var t=Object(S.a)(i);function i(e,r,a,n,s){var o;return Object(O.a)(this,i),(o=t.call(this)).message=void 0,o.status=void 0,o.response=void 0,o.headers=void 0,o.result=void 0,o.isApiException=!0,o.message=e,o.status=r,o.response=a,o.headers=n,o.result=s,o}return Object(A.a)(i,null,[{key:"isApiException",value:function(e){return!0===e.isApiException}}]),i}(Object(g.a)(Error));function lc(e,t,i,r,a){throw null!==a&&void 0!==a?a:new cc(e,t,i,r,null)}function dc(e){return e&&!0===e.isAxiosError}var uc,hc=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"get",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/Get",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGet(e)}))}},{key:"processGet",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ul.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdate(e)}))}},{key:"processUpdate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ul.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=ul.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updateFirmAuthentication",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateFirmAuthentication";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateFirmAuthentication(e)}))}},{key:"processUpdateFirmAuthentication",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=pl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=pl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"getFirmBranding",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmBranding",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetFirmBranding(e)}))}},{key:"processGetFirmBranding",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=dl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getMMFirmSettings",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetMMFirmSettings",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetMMFirmSettings(e)}))}},{key:"processGetMMFirmSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(hl.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return hd("Not Found",t,l,i,Nc.fromJS(d))}var u=e.data,h=u;return hd("Error",t,u,i,Nc.fromJS(h))}},{key:"getFirmSetting",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmSetting",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetFirmSetting(e)}))}},{key:"processGetFirmSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=pl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getSummerAssociatesSetting",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetSummerAssociatesSetting",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetSummerAssociatesSetting(e)}))}},{key:"processGetSummerAssociatesSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=pl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"updateSummerAssociatesSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateSummerAssociatesSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSummerAssociatesSetting(e)}))}},{key:"processUpdateSummerAssociatesSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=pl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=pl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"getSummerAssociateEvaluationDateRangeSetting",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetSummerAssociateEvaluationDateRangeSetting",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetSummerAssociateEvaluationDateRangeSetting(e)}))}},{key:"processGetSummerAssociateEvaluationDateRangeSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=pl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"updateSummerAssociateEvaluationDateRangeSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateSummerAssociateEvaluationDateRangeSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSummerAssociateEvaluationDateRangeSetting(e)}))}},{key:"processUpdateSummerAssociateEvaluationDateRangeSetting",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=pl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=pl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"getIntegrationsSettings",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetIntegrationsSettings",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetIntegrationsSettings(e)}))}},{key:"processGetIntegrationsSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=vl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"updateIntegrationsSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateIntegrationsSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateIntegrationsSettings(e)}))}},{key:"processUpdateIntegrationsSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return hd("Bad Request",t,a,i,dd.fromJS(n))}var s=e.data,o=s;return hd("Error",t,s,i,Nc.fromJS(o))}},{key:"updateLcbcSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateLcbcSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateLcbcSettings(e)}))}},{key:"processUpdateLcbcSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return hd("Bad Request",t,a,i,dd.fromJS(n))}var s=e.data,o=s;return hd("Error",t,s,i,Nc.fromJS(o))}}]),e}(),fc=function(){function e(t,i){Object(O.a)(this,e),this.instance=void 0,this.baseUrl=void 0,this.jsonParseReviver=void 0,this.instance=i||C.a.create(),this.baseUrl=void 0!==t&&null!==t?t:""}return Object(A.a)(e,[{key:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAll(e)}))}},{key:"processGetAll",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Vl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getAllByRelationship",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllByRelationship";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllByRelationship(e)}))}},{key:"processGetAllByRelationship",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Hl.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return hd("Not Found",t,l,i,Nc.fromJS(d))}var u=e.data,h=u;return hd("Error",t,u,i,Nc.fromJS(h))}},{key:"getUserListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserListById(e)}))}},{key:"processGetUserListById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Vl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetById/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetById(e)}))}},{key:"processGetById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getUserRelationshipsById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserRelationshipsById/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserRelationshipsById(e)}))}},{key:"processGetUserRelationshipsById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Zl.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return hd("Not Found",t,l,i,Nc.fromJS(d))}var u=e.data,h=u;return hd("Error",t,u,i,Nc.fromJS(h))}},{key:"getByIdpId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetByIdpId(e)}))}},{key:"processGetByIdpId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getUserApplicationByIdpId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserApplicationByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserApplicationByIdpId(e)}))}},{key:"processGetUserApplicationByIdpId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Cl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getUserCustomFieldsById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserCustomFieldsById/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserCustomFieldsById(e)}))}},{key:"processGetUserCustomFieldsById",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=kl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getUserPreferences",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetUserPreferences",a={method:"POST",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetUserPreferences(e)}))}},{key:"processGetUserPreferences",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=bl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"updatePreferences",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdatePreferences";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePreferences(e)}))}},{key:"processUpdatePreferences",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=bl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=bl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"getActiveUserAdmins",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetActiveUserAdmins",a={method:"GET",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetActiveUserAdmins(e)}))}},{key:"processGetActiveUserAdmins",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(jl.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return hd("Not Found",t,l,i,Nc.fromJS(d))}var u=e.data,h=u;return hd("Error",t,u,i,Nc.fromJS(h))}},{key:"getFilteredUserOption",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetFilteredUserOption";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetFilteredUserOption(e)}))}},{key:"processGetFilteredUserOption",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(jl.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return hd("Not Found",t,l,i,Nc.fromJS(d))}var u=e.data,h=u;return hd("Error",t,u,i,Nc.fromJS(h))}},{key:"getAllRoleType",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllRoleType";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllRoleType(e)}))}},{key:"processGetAllRoleType",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Ol.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getProjectUsersOptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetProjectUsersOptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetProjectUsersOptions(e)}))}},{key:"processGetProjectUsersOptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=$l.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getUserExistingApplications",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserExistingApplications/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserExistingApplications(e)}))}},{key:"processGetUserExistingApplications",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Pl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getUserHeaderInformation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserHeaderInformation/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetUserHeaderInformation(e)}))}},{key:"processGetUserHeaderInformation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Gl.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreate(e)}))}},{key:"processCreate",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"createTenantUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/CreateTenantUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processCreateTenantUser(e)}))}},{key:"processCreateTenantUser",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDelete(e)}))}},{key:"processDelete",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Hl.fromJS(c))}}catch(p){o.e(p)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(204===t)return hd("Success",t,e.data,i);if(400===t){var l=e.data,d=l;return hd("Bad Request",t,l,i,dd.fromJS(d))}if(404===t){var u=e.data,h=u;return hd("Not Found",t,u,i,Nc.fromJS(h))}var f=e.data,v=f;return hd("Error",t,f,i,Nc.fromJS(v))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processArchive(e)}))}},{key:"processArchive",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(204===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return hd("Bad Request",t,a,i,dd.fromJS(n))}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportCsv(e)}))}},{key:"processExportCsv",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processExportExcel(e)}))}},{key:"processExportExcel",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t||206===t){var a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,s=n&&n.length>1?n[3]||n[2]:void 0;return s=s?decodeURIComponent(s):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[1]:void 0,Promise.resolve({fileName:s,status:t,data:new Blob([e.data],{type:e.headers["content-type"]}),headers:i})}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateEducations",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEducations";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEducations(e)}))}},{key:"processUpdateEducations",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updateEmails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEmails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEmails(e)}))}},{key:"processUpdateEmails",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updatePhones",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdatePhones";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePhones(e)}))}},{key:"processUpdatePhones",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updateProfileInformation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateProfileInformation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateProfileInformation(e)}))}},{key:"processUpdateProfileInformation",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updateJobProfile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateJobProfile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateJobProfile(e)}))}},{key:"processUpdateJobProfile",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updatePracticeAreas",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdatePracticeAreas";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdatePracticeAreas(e)}))}},{key:"processUpdatePracticeAreas",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updateJobRelationships",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateJobRelationships";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateJobRelationships(e)}))}},{key:"processUpdateJobRelationships",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Zl.fromJS(c))}}catch(b){o.e(b)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(201===t){var l=null,d=e.data;if(Array.isArray(d)){l=[];var u,h=Object(I.a)(d);try{for(h.s();!(u=h.n()).done;){var f=u.value;l.push(Zl.fromJS(f))}}catch(b){h.e(b)}finally{h.f()}}else l=null;return Promise.resolve(l)}if(400===t){var v=e.data,p=v;return hd("Bad Request",t,v,i,dd.fromJS(p))}var m=e.data,y=m;return hd("Error",t,m,i,Nc.fromJS(y))}},{key:"updateSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSettings(e)}))}},{key:"processUpdateSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updateEmailNotificationSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEmailNotificationSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateEmailNotificationSettings(e)}))}},{key:"processUpdateEmailNotificationSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updateUserOnlineMeetingIntegrationSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateUserOnlineMeetingIntegrationSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUserOnlineMeetingIntegrationSettings(e)}))}},{key:"processUpdateUserOnlineMeetingIntegrationSettings",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"updateSecurity",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateSecurity";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSecurity(e)}))}},{key:"processUpdateSecurity",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"changePassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ChangePassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processChangePassword(e)}))}},{key:"processChangePassword",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateUserCustomFieldValue",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateUserCustomFieldValue";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUserCustomFieldValue(e)}))}},{key:"processUpdateUserCustomFieldValue",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=kl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=kl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}},{key:"getAllUserOptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserOptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUserOptions(e)}))}},{key:"processGetAllUserOptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Hl.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return hd("Not Found",t,l,i,Nc.fromJS(d))}var u=e.data,h=u;return hd("Error",t,u,i,Nc.fromJS(h))}},{key:"validateRelationship",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ValidateRelationship";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processValidateRelationship(e)}))}},{key:"processValidateRelationship",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=ed.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserEmail",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserEmail?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'email' cannot be null.");void 0!==t&&(n+="email="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserEmail(e)}))}},{key:"processValidateUserEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserLoginId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserLoginId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'loginId' cannot be null.");void 0!==t&&(n+="loginId="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserLoginId(e)}))}},{key:"processValidateUserLoginId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserEmployeeId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserEmployeeId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'employeeId' cannot be null.");void 0!==t&&(n+="employeeId="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserEmployeeId(e)}))}},{key:"processValidateUserEmployeeId",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserPhone",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserPhone?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'phone' cannot be null.");void 0!==t&&(n+="phone="+encodeURIComponent(""+t)+"&");var s={method:"POST",url:n=n.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==i&&null!==i?""+i:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return a.processValidateUserPhone(e)}))}},{key:"processValidateUserPhone",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserMFAPhone",value:function(e,t,i,r,a){var n=this,s=this.baseUrl+"/api/User/ValidateUserMFAPhone?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(s+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'phone' cannot be null.");if(void 0!==t&&(s+="phone="+encodeURIComponent(""+t)+"&"),null===i)throw new Error("The parameter 'email' cannot be null.");void 0!==i&&(s+="email="+encodeURIComponent(""+i)+"&");var o={method:"POST",url:s=s.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==r&&null!==r?""+r:"",Accept:"application/json"},cancelToken:a};return this.instance.request(o).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return n.processValidateUserMFAPhone(e)}))}},{key:"processValidateUserMFAPhone",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"massValidateUserMFAPhone",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/MassValidateUserMFAPhone";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processMassValidateUserMFAPhone(e)}))}},{key:"processMassValidateUserMFAPhone",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(c)}}catch(l){o.e(l)}finally{o.f()}}else a=null;return Promise.resolve(a)}return 200!==t&&204!==t?hd("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateUsersMfaStatus",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateUsersMfaStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUsersMfaStatus(e)}))}},{key:"processUpdateUsersMfaStatus",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){e.data;return Promise.resolve(null)}if(201===t){e.data;return Promise.resolve(null)}if(400===t){var a=e.data,n=a;return hd("Bad Request",t,a,i,dd.fromJS(n))}var s=e.data,o=s;return hd("Error",t,s,i,Nc.fromJS(o))}},{key:"getPortalProjectUsersOptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetPortalProjectUsersOptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetPortalProjectUsersOptions(e)}))}},{key:"processGetPortalProjectUsersOptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=$l.fromJS(n),Promise.resolve(a)}if(404===t){var s=e.data,o=s;return hd("Not Found",t,s,i,Nc.fromJS(o))}var c=e.data,l=c;return hd("Error",t,c,i,Nc.fromJS(l))}},{key:"getAllPortalUserOptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllPortalUserOptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllPortalUserOptions(e)}))}},{key:"processGetAllPortalUserOptions",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(Hl.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return hd("Not Found",t,l,i,Nc.fromJS(d))}var u=e.data,h=u;return hd("Error",t,u,i,Nc.fromJS(h))}},{key:"getAllUserCustomFields",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetAllUserCustomFields",a={method:"POST",url:r=r.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:t};return this.instance.request(a).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return i.processGetAllUserCustomFields(e)}))}},{key:"processGetAllUserCustomFields",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a=null,n=e.data;if(Array.isArray(n)){a=[];var s,o=Object(I.a)(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;a.push(wl.fromJS(c))}}catch(f){o.e(f)}finally{o.f()}}else a=null;return Promise.resolve(a)}if(404===t){var l=e.data,d=l;return hd("Not Found",t,l,i,Nc.fromJS(d))}var u=e.data,h=u;return hd("Error",t,u,i,Nc.fromJS(h))}},{key:"updateUserCustomField",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateUserCustomField";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(fd(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateUserCustomField(e)}))}},{key:"processUpdateUserCustomField",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(201===t){var s,o=e.data;return s=Dl.fromJS(o),Promise.resolve(s)}if(400===t){var c=e.data,l=c;return hd("Bad Request",t,c,i,dd.fromJS(l))}var d=e.data,u=d;return hd("Error",t,d,i,Nc.fromJS(u))}}]),e}(),vc=function(){function e(t){if(Object(O.a)(this,e),this.appId=void 0,this.name=void 0,this.code=void 0,this.adminClientId=void 0,this.adminUrl=void 0,this.portalClientId=void 0,this.portalUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.appId=e.appId,this.name=e.name,this.code=e.code,this.adminClientId=e.adminClientId,this.adminUrl=e.adminUrl,this.portalClientId=e.portalClientId,this.portalUrl=e.portalUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).appId=this.appId,e.name=this.name,e.code=this.code,e.adminClientId=this.adminClientId,e.adminUrl=this.adminUrl,e.portalClientId=this.portalClientId,e.portalUrl=this.portalUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Izenda=1]="Izenda",e[e.Html=2]="Html"}(uc||(uc={}));var pc,mc,yc,bc,Sc,gc,Ic,Oc,Ac,jc,Cc,Pc,Ec,wc,kc,Tc,Nc=function(){function e(t){if(Object(O.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance}}},{key:"toJSON",value:function(e){for(var t in e="object"===typeof e?e:{},this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e.type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.CEManager=1]="CEManager",e[e.LawCruitBizCruit=2]="LawCruitBizCruit",e[e.TopPerformance=3]="TopPerformance",e[e.GlobalWork=4]="GlobalWork"}(pc||(pc={})),function(e){e[e.DeclinedInterview=1]="DeclinedInterview",e[e.Hired=2]="Hired",e[e.InterviewInOffice=3]="InterviewInOffice",e[e.InterviewSchedule=4]="InterviewSchedule",e[e.InviteToOffice=5]="InviteToOffice",e[e.NoRelevantStatus=6]="NoRelevantStatus",e[e.NoResponse=7]="NoResponse",e[e.Offer=8]="Offer",e[e.OfferAccepted=9]="OfferAccepted",e[e.OfferDeclined=10]="OfferDeclined",e[e.Pending=11]="Pending",e[e.Reject=12]="Reject",e[e.RejectAfterOCI=13]="RejectAfterOCI",e[e.RejectAfterOfficeInterview=14]="RejectAfterOfficeInterview",e[e.SelfScheduleInterview=15]="SelfScheduleInterview",e[e.Withdrew=16]="Withdrew"}(mc||(mc={})),function(e){e[e.ToDo=1]="ToDo",e[e.InProgress=2]="InProgress",e[e.Done=3]="Done"}(yc||(yc={})),function(e){e[e.Work=1]="Work",e[e.Personal=2]="Personal",e[e.Other=3]="Other"}(bc||(bc={})),function(e){e[e.Insert=1]="Insert",e[e.Update=2]="Update",e[e.Exclude=3]="Exclude",e[e.Error=4]="Error",e[e.Duplicate=5]="Duplicate"}(Sc||(Sc={})),function(e){e[e.Configuring=0]="Configuring",e[e.Scheduled=1]="Scheduled",e[e.Processing=2]="Processing",e[e.PartiallySuccessful=3]="PartiallySuccessful",e[e.Success=4]="Success",e[e.Error=5]="Error",e[e.Skipped=6]="Skipped",e[e.Validated=7]="Validated"}(gc||(gc={})),function(e){e[e.EnableCustomVideoSetting=1]="EnableCustomVideoSetting",e[e.EnableSeekbar=2]="EnableSeekbar",e[e.EnableRewind=3]="EnableRewind",e[e.EnableFastForward=4]="EnableFastForward"}(Ic||(Ic={})),function(e){e[e.View=0]="View",e[e.Update=1]="Update",e[e.Create=2]="Create",e[e.Delete=3]="Delete",e[e.Remove=4]="Remove",e[e.Add=5]="Add",e[e.Sync=6]="Sync"}(Oc||(Oc={})),function(e){e[e.Api=0]="Api",e[e.View=1]="View",e[e.Field=2]="Field"}(Ac||(Ac={})),function(e){e[e.Home=1]="Home",e[e.CourseCatalog=2]="CourseCatalog",e[e.CourseCalendar=3]="CourseCalendar",e[e.UserCourses=4]="UserCourses",e[e.Compliance=5]="Compliance",e[e.LearningPlans=6]="LearningPlans",e[e.Transcripts=7]="Transcripts",e[e.InstructorView=8]="InstructorView",e[e.TeamView=9]="TeamView"}(jc||(jc={})),function(e){e[e.Lowest=1]="Lowest",e[e.Low=2]="Low",e[e.Medium=3]="Medium",e[e.High=4]="High",e[e.Highest=5]="Highest"}(Cc||(Cc={})),function(e){e[e.ToDo=1]="ToDo",e[e.InProgress=2]="InProgress",e[e.Done=3]="Done",e[e.Hold=4]="Hold",e[e.Pending=5]="Pending"}(Pc||(Pc={})),function(e){e[e.AdministrativeAssistant=1]="AdministrativeAssistant",e[e.Supervisor=2]="Supervisor",e[e.Coach=3]="Coach",e[e.Mentor=4]="Mentor",e[e.MatrixManager=5]="MatrixManager",e[e.PracticeGroupLeader=6]="PracticeGroupLeader"}(Ec||(Ec={})),function(e){e[e.Administrator=1]="Administrator",e[e.Client=2]="Client",e[e.Employee=3]="Employee",e[e.GlobalWorkAdministrator=4]="GlobalWorkAdministrator",e[e.GlobalWorkManager=5]="GlobalWorkManager",e[e.GlobalWorkEmployee=6]="GlobalWorkEmployee",e[e.ApiClient=7]="ApiClient",e[e.LawCruitBizCruitAdministrator=8]="LawCruitBizCruitAdministrator",e[e.LawCruitBizCruitEmployee=9]="LawCruitBizCruitEmployee",e[e.LawCruitBizCruitInterviewer=10]="LawCruitBizCruitInterviewer",e[e.LawCruitBizCruitHiringManager=11]="LawCruitBizCruitHiringManager",e[e.LawCruitBizCruitSummerAssociate=12]="LawCruitBizCruitSummerAssociate"}(wc||(wc={})),function(e){e[e.Empty=0]="Empty",e[e.Law=1]="Law",e[e.Other=2]="Other"}(kc||(kc={})),function(e){e[e.ToDo=1]="ToDo",e[e.InProgress=2]="InProgress",e[e.Done=3]="Done"}(Tc||(Tc={}));var Jc,Dc,Lc,Uc,Rc,xc,Fc,Mc,Gc,Bc,qc,Vc,Wc,zc,Hc,$c,_c,Yc,Qc,Kc,Zc,Xc,el,tl,il,rl,al,nl,sl,ol,cl=function(){function e(t){if(Object(O.a)(this,e),this.settings=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.settings=[])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.settings)){this.settings=[];var t,i=Object(I.a)(e.settings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.settings.push(hl.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.settings)){e.settings=[];var t,i=Object(I.a)(this.settings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.settings.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ll=function(){function e(t){if(Object(O.a)(this,e),this.app=void 0,this.hasAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.app=e.app?vc.fromJS(e.app):void 0,this.hasAccess=e.hasAccess)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).app=this.app?this.app.toJSON():void 0,e.hasAccess=this.hasAccess,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),dl=function(){function e(t){if(Object(O.a)(this,e),this.headerText=void 0,this.logoUrl=void 0,this.applicationName=void 0,this.industryId=void 0,this.ssoProviders=void 0,this.hasIdentityProviderEnabled=void 0,this.isLoginScreenEnabled=void 0,this.loginScreenLabel=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.headerText=e.headerText,this.logoUrl=e.logoUrl,this.applicationName=e.applicationName,this.industryId=e.industryId,Array.isArray(e.ssoProviders)){this.ssoProviders=[];var t,i=Object(I.a)(e.ssoProviders);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.ssoProviders.push(ml.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.hasIdentityProviderEnabled=e.hasIdentityProviderEnabled,this.isLoginScreenEnabled=e.isLoginScreenEnabled,this.loginScreenLabel=e.loginScreenLabel}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).headerText=this.headerText,e.logoUrl=this.logoUrl,e.applicationName=this.applicationName,e.industryId=this.industryId,Array.isArray(this.ssoProviders)){e.ssoProviders=[];var t,i=Object(I.a)(this.ssoProviders);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.ssoProviders.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.hasIdentityProviderEnabled=this.hasIdentityProviderEnabled,e.isLoginScreenEnabled=this.isLoginScreenEnabled,e.loginScreenLabel=this.loginScreenLabel,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ul=function(){function e(t){if(Object(O.a)(this,e),this.firmId=void 0,this.name=void 0,this.firmGroupId=void 0,this.locationId=void 0,this.address=void 0,this.telephone=void 0,this.fax=void 0,this.city=void 0,this.stateId=void 0,this.countryId=void 0,this.zipCode=void 0,this.renewalDate=void 0,this.language=void 0,this.dateFormat=void 0,this.timezone=void 0,this.logoUrl=void 0,this.thumbnailUrl=void 0,this.isLoginScreenEnabled=void 0,this.hasIdentityProviderEnabled=void 0,this.signInLabels=void 0,this.defaultProcessYear=void 0,this.processYearStartMonth=void 0,this.processYearStartDate=void 0,this.updateProcessYearAutomatically=void 0,this.firmSettings=void 0,this.firmApplications=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.firmId=e.firmId,this.name=e.name,this.firmGroupId=e.firmGroupId,this.locationId=e.locationId,this.address=e.address,this.telephone=e.telephone,this.fax=e.fax,this.city=e.city,this.stateId=e.stateId,this.countryId=e.countryId,this.zipCode=e.zipCode,this.renewalDate=e.renewalDate?new Date(e.renewalDate.toString()):void 0,this.language=e.language,this.dateFormat=e.dateFormat,this.timezone=e.timezone,this.logoUrl=e.logoUrl,this.thumbnailUrl=e.thumbnailUrl,this.isLoginScreenEnabled=e.isLoginScreenEnabled,this.hasIdentityProviderEnabled=e.hasIdentityProviderEnabled,this.signInLabels=e.signInLabels,this.defaultProcessYear=e.defaultProcessYear,this.processYearStartMonth=e.processYearStartMonth,this.processYearStartDate=e.processYearStartDate,this.updateProcessYearAutomatically=e.updateProcessYearAutomatically,Array.isArray(e.firmSettings)){this.firmSettings=[];var t,i=Object(I.a)(e.firmSettings);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.firmSettings.push(hl.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.firmApplications)){this.firmApplications=[];var a,n=Object(I.a)(e.firmApplications);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.firmApplications.push(ll.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).firmId=this.firmId,e.name=this.name,e.firmGroupId=this.firmGroupId,e.locationId=this.locationId,e.address=this.address,e.telephone=this.telephone,e.fax=this.fax,e.city=this.city,e.stateId=this.stateId,e.countryId=this.countryId,e.zipCode=this.zipCode,e.renewalDate=this.renewalDate?this.renewalDate.toISOString():void 0,e.language=this.language,e.dateFormat=this.dateFormat,e.timezone=this.timezone,e.logoUrl=this.logoUrl,e.thumbnailUrl=this.thumbnailUrl,e.isLoginScreenEnabled=this.isLoginScreenEnabled,e.hasIdentityProviderEnabled=this.hasIdentityProviderEnabled,e.signInLabels=this.signInLabels,e.defaultProcessYear=this.defaultProcessYear,e.processYearStartMonth=this.processYearStartMonth,e.processYearStartDate=this.processYearStartDate,e.updateProcessYearAutomatically=this.updateProcessYearAutomatically,Array.isArray(this.firmSettings)){e.firmSettings=[];var t,i=Object(I.a)(this.firmSettings);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.firmSettings.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.firmApplications)){e.firmApplications=[];var a,n=Object(I.a)(this.firmApplications);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.firmApplications.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),hl=function(){function e(t){if(Object(O.a)(this,e),this.key=void 0,this.value=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.key=e.key,this.value=e.value)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).key=this.key,e.value=this.value,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),fl=function(){function e(t){if(Object(O.a)(this,e),this.integrationId=void 0,this.name=void 0,this.isActive=void 0,this.accountId=void 0,this.clientKey=void 0,this.clientSecret=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.integrationId=e.integrationId,this.name=e.name,this.isActive=e.isActive,this.accountId=e.accountId,this.clientKey=e.clientKey,this.clientSecret=e.clientSecret)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).integrationId=this.integrationId,e.name=this.name,e.isActive=this.isActive,e.accountId=this.accountId,e.clientKey=this.clientKey,e.clientSecret=this.clientSecret,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),vl=function(){function e(t){if(Object(O.a)(this,e),this.isMeetingIntegrationEnabled=void 0,this.isOutlookCalendarIntegrationEnabled=void 0,this.integrations=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.isMeetingIntegrationEnabled=e.isMeetingIntegrationEnabled,this.isOutlookCalendarIntegrationEnabled=e.isOutlookCalendarIntegrationEnabled,Array.isArray(e.integrations))){this.integrations=[];var t,i=Object(I.a)(e.integrations);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.integrations.push(fl.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).isMeetingIntegrationEnabled=this.isMeetingIntegrationEnabled,e.isOutlookCalendarIntegrationEnabled=this.isOutlookCalendarIntegrationEnabled,Array.isArray(this.integrations)){e.integrations=[];var t,i=Object(I.a)(this.integrations);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.integrations.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),pl=function(){function e(t){if(Object(O.a)(this,e),this.isLoginScreenEnabled=void 0,this.isTaskEnabled=void 0,this.isAllowPrintingEvaluationEnabled=void 0,this.isShowTalentDashboardOnEvaluationEnabled=void 0,this.summerAssociateEvaluationDateRangeType=void 0,this.summerAssociateEvaluationStartDate=void 0,this.summerAssociateEvaluationEndDate=void 0,this.summerAssociateEvaluationDays=void 0,this.isSummerProgramSplashScreenEnabled=void 0,this.isAutomaticallyCreateEvaluationsEnabled=void 0,this.defaultEvaluationDateRangeType=void 0,this.evaluationDayOfMonth=void 0,this.evaluationMonth=void 0,this.defaultEvaluationDays=void 0,this.isAutomaticallyCreateSelfEvaluationsEnabled=void 0,this.defaultSelfEvaluationDateRangeType=void 0,this.selfEvaluationDayOfMonth=void 0,this.selfEvaluationMonth=void 0,this.defaultSelfEvaluationDays=void 0,this.loginScreenLabel=void 0,this.defaultProcessYear=void 0,this.updateProcessYearAutomatically=void 0,this.processYearStartMonth=void 0,this.processYearStartDate=void 0,this.ssoProviders=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.isLoginScreenEnabled=e.isLoginScreenEnabled,this.isTaskEnabled=e.isTaskEnabled,this.isAllowPrintingEvaluationEnabled=e.isAllowPrintingEvaluationEnabled,this.isShowTalentDashboardOnEvaluationEnabled=e.isShowTalentDashboardOnEvaluationEnabled,this.summerAssociateEvaluationDateRangeType=e.summerAssociateEvaluationDateRangeType,this.summerAssociateEvaluationStartDate=e.summerAssociateEvaluationStartDate?new Date(e.summerAssociateEvaluationStartDate.toString()):void 0,this.summerAssociateEvaluationEndDate=e.summerAssociateEvaluationEndDate?new Date(e.summerAssociateEvaluationEndDate.toString()):void 0,this.summerAssociateEvaluationDays=e.summerAssociateEvaluationDays,this.isSummerProgramSplashScreenEnabled=e.isSummerProgramSplashScreenEnabled,this.isAutomaticallyCreateEvaluationsEnabled=e.isAutomaticallyCreateEvaluationsEnabled,this.defaultEvaluationDateRangeType=e.defaultEvaluationDateRangeType,this.evaluationDayOfMonth=e.evaluationDayOfMonth,this.evaluationMonth=e.evaluationMonth,this.defaultEvaluationDays=e.defaultEvaluationDays,this.isAutomaticallyCreateSelfEvaluationsEnabled=e.isAutomaticallyCreateSelfEvaluationsEnabled,this.defaultSelfEvaluationDateRangeType=e.defaultSelfEvaluationDateRangeType,this.selfEvaluationDayOfMonth=e.selfEvaluationDayOfMonth,this.selfEvaluationMonth=e.selfEvaluationMonth,this.defaultSelfEvaluationDays=e.defaultSelfEvaluationDays,this.loginScreenLabel=e.loginScreenLabel,this.defaultProcessYear=e.defaultProcessYear,this.updateProcessYearAutomatically=e.updateProcessYearAutomatically,this.processYearStartMonth=e.processYearStartMonth,this.processYearStartDate=e.processYearStartDate,Array.isArray(e.ssoProviders))){this.ssoProviders=[];var t,i=Object(I.a)(e.ssoProviders);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.ssoProviders.push(ml.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).isLoginScreenEnabled=this.isLoginScreenEnabled,e.isTaskEnabled=this.isTaskEnabled,e.isAllowPrintingEvaluationEnabled=this.isAllowPrintingEvaluationEnabled,e.isShowTalentDashboardOnEvaluationEnabled=this.isShowTalentDashboardOnEvaluationEnabled,e.summerAssociateEvaluationDateRangeType=this.summerAssociateEvaluationDateRangeType,e.summerAssociateEvaluationStartDate=this.summerAssociateEvaluationStartDate?this.summerAssociateEvaluationStartDate.toISOString():void 0,e.summerAssociateEvaluationEndDate=this.summerAssociateEvaluationEndDate?this.summerAssociateEvaluationEndDate.toISOString():void 0,e.summerAssociateEvaluationDays=this.summerAssociateEvaluationDays,e.isSummerProgramSplashScreenEnabled=this.isSummerProgramSplashScreenEnabled,e.isAutomaticallyCreateEvaluationsEnabled=this.isAutomaticallyCreateEvaluationsEnabled,e.defaultEvaluationDateRangeType=this.defaultEvaluationDateRangeType,e.evaluationDayOfMonth=this.evaluationDayOfMonth,e.evaluationMonth=this.evaluationMonth,e.defaultEvaluationDays=this.defaultEvaluationDays,e.isAutomaticallyCreateSelfEvaluationsEnabled=this.isAutomaticallyCreateSelfEvaluationsEnabled,e.defaultSelfEvaluationDateRangeType=this.defaultSelfEvaluationDateRangeType,e.selfEvaluationDayOfMonth=this.selfEvaluationDayOfMonth,e.selfEvaluationMonth=this.selfEvaluationMonth,e.defaultSelfEvaluationDays=this.defaultSelfEvaluationDays,e.loginScreenLabel=this.loginScreenLabel,e.defaultProcessYear=this.defaultProcessYear,e.updateProcessYearAutomatically=this.updateProcessYearAutomatically,e.processYearStartMonth=this.processYearStartMonth,e.processYearStartDate=this.processYearStartDate,Array.isArray(this.ssoProviders)){e.ssoProviders=[];var t,i=Object(I.a)(this.ssoProviders);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.ssoProviders.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ml=function(){function e(t){if(Object(O.a)(this,e),this.name=void 0,this.signInLabel=void 0,this.isEnabled=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.name=e.name,this.signInLabel=e.signInLabel,this.isEnabled=e.isEnabled)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).name=this.name,e.signInLabel=this.signInLabel,e.isEnabled=this.isEnabled,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),yl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.fileId=void 0,this.signatureUrl=void 0,this.thumbnailUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.fileId=e.fileId,this.signatureUrl=e.signatureUrl,this.thumbnailUrl=e.thumbnailUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.fileId=this.fileId,e.signatureUrl=this.signatureUrl,e.thumbnailUrl=this.thumbnailUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),bl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.dateFormat=void 0,this.timezone=void 0,this.displayNameType=void 0,this.signatureFileId=void 0,this.signatureUrl=void 0,this.thumbnailUrl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.dateFormat=e.dateFormat,this.timezone=e.timezone,this.displayNameType=e.displayNameType,this.signatureFileId=e.signatureFileId,this.signatureUrl=e.signatureUrl,this.thumbnailUrl=e.thumbnailUrl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.dateFormat=this.dateFormat,e.timezone=this.timezone,e.displayNameType=this.displayNameType,e.signatureFileId=this.signatureFileId,e.signatureUrl=this.signatureUrl,e.thumbnailUrl=this.thumbnailUrl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Sl=function(){function e(t){if(Object(O.a)(this,e),this.employeeId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.locationId=void 0,this.userName=void 0,this.emails=void 0,this.phones=void 0,this.roles=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t||(this.roles=[])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.employeeId=e.employeeId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.locationId=e.locationId,this.userName=e.userName,Array.isArray(e.emails)){this.emails=[];var t,i=Object(I.a)(e.emails);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.emails.push(Ul.fromJS(r))}}catch(d){i.e(d)}finally{i.f()}}if(Array.isArray(e.phones)){this.phones=[];var a,n=Object(I.a)(e.phones);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.phones.push(_l.fromJS(s))}}catch(d){n.e(d)}finally{n.f()}}if(Array.isArray(e.roles)){this.roles=[];var o,c=Object(I.a)(e.roles);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.roles.push(td.fromJS(l))}}catch(d){c.e(d)}finally{c.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).employeeId=this.employeeId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.locationId=this.locationId,e.userName=this.userName,Array.isArray(this.emails)){e.emails=[];var t,i=Object(I.a)(this.emails);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.emails.push(r.toJSON())}}catch(d){i.e(d)}finally{i.f()}}if(Array.isArray(this.phones)){e.phones=[];var a,n=Object(I.a)(this.phones);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.phones.push(s.toJSON())}}catch(d){n.e(d)}finally{n.f()}}if(Array.isArray(this.roles)){e.roles=[];var o,c=Object(I.a)(this.roles);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.roles.push(l.toJSON())}}catch(d){c.e(d)}finally{c.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),gl=function(){function e(t){if(Object(O.a)(this,e),this.app=void 0,this.hasAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.app=e.app?vc.fromJS(e.app):void 0,this.hasAccess=e.hasAccess)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).app=this.app?this.app.toJSON():void 0,e.hasAccess=this.hasAccess,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Il=function(){function e(t){if(Object(O.a)(this,e),this.typeId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.typeId=e.typeId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).typeId=this.typeId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ol=function(){function e(t){if(Object(O.a)(this,e),this.roleTypes=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.roleTypes)){this.roleTypes=[];var t,i=Object(I.a)(e.roleTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.roleTypes.push(Il.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.roleTypes)){e.roleTypes=[];var t,i=Object(I.a)(this.roleTypes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.roleTypes.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Al=function(){function e(t){if(Object(O.a)(this,e),this.billableHours=void 0,this.nonBillableHours=void 0,this.committedHours=void 0,this.probonoHours=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.billableHours=e.billableHours,this.nonBillableHours=e.nonBillableHours,this.committedHours=e.committedHours,this.probonoHours=e.probonoHours)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).billableHours=this.billableHours,e.nonBillableHours=this.nonBillableHours,e.committedHours=this.committedHours,e.probonoHours=this.probonoHours,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),jl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.userName=void 0,this.firstName=void 0,this.lastName=void 0,this.middleName=void 0,this.email=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.userName=e.userName,this.firstName=e.firstName,this.lastName=e.lastName,this.middleName=e.middleName,this.email=e.email)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.userName=this.userName,e.firstName=this.firstName,e.lastName=this.lastName,e.middleName=this.middleName,e.email=this.email,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Cl=function(){function e(t){if(Object(O.a)(this,e),this.idpId=void 0,this.isActive=void 0,this.portalAccessEnabled=void 0,this.userType=void 0,this.userApplicationAccess=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.idpId=e.idpId,this.isActive=e.isActive,this.portalAccessEnabled=e.portalAccessEnabled,this.userType=e.userType,Array.isArray(e.userApplicationAccess))){this.userApplicationAccess=[];var t,i=Object(I.a)(e.userApplicationAccess);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userApplicationAccess.push(gl.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).idpId=this.idpId,e.isActive=this.isActive,e.portalAccessEnabled=this.portalAccessEnabled,e.userType=this.userType,Array.isArray(this.userApplicationAccess)){e.userApplicationAccess=[];var t,i=Object(I.a)(this.userApplicationAccess);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userApplicationAccess.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Pl=function(){function e(t){if(Object(O.a)(this,e),this.hasCemUser=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.hasCemUser=e.hasCemUser)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).hasCemUser=this.hasCemUser,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),El=function(){function e(t){if(Object(O.a)(this,e),this.userAvatarId=void 0,this.fileId=void 0,this.userAvatarUrl=void 0,this.userAvatarThumbnailURl=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userAvatarId=e.userAvatarId,this.fileId=e.fileId,this.userAvatarUrl=e.userAvatarUrl,this.userAvatarThumbnailURl=e.userAvatarThumbnailURl)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userAvatarId=this.userAvatarId,e.fileId=this.fileId,e.userAvatarUrl=this.userAvatarUrl,e.userAvatarThumbnailURl=this.userAvatarThumbnailURl,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wl=function(){function e(t){if(Object(O.a)(this,e),this.customFieldId=void 0,this.module=void 0,this.fieldLabel=void 0,this.fieldType=void 0,this.listType=void 0,this.listOptions=void 0,this.maxCharacter=void 0,this.isActive=void 0,this.required=void 0,this.order=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.customFieldId=e.customFieldId,this.module=e.module,this.fieldLabel=e.fieldLabel,this.fieldType=e.fieldType,this.listType=e.listType,Array.isArray(e.listOptions)){this.listOptions=[];var t,i=Object(I.a)(e.listOptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.listOptions.push(Tl.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.maxCharacter=e.maxCharacter,this.isActive=e.isActive,this.required=e.required,this.order=e.order}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).customFieldId=this.customFieldId,e.module=this.module,e.fieldLabel=this.fieldLabel,e.fieldType=this.fieldType,e.listType=this.listType,Array.isArray(this.listOptions)){e.listOptions=[];var t,i=Object(I.a)(this.listOptions);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.listOptions.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.maxCharacter=this.maxCharacter,e.isActive=this.isActive,e.required=this.required,e.order=this.order,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),kl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.customFields=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&(this.userId=e.userId,e.customFields))for(var t in this.customFields={},e.customFields)e.customFields.hasOwnProperty(t)&&(this.customFields[t]=e.customFields[t])}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,this.customFields)for(var t in e.customFields={},this.customFields)this.customFields.hasOwnProperty(t)&&(e.customFields[t]=this.customFields[t]);return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Tl=function(){function e(t){if(Object(O.a)(this,e),this.id=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.id=e.id,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).id=this.id,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Nl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.customFieldId=void 0,this.value=void 0,this.label=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.customFieldId=e.customFieldId,this.value=e.value,this.label=e.label)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.customFieldId=this.customFieldId,e.value=this.value,e.label=this.label,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jl=function(){function e(t){if(Object(O.a)(this,e),this.departmentId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.departmentId=e.departmentId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).departmentId=this.departmentId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Dl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.employeeId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.fullName=void 0,this.preferredName=void 0,this.nickName=void 0,this.birthDate=void 0,this.hireDate=void 0,this.terminationDate=void 0,this.inactiveDate=void 0,this.email=void 0,this.emailVerified=void 0,this.smsMfaEnabled=void 0,this.mfaPhoneNumber=void 0,this.partner=void 0,this.partnerDate=void 0,this.createOn=void 0,this.createdBy=void 0,this.updatedOn=void 0,this.updatedBy=void 0,this.onlineMeetingSettings=void 0,this.userName=void 0,this.idpId=void 0,this.userAvatarId=void 0,this.userSignatureId=void 0,this.displayNameType=void 0,this.accounting=void 0,this.title=void 0,this.suffix=void 0,this.gender=void 0,this.lgbtq=void 0,this.location=void 0,this.userAvatar=void 0,this.userSignature=void 0,this.settings=void 0,this.employmentType=void 0,this.emailNotificationSettings=void 0,this.onlineMeetingIntegrationSettings=void 0,this.departments=void 0,this.educations=void 0,this.emails=void 0,this.ethnicities=void 0,this.levels=void 0,this.phones=void 0,this.positions=void 0,this.skills=void 0,this.practiceAreas=void 0,this.pronouns=void 0,this.roles=void 0,this.securityGroups=void 0,this.teams=void 0,this.userCustomFields=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.employeeId=e.employeeId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.fullName=e.fullName,this.preferredName=e.preferredName,this.nickName=e.nickName,this.birthDate=e.birthDate?new Date(e.birthDate.toString()):void 0,this.hireDate=e.hireDate?new Date(e.hireDate.toString()):void 0,this.terminationDate=e.terminationDate?new Date(e.terminationDate.toString()):void 0,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.email=e.email,this.emailVerified=e.emailVerified,this.smsMfaEnabled=e.smsMfaEnabled,this.mfaPhoneNumber=e.mfaPhoneNumber,this.partner=e.partner,this.partnerDate=e.partnerDate?new Date(e.partnerDate.toString()):void 0,this.createOn=e.createOn?new Date(e.createOn.toString()):void 0,this.createdBy=e.createdBy,this.updatedOn=e.updatedOn?new Date(e.updatedOn.toString()):void 0,this.updatedBy=e.updatedBy,this.onlineMeetingSettings=e.onlineMeetingSettings?zl.fromJS(e.onlineMeetingSettings):void 0,this.userName=e.userName,this.idpId=e.idpId,this.userAvatarId=e.userAvatarId,this.userSignatureId=e.userSignatureId,this.displayNameType=e.displayNameType,this.accounting=e.accounting?Al.fromJS(e.accounting):void 0,this.title=e.title?cd.fromJS(e.title):void 0,this.suffix=e.suffix?sd.fromJS(e.suffix):void 0,this.gender=e.gender?Ml.fromJS(e.gender):void 0,this.lgbtq=e.lgbtq?ql.fromJS(e.lgbtq):void 0,this.location=e.location?Wl.fromJS(e.location):void 0,this.userAvatar=e.userAvatar?El.fromJS(e.userAvatar):void 0,this.userSignature=e.userSignature?yl.fromJS(e.userSignature):void 0,this.settings=e.settings?ad.fromJS(e.settings):void 0,this.employmentType=e.employmentType?xl.fromJS(e.employmentType):void 0,this.emailNotificationSettings=e.emailNotificationSettings?Rl.fromJS(e.emailNotificationSettings):void 0,this.onlineMeetingIntegrationSettings=e.onlineMeetingIntegrationSettings?zl.fromJS(e.onlineMeetingIntegrationSettings):void 0,Array.isArray(e.departments)){this.departments=[];var t,i=Object(I.a)(e.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.departments.push(Jl.fromJS(r))}}catch(W){i.e(W)}finally{i.f()}}if(Array.isArray(e.educations)){this.educations=[];var a,n=Object(I.a)(e.educations);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.educations.push(Ll.fromJS(s))}}catch(W){n.e(W)}finally{n.f()}}if(Array.isArray(e.emails)){this.emails=[];var o,c=Object(I.a)(e.emails);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.emails.push(Ul.fromJS(l))}}catch(W){c.e(W)}finally{c.f()}}if(Array.isArray(e.ethnicities)){this.ethnicities=[];var d,u=Object(I.a)(e.ethnicities);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.ethnicities.push(Fl.fromJS(h))}}catch(W){u.e(W)}finally{u.f()}}if(Array.isArray(e.levels)){this.levels=[];var f,v=Object(I.a)(e.levels);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.levels.push(Bl.fromJS(p))}}catch(W){v.e(W)}finally{v.f()}}if(Array.isArray(e.phones)){this.phones=[];var m,y=Object(I.a)(e.phones);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.phones.push(_l.fromJS(b))}}catch(W){y.e(W)}finally{y.f()}}if(Array.isArray(e.positions)){this.positions=[];var S,g=Object(I.a)(e.positions);try{for(g.s();!(S=g.n()).done;){var O=S.value;this.positions.push(Yl.fromJS(O))}}catch(W){g.e(W)}finally{g.f()}}if(Array.isArray(e.skills)){this.skills=[];var A,j=Object(I.a)(e.skills);try{for(j.s();!(A=j.n()).done;){var C=A.value;this.skills.push(nd.fromJS(C))}}catch(W){j.e(W)}finally{j.f()}}if(Array.isArray(e.practiceAreas)){this.practiceAreas=[];var P,E=Object(I.a)(e.practiceAreas);try{for(E.s();!(P=E.n()).done;){var w=P.value;this.practiceAreas.push(Ql.fromJS(w))}}catch(W){E.e(W)}finally{E.f()}}if(Array.isArray(e.pronouns)){this.pronouns=[];var k,T=Object(I.a)(e.pronouns);try{for(T.s();!(k=T.n()).done;){var N=k.value;this.pronouns.push(Kl.fromJS(N))}}catch(W){T.e(W)}finally{T.f()}}if(Array.isArray(e.roles)){this.roles=[];var J,D=Object(I.a)(e.roles);try{for(D.s();!(J=D.n()).done;){var L=J.value;this.roles.push(td.fromJS(L))}}catch(W){D.e(W)}finally{D.f()}}if(Array.isArray(e.securityGroups)){this.securityGroups=[];var U,R=Object(I.a)(e.securityGroups);try{for(R.s();!(U=R.n()).done;){var x=U.value;this.securityGroups.push(rd.fromJS(x))}}catch(W){R.e(W)}finally{R.f()}}if(Array.isArray(e.teams)){this.teams=[];var F,M=Object(I.a)(e.teams);try{for(M.s();!(F=M.n()).done;){var G=F.value;this.teams.push(od.fromJS(G))}}catch(W){M.e(W)}finally{M.f()}}if(Array.isArray(e.userCustomFields)){this.userCustomFields=[];var B,q=Object(I.a)(e.userCustomFields);try{for(q.s();!(B=q.n()).done;){var V=B.value;this.userCustomFields.push(Nl.fromJS(V))}}catch(W){q.e(W)}finally{q.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.employeeId=this.employeeId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.fullName=this.fullName,e.preferredName=this.preferredName,e.nickName=this.nickName,e.birthDate=this.birthDate?this.birthDate.toISOString():void 0,e.hireDate=this.hireDate?this.hireDate.toISOString():void 0,e.terminationDate=this.terminationDate?this.terminationDate.toISOString():void 0,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.email=this.email,e.emailVerified=this.emailVerified,e.smsMfaEnabled=this.smsMfaEnabled,e.mfaPhoneNumber=this.mfaPhoneNumber,e.partner=this.partner,e.partnerDate=this.partnerDate?this.partnerDate.toISOString():void 0,e.createOn=this.createOn?this.createOn.toISOString():void 0,e.createdBy=this.createdBy,e.updatedOn=this.updatedOn?this.updatedOn.toISOString():void 0,e.updatedBy=this.updatedBy,e.onlineMeetingSettings=this.onlineMeetingSettings?this.onlineMeetingSettings.toJSON():void 0,e.userName=this.userName,e.idpId=this.idpId,e.userAvatarId=this.userAvatarId,e.userSignatureId=this.userSignatureId,e.displayNameType=this.displayNameType,e.accounting=this.accounting?this.accounting.toJSON():void 0,e.title=this.title?this.title.toJSON():void 0,e.suffix=this.suffix?this.suffix.toJSON():void 0,e.gender=this.gender?this.gender.toJSON():void 0,e.lgbtq=this.lgbtq?this.lgbtq.toJSON():void 0,e.location=this.location?this.location.toJSON():void 0,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,e.userSignature=this.userSignature?this.userSignature.toJSON():void 0,e.settings=this.settings?this.settings.toJSON():void 0,e.employmentType=this.employmentType?this.employmentType.toJSON():void 0,e.emailNotificationSettings=this.emailNotificationSettings?this.emailNotificationSettings.toJSON():void 0,e.onlineMeetingIntegrationSettings=this.onlineMeetingIntegrationSettings?this.onlineMeetingIntegrationSettings.toJSON():void 0,Array.isArray(this.departments)){e.departments=[];var t,i=Object(I.a)(this.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.departments.push(r.toJSON())}}catch(W){i.e(W)}finally{i.f()}}if(Array.isArray(this.educations)){e.educations=[];var a,n=Object(I.a)(this.educations);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.educations.push(s.toJSON())}}catch(W){n.e(W)}finally{n.f()}}if(Array.isArray(this.emails)){e.emails=[];var o,c=Object(I.a)(this.emails);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.emails.push(l.toJSON())}}catch(W){c.e(W)}finally{c.f()}}if(Array.isArray(this.ethnicities)){e.ethnicities=[];var d,u=Object(I.a)(this.ethnicities);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.ethnicities.push(h.toJSON())}}catch(W){u.e(W)}finally{u.f()}}if(Array.isArray(this.levels)){e.levels=[];var f,v=Object(I.a)(this.levels);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.levels.push(p.toJSON())}}catch(W){v.e(W)}finally{v.f()}}if(Array.isArray(this.phones)){e.phones=[];var m,y=Object(I.a)(this.phones);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.phones.push(b.toJSON())}}catch(W){y.e(W)}finally{y.f()}}if(Array.isArray(this.positions)){e.positions=[];var S,g=Object(I.a)(this.positions);try{for(g.s();!(S=g.n()).done;){var O=S.value;e.positions.push(O.toJSON())}}catch(W){g.e(W)}finally{g.f()}}if(Array.isArray(this.skills)){e.skills=[];var A,j=Object(I.a)(this.skills);try{for(j.s();!(A=j.n()).done;){var C=A.value;e.skills.push(C.toJSON())}}catch(W){j.e(W)}finally{j.f()}}if(Array.isArray(this.practiceAreas)){e.practiceAreas=[];var P,E=Object(I.a)(this.practiceAreas);try{for(E.s();!(P=E.n()).done;){var w=P.value;e.practiceAreas.push(w.toJSON())}}catch(W){E.e(W)}finally{E.f()}}if(Array.isArray(this.pronouns)){e.pronouns=[];var k,T=Object(I.a)(this.pronouns);try{for(T.s();!(k=T.n()).done;){var N=k.value;e.pronouns.push(N.toJSON())}}catch(W){T.e(W)}finally{T.f()}}if(Array.isArray(this.roles)){e.roles=[];var J,D=Object(I.a)(this.roles);try{for(D.s();!(J=D.n()).done;){var L=J.value;e.roles.push(L.toJSON())}}catch(W){D.e(W)}finally{D.f()}}if(Array.isArray(this.securityGroups)){e.securityGroups=[];var U,R=Object(I.a)(this.securityGroups);try{for(R.s();!(U=R.n()).done;){var x=U.value;e.securityGroups.push(x.toJSON())}}catch(W){R.e(W)}finally{R.f()}}if(Array.isArray(this.teams)){e.teams=[];var F,M=Object(I.a)(this.teams);try{for(M.s();!(F=M.n()).done;){var G=F.value;e.teams.push(G.toJSON())}}catch(W){M.e(W)}finally{M.f()}}if(Array.isArray(this.userCustomFields)){e.userCustomFields=[];var B,q=Object(I.a)(this.userCustomFields);try{for(q.s();!(B=q.n()).done;){var V=B.value;e.userCustomFields.push(V.toJSON())}}catch(W){q.e(W)}finally{q.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ll=function(){function e(t){if(Object(O.a)(this,e),this.userEducationId=void 0,this.schoolId=void 0,this.degreeTypeId=void 0,this.graduationYear=void 0,this.order=void 0,this.school=void 0,this.degreeType=void 0,this.major=void 0,this.gpa=void 0,this.comments=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userEducationId=e.userEducationId,this.schoolId=e.schoolId,this.degreeTypeId=e.degreeTypeId,this.graduationYear=e.graduationYear,this.order=e.order,this.school=e.school,this.degreeType=e.degreeType,this.major=e.major,this.gpa=e.gpa,this.comments=e.comments)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userEducationId=this.userEducationId,e.schoolId=this.schoolId,e.degreeTypeId=this.degreeTypeId,e.graduationYear=this.graduationYear,e.order=this.order,e.school=this.school,e.degreeType=this.degreeType,e.major=this.major,e.gpa=this.gpa,e.comments=this.comments,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ul=function(){function e(t){if(Object(O.a)(this,e),this.userEmailId=void 0,this.emailType=void 0,this.email=void 0,this.order=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userEmailId=e.userEmailId,this.emailType=e.emailType,this.email=e.email,this.order=e.order)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userEmailId=this.userEmailId,e.emailType=this.emailType,e.email=this.email,e.order=this.order,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Rl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.enableInterviewNotification=void 0,this.enableInterviewReminder=void 0,this.enableProjectNotification=void 0,this.enableProjectReminder=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.enableInterviewNotification=e.enableInterviewNotification,this.enableInterviewReminder=e.enableInterviewReminder,this.enableProjectNotification=e.enableProjectNotification,this.enableProjectReminder=e.enableProjectReminder)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.enableInterviewNotification=this.enableInterviewNotification,e.enableInterviewReminder=this.enableInterviewReminder,e.enableProjectNotification=this.enableProjectNotification,e.enableProjectReminder=this.enableProjectReminder,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),xl=function(){function e(t){if(Object(O.a)(this,e),this.employmentTypeId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.employmentTypeId=e.employmentTypeId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).employmentTypeId=this.employmentTypeId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Fl=function(){function e(t){if(Object(O.a)(this,e),this.ethnicityId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.ethnicityId=e.ethnicityId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).ethnicityId=this.ethnicityId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ml=function(){function e(t){if(Object(O.a)(this,e),this.genderId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.genderId=e.genderId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).genderId=this.genderId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Gl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.inactiveDate=void 0,this.email=void 0,this.location=void 0,this.userAvatar=void 0,this.departments=void 0,this.positions=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.email=e.email,this.location=e.location?Wl.fromJS(e.location):void 0,this.userAvatar=e.userAvatar?El.fromJS(e.userAvatar):void 0,Array.isArray(e.departments)){this.departments=[];var t,i=Object(I.a)(e.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.departments.push(Jl.fromJS(r))}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(e.positions)){this.positions=[];var a,n=Object(I.a)(e.positions);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.positions.push(Yl.fromJS(s))}}catch(o){n.e(o)}finally{n.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.email=this.email,e.location=this.location?this.location.toJSON():void 0,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,Array.isArray(this.departments)){e.departments=[];var t,i=Object(I.a)(this.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.departments.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}if(Array.isArray(this.positions)){e.positions=[];var a,n=Object(I.a)(this.positions);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.positions.push(s.toJSON())}}catch(o){n.e(o)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Bl=function(){function e(t){if(Object(O.a)(this,e),this.levelId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.levelId=e.levelId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).levelId=this.levelId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ql=function(){function e(t){if(Object(O.a)(this,e),this.lgbtqId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.lgbtqId=e.lgbtqId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).lgbtqId=this.lgbtqId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Vl=function(){function e(t){if(Object(O.a)(this,e),this.users=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.users)){this.users=[];var t,i=Object(I.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(id.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(I.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wl=function(){function e(t){if(Object(O.a)(this,e),this.locationId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.locationId=e.locationId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).locationId=this.locationId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),zl=function(){function e(t){if(Object(O.a)(this,e),this.zoomEmail=void 0,this.teamsUserId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.zoomEmail=e.zoomEmail,this.teamsUserId=e.teamsUserId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).zoomEmail=this.zoomEmail,e.teamsUserId=this.teamsUserId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Hl=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.employeeId=void 0,this.firstName=void 0,this.lastName=void 0,this.middleName=void 0,this.fullName=void 0,this.email=void 0,this.userAvatarUrl=void 0,this.userLocation=void 0,this.userDepartment=void 0,this.isActive=void 0,this.projectUserType=void 0,this.interviewerType=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.employeeId=e.employeeId,this.firstName=e.firstName,this.lastName=e.lastName,this.middleName=e.middleName,this.fullName=e.fullName,this.email=e.email,this.userAvatarUrl=e.userAvatarUrl,this.userLocation=e.userLocation,Array.isArray(e.userDepartment)){this.userDepartment=[];var t,i=Object(I.a)(e.userDepartment);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userDepartment.push(r)}}catch(a){i.e(a)}finally{i.f()}}this.isActive=e.isActive,this.projectUserType=e.projectUserType,this.interviewerType=e.interviewerType}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.employeeId=this.employeeId,e.firstName=this.firstName,e.lastName=this.lastName,e.middleName=this.middleName,e.fullName=this.fullName,e.email=this.email,e.userAvatarUrl=this.userAvatarUrl,e.userLocation=this.userLocation,Array.isArray(this.userDepartment)){e.userDepartment=[];var t,i=Object(I.a)(this.userDepartment);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userDepartment.push(r)}}catch(a){i.e(a)}finally{i.f()}}return e.isActive=this.isActive,e.projectUserType=this.projectUserType,e.interviewerType=this.interviewerType,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),$l=function(){function e(t){if(Object(O.a)(this,e),this.users=void 0,this.recordCount=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(Array.isArray(e.users)){this.users=[];var t,i=Object(I.a)(e.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.users.push(Hl.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.recordCount=e.recordCount}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.users)){e.users=[];var t,i=Object(I.a)(this.users);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.users.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e.recordCount=this.recordCount,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),_l=function(){function e(t){if(Object(O.a)(this,e),this.userPhoneId=void 0,this.phoneType=void 0,this.phone=void 0,this.order=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userPhoneId=e.userPhoneId,this.phoneType=e.phoneType,this.phone=e.phone,this.order=e.order)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userPhoneId=this.userPhoneId,e.phoneType=this.phoneType,e.phone=this.phone,e.order=this.order,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Yl=function(){function e(t){if(Object(O.a)(this,e),this.positionId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.positionId=e.positionId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).positionId=this.positionId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Ql=function(){function e(t){if(Object(O.a)(this,e),this.practiceAreaId=void 0,this.name=void 0,this.order=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.practiceAreaId=e.practiceAreaId,this.name=e.name,this.order=e.order)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).practiceAreaId=this.practiceAreaId,e.name=this.name,e.order=this.order,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Kl=function(){function e(t){if(Object(O.a)(this,e),this.pronounId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.pronounId=e.pronounId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).pronounId=this.pronounId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Zl=function(){function e(t){if(Object(O.a)(this,e),this.sourceUserId=void 0,this.sourceFullName=void 0,this.sourceFirstName=void 0,this.sourceLastName=void 0,this.sourceMiddleName=void 0,this.sourceEmail=void 0,this.sourceAvatarUrl=void 0,this.sourceLocation=void 0,this.targetUserId=void 0,this.targetFullName=void 0,this.targetFirstName=void 0,this.targetLastName=void 0,this.targetMiddleName=void 0,this.targetEmail=void 0,this.targetAvatarUrl=void 0,this.targetLocation=void 0,this.relationshipTypeId=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.sourceUserId=e.sourceUserId,this.sourceFullName=e.sourceFullName,this.sourceFirstName=e.sourceFirstName,this.sourceLastName=e.sourceLastName,this.sourceMiddleName=e.sourceMiddleName,this.sourceEmail=e.sourceEmail,this.sourceAvatarUrl=e.sourceAvatarUrl,this.sourceLocation=e.sourceLocation,this.targetUserId=e.targetUserId,this.targetFullName=e.targetFullName,this.targetFirstName=e.targetFirstName,this.targetLastName=e.targetLastName,this.targetMiddleName=e.targetMiddleName,this.targetEmail=e.targetEmail,this.targetAvatarUrl=e.targetAvatarUrl,this.targetLocation=e.targetLocation,this.relationshipTypeId=e.relationshipTypeId)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sourceUserId=this.sourceUserId,e.sourceFullName=this.sourceFullName,e.sourceFirstName=this.sourceFirstName,e.sourceLastName=this.sourceLastName,e.sourceMiddleName=this.sourceMiddleName,e.sourceEmail=this.sourceEmail,e.sourceAvatarUrl=this.sourceAvatarUrl,e.sourceLocation=this.sourceLocation,e.targetUserId=this.targetUserId,e.targetFullName=this.targetFullName,e.targetFirstName=this.targetFirstName,e.targetLastName=this.targetLastName,e.targetMiddleName=this.targetMiddleName,e.targetEmail=this.targetEmail,e.targetAvatarUrl=this.targetAvatarUrl,e.targetLocation=this.targetLocation,e.relationshipTypeId=this.relationshipTypeId,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Xl=function(){function e(t){if(Object(O.a)(this,e),this.fieldId=void 0,this.message=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.fieldId=e.fieldId,this.message=e.message)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).fieldId=this.fieldId,e.message=this.message,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ed=function(){function e(t){if(Object(O.a)(this,e),this.userRelationshipError=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e&&Array.isArray(e.userRelationshipError)){this.userRelationshipError=[];var t,i=Object(I.a)(e.userRelationshipError);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.userRelationshipError.push(Xl.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if(e="object"===typeof e?e:{},Array.isArray(this.userRelationshipError)){e.userRelationshipError=[];var t,i=Object(I.a)(this.userRelationshipError);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.userRelationshipError.push(r.toJSON())}}catch(a){i.e(a)}finally{i.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),td=function(){function e(t){if(Object(O.a)(this,e),this.roleId=void 0,this.name=void 0,this.type=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.roleId=e.roleId,this.name=e.name,this.type=e.type)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).roleId=this.roleId,e.name=this.name,e.type=this.type,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),id=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.employeeId=void 0,this.firstName=void 0,this.middleName=void 0,this.lastName=void 0,this.fullName=void 0,this.preferredName=void 0,this.nickName=void 0,this.hireDate=void 0,this.inactiveDate=void 0,this.email=void 0,this.partner=void 0,this.partnerDate=void 0,this.createOn=void 0,this.createdBy=void 0,this.updatedOn=void 0,this.updatedBy=void 0,this.userName=void 0,this.userAvatarId=void 0,this.zoomEmail=void 0,this.teamsUserId=void 0,this.gender=void 0,this.lgbtq=void 0,this.suffix=void 0,this.title=void 0,this.location=void 0,this.userAvatar=void 0,this.departments=void 0,this.emails=void 0,this.ethnicities=void 0,this.levels=void 0,this.phones=void 0,this.positions=void 0,this.practiceAreas=void 0,this.teams=void 0,this.skills=void 0,this.pronouns=void 0,this.roles=void 0,this.userCustomFields=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.userId=e.userId,this.employeeId=e.employeeId,this.firstName=e.firstName,this.middleName=e.middleName,this.lastName=e.lastName,this.fullName=e.fullName,this.preferredName=e.preferredName,this.nickName=e.nickName,this.hireDate=e.hireDate?new Date(e.hireDate.toString()):void 0,this.inactiveDate=e.inactiveDate?new Date(e.inactiveDate.toString()):void 0,this.email=e.email,this.partner=e.partner,this.partnerDate=e.partnerDate?new Date(e.partnerDate.toString()):void 0,this.createOn=e.createOn?new Date(e.createOn.toString()):void 0,this.createdBy=e.createdBy,this.updatedOn=e.updatedOn?new Date(e.updatedOn.toString()):void 0,this.updatedBy=e.updatedBy,this.userName=e.userName,this.userAvatarId=e.userAvatarId,this.zoomEmail=e.zoomEmail,this.teamsUserId=e.teamsUserId,this.gender=e.gender?Ml.fromJS(e.gender):void 0,this.lgbtq=e.lgbtq?ql.fromJS(e.lgbtq):void 0,this.suffix=e.suffix?sd.fromJS(e.suffix):void 0,this.title=e.title?cd.fromJS(e.title):void 0,this.location=e.location?Wl.fromJS(e.location):void 0,this.userAvatar=e.userAvatar?El.fromJS(e.userAvatar):void 0,Array.isArray(e.departments)){this.departments=[];var t,i=Object(I.a)(e.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.departments.push(Jl.fromJS(r))}}catch(F){i.e(F)}finally{i.f()}}if(Array.isArray(e.emails)){this.emails=[];var a,n=Object(I.a)(e.emails);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.emails.push(Ul.fromJS(s))}}catch(F){n.e(F)}finally{n.f()}}if(Array.isArray(e.ethnicities)){this.ethnicities=[];var o,c=Object(I.a)(e.ethnicities);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.ethnicities.push(Fl.fromJS(l))}}catch(F){c.e(F)}finally{c.f()}}if(Array.isArray(e.levels)){this.levels=[];var d,u=Object(I.a)(e.levels);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.levels.push(Bl.fromJS(h))}}catch(F){u.e(F)}finally{u.f()}}if(Array.isArray(e.phones)){this.phones=[];var f,v=Object(I.a)(e.phones);try{for(v.s();!(f=v.n()).done;){var p=f.value;this.phones.push(_l.fromJS(p))}}catch(F){v.e(F)}finally{v.f()}}if(Array.isArray(e.positions)){this.positions=[];var m,y=Object(I.a)(e.positions);try{for(y.s();!(m=y.n()).done;){var b=m.value;this.positions.push(Yl.fromJS(b))}}catch(F){y.e(F)}finally{y.f()}}if(Array.isArray(e.practiceAreas)){this.practiceAreas=[];var S,g=Object(I.a)(e.practiceAreas);try{for(g.s();!(S=g.n()).done;){var O=S.value;this.practiceAreas.push(Ql.fromJS(O))}}catch(F){g.e(F)}finally{g.f()}}if(Array.isArray(e.teams)){this.teams=[];var A,j=Object(I.a)(e.teams);try{for(j.s();!(A=j.n()).done;){var C=A.value;this.teams.push(od.fromJS(C))}}catch(F){j.e(F)}finally{j.f()}}if(Array.isArray(e.skills)){this.skills=[];var P,E=Object(I.a)(e.skills);try{for(E.s();!(P=E.n()).done;){var w=P.value;this.skills.push(nd.fromJS(w))}}catch(F){E.e(F)}finally{E.f()}}if(Array.isArray(e.pronouns)){this.pronouns=[];var k,T=Object(I.a)(e.pronouns);try{for(T.s();!(k=T.n()).done;){var N=k.value;this.pronouns.push(Kl.fromJS(N))}}catch(F){T.e(F)}finally{T.f()}}if(Array.isArray(e.roles)){this.roles=[];var J,D=Object(I.a)(e.roles);try{for(D.s();!(J=D.n()).done;){var L=J.value;this.roles.push(td.fromJS(L))}}catch(F){D.e(F)}finally{D.f()}}if(Array.isArray(e.userCustomFields)){this.userCustomFields=[];var U,R=Object(I.a)(e.userCustomFields);try{for(R.s();!(U=R.n()).done;){var x=U.value;this.userCustomFields.push(Nl.fromJS(x))}}catch(F){R.e(F)}finally{R.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).userId=this.userId,e.employeeId=this.employeeId,e.firstName=this.firstName,e.middleName=this.middleName,e.lastName=this.lastName,e.fullName=this.fullName,e.preferredName=this.preferredName,e.nickName=this.nickName,e.hireDate=this.hireDate?this.hireDate.toISOString():void 0,e.inactiveDate=this.inactiveDate?this.inactiveDate.toISOString():void 0,e.email=this.email,e.partner=this.partner,e.partnerDate=this.partnerDate?this.partnerDate.toISOString():void 0,e.createOn=this.createOn?this.createOn.toISOString():void 0,e.createdBy=this.createdBy,e.updatedOn=this.updatedOn?this.updatedOn.toISOString():void 0,e.updatedBy=this.updatedBy,e.userName=this.userName,e.userAvatarId=this.userAvatarId,e.zoomEmail=this.zoomEmail,e.teamsUserId=this.teamsUserId,e.gender=this.gender?this.gender.toJSON():void 0,e.lgbtq=this.lgbtq?this.lgbtq.toJSON():void 0,e.suffix=this.suffix?this.suffix.toJSON():void 0,e.title=this.title?this.title.toJSON():void 0,e.location=this.location?this.location.toJSON():void 0,e.userAvatar=this.userAvatar?this.userAvatar.toJSON():void 0,Array.isArray(this.departments)){e.departments=[];var t,i=Object(I.a)(this.departments);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.departments.push(r.toJSON())}}catch(F){i.e(F)}finally{i.f()}}if(Array.isArray(this.emails)){e.emails=[];var a,n=Object(I.a)(this.emails);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.emails.push(s.toJSON())}}catch(F){n.e(F)}finally{n.f()}}if(Array.isArray(this.ethnicities)){e.ethnicities=[];var o,c=Object(I.a)(this.ethnicities);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.ethnicities.push(l.toJSON())}}catch(F){c.e(F)}finally{c.f()}}if(Array.isArray(this.levels)){e.levels=[];var d,u=Object(I.a)(this.levels);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.levels.push(h.toJSON())}}catch(F){u.e(F)}finally{u.f()}}if(Array.isArray(this.phones)){e.phones=[];var f,v=Object(I.a)(this.phones);try{for(v.s();!(f=v.n()).done;){var p=f.value;e.phones.push(p.toJSON())}}catch(F){v.e(F)}finally{v.f()}}if(Array.isArray(this.positions)){e.positions=[];var m,y=Object(I.a)(this.positions);try{for(y.s();!(m=y.n()).done;){var b=m.value;e.positions.push(b.toJSON())}}catch(F){y.e(F)}finally{y.f()}}if(Array.isArray(this.practiceAreas)){e.practiceAreas=[];var S,g=Object(I.a)(this.practiceAreas);try{for(g.s();!(S=g.n()).done;){var O=S.value;e.practiceAreas.push(O.toJSON())}}catch(F){g.e(F)}finally{g.f()}}if(Array.isArray(this.teams)){e.teams=[];var A,j=Object(I.a)(this.teams);try{for(j.s();!(A=j.n()).done;){var C=A.value;e.teams.push(C.toJSON())}}catch(F){j.e(F)}finally{j.f()}}if(Array.isArray(this.skills)){e.skills=[];var P,E=Object(I.a)(this.skills);try{for(E.s();!(P=E.n()).done;){var w=P.value;e.skills.push(w.toJSON())}}catch(F){E.e(F)}finally{E.f()}}if(Array.isArray(this.pronouns)){e.pronouns=[];var k,T=Object(I.a)(this.pronouns);try{for(T.s();!(k=T.n()).done;){var N=k.value;e.pronouns.push(N.toJSON())}}catch(F){T.e(F)}finally{T.f()}}if(Array.isArray(this.roles)){e.roles=[];var J,D=Object(I.a)(this.roles);try{for(D.s();!(J=D.n()).done;){var L=J.value;e.roles.push(L.toJSON())}}catch(F){D.e(F)}finally{D.f()}}if(Array.isArray(this.userCustomFields)){e.userCustomFields=[];var U,R=Object(I.a)(this.userCustomFields);try{for(R.s();!(U=R.n()).done;){var x=U.value;e.userCustomFields.push(x.toJSON())}}catch(F){R.e(F)}finally{R.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),rd=function(){function e(t){if(Object(O.a)(this,e),this.securityGroupId=void 0,this.name=void 0,this.isOverwritten=void 0,this.isActive=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.securityGroupId=e.securityGroupId,this.name=e.name,this.isOverwritten=e.isOverwritten,this.isActive=e.isActive)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).securityGroupId=this.securityGroupId,e.name=this.name,e.isOverwritten=this.isOverwritten,e.isActive=this.isActive,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ad=function(){function e(t){if(Object(O.a)(this,e),this.userId=void 0,this.isInterviewer=void 0,this.isHiringManager=void 0,this.isRecruiter=void 0,this.isJobApprover=void 0,this.isProjectOwner=void 0,this.isProjectCollaborator=void 0,this.isProjectSupervisor=void 0,this.isTaskAssignee=void 0,this.isTaskCollaborator=void 0,this.isProjectAssignmentTaskOwner=void 0,this.isMentor=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.userId=e.userId,this.isInterviewer=e.isInterviewer,this.isHiringManager=e.isHiringManager,this.isRecruiter=e.isRecruiter,this.isJobApprover=e.isJobApprover,this.isProjectOwner=e.isProjectOwner,this.isProjectCollaborator=e.isProjectCollaborator,this.isProjectSupervisor=e.isProjectSupervisor,this.isTaskAssignee=e.isTaskAssignee,this.isTaskCollaborator=e.isTaskCollaborator,this.isProjectAssignmentTaskOwner=e.isProjectAssignmentTaskOwner,this.isMentor=e.isMentor)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).userId=this.userId,e.isInterviewer=this.isInterviewer,e.isHiringManager=this.isHiringManager,e.isRecruiter=this.isRecruiter,e.isJobApprover=this.isJobApprover,e.isProjectOwner=this.isProjectOwner,e.isProjectCollaborator=this.isProjectCollaborator,e.isProjectSupervisor=this.isProjectSupervisor,e.isTaskAssignee=this.isTaskAssignee,e.isTaskCollaborator=this.isTaskCollaborator,e.isProjectAssignmentTaskOwner=this.isProjectAssignmentTaskOwner,e.isMentor=this.isMentor,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),nd=function(){function e(t){if(Object(O.a)(this,e),this.skillId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.skillId=e.skillId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).skillId=this.skillId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),sd=function(){function e(t){if(Object(O.a)(this,e),this.suffixId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.suffixId=e.suffixId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).suffixId=this.suffixId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),od=function(){function e(t){if(Object(O.a)(this,e),this.teamId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.teamId=e.teamId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).teamId=this.teamId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),cd=function(){function e(t){if(Object(O.a)(this,e),this.titleId=void 0,this.name=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){e&&(this.titleId=e.titleId,this.name=e.name)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).titleId=this.titleId,e.name=this.name,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ld=function(){function e(t){if(Object(O.a)(this,e),this.page=void 0,this.pageSize=void 0,this.sortBy=void 0,this.filterBy=void 0,this.searchCriteria=void 0,this.exemptedIds=void 0,this.includeIds=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){if(this.page=e.page,this.pageSize=e.pageSize,this.sortBy=e.sortBy,Array.isArray(e.filterBy)){this.filterBy=[];var t,i=Object(I.a)(e.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(I.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;this.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var o,c=Object(I.a)(e.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var d,u=Object(I.a)(e.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;this.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}}}},{key:"toJSON",value:function(e){if((e="object"===typeof e?e:{}).page=this.page,e.pageSize=this.pageSize,e.sortBy=this.sortBy,Array.isArray(this.filterBy)){e.filterBy=[];var t,i=Object(I.a)(this.filterBy);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.filterBy.push(r)}}catch(f){i.e(f)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(I.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var s=a.value;e.searchCriteria.push(s)}}catch(f){n.e(f)}finally{n.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var o,c=Object(I.a)(this.exemptedIds);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.exemptedIds.push(l)}}catch(f){c.e(f)}finally{c.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var d,u=Object(I.a)(this.includeIds);try{for(u.s();!(d=u.n()).done;){var h=d.value;e.includeIds.push(h)}}catch(f){u.e(f)}finally{u.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}();!function(e){e[e.Current=1]="Current",e[e.Archived=2]="Archived",e[e.NewApplicant=3]="NewApplicant"}(Jc||(Jc={})),function(e){e[e.Pending=1]="Pending",e[e.Accepted=2]="Accepted",e[e.Declined=3]="Declined"}(Dc||(Dc={})),function(e){e[e.Custom=0]="Custom",e[e.ApplicantType=1]="ApplicantType",e[e.ApplicationStatus=2]="ApplicationStatus",e[e.AssignmentStatus=3]="AssignmentStatus",e[e.AssignmentType=4]="AssignmentType",e[e.BarAdmissions=5]="BarAdmissions",e[e.Client=6]="Client",e[e.ClientMatters=7]="ClientMatters",e[e.DegreeTypes=8]="DegreeTypes",e[e.Department=9]="Department",e[e.DifficultyLevels=10]="DifficultyLevels",e[e.DisabilityStatus=11]="DisabilityStatus",e[e.DocumentTypes=12]="DocumentTypes",e[e.EmploymentTypes=13]="EmploymentTypes",e[e.Ethnicity=14]="Ethnicity",e[e.EvaluationCategories=15]="EvaluationCategories",e[e.Flag=16]="Flag",e[e.FormCategory=17]="FormCategory",e[e.Gender=18]="Gender",e[e.Interest=19]="Interest",e[e.InterviewType=20]="InterviewType",e[e.JobType=21]="JobType",e[e.Language=22]="Language",e[e.LanguageFluency=23]="LanguageFluency",e[e.Level=24]="Level",e[e.Lgbtq=25]="Lgbtq",e[e.Location=26]="Location",e[e.PayType=27]="PayType",e[e.Position=28]="Position",e[e.PracticeArea=29]="PracticeArea",e[e.Pronoun=30]="Pronoun",e[e.ProjectCategory=31]="ProjectCategory",e[e.ProjectStatus=32]="ProjectStatus",e[e.JobOpeningReason=33]="JobOpeningReason",e[e.School=34]="School",e[e.ApplicationSource=35]="ApplicationSource",e[e.Skill=36]="Skill",e[e.Suffix=37]="Suffix",e[e.TaskType=38]="TaskType",e[e.TaskStatus=39]="TaskStatus",e[e.Team=40]="Team",e[e.Title=41]="Title",e[e.VeteranStatus=42]="VeteranStatus"}(Lc||(Lc={})),function(e){e[e.PeopleCentral=1]="PeopleCentral",e[e.JobRequisition=2]="JobRequisition",e[e.Applicant=3]="Applicant",e[e.Application=4]="Application",e[e.SummerAssociate=5]="SummerAssociate"}(Uc||(Uc={})),function(e){e[e.TextField=1]="TextField",e[e.Date=2]="Date",e[e.Decimal=3]="Decimal",e[e.SingleSelectList=4]="SingleSelectList",e[e.MultiSelectList=5]="MultiSelectList",e[e.Numeric=6]="Numeric",e[e.Boolean=7]="Boolean"}(Rc||(Rc={})),function(e){e[e.Admin=1]="Admin",e[e.Employee=2]="Employee",e[e.Talent=3]="Talent"}(xc||(xc={})),function(e){e[e.Pending=1]="Pending",e[e.Completed=2]="Completed",e[e.Cancelled=3]="Cancelled",e[e.InProgress=4]="InProgress",e[e.NotApplicable=5]="NotApplicable",e[e.Upcoming=6]="Upcoming"}(Fc||(Fc={})),function(e){e[e.Requester=1]="Requester",e[e.Recruiter=2]="Recruiter",e[e.HiringManager=3]="HiringManager",e[e.Approver=4]="Approver",e[e.Interviewer=5]="Interviewer"}(Mc||(Mc={})),function(e){e[e.NoResponse=1]="NoResponse",e[e.Pending=2]="Pending",e[e.Approved=3]="Approved",e[e.Rejected=4]="Rejected"}(Gc||(Gc={})),function(e){e[e.Pending=1]="Pending",e[e.Open=2]="Open",e[e.Completed=3]="Completed"}(Bc||(Bc={})),function(e){e[e.Employees=0]="Employees",e[e.Projects=1]="Projects",e[e.AssignmentAndTasks=2]="AssignmentAndTasks",e[e.Applicants=3]="Applicants",e[e.Interviews=4]="Interviews"}(qc||(qc={})),function(e){e[e.EmployeeGeneralMessage=1]="EmployeeGeneralMessage",e[e.SummerAssociateGeneralMessage=2]="SummerAssociateGeneralMessage",e[e.ProjectAssignment=3]="ProjectAssignment",e[e.ProjectCompletion=4]="ProjectCompletion",e[e.ProjectStatusSummary=5]="ProjectStatusSummary",e[e.EvaluationGeneralMessage=6]="EvaluationGeneralMessage",e[e.AssignmentCompletion=7]="AssignmentCompletion",e[e.AssignmentReminders=8]="AssignmentReminders",e[e.TaskAssignment=9]="TaskAssignment",e[e.TaskCompletion=10]="TaskCompletion",e[e.TaskReminders=11]="TaskReminders",e[e.ApplicationStatusUpdateNotification=12]="ApplicationStatusUpdateNotification",e[e.ApplicationGeneralMessage=13]="ApplicationGeneralMessage",e[e.InterviewItineraryForInterviewer=14]="InterviewItineraryForInterviewer",e[e.InterviewItineraryForApplicant=15]="InterviewItineraryForApplicant",e[e.InterviewRequest=16]="InterviewRequest",e[e.InterviewEvaluationNotice=17]="InterviewEvaluationNotice",e[e.InterviewEvaluationReminder=18]="InterviewEvaluationReminder",e[e.InterviewEvaluationCompletionNotice=19]="InterviewEvaluationCompletionNotice",e[e.UpdatedInterviewItineraryForInterviewers=20]="UpdatedInterviewItineraryForInterviewers",e[e.UpdatedInterviewItineraryForApplicants=21]="UpdatedInterviewItineraryForApplicants",e[e.CancelInterviewItineraryForInterviewers=22]="CancelInterviewItineraryForInterviewers",e[e.CancelInterviewItineraryForApplicants=23]="CancelInterviewItineraryForApplicants",e[e.InterviewRequestCompletion=24]="InterviewRequestCompletion",e[e.NewHireNotice=25]="NewHireNotice",e[e.ConsolidatedInterviewEvaluationReminder=26]="ConsolidatedInterviewEvaluationReminder",e[e.NewApplicantNotice=27]="NewApplicantNotice",e[e.NewApplicationNotice=28]="NewApplicationNotice",e[e.SelfApplicationConfirmation=29]="SelfApplicationConfirmation",e[e.ForwardApplicants=30]="ForwardApplicants",e[e.ForwardApplicationAttachments=31]="ForwardApplicationAttachments"}(Vc||(Vc={})),function(e){e[e.NoScoreMethod=1]="NoScoreMethod",e[e.SingleQuestionAsScore=2]="SingleQuestionAsScore",e[e.MultipleChoiceAndRatingsScore=3]="MultipleChoiceAndRatingsScore"}(Wc||(Wc={})),function(e){e[e.Zoom=1]="Zoom",e[e.Webex=2]="Webex",e[e.Teams=3]="Teams",e[e.OutlookCalendar=4]="OutlookCalendar"}(zc||(zc={})),function(e){e[e.GeneralProject=1]="GeneralProject",e[e.ClientProject=2]="ClientProject",e[e.SummerProject=3]="SummerProject"}(Hc||(Hc={})),function(e){e[e.Employee=1]="Employee",e[e.Applicant=2]="Applicant",e[e.EEO=3]="EEO",e[e.FollowUp=4]="FollowUp",e[e.InterviewScheduling=5]="InterviewScheduling",e[e.Interviewer=6]="Interviewer",e[e.JobRequisition=7]="JobRequisition",e[e.Project=8]="Project"}($c||($c={})),function(e){e[e.User=1]="User",e[e.Role=2]="Role",e[e.Security=3]="Security",e[e.EmailTemplate=4]="EmailTemplate",e[e.Group=5]="Group",e[e.ReportCriteria=6]="ReportCriteria",e[e.ClientMatterBilling=7]="ClientMatterBilling",e[e.MaintenanceTable=8]="MaintenanceTable",e[e.Job=9]="Job",e[e.Project=10]="Project",e[e.Assignment=11]="Assignment",e[e.Task=12]="Task",e[e.PortalProject=13]="PortalProject",e[e.PortalAssignment=14]="PortalAssignment",e[e.PortalTask=15]="PortalTask",e[e.Applicant=16]="Applicant",e[e.Form=17]="Form",e[e.SummerAssociate=18]="SummerAssociate",e[e.Application=19]="Application",e[e.SummerAssociateEvaluation=20]="SummerAssociateEvaluation",e[e.WebApplicationForm=21]="WebApplicationForm",e[e.Interview=22]="Interview",e[e.Resume=23]="Resume",e[e.PortalInterview=24]="PortalInterview",e[e.SearchFirm=25]="SearchFirm"}(_c||(_c={})),function(e){e[e.NotAssigned=1]="NotAssigned",e[e.NotStarted=2]="NotStarted",e[e.InProgress=3]="InProgress",e[e.Completed=4]="Completed",e[e.Expired=5]="Expired"}(Yc||(Yc={})),function(e){e[e.GeneralEvaluation=1]="GeneralEvaluation",e[e.GeneralSelfEvaluation=2]="GeneralSelfEvaluation",e[e.AssignmentEvaluation=3]="AssignmentEvaluation",e[e.AssignmenSelfEvaluation=4]="AssignmenSelfEvaluation"}(Qc||(Qc={})),function(e){e[e.Minutes=0]="Minutes",e[e.Hours=1]="Hours",e[e.Days=2]="Days"}(Kc||(Kc={})),function(e){e[e.LcbcPeople=2001e3]="LcbcPeople",e[e.LcbcReport=2001100]="LcbcReport",e[e.LcbcConfigurationEmailLogs=2001200]="LcbcConfigurationEmailLogs",e[e.LcbcSearchFirms=2001300]="LcbcSearchFirms",e[e.LcbcDataManagement=2002e3]="LcbcDataManagement",e[e.LcbcConfigurationsSettings=2003e3]="LcbcConfigurationsSettings",e[e.LcbcSecurity=2004e3]="LcbcSecurity",e[e.LcbcPortalSettings=2005e3]="LcbcPortalSettings",e[e.LcbcDashboard=2006e3]="LcbcDashboard",e[e.LcbcTalentDashboard=2007e3]="LcbcTalentDashboard",e[e.LcbcSecurityGroups=2008e3]="LcbcSecurityGroups",e[e.LcbcConfigurationsTemplates=201e4]="LcbcConfigurationsTemplates",e[e.LcbcCustomFields=2010200]="LcbcCustomFields",e[e.LcbcSummerProgramProjects=2070100]="LcbcSummerProgramProjects",e[e.LcbcSummerProgramAssignments=2070200]="LcbcSummerProgramAssignments",e[e.LcbcSummerProgramTasks=2070300]="LcbcSummerProgramTasks",e[e.LcbcJobRequisition=2080100]="LcbcJobRequisition",e[e.LcbcApplicant=2090100]="LcbcApplicant",e[e.LcbcApplication=2090200]="LcbcApplication",e[e.LcbcResume=2090300]="LcbcResume",e[e.LcbcInterviews=2090400]="LcbcInterviews",e[e.LcbcEmployeeTalentDashboard=2201300]="LcbcEmployeeTalentDashboard",e[e.LcbcEmployeeJobRequests=2250100]="LcbcEmployeeJobRequests",e[e.LcbcEmployeeInterviews=2260100]="LcbcEmployeeInterviews",e[e.LcbcEmployeeSummerProgramProjects=2270100]="LcbcEmployeeSummerProgramProjects"}(Zc||(Zc={})),function(e){e[e.NotSet=0]="NotSet",e[e.ViewUsers=2001001]="ViewUsers",e[e.ManageUsers=2001002]="ManageUsers",e[e.DeleteUsers=2001003]="DeleteUsers",e[e.ImportUsers=2001005]="ImportUsers",e[e.UpdateUserNotesOwn=2001006]="UpdateUserNotesOwn",e[e.UpdateUserNotesAll=2001007]="UpdateUserNotesAll",e[e.DeleteUserNotesOwn=2001008]="DeleteUserNotesOwn",e[e.DeleteUserNotesAll=2001009]="DeleteUserNotesAll",e[e.ViewReports=2001101]="ViewReports",e[e.ViewEmailLogs=2001201]="ViewEmailLogs",e[e.ViewSearchFirms=2001301]="ViewSearchFirms",e[e.ModifySearchFirms=2001302]="ModifySearchFirms",e[e.DeleteSearchFirms=2001303]="DeleteSearchFirms",e[e.ViewDataManagement=2002001]="ViewDataManagement",e[e.ManageDataManagement=2002002]="ManageDataManagement",e[e.DeleteDataManagement=2002003]="DeleteDataManagement",e[e.ImportDataManagement=2002004]="ImportDataManagement",e[e.ViewSecurityUser=2004001]="ViewSecurityUser",e[e.ManageSecurityUser=2004002]="ManageSecurityUser",e[e.ViewRoles=2004004]="ViewRoles",e[e.ManageRoles=2004005]="ManageRoles",e[e.DeleteRoles=2004006]="DeleteRoles",e[e.ViewUserPreference=2005001]="ViewUserPreference",e[e.ViewGeneralSettings=2005101]="ViewGeneralSettings",e[e.ModifyGeneralSettings=2005102]="ModifyGeneralSettings",e[e.ViewDashboardSettings=2005103]="ViewDashboardSettings",e[e.ModifyDashboardSettings=2005104]="ModifyDashboardSettings",e[e.ViewPreferences=2005105]="ViewPreferences",e[e.ModifyPreferences=2005106]="ModifyPreferences",e[e.ViewIntegrationSettings=2005107]="ViewIntegrationSettings",e[e.ModifyIntegrationSettings=2005108]="ModifyIntegrationSettings",e[e.ViewJobPostingLinks=2005109]="ViewJobPostingLinks",e[e.ModifyJobPostingLinks=2005110]="ModifyJobPostingLinks",e[e.ViewDashboardWelcomeMessageTile=2006001]="ViewDashboardWelcomeMessageTile",e[e.ViewDashboardScheduleTile=2006002]="ViewDashboardScheduleTile",e[e.ViewDashboardFavoriteReportTile=2006003]="ViewDashboardFavoriteReportTile",e[e.ViewDashboardNewsTile=2006004]="ViewDashboardNewsTile",e[e.ViewDashboardAnnouncementTile=2006005]="ViewDashboardAnnouncementTile",e[e.ViewDashboardHelpTile=2006006]="ViewDashboardHelpTile",e[e.ViewTalentDashboardTeamViewTile=2007001]="ViewTalentDashboardTeamViewTile",e[e.ViewTalentDashboardInterviewScheduleTile=2007002]="ViewTalentDashboardInterviewScheduleTile",e[e.ViewTalentDashboardJobRequisitionTile=2007003]="ViewTalentDashboardJobRequisitionTile",e[e.ViewTalentDashboardClientMatterTile=2007004]="ViewTalentDashboardClientMatterTile",e[e.ViewTalentDashboardProjectPortfolioTile=2007005]="ViewTalentDashboardProjectPortfolioTile",e[e.ViewTalentDashboardAccountingTile=2007006]="ViewTalentDashboardAccountingTile",e[e.ViewTalentDashboardAttachmentTile=2007007]="ViewTalentDashboardAttachmentTile",e[e.ViewTalentDashboardCourseHistoryTile=2007008]="ViewTalentDashboardCourseHistoryTile",e[e.ViewTalentDashboardComplianceTile=2007009]="ViewTalentDashboardComplianceTile",e[e.ViewTalentDashboardLearningPlanTile=2007010]="ViewTalentDashboardLearningPlanTile",e[e.ViewSecurityGroups=2008001]="ViewSecurityGroups",e[e.ManageSecurityGroups=2008002]="ManageSecurityGroups",e[e.DeleteSecurityGroups=2008003]="DeleteSecurityGroups",e[e.ViewAuthentication=2009001]="ViewAuthentication",e[e.ManageAuthentication=2009002]="ManageAuthentication",e[e.DeleteAuthentication=2009003]="DeleteAuthentication",e[e.ViewEmailTemplates=2010001]="ViewEmailTemplates",e[e.ModifyEmailTemplates=2010002]="ModifyEmailTemplates",e[e.ViewConsolidatedEmails=2010003]="ViewConsolidatedEmails",e[e.ModifyConsolidatedEmails=2010004]="ModifyConsolidatedEmails",e[e.ViewFormBuilder=2010005]="ViewFormBuilder",e[e.ModifyFormBuilder=2010006]="ModifyFormBuilder",e[e.ViewWebApplicationForm=2010007]="ViewWebApplicationForm",e[e.ModifyWebApplicationForm=2010008]="ModifyWebApplicationForm",e[e.ViewCustomFields=2010201]="ViewCustomFields",e[e.ModifyCustomFields=2010202]="ModifyCustomFields",e[e.ViewAllProjects=2070101]="ViewAllProjects",e[e.ManageAllProjects=2070102]="ManageAllProjects",e[e.DeleteAllProjects=2070103]="DeleteAllProjects",e[e.ViewProjectOwnedAndSupervised=2070104]="ViewProjectOwnedAndSupervised",e[e.ManageProjectOwnedAndSupervised=2070105]="ManageProjectOwnedAndSupervised",e[e.DeleteProjectOwnedAndSupervised=2070106]="DeleteProjectOwnedAndSupervised",e[e.ViewProjectDetails=2070107]="ViewProjectDetails",e[e.ViewAssignments=2070201]="ViewAssignments",e[e.ViewAssignmentDetails=2070202]="ViewAssignmentDetails",e[e.ManageAssignments=2070203]="ManageAssignments",e[e.DeleteAssignments=2070204]="DeleteAssignments",e[e.ViewTasks=2070301]="ViewTasks",e[e.ViewTaskDetails=2070302]="ViewTaskDetails",e[e.ManageTasks=2070303]="ManageTasks",e[e.DeleteTasks=2070304]="DeleteTasks",e[e.ViewJobRequisitions=2080101]="ViewJobRequisitions",e[e.ViewJobRequisitionDetails=2080102]="ViewJobRequisitionDetails",e[e.ViewJobSalaryRange=2080103]="ViewJobSalaryRange",e[e.ManageJobRequisitionDetails=2080104]="ManageJobRequisitionDetails",e[e.ManageJobSalaryRange=2080105]="ManageJobSalaryRange",e[e.DeleteJobRequisitions=2080106]="DeleteJobRequisitions",e[e.ImportJobRequisitions=2080107]="ImportJobRequisitions",e[e.ViewApplicants=2090101]="ViewApplicants",e[e.ViewApplicantProfile=2090102]="ViewApplicantProfile",e[e.ViewEEOData=2090103]="ViewEEOData",e[e.ViewEducationAndExperience=2090104]="ViewEducationAndExperience",e[e.ModifyApplicantProfile=2090105]="ModifyApplicantProfile",e[e.DeleteApplicant=2090106]="DeleteApplicant",e[e.ViewApplications=2090201]="ViewApplications",e[e.ViewApplicationAttachments=2090202]="ViewApplicationAttachments",e[e.ModifyApplications=2090203]="ModifyApplications",e[e.ModifyApplicationAttachments=2090204]="ModifyApplicationAttachments",e[e.DeleteApplications=2090205]="DeleteApplications",e[e.ResumeParser=2090301]="ResumeParser",e[e.ViewInterviews=2090401]="ViewInterviews",e[e.ModifyInterviews=2090402]="ModifyInterviews",e[e.CancelInterviews=2090403]="CancelInterviews",e[e.ViewEmployeeTeamViewTile=2201301]="ViewEmployeeTeamViewTile",e[e.ViewEmployeeInterviewScheduleTile=2201302]="ViewEmployeeInterviewScheduleTile",e[e.ViewEmployeeJobRequisitionTile=2201303]="ViewEmployeeJobRequisitionTile",e[e.ViewEmployeeClientMatterTile=2201304]="ViewEmployeeClientMatterTile",e[e.ViewEmployeeProjectPortfolioTile=2201305]="ViewEmployeeProjectPortfolioTile",e[e.ViewEmployeeAccountingTile=2201306]="ViewEmployeeAccountingTile",e[e.ViewEmployeeAttachmentsTile=2201307]="ViewEmployeeAttachmentsTile",e[e.ViewEmployeeCourseHistoryTile=2201308]="ViewEmployeeCourseHistoryTile",e[e.ViewEmployeeComplianceTile=2201309]="ViewEmployeeComplianceTile",e[e.ViewEmployeeLearningPlansTile=2201310]="ViewEmployeeLearningPlansTile",e[e.SubmitEmployeeJobRequests=2250101]="SubmitEmployeeJobRequests",e[e.ViewEmployeeInterviews=2260101]="ViewEmployeeInterviews",e[e.SubmitEmployeeInterviewEvaluation=2260102]="SubmitEmployeeInterviewEvaluation",e[e.ViewEmployeeProjects=2270101]="ViewEmployeeProjects",e[e.ManageEmployeeProjects=2270102]="ManageEmployeeProjects",e[e.DeleteEmployeeProjects=2270103]="DeleteEmployeeProjects",e[e.ExportEmployeeProjects=2270104]="ExportEmployeeProjects"}(Xc||(Xc={})),function(e){e[e.Owner=1]="Owner",e[e.Supervisor=2]="Supervisor",e[e.Collaborator=3]="Collaborator"}(el||(el={})),function(e){e[e.OnQueue=1]="OnQueue",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed",e[e.Submitted=5]="Submitted"}(tl||(tl={})),function(e){e[e.AssignmentDetails=1]="AssignmentDetails",e[e.ClientDetails=2]="ClientDetails",e[e.SenderInformation=3]="SenderInformation",e[e.ProjectDetails=4]="ProjectDetails",e[e.RecipientInformation=5]="RecipientInformation",e[e.TaskDetails=6]="TaskDetails",e[e.FirmInformation=7]="FirmInformation",e[e.Applicant=8]="Applicant",e[e.Application=9]="Application",e[e.Interviewer=10]="Interviewer",e[e.Interview=11]="Interview"}(il||(il={})),function(e){e[e.Administrator=7]="Administrator",e[e.Employee=8]="Employee"}(rl||(rl={})),function(e){e[e.General=1]="General",e[e.SearchFirm=2]="SearchFirm"}(al||(al={})),function(e){e[e.PersonalInformation=1]="PersonalInformation",e[e.EeoInformation=2]="EeoInformation",e[e.ContactInformation=3]="ContactInformation",e[e.ContactAddress=4]="ContactAddress",e[e.ProfessionalInformation=5]="ProfessionalInformation",e[e.Languages=6]="Languages",e[e.SocialProfiles=7]="SocialProfiles",e[e.Education=8]="Education",e[e.Experience=9]="Experience",e[e.ApplicationDetails=10]="ApplicationDetails",e[e.ApplicationSource=11]="ApplicationSource",e[e.Attachments=12]="Attachments",e[e.ApplicantCustomFields=13]="ApplicantCustomFields",e[e.ApplicationCustomFields=14]="ApplicationCustomFields"}(nl||(nl={})),function(e){e[e.String=1]="String",e[e.Integer=2]="Integer",e[e.DateTime=3]="DateTime",e[e.SingleSelect=4]="SingleSelect",e[e.MultiSelect=5]="MultiSelect",e[e.Text=6]="Text"}(sl||(sl={})),function(e){e[e.ParallelApprovalProcess=1]="ParallelApprovalProcess",e[e.SequentialApprovalProcess=2]="SequentialApprovalProcess"}(ol||(ol={}));var dd=function(){function e(t){if(Object(O.a)(this,e),this.type=void 0,this.title=void 0,this.status=void 0,this.detail=void 0,this.instance=void 0,this.errors=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(A.a)(e,[{key:"init",value:function(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.type=e.type,this.title=e.title,this.status=e.status,this.detail=e.detail,this.instance=e.instance,e.errors)for(var i in this.errors={},e.errors)e.errors.hasOwnProperty(i)&&(this.errors[i]=void 0!==e.errors[i]?e.errors[i]:[])}}},{key:"toJSON",value:function(e){for(var t in e="object"===typeof e?e:{},this)this.hasOwnProperty(t)&&(e[t]=this[t]);if(e.type=this.type,e.title=this.title,e.status=this.status,e.detail=this.detail,e.instance=this.instance,this.errors)for(var i in e.errors={},this.errors)this.errors.hasOwnProperty(i)&&(e.errors[i]=this.errors[i]);return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),ud=function(e){Object(b.a)(i,e);var t=Object(S.a)(i);function i(e,r,a,n,s){var o;return Object(O.a)(this,i),(o=t.call(this)).message=void 0,o.status=void 0,o.response=void 0,o.headers=void 0,o.result=void 0,o.isApiException=!0,o.message=e,o.status=r,o.response=a,o.headers=n,o.result=s,o}return Object(A.a)(i,null,[{key:"isApiException",value:function(e){return!0===e.isApiException}}]),i}(Object(g.a)(Error));function hd(e,t,i,r,a){throw null!==a&&void 0!==a?a:new ud(e,t,i,r,null)}function fd(e){return e&&!0===e.isAxiosError}var vd=i(183),pd=i(1093),md=i(1094),yd=i(18),bd=function(e,t){return Object(yd.a)(Object(yd.a)({},e),t)},Sd={tenants:null,tenantCourseFormats:null,tenantIntegrations:null,tenantSelectedIntegration:null,tenantProviders:null,tenantTimezones:null,tenantPasswordPolicy:null,selectedTenant:null,isTenantPasswordPolicyLoading:!0,groups:null,tenantFirmSettings:null,identityPools:null},gd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sd,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TENANTS":return bd(e,{tenants:t.payload});case"SET_TENANT":return bd(e,{selectedTenant:t.payload});case"SET_TENANT_PASSWORD_POLICY":return bd(e,{tenantPasswordPolicy:t.payload});case"SET_TENANT_INDUSTRIES":return bd(e,{tenantIndustryChart:t.payload});case"SET_TENANT_COURSE_FORMATS":return bd(e,{tenantCourseFormats:t.payload});case"SET_TENANT_INTEGRATIONS":return bd(e,{tenantIntegrations:t.payload});case"SET_TENANT_SELECTED_INTEGRATION":return bd(e,{tenantSelectedIntegration:t.payload});case"SET_TENANT_PROVIDERS":return bd(e,{tenantProviders:t.payload});case"SET_TENANT_TIMEZONES":return bd(e,{tenantTimezones:t.payload});case"SET_TENANT_FIRM_DETAILS":return bd(e,{tenantFirmSettings:t.payload});case"SET_SELECTED_TENANT":return bd(e,{selectedTenant:t.payload});case"SET_TENANT_APPS":return bd(e,{selectedTenant:Object(yd.a)(Object(yd.a)({},e.selectedTenant),{},{tenantApp:t.payload})});case"SET_GROUPS":return bd(e,{groups:t.payload});case"GET_IDENTITY_POOLS":return bd(e,{identityPools:t.payload});default:return e}},Id={message:null},Od=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Id,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_NOTIFICATION":return bd(e,{message:t.payload});case"REMOVE_NOTIFICATION":return bd(e,{message:null});default:return e}},Ad={message:null},jd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ad,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_CONFIRM":return bd(e,{message:t.payload});case"CLOSE_CONFIRM":return bd(e,{message:null});default:return e}},Cd={selectedUser:new se,users:null},Pd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cd,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_USERS":return bd(e,{users:t.payload});case"SET_SELECTED_USER":return bd(e,{selectedUser:t.payload});default:return e}},Ed={industries:[]},wd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ed,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"GET_INDUSTRIES_REQUEST":return bd(e,{industries:null});case"GET_INDUSTRIES_SUCCESS":case"GET_INDUSTRIES_FAILED":return bd(e,{industries:t.payload});default:return e}},kd={apps:[]},Td=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kd,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"GET_APPS_REQUEST":return bd(e,{apps:null});case"GET_APPS_SUCCESS":case"GET_APPS_FAILED":return bd(e,{apps:t.payload});default:return e}},Nd={logs:null,emails:null},Jd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nd,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"GET_LOGS_REQUEST":return bd(e,{logs:null});case"GET_LOGS_SUCCESS":case"GET_LOGS_FAILED":return bd(e,{logs:t.payload});case"GET_EMAILS_REQUEST":return bd(e,{emails:null});case"GET_EMAILS_SUCCESS":case"GET_EMAILS_FAILED":return bd(e,{emails:t.payload});default:return e}},Dd=i(1095),Ld=i.n(Dd),Ud={roles:null,selectedRole:new ye},Rd=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ud,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case"SET_ROLES":return bd(t,{roles:i.payload});case"SET_SELECTED_ROLE":return bd(t,{selectedRole:i.payload});case"SET_ROLE_USERS":return Ld()(t,{roles:{$apply:function(e){return e.map((function(e){return e.roleId!==i.payload.roleId?e:Object(yd.a)(Object(yd.a)({},e),{},{roleUsers:i.payload.roleUsers})}))}},selectedRole:{$set:i.payload}});case"UNASSIGN_ROLE_USERS":return bd(t,{selectedRole:bd(t.selectedRole,{roleUsers:null===(e=t.selectedRole.roleUsers)||void 0===e?void 0:e.filter((function(e){return e.userName!==i.payload}))})});default:return t}},xd={authenticated:!1,accessToken:"",jwtExpiration:0},Fd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xd,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SIGNIN":return bd(e,t.payload);case"SIGNOUT":return bd(e,{authenticated:!1,accessToken:"",jwtExpiration:0});default:return e}},Md={permissionSets:null,userPermissionSets:null,loading:!1},Gd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Md,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PERMISSION_SETS":return bd(e,{permissionSets:t.payload});case"SET_USER_PERMISSIONS":return bd(e,{userPermissionSets:t.payload});case"SET_LOADING":return bd(e,{loading:t.payload});default:return e}},Bd=Object(pd.composeWithDevTools)(Object(vd.applyMiddleware)((function(e){var t=e.getState;return function(e){return function(i){var r=e(i);return localStorage.setItem("client-stored-state",JSON.stringify(t())),r}}}),md.a)),qd=Object(vd.combineReducers)({apps:Td,tenants:gd,users:Pd,industries:wd,logs:Jd,confirm:jd,notification:Od,roles:Rd,authentication:Fd,permissionSets:Gd}),Vd=Object(vd.createStore)(qd,function(){var e=localStorage.getItem("client-stored-state");if(null!==e)return JSON.parse(e)}(),Bd),Wd=d.default.configure({Auth:{region:"us-west-2",userPoolId:"us-west-2_qLY3jONJy",userPoolWebClientId:"55edu6g6430q6iia99pb8pb06s",mandatorySignIn:!1,authenticationFlowType:"USER_PASSWORD_AUTH",clientMetadata:{myCustomKey:"myCustomValue"},oauth:{domain:"micron-management.auth.us-west-2.amazoncognito.com/",scope:["email","openid"],redirectSignIn:"".concat("https://mm.micronapps.com","/login"),redirectSignOut:"".concat("https://mm.micronapps.com","/logout"),responseType:"token"}}}),zd=C.a.create();zd.interceptors.request.use(function(){var e=Object(ot.a)(st.a.mark((function e(t){var i,r,a,n,s;return st.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Vd.getState(),r=i.tenants,d.default.configure(Wd),e.next=4,ct.a.currentAuthenticatedUser().catch((function(){return null}));case 4:return a=e.sent,n="multipart/form-data"===t.headers["Content-Type"],null!=a&&(t.headers={"content-type":n?"multipart/form-data":"application/json",Authorization:"Bearer ".concat(a.signInUserSession.accessToken.jwtToken),"x-tenant-id":null===(s=r.selectedTenant)||void 0===s?void 0:s.tenantId}),e.abrupt("return",t);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),zd.interceptors.response.use(void 0,(function(e){var t=e;return t.originalMessage=e.message,t.response}));var Hd=zd,$d=new U("https://api.mm.micronapps.com",ut),_d=new N("https://api.mm.micronapps.com",ut),Yd=new P("https://api.mm.micronapps.com",ut),Qd=new k("https://api.mm.micronapps.com",ut),Kd=new T("https://api.mm.micronapps.com",ut),Zd=new w("https://api.mm.micronapps.com",ut),Xd=new L("https://api.mm.micronapps.com",ut),eu=new D("https://api.mm.micronapps.com",ut),tu=new J("https://api.mm.micronapps.com",ut),iu=new R("https://api.mm.micronapps.com",ut),ru=new At("https://api.cem.micronapps.com",Hd),au=new mt("https://api.cem.micronapps.com",Hd),nu=new ft("https://api.cem.micronapps.com",Hd),su=new pt("https://api.cem.micronapps.com",Hd),ou=new bt("https://api.cem.micronapps.com",Hd),cu=new Ot("https://api.cem.micronapps.com",Hd),lu=new ht("https://api.cem.micronapps.com",Hd),du=new vt("https://api.cem.micronapps.com",Hd),uu=new St("https://api.cem.micronapps.com",Hd),hu=new It("https://api.cem.micronapps.com",Hd),fu=new gt("https://api.cem.micronapps.com",Hd),vu=new yt("https://api.cem.micronapps.com",Hd),pu=new vt("https://api.cem.micronapps.com",Hd),mu=new E("https://api.mm.micronapps.com",Hd),yu=(new Ws("https://api.gw.micronapps.com",Hd),new fc("https://api.lcbc.micronapps.com",Hd)),bu=new hc("https://api.lcbc.micronapps.com",Hd),Su=function(e){return{type:"ADD_NOTIFICATION",payload:e}},gu=function(e){var t={variant:"error",message:""};return void 0===e?t.message="Error 500":400===e.status?t.message=e.title:500===e.status?t.message=e.detail:t.message=JSON.stringify(e),{type:"ADD_NOTIFICATION",payload:t}},Iu=function(e){return function(t){var i=new Li({filterBy:[],searchCriteria:["Active"],sortBy:"lastName",page:1,pageSize:10});return ru.getAll(void 0,e?Li.fromJS(e):i).then((function(e){return e})).catch((function(e){throw t(gu(e)),e.message}))}},Ou=function(e){return function(t){var i=new Ni({filterBy:[],searchCriteria:[],sortBy:"name",page:1,pageSize:10});return au.getAll(void 0,e?Ni.fromJS(e):i).then((function(e){return e})).catch((function(e){throw t(gu(e)),e.message}))}},Au=function(){return function(e){return e(Nu(null)),su.getAll(void 0).then((function(t){return e(Nu(t.integrations)),t.integrations})).catch((function(t){throw e(Nu([])),t.message}))}},ju=function(){return function(e){return e(wu(null)),pu.getSettings("v1").then((function(t){return e(wu(t)),t})).catch((function(t){return e(Su({message:t.error,variant:"error"})),null}))}},Cu=function(e,t,i){return function(r){var a=new pe({tenants:t,licenseIds:e,tenantGroupIds:i});return $d.recalcTenant(pe.fromJS(a)).then((function(){return r(Su({message:"Recalculation job successfully queued.",variant:"success"})),!0})).catch((function(e){return r(Su({message:e.error,variant:"error"})),!1}))}},Pu=function(e){return{type:"SET_TENANTS",payload:e}},Eu=function(e){return{type:"SET_TENANT",payload:e}},wu=function(e){return{type:"SET_TENANT_FIRM_DETAILS",payload:e}},ku=function(e){return{type:"SET_SELECTED_TENANT",payload:e}},Tu=function(e){return{type:"SET_TENANT_INDUSTRIES",payload:e}},Nu=function(e){return{type:"SET_TENANT_INTEGRATIONS",payload:e}},Ju=function(e){return{type:"SET_TENANT_PROVIDERS",payload:e}},Du=function(e){return{type:"SET_TENANT_TIMEZONES",payload:e}},Lu=function(e){return{type:"SET_TENANT_PASSWORD_POLICY",payload:e}},Uu=function(e){return{type:"SET_GROUPS",payload:e}},Ru=function(e){return{type:"GET_IDENTITY_POOLS",payload:e}},xu=function(){return function(e){return e(Pu(null)),$d.getAllTenant().then((function(t){e(Pu(t.tenants))})).catch((function(t){e(Pu([])),e(Su({message:t.detail,variant:"error"}))}))}},Fu=function(){return function(e){return e(Uu(null)),iu.getAll().then((function(t){e(Uu(t))})).catch((function(t){e(Su({message:t.detail,variant:"error"}))}))}},Mu=function(e){return{type:"SET_USERS",payload:e}},Gu=function(e){return{type:"SET_SELECTED_USER",payload:e}},Bu=function(){return function(e){e(Mu(null)),_d.getAllMicronUser().then((function(t){e(Mu(t.micronUsers))})).catch((function(t){e(Su({message:t.detail,variant:"error"}))}))}},qu=function(e){return{type:"SET_SELECTED_ROLE",payload:e}},Vu=function(e){return{type:"SET_ROLES",payload:e}},Wu=function(e){return{type:"SET_ROLE_USERS",payload:e}},zu=function(e){return{type:"SET_PERMISSION_SETS",payload:e}},Hu=function(e){return{type:"SET_USER_PERMISSIONS",payload:e}},$u=function(e){return{type:"SET_LOADING",payload:e}},_u=function(){return function(e){e(Hu(null)),e($u(!0)),tu.getUserPermissionSets().then((function(t){e($u(!1)),e(Hu(t))})).catch((function(e){throw e}))}},Yu=function(){return function(e){e(Vu(null)),Xd.getRoles(te.fromJS({pageSize:-1})).then((function(t){e(Vu(t.roles))})).catch((function(t){e(Su({message:t.detail,variant:"error"}))}))}},Qu=function(){return function(e){e({type:"GET_APPS_REQUEST"}),Yd.getAllApp().then((function(t){e({type:"GET_APPS_SUCCESS",payload:t.apps})})).catch((function(t){e({type:"GET_APPS_FAILED",payload:[]}),e(Su({message:t.detail,variant:"error"}))}))}},Ku=function(e){return{type:"SHOW_CONFIRM",payload:e}},Zu=i(57),Xu=i.n(Zu),eh=function(e){var t=e.open,i=e.message,r=e.title,a=e.onClose,s=e.OnConfirm,o=e.onCancel;return n.a.createElement(u.Dialog,{"aria-labelledby":"confirmation-dialog-title",open:t,onClose:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return a()}))},n.a.createElement(Zu.DialogHeader,{id:"confirmation-dialog-title",colorMode:"light",titleBar:{title:r}}),n.a.createElement(Zu.DialogBody,null,i),n.a.createElement(Zu.DialogFooter,null,n.a.createElement(u.Button,{onClick:function(){return o()},color:"default",variant:"outlined"},"No"),n.a.createElement(u.Button,{onClick:function(){return s(),void a()},color:"primary",variant:"contained",autoFocus:!0},"Yes")))},th=function(e){return Object(c.b)((function(e){return{message:e.notification.message,confirm:e.confirm.message}}),(function(e){return{removeNotification:function(){return e({type:"REMOVE_NOTIFICATION",payload:null})},closeConfirm:function(){return e({type:"CLOSE_CONFIRM",payload:null})}}}))((function(t){var i=t.message,r=t.removeNotification,a=t.confirm,s=t.closeConfirm,o=t.children;return n.a.createElement(n.a.Fragment,null,i&&n.a.createElement(u.Snackbar,{message:i.message,open:i,onClose:r,type:i.variant}),a&&n.a.createElement(eh,{open:null!=a,title:a.title,message:a.message,OnConfirm:a.OnConfirm,onClose:s,onCancel:s}),n.a.createElement(e,t,o))}))},ih=th(Object(c.b)((function(e){return{tenants:e.tenants.tenants,apps:e.apps.apps,users:e.users.users,roles:e.roles.roles,industryChart:e.tenants.tenantIndustryChart}}),(function(e){return{getTenants:function(){return e(xu())},getApps:function(){return e(Qu())},getRoles:function(){return e(Yu())},getUsers:function(){return e(Bu())},getTenantIndustries:function(){return e((function(e){return e(Tu(null)),$d.getAllIndustries().then((function(t){e(Tu(t))})).catch((function(t){e(Su({message:t.detail,variant:"error"}))}))}))}}}))((function(e){var t=e.tenants,i=e.apps,r=e.roles,s=e.users,o=e.industryChart,c=e.getTenants,l=e.getApps,d=e.getRoles,h=e.getUsers,f=e.getTenantIndustries,v=He(le.ViewTenants),p=He(le.ViewUsers);return Object(a.useEffect)((function(){v&&c(),l(),p&&h(),d(),v&&f()}),[c,l,d,h,f,v,p]),n.a.createElement(u.Screen,{titleBar:{title:"Dashboard"},maxWidth:!1},n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(Ke,{loading:null==t,difference:t&&"".concat(t.filter((function(e){return 1!==e.tenantStatus})).length.toString()," - inactive"),value:t&&t.length,title:"Tenants",icon:n.a.createElement(u.SystemIcon,{icon:"Tenants",type:"duotone",size:"md"})})),n.a.createElement(u.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(Ke,{loading:null==s,difference:s&&"".concat(s.filter((function(e){return!1===e.enabled})).length.toString()," - inactive"),value:s&&s.length,title:"Users",icon:n.a.createElement(u.SystemIcon,{icon:"People",type:"duotone",size:"md"})})),n.a.createElement(u.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(Ke,{loading:null==i,value:null===r||void 0===r?void 0:r.length,title:"Roles",icon:n.a.createElement(u.SystemIcon,{icon:"Profile",type:"duotone",size:"md"})})),n.a.createElement(u.Grid,{item:!0,xs:3,stretchContent:!0},n.a.createElement(Ke,{loading:null==i,value:null===i||void 0===i?void 0:i.length,title:"Products",icon:n.a.createElement(u.SystemIcon,{icon:"Dashboard",type:"duotone",size:"md"})})),n.a.createElement(u.Grid,{item:!0,xs:4,stretchContent:!0},n.a.createElement(at,{loading:null==o,title:"Industry Coverage",data:o})),n.a.createElement(u.Grid,{item:!0,xs:8,stretchContent:!0},n.a.createElement(tt,{loading:null==o,data:o}))))}))),rh=i(150),ah=i.n(rh),nh=i(282),sh=i.n(nh),oh=i(73),ch=i.n(oh),lh=i(48),dh=i(28),uh=function(){return function(e){e({type:"GET_INDUSTRIES_REQUEST"}),Zd.getAllIndustry().then((function(t){t.industries&&e({type:"GET_INDUSTRIES_SUCCESS",payload:t.industries})})).catch((function(t){e({type:"GET_INDUSTRIES_FAILED",payload:[]}),e(Su({message:t.detail,variant:"error"}))}))}},hh=Object(c.b)((function(e){return{selectedTenant:e.tenants.selectedTenant,industries:e.industries.industries,apps:e.apps.apps,groups:e.tenants.groups,identityPools:e.tenants.identityPools}}),(function(e){return{setSelectedTenant:function(t){return e(ku(t))},getIndustries:function(){return e(uh())},getApps:function(){return e(Qu())},getGroups:function(){return e(Fu())},getIdentityPools:function(){return e((function(e){return e(Ru(null)),mu.getAllIdentityPool().then((function(t){e(Ru(null!==t&&void 0!==t?t:[]))})).catch((function(t){e(Ru([])),e(Su({message:t.detail,variant:"error"}))}))}))}}}))((function(e){var t,i,r,s=e.selectedTenant,o=e.industries,c=e.apps,l=e.identityPools,d=e.setSelectedTenant,h=e.getIndustries,f=e.getApps,v=e.getIdentityPools,p=e.saving,m=e.open,y=e.onClose,b=e.onSave,S=e.addMode,g=e.groups,I=e.getGroups,O=He(le.ManageTenantApp);Object(a.useEffect)((function(){h(),f(),I(),v()}),[h,f,I,v]);var A={initialValues:{name:s.name,description:s.description,hostName:s.hostName,industry:s.industry,tenantApps:function(e){var t=Array();return e&&e.forEach((function(e){c&&c.forEach((function(i){e.appId===i.appId&&t.push(i)}))})),t}(s.tenantApp),isActive:1===s.tenantStatus,tenantGroup:"FormerClients"===(null===(t=s.tenantGroup)||void 0===t?void 0:t.name)?Object(yd.a)(Object(yd.a)({},s.tenantGroup),{},{name:"Former Clients"}):s.tenantGroup,renewalDate:null!==(i=s.renewalDate)&&void 0!==i?i:null,isUsernameCaseSenstiveEnabled:!1,identityPool:null!==(r=null===s||void 0===s?void 0:s.identityPoolId)&&void 0!==r?r:"-1"},validationSchema:Object(dh.object)().shape({name:Object(dh.string)().required("Required").max(100,"Too long!"),hostName:Object(dh.string)().required("Required").max(50,"Too long!").lowercase("Must be lowercase"),description:Object(dh.string)().required("Required").max(2e3,"Too long!"),industry:Object(dh.object)().required("Required").nullable(),tenantGroup:Object(dh.object)().required("Required").nullable(),isActive:Object(dh.boolean)(),renewalDate:Object(dh.date)().nullable().typeError("Please enter date in MM/DD/YYYY format or select from the calendar"),isUsernameCaseSenstiveEnabled:Object(dh.boolean)(),identityPool:Object(dh.string)().required("Required").nullable()}),onSubmit:function(e,t){var i,r=e.name,a=e.hostName,n=e.industry,o=e.tenantApps,c=e.isActive,l=e.isUsernameCaseSenstiveEnabled,u=e.description,h=e.tenantGroup,f=e.identityPool,v=e.renewalDate,p=new Date(v);p.setHours(12),d(Object(yd.a)(Object(yd.a)({},s),{},{name:r,hostName:a,description:u,industryId:n.industryId,industry:n,tenantApp:o,tenantStatus:c?1:0,tenantGroupId:null!==(i=h&&h.tenantGroupId)&&void 0!==i?i:null,tenantGroup:h,renewalDate:null!==v?p:v,enableCaseSensitiveUsername:l,identityPoolId:f})),b(),t.setSubmitting(!1)}};return n.a.createElement(u.SideDrawer,{size:"sm",open:m,onClose:y},n.a.createElement(lh.Formik,{initialValues:A.initialValues,validationSchema:A.validationSchema,onSubmit:A.onSubmit,enableReinitialize:!0},(function(e){var t=e.dirty;return n.a.createElement(u.Form,{id:"edit-tenant",formikContext:!0},n.a.createElement(oh.SideDrawerHeader,{titleBar:{title:S?"Add Tenant":"Edit Tenant"}}),n.a.createElement(oh.SideDrawerBody,null,n.a.createElement(u.Grid,{container:!0,direction:"column",spacing:"form"},n.a.createElement(u.Grid,{item:!0,stretchContent:!0},n.a.createElement(u.TextField,{formikContext:!0,id:"name",label:"Name"})),n.a.createElement(u.Grid,{item:!0,stretchContent:!0},n.a.createElement(u.TextField,{formikContext:!0,id:"description",label:"Description",multiline:!0,rows:"6",rowsMax:"12"})),n.a.createElement(u.Grid,{item:!0,stretchContent:!0},n.a.createElement(u.TextField,{fullWidth:!0,id:"hostName",label:"Hostname",formikContext:!0,disabled:!S})),n.a.createElement(u.Grid,{item:!0,stretchContent:!0},n.a.createElement(sh.a,{loading:null===o,formikContext:!0,fullWidth:!0,id:"industry",label:"Industry",options:o||[]})),n.a.createElement(u.Grid,{item:!0,stretchContent:!0},n.a.createElement(sh.a,{loading:null===c,formikContext:!0,fullWidth:!0,id:"tenantApps",label:"Applications",multiple:!0,options:c||[],disabled:!O})),n.a.createElement(u.Grid,{item:!0,stretchContent:!0},n.a.createElement(sh.a,{loading:null===g,formikContext:!0,fullWidth:!0,id:"tenantGroup",label:"Database Group",options:(null===g||void 0===g?void 0:g.map((function(e){return{id:e.tenantGroupId,name:"FormerClients"===e.name?"Former Clients":e.name,tenantGroupId:e.tenantGroupId}})))||[]})),n.a.createElement(u.Grid,{item:!0,stretchContent:!0},n.a.createElement(u.SelectField,{disabled:!S,loading:null===l,formikContext:!0,fullWidth:!0,id:"identityPool",label:"Identity Pool"},n.a.createElement(u.MenuItem,{key:1,value:""}),null===l||void 0===l?void 0:l.map((function(e){var t,i;return n.a.createElement(u.MenuItem,{key:e.identityPoolId,value:null!==(t=e.identityPoolId)&&void 0!==t?t:""},null!==(i=e.identityPoolName)&&void 0!==i?i:"")})))),n.a.createElement(u.Grid,{item:!0,stretchContent:!0},n.a.createElement(u.DateTimeField,{fullWidth:!0,id:"renewalDate",type:"date",label:"Live Implementation Date",formikContext:!0})),n.a.createElement(u.Grid,{item:!0},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Active",id:"isActive"})),S&&n.a.createElement(u.Grid,{item:!0},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Case Sensitive Username",id:"isUsernameCaseSenstiveEnabled"})))),n.a.createElement(oh.SideDrawerFooter,null,n.a.createElement(u.Button,{loading:p,color:"primary",variant:"contained",type:"submit",disabled:!t},"Save"),n.a.createElement(u.Button,{color:"default",onClick:y,variant:"contained"},"Cancel")))})))})),fh=function(e){var t=e.menu,i=e.icon,r=e.title,a=n.a.useState(null),s=Object(y.a)(a,2),o=s[0],c=s[1],l=function(){c(null)};return n.a.createElement(n.a.Fragment,null,n.a.createElement(u.Button,{"aria-controls":"simple-menu","aria-haspopup":"true",color:"primary",variant:"text",size:"small","aria-label":r,onClick:function(e){e.stopPropagation(),c(e.currentTarget)}},i||n.a.createElement(u.SystemIcon,{icon:"Actions",size:"sm"}),r&&n.a.createElement(n.a.Fragment,null," \xa0 ",r)),n.a.createElement(u.Menu,{id:"simple-menu",anchorEl:o,keepMounted:!0,open:Boolean(o),onClose:l},t&&t.map((function(e){return e.visible||n.a.createElement(u.MenuItem,{disabled:e.disable,onClick:function(t){t.stopPropagation(),function(e){e(),l()}(e.onClick)},key:e.label},n.a.createElement(u.ListItemIcon,null,e.icon),n.a.createElement(u.ListItemText,{primary:e.label}))}))))},vh=i(72),ph=i.n(vh),mh=Object(a.createContext)({setSelectedLicenses:function(){},selectedLicenses:[]}),yh=function(){return Object(a.useContext)(mh)},bh=i(224),Sh=i.n(bh),gh=i(225),Ih=i.n(gh),Oh=Object(c.b)(null,(function(){return{}}))((function(e){var t=e.onClose,i=e.licenses,r=Object(vh.useWizardDialogContext)().goNext,a=yh(),s=a.selectedLicenses,o=a.setSelectedLicenses,c={initialValues:{licenseListForm:function(){var e={};return i&&i.length>0&&i.forEach((function(t){var i=!1;void 0!==(null===s||void 0===s?void 0:s.find((function(e){return e===t.licenseId})))&&(i=!0);var r=Object(v.a)({},"".concat(t.licenseId),i);e=Object(yd.a)(Object(yd.a)({},e),r)})),e}(),selectAllLicense:!1},validationSchema:Object(dh.object)().shape({}),onSubmit:function(e,t){t.setSubmitting(!0);var a=e.licenseListForm,n=Array();a&&Object.keys(a).forEach((function(e){i&&i.forEach((function(t){var i,r=null!==(i=t.licenseId)&&void 0!==i?i:0;a[e]&&e==="".concat(r)&&r>0&&n.push(r)}))})),o&&o(n),r(1),t.setSubmitting(!1)}},l=i&&i.filter((function(e){return"Law"===e.industryId})),d=i&&i.filter((function(e){return"Accounting"===e.industryId})),h=i&&i.filter((function(e){return"Certification"===e.industryId})),f=i&&i.filter((function(e){return"Custom License"===e.industryId}));return n.a.createElement(n.a.Fragment,null,n.a.createElement(lh.Formik,{initialValues:c.initialValues,validationSchema:c.validationSchema,onSubmit:c.onSubmit,enableReinitialize:!0,validateOnBlur:!1,validateOnChange:!1},(function(e){var r=e.resetForm,a=e.setFieldValue,c=function(e,t){e&&(t?e.forEach((function(e){a("licenseListForm.".concat(e.licenseId),!0)})):e.forEach((function(e){a("licenseListForm.".concat(e.licenseId),!1)})))},v=function(e){e||a("selectAllLicense",!1)};return n.a.createElement(u.Form,{id:"license-list",formikContext:!0},n.a.createElement(vh.WizardDialogBody,{titleBar:{title:"Select Licenses"},maxWidth:"xl"},n.a.createElement(u.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(u.Grid,{item:!0,xs:6,alignment:"center-left",key:"button"},n.a.createElement(u.FormControlLabel,{control:n.a.createElement(u.Checkbox,{formikContext:!0,id:"selectAllLicense",onChange:function(e,t){return c(null!==i&&void 0!==i?i:[],t)}}),label:n.a.createElement(u.Typography,{variant:"body1"},"Select All Licenses"),labelPlacement:"end"})),n.a.createElement(u.Grid,{item:!0,xs:6,alignment:"center-right",key:"button"},n.a.createElement(u.Button,{key:"btnReset",size:"small",color:"primary",variant:"text",type:"reset",onClick:function(){return o(void 0),void r()}},"Reset")),l&&l.length>0&&n.a.createElement(u.Grid,{item:!0,lg:3,md:4,xs:12},n.a.createElement(u.Widget,null,n.a.createElement(u.Box,{ml:2},n.a.createElement(Ih.a,{icon:n.a.createElement(u.SystemIcon,{icon:"Cem-Legal",type:"duotone"}),action:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{key:"selectAllLaw",size:"small",color:"primary",variant:"text",onClick:function(){return c(l,!0)}},"Select All")),title:"Law"}),n.a.createElement(Sh.a,{dense:!0},n.a.createElement(u.List,{hover:!0},l&&l.map((function(e){var t=e.licenseId,i=e.name;return t&&n.a.createElement(u.ListItem,{key:t,dense:!0,alignItems:"flex-start"},n.a.createElement(u.Box,{mt:1,flex:1},n.a.createElement(u.Typography,{variant:"body1"},i)),n.a.createElement(u.Box,{alignContent:"center"},n.a.createElement(u.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(t),onChange:function(e,t){return v(t)}})))}))))))),d&&d.length>0&&n.a.createElement(u.Grid,{item:!0,lg:3,md:4,xs:12},n.a.createElement(u.Widget,null,n.a.createElement(u.Box,{ml:2},n.a.createElement(Ih.a,{icon:n.a.createElement(u.SystemIcon,{icon:"Cem-Accounting",type:"duotone"}),action:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{key:"selectAllAccounting",size:"small",color:"primary",variant:"text",onClick:function(){return c(d,!0)}},"Select All")),title:"Accounting"}),n.a.createElement(Sh.a,{dense:!0},n.a.createElement(u.List,{hover:!0},n.a.createElement(u.ListItem,{key:9999,dense:!0,alignItems:"flex-start"},n.a.createElement(u.Box,{mt:1,flex:1},n.a.createElement(u.Typography,{variant:"body1"},"Fields of Study")),n.a.createElement(u.Box,{alignContent:"center"},n.a.createElement(u.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(9999),onChange:function(e,t){return v(t)}}))),d&&d.filter((function(e){return 9999!==e.licenseId})).map((function(e){var t=e.licenseId,i=e.name;return t&&n.a.createElement(u.ListItem,{key:t,dense:!0,alignItems:"flex-start"},n.a.createElement(u.Box,{mt:1,flex:1},n.a.createElement(u.Typography,{variant:"body1"},i)),n.a.createElement(u.Box,{alignContent:"center"},n.a.createElement(u.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(t),onChange:function(e,t){return v(t)}})))}))))))),h&&h.length>0&&n.a.createElement(u.Grid,{item:!0,lg:3,md:4,xs:12},n.a.createElement(u.Widget,null,n.a.createElement(u.Box,{ml:2},n.a.createElement(Ih.a,{icon:n.a.createElement(u.SystemIcon,{icon:"Cem-Certificate",type:"duotone"}),action:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{key:"selectAllCertification",size:"small",color:"primary",variant:"text",onClick:function(){return c(h,!0)}},"Select All")),title:"Certification"}),n.a.createElement(Sh.a,{dense:!0},n.a.createElement(u.List,{hover:!0},h&&h.map((function(e){var t=e.licenseId,i=e.name;return t&&n.a.createElement(u.ListItem,{key:t,dense:!0,alignItems:"flex-start"},n.a.createElement(u.Box,{mt:1,flex:1},n.a.createElement(u.Typography,{variant:"body1"},i)),n.a.createElement(u.Box,{alignContent:"center"},n.a.createElement(u.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(t),onChange:function(e,t){return v(t)}})))}))))))),f&&f.length>0&&n.a.createElement(u.Grid,{item:!0,lg:3,md:4,xs:12},n.a.createElement(u.Widget,null,n.a.createElement(u.Box,{ml:2},n.a.createElement(Ih.a,{icon:n.a.createElement(u.SystemIcon,{icon:"Cem-InFirm",type:"duotone"}),action:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{key:"selectAllCustom",size:"small",color:"primary",variant:"text",onClick:function(){return c(f,!0)}},"Select All")),title:"Custom License"}),n.a.createElement(Sh.a,{dense:!0},n.a.createElement(u.List,{hover:!0},f&&f.map((function(e){var t=e.licenseId,i=e.name;return t&&n.a.createElement(u.ListItem,{key:t,dense:!0,alignItems:"flex-start"},n.a.createElement(u.Box,{mt:1,flex:1},n.a.createElement(u.Typography,{variant:"body1"},i)),n.a.createElement(u.Box,{alignContent:"center"},n.a.createElement(u.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(t),onChange:function(e,t){return v(t)}})))}))))))))),n.a.createElement(vh.WizardDialogFooter,{buttons:"custom"},n.a.createElement(u.Grid,{container:!0,justify:"center",spacing:"form"},n.a.createElement(u.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(u.Button,{key:"btnBack",onClick:t,variant:"outlined",color:"default"},"Back")),n.a.createElement(u.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(u.Button,{key:"btnNext",color:"primary",variant:"contained",type:"submit",disabled:!e.dirty&&(void 0===s||0===(null===s||void 0===s?void 0:s.length))},"Next")))))})))})),Ah=Object(c.b)((function(e){return{tenants:e.tenants.tenants}}),(function(e){return{getTenants:function(){return e(xu())},recalcLicense:function(t,i){return e(Cu(t,i,void 0))},showConfirmation:function(t){return e(Ku(t))},addNotification:function(t){return e(Su({message:t,variant:"warning"}))}}}))((function(e){var t=e.tenants,i=e.getTenants,r=e.recalcLicense,s=e.showConfirmation,o=e.addNotification,c=e.onClose,l=Object(vh.useWizardDialogContext)().goBack,d=yh().selectedLicenses;Object(a.useEffect)((function(){null===t&&i()}),[i,t]);var h={initialValues:{tenantListForm:function(){var e={};return t&&t.length>0&&t.forEach((function(t){var i=Object(v.a)({},"".concat(t.hostName),!1);e=Object(yd.a)(Object(yd.a)({},e),i)})),e}(),selectAllTenant:!1},validationSchema:Object(dh.object)().shape({}),onSubmit:function(e,i){var r=e.tenantListForm,a=Array();r&&Object.keys(r).forEach((function(e){t&&t.forEach((function(t){var i,n=null!==(i=t.hostName)&&void 0!==i?i:"";r[e]&&e===n&&""!==n&&a.push(n)}))})),d&&(null===d||void 0===d?void 0:d.length)>0&&a.length>0?f(d,a):o("Please select license(s) and tenant(s)."),i.setSubmitting(!1)}},f=function(e,t){e&&e.length>0&&s({message:"Are you sure you want to recalculate the selected license(s)?",title:"Confirm Recalculation",OnConfirm:function(){r(e,t).then((function(){c()}))}})},p=t&&t.filter((function(e){return 1===e.tenantGroupId})),m=t&&t.filter((function(e){return 2===e.tenantGroupId})),y=t&&t.filter((function(e){return 3===e.tenantGroupId}));return n.a.createElement(n.a.Fragment,null,n.a.createElement(lh.Formik,{initialValues:h.initialValues,validationSchema:h.validationSchema,onSubmit:h.onSubmit,enableReinitialize:!0,validateOnBlur:!1,validateOnChange:!1},(function(e){var i=e.resetForm,r=e.setFieldValue,a=function(e,t){e&&(t?e.forEach((function(e){r("tenantListForm.".concat(e.hostName),!0)})):e.forEach((function(e){r("tenantListForm.".concat(e.hostName),!1)})))},s=function(e){e||r("selectAllTenant",!1)};return n.a.createElement(u.Form,{id:"tenant-list",formikContext:!0},n.a.createElement(vh.WizardDialogBody,{titleBar:{title:"Select Tenants"},maxWidth:"xl"},n.a.createElement(u.Grid,{container:!0,spacing:"form",justify:"center"},n.a.createElement(u.Grid,{item:!0,xs:6,alignment:"center-left",key:"button"},n.a.createElement(u.FormControlLabel,{control:n.a.createElement(u.Checkbox,{formikContext:!0,id:"selectAllTenant",onChange:function(e,i){return a(null!==t&&void 0!==t?t:[],i)}}),label:n.a.createElement(u.Typography,{variant:"body1"},"Select All Tenants"),labelPlacement:"end"})),n.a.createElement(u.Grid,{item:!0,xs:6,alignment:"center-right",key:"button"},n.a.createElement(u.Button,{size:"small",color:"primary",variant:"text",type:"reset",onClick:function(){i()}},"Reset")),p&&p.length>0&&n.a.createElement(u.Grid,{item:!0,lg:3,md:4,xs:12},n.a.createElement(u.Widget,null,n.a.createElement(u.Box,{ml:2},n.a.createElement(Ih.a,{icon:n.a.createElement(u.SystemIcon,{icon:"Tenants",type:"duotone"}),action:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return a(p,!0)}},"Select All")),title:"Demo"}),n.a.createElement(Sh.a,{dense:!0},n.a.createElement(u.List,{hover:!0},p&&p.map((function(e){var t=e.tenantId,i=e.name,r=e.hostName;return t&&n.a.createElement(u.ListItem,{key:t,dense:!0,alignItems:"flex-start"},n.a.createElement(u.Box,{mt:1,flex:1},n.a.createElement(u.Typography,{variant:"body1"},i)),n.a.createElement(u.Box,{alignContent:"center"},n.a.createElement(u.Checkbox,{formikContext:!0,id:"tenantListForm.".concat(r),onChange:function(e,t){return s(t)}})))}))))))),m&&m.length>0&&n.a.createElement(u.Grid,{item:!0,lg:3,md:4,xs:12},n.a.createElement(u.Widget,null,n.a.createElement(u.Box,{ml:2},n.a.createElement(Ih.a,{icon:n.a.createElement(u.SystemIcon,{icon:"Tenants",type:"duotone"}),action:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return a(m,!0)}},"Select All")),title:"Training"}),n.a.createElement(Sh.a,{dense:!0},n.a.createElement(u.List,{hover:!0},m&&m.map((function(e){var t=e.tenantId,i=e.name,r=e.hostName;return t&&n.a.createElement(u.ListItem,{key:t,dense:!0,alignItems:"flex-start"},n.a.createElement(u.Box,{mt:1,flex:1},n.a.createElement(u.Typography,{variant:"body1"},i)),n.a.createElement(u.Box,{alignContent:"center"},n.a.createElement(u.Checkbox,{formikContext:!0,id:"tenantListForm.".concat(r),onChange:function(e,t){return s(t)}})))}))))))),y&&y.length>0&&n.a.createElement(u.Grid,{item:!0,lg:3,md:4,xs:12},n.a.createElement(u.Widget,null,n.a.createElement(u.Box,{ml:2},n.a.createElement(Ih.a,{icon:n.a.createElement(u.SystemIcon,{icon:"Tenants",type:"duotone"}),action:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return a(y,!0)}},"Select All")),title:"Client"}),n.a.createElement(Sh.a,{dense:!0},n.a.createElement(u.List,{hover:!0},y&&y.map((function(e){var t=e.tenantId,i=e.name,r=e.hostName;return t&&n.a.createElement(u.ListItem,{key:t,dense:!0,alignItems:"flex-start"},n.a.createElement(u.Box,{mt:1,flex:1},n.a.createElement(u.Typography,{variant:"body1"},i)),n.a.createElement(u.Box,{alignContent:"center"},n.a.createElement(u.Checkbox,{formikContext:!0,id:"tenantListForm.".concat(r),onChange:function(e,t){return s(t)}})))}))))))))),n.a.createElement(vh.WizardDialogFooter,{buttons:"custom"},n.a.createElement(u.Grid,{container:!0,justify:"center",spacing:"form"},n.a.createElement(u.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(u.Button,{onClick:function(){return l(1)},variant:"outlined",color:"default"},"Back")),n.a.createElement(u.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},n.a.createElement(u.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",disabled:!e.dirty},"Finish")))))})),n.a.createElement(u.Backdrop,{open:void 0===t},n.a.createElement(u.CircularProgress,{color:"secondary"})))})),jh=Object(c.b)(null,(function(){return{}}))((function(e){var t=e.open,i=e.onClose,r=e.licenses,s=Object(a.useState)(void 0),o=Object(y.a)(s,2),c=o[0],l={setSelectedLicenses:o[1],selectedLicenses:c};return n.a.createElement(mh.Provider,{value:l},n.a.createElement(ph.a,{open:t,onClose:i,fullScreen:!0,steps:[{label:"Select Licenses",component:n.a.createElement(Oh,{onClose:i,licenses:r})},{label:"Select Tenants",component:n.a.createElement(Ah,{onClose:i})}],retainStepOnClose:!0},n.a.createElement(vh.WizardDialogHeader,{titleBar:{title:"Recalculate"}}),n.a.createElement(vh.WizardDialogStepContent,null)))})),Ch=th(Object(c.b)((function(e){return{tenants:e.tenants.tenants,selectedTenant:e.tenants.selectedTenant,tenantGroups:e.tenants.groups}}),(function(e){return{getTenants:function(){return e(xu())},getTenant:function(t){return e(function(e){return function(t){t(Eu(null)),$d.getTenant(e).then((function(e){t(Eu(e))})).catch((function(e){t(Su({message:e.detail,variant:"error"}))}))}}(t))},syncTenant:function(t){return e(function(e){return function(t){$d.runMigration(e).then((function(){t(Su({message:"Sync Successful",variant:"success"}))})).catch((function(e){t(Su({message:e.detail,variant:"error"}))}))}}(t))},saveTenant:function(t){return e(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,i){var r=i().tenants.selectedTenant;return(e?$d.createTenant(Y.fromJS(r)):$d.updateTenant(Ge.fromJS(r))).then((function(e){return t(Su({message:"Save successful",variant:"success"})),t(xu()),t(Eu(e)),e})).catch((function(e){throw t(Su({message:e.message||e.detail,variant:"error"})),e.message}))}}(t))},setSelectedTenant:function(t){return e(ku(t))},confirmDelete:function(t){return e(Ku(t))},confirmSync:function(t){return e(Ku(t))},updateFirm:function(t,i,r,a){return e(function(e,t,i,r){return function(){return du.update(void 0,new Fn({name:e,industryId:t,isFromMM:!0,firmGroupId:i,renewalDate:r}))}}(t,i,r,a))},getTenantLoginInfo:function(t){return e(function(e){return function(t){return t(wu(null)),du.getTenantLoginEnabled(e,void 0).then((function(e){return e})).catch((function(e){return t(Su({message:e.error,variant:"error"})),null}))}}(t))},getCognitoAuthUrl:function(t){return e(function(e){return function(t){return $d.getTenantSetting(e).then((function(e){return e.url})).catch((function(e){return t(Su({message:e.error,variant:"error"})),null}))}}(t))},getTenantGroups:function(){return e(Fu())},getLicenses:function(t){return e(Ou(t))}}}))((function(e){var t=e.confirmDelete,i=e.getTenants,r=e.saveTenant,s=e.setSelectedTenant,o=e.syncTenant,c=e.tenants,l=e.history,d=e.updateFirm,h=e.getTenantLoginInfo,f=e.getCognitoAuthUrl,v=e.getTenantGroups,p=e.tenantGroups,m=e.getLicenses,b=Object(a.useState)(!1),S=Object(y.a)(b,2),g=S[0],I=S[1],O=Object(a.useState)(""),A=Object(y.a)(O,2),j=A[0],C=A[1],P=Object(a.useState)(!1),E=Object(y.a)(P,2),w=E[0],k=E[1],T=Object(a.useState)(!1),N=Object(y.a)(T,2),J=N[0],D=N[1],L=Object(a.useState)(!1),U=Object(y.a)(L,2),R=U[0],x=U[1],F=Object(a.useState)(),M=Object(y.a)(F,2),G=M[0],B=M[1],q=Object(a.useState)(),V=Object(y.a)(q,2),W=V[0],z=V[1],H=Object(a.useState)(!1),$=Object(y.a)(H,2),_=$[0],Y=$[1],Q=Object(a.useState)(void 0),K=Object(y.a)(Q,2),Z=K[0],X=K[1],ee=He(le.ViewTenants),te=He(le.CreateTenant),ie=He(le.ManageTenants),re=He(le.SyncTenants);Object(a.useEffect)((function(){ee&&(null===c||void 0===c)&&i()}),[ee,i,c]),Object(a.useEffect)((function(){v()}),[v]),Object(a.useEffect)((function(){var e,t=null===c||void 0===c?void 0:c.filter((function(e){var t;return null===(t=e.name)||void 0===t?void 0:t.toLowerCase().includes(j.toLowerCase())}));G&&G.length>0&&(t=null===(e=t)||void 0===e?void 0:e.filter((function(e){return G.some((function(t){return Number(t)===e.tenantGroupId}))})));z(t)}),[c,j,G]),Object(a.useEffect)((function(){var e=null===c||void 0===c?void 0:c.find((function(e){return"micron"===e.hostName}));if(void 0!==e){s(e);var t=new Ni({sortBy:"name",page:1,pageSize:-1});m(t).then((function(e){X(e.licenses)}))}}),[m,s,c]);var ae=function(e){s(e),l.push("tenants/details")},ne=[{Header:"Name",accessor:"name",Cell:function(e){var t=e.row,i=e.cell,r=t.original;return n.a.createElement(u.Link,{onClick:function(e){e.stopPropagation(),ae(r)}},i.value)}},{Header:"Status",accessor:"tenantStatus",Cell:function(e){var t=e.cell;return n.a.createElement(u.Chip,{variant:"outlined",label:1===t.value?"Active":"Inactive",size:"small",color:t.value?"primary":"secondary"})}},{Header:"Industry",accessor:"industry.name"},{Header:"Hostname",accessor:"hostName"},{Header:"Applications",accessor:"tenantApp",Cell:function(e){var t=e.row,i=e.cell,r=t.original,a=i.value;return n.a.createElement(u.Row,null,a&&a.map((function(e){return n.a.createElement(u.Box,{mr:1,key:"app-".concat(e.app.code)},n.a.createElement(u.Avatar,{variant:"rounded"},n.a.createElement(u.Link,{onClick:function(t){t.stopPropagation(),function(e,t){var i;s(e),"cem"===(null===(i=t.app)||void 0===i?void 0:i.code)?(x(!0),h(e.hostName).then((function(e){null===e||e?(x(!1),window.open("".concat(window.location.protocol,"//").concat(t.adminUrl),"_blank")):f(t.adminUrl).then((function(e){x(!1),window.open("https://".concat(e,"/login?client_id=").concat(t.adminClientId,"&response_type=code&scope=email+openid&redirect_uri=https://").concat(t.adminUrl,"/login"),"_blank")}))}))):window.open("".concat(window.location.protocol,"//").concat(t.adminUrl),"_blank")}(r,e)}},e.app.code.substring(0,2).toUpperCase())))})))}},{Header:"Database Group",accessor:"tenantGroup.name"},{Header:"Actions",accessor:"tenantId",Cell:function(e){var i=e.row.original;return n.a.createElement(fh,{menu:[{label:"Edit",icon:n.a.createElement(u.SystemIcon,{icon:"Edit"}),onClick:function(){return ae(i)},visible:!ie},{label:"Sync",icon:n.a.createElement(u.SystemIcon,{icon:"Sync"}),onClick:function(){return function(e){var i=e&&e.tenantId?e.tenantId:0;t({message:"This will run a migration of the firms database. Would you like to proceed?",title:"Sync Database",OnConfirm:function(){return o(i)}})}(i)},visible:!re}]})}}];return n.a.createElement(u.Screen,{maxWidth:!1,titleBar:{actionRow:(ie||!te)&&n.a.createElement(u.Row,null,n.a.createElement(u.TextField,{formikContext:!1,onChange:function(e){var t;return C(null!==(t=e.target.value)&&void 0!==t?t:"")},label:""===j?"Enter firm name":"",type:"text",size:"small",value:j}),n.a.createElement(u.Button,{variant:"contained",color:"primary",size:"small",onClick:function(){return s(new ke),I(!0),void D(!0)},disabled:!te},"Add Tenant"),n.a.createElement(u.Button,{variant:"contained",color:"primary",size:"small",onClick:function(){return Y(!0)},disabled:!ee&&!ie||void 0===Z||0===(null===Z||void 0===Z?void 0:Z.length)},"Recalculate Tenant"))}},n.a.createElement(Ye,{displayUnauthorized:!0,permissionSet:le.ViewTenants},n.a.createElement(ah.a,{columns:ne,data:W,loading:null===c,withRowSelection:!0,onRowClick:function(e){var t;t=e.original,ie&&(s(t),D(!1),I(!0))},tableActions:n.a.createElement(u.Grid,{container:!0,spacing:"form",alignItems:"flex-start"},n.a.createElement(u.Grid,{item:!0,key:"DatabaseGroup"},n.a.createElement(u.SelectField,{fullWidth:!0,startAdornment:"Database Group:",id:"databaseGroup",value:G||[],onChange:function(e){var t;t=e.target.value,B(null!==t&&void 0!==t?t:[])},dense:!0,multiple:!0,formikContext:!1},p&&p.map((function(e){return n.a.createElement(u.MenuItem,{value:e.tenantGroupId},e.name)})))))},g&&n.a.createElement(hh,{addMode:J,saving:w,open:g,onClose:function(){return I(!1)},onSave:function(){return k(!0),void r(J).then((function(e){I(!1),J||d(e.name,e.industryId,e.tenantGroupId,e.renewalDate)})).finally((function(){k(!1)}))}}))),n.a.createElement(u.Backdrop,{open:R},n.a.createElement(u.CircularProgress,{color:"secondary"})),_&&n.a.createElement(jh,{open:_,onClose:function(){return Y(!1)},licenses:Z}))}))),Ph=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\s+/," ").split(" ").slice(0,2).map((function(e){return e&&e[0].toUpperCase()})).join("")},Eh=Object(c.b)((function(e){return{tenants:e.tenants.tenants,roles:e.roles.roles,selectedUser:e.users.selectedUser}}),(function(e){return{getTenants:function(){return e(xu())},setSelectedUser:function(t){return e(Gu(t))},resetUserPassword:function(){return e((function(e,t){var i=t().users.selectedUser;return _d.resetMicronUserPassword(i.userName).then((function(){e(Su({message:"User password reset successful",variant:"success"})),e(Bu())})).catch((function(t){throw e(Su({message:t.detail,variant:"error"})),t.detail}))}))}}}))((function(e){var t,i,r,s,o=e.selectedUser,c=e.setSelectedUser,l=e.addMode,d=e.open,h=e.onSave,f=e.onClose,v=e.resetUserPassword,p=e.roles,m=e.saving,b=Object(a.useState)(!1),S=Object(y.a)(b,2),g=S[0],I=S[1],O=He(le.ManageUserRoles);Object(a.useEffect)((function(){I(!o)}),[o,I]);var A={initialValues:{userName:o&&o.userName,email:o&&(null===o||void 0===o||null===(t=o.attributes)||void 0===t||null===(i=t.find((function(e){return"email"===e.name})))||void 0===i?void 0:i.value),phoneNumber:o&&(null===o||void 0===o||null===(r=o.attributes)||void 0===r||null===(s=r.find((function(e){return"phone_number"===e.name})))||void 0===s?void 0:s.value),userRoles:o&&function(e){var t=Array();return e&&e.forEach((function(e){p&&p.forEach((function(i){e.roleId===i.roleId&&t.push(i)}))})),t}(null===o||void 0===o?void 0:o.userRoles),enabled:o&&(null===o||void 0===o?void 0:o.enabled),enableMFASMS:o&&"SMS_MFA"===(null===o||void 0===o?void 0:o.preferredMfaSetting)},validationSchema:Object(dh.object)().shape({userName:Object(dh.string)().required("Required").max(100,"Too long!"),email:Object(dh.string)().required("Required").email("Invalid email address"),phoneNumber:Object(dh.string)(),userRoles:Object(dh.array)().notRequired(),enableMFASMS:Object(dh.boolean)()}),onSubmit:function(e,t){var i=e.email,r=e.enabled,a=e.enableMFASMS,n=e.phoneNumber,s=e.userName,l=e.userRoles,d=Array(),u=Array();l&&l.forEach((function(e){var t=new ce({name:e.name,userName:s,roleId:e.roleId});d.push(t)})),u.push(new x({name:"email",value:i})),u.push(new x({name:"phone_number",value:n})),c(Object(yd.a)(Object(yd.a)({},o),{},{userName:s,userRoles:d,enabled:r,preferredMfaSetting:a?"SMS_MFA":"",attributes:u})),h(),t.setSubmitting(!1)}};return n.a.createElement(u.SideDrawer,{size:"sm",open:d,onClose:f},n.a.createElement(lh.Formik,{initialValues:A.initialValues,validationSchema:A.validationSchema,onSubmit:A.onSubmit,enableReinitialize:!0},(function(e){var t=e.dirty;return n.a.createElement(u.Form,{id:"edit-user",formikContext:!0},n.a.createElement(oh.SideDrawerHeader,{titleBar:{title:l?"Add User":"Edit User"}}),n.a.createElement(oh.SideDrawerBody,null,n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{loading:g,formikContext:!0,required:!0,fullWidth:!0,id:"userName",label:"User Name"})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{loading:g,fullWidth:!0,formikContext:!0,id:"email",label:"Email"})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{loading:g,formikContext:!0,fullWidth:!0,id:"phoneNumber",label:"Phone Number"})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(sh.a,{loading:g,formikContext:!0,fullWidth:!0,multiple:!0,id:"userRoles",label:"Roles",options:p||[],disabled:!O})),n.a.createElement(u.Grid,{item:!0,xs:12},g?n.a.createElement(u.Skeleton,{variant:"rect"}):n.a.createElement(u.CheckboxField,{formikContext:!0,id:"enableMFASMS",label:"Enable SMS MFA"})),n.a.createElement(u.Grid,{item:!0,xs:12},g?n.a.createElement(u.Skeleton,{variant:"rect"}):n.a.createElement(u.CheckboxField,{formikContext:!0,id:"enabled",label:"Enabled"})),!l&&n.a.createElement(u.Grid,{item:!0,xs:12},g?n.a.createElement(u.Skeleton,{variant:"rect"}):n.a.createElement(u.Button,{color:"primary",variant:"text",onClick:function(){v()}},"Reset User Password")))),n.a.createElement(oh.SideDrawerFooter,null,n.a.createElement(u.Button,{loading:m,color:"primary",variant:"contained",type:"submit",disabled:!t},"Save"),n.a.createElement(u.Button,{color:"default",type:"reset",onClick:function(){f()},variant:"outlined"},"Cancel")))})))})),wh=th(Object(c.b)((function(e){return{users:e.users.users,selectedUser:e.users.selectedUser}}),(function(e){return{getUsers:function(){return e(Bu())},getUserAsync:function(t){return e(function(e){return function(t){t(Gu(null)),_d.getMicronUser(e).then((function(e){t(Gu(e))})).catch((function(e){t(Su({message:e.detail,variant:"error"}))}))}}(t))},setSelectedUser:function(t){return e(Gu(t))},saveUser:function(t){return e(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,i){var r,a=i().users.selectedUser;if(e){var n,s,o,c,l=$.fromJS(a);l.email=null===(n=a.attributes)||void 0===n||null===(s=n.find((function(e){return"email"===e.name})))||void 0===s?void 0:s.value,l.phoneNumber=null===(o=a.attributes)||void 0===o||null===(c=o.find((function(e){return"phone_number"===e.name})))||void 0===c?void 0:c.value,l.enableMFASMS="SMS_MFA"===(null===a||void 0===a?void 0:a.preferredMfaSetting),r=_d.createMicronUser(l)}else{var d,u,h,f,v=Fe.fromJS(a);v.email=null===(d=a.attributes)||void 0===d||null===(u=d.find((function(e){return"email"===e.name})))||void 0===u?void 0:u.value,v.phoneNumber=null===(h=a.attributes)||void 0===h||null===(f=h.find((function(e){return"phone_number"===e.name})))||void 0===f?void 0:f.value,v.enableMFASMS="SMS_MFA"===(null===a||void 0===a?void 0:a.preferredMfaSetting),r=_d.updateMicronUser(v)}return r.then((function(){t(Su({message:"Save successful",variant:"success"})),t(Bu())})).catch((function(e){throw t(Su({message:e.detail,variant:"error"})),e.detail}))}}(t))},deleteUser:function(t){return e(function(e){return function(t){_d.deleteMicronUser(e).then((function(){t(Su({message:"Delete Successful",variant:"success"})),t(Bu())})).catch((function(e){t(Su({message:e.detail,variant:"error"}))}))}}(t))},confirmDelete:function(t){return e(Ku(t))}}}))((function(e){var t=e.getUsers,i=e.getUserAsync,r=e.saveUser,s=e.setSelectedUser,o=e.users,c=e.confirmDelete,l=e.deleteUser,d=Object(a.useState)(!1),h=Object(y.a)(d,2),f=h[0],v=h[1],p=Object(a.useState)(!1),m=Object(y.a)(p,2),b=m[0],S=m[1],g=Object(a.useState)(!1),I=Object(y.a)(g,2),O=I[0],A=I[1],j=He(le.ViewUsers),C=He(le.CreateUser),P=He(le.ManageUsers),E=He(le.DeleteUsers);Object(a.useEffect)((function(){j&&t()}),[j,t]);var w=function(e){if(P){var t=e.userName;i(t),v(!0),S(!1)}},k=[{Header:"Username",accessor:"userName",Cell:function(e){var t,i,r=e.row,a=(e.cell,r.original),s=null===a||void 0===a||null===(t=a.attributes)||void 0===t||null===(i=t.find((function(e){return"email"===e.name})))||void 0===i?void 0:i.value;return n.a.createElement(u.DetailList,{avatarText:"".concat(Ph(a.userName)),name:a.userName,description:s,onClick:function(){return w(a)}})}},{Header:"Active",accessor:"enabled",Cell:function(e){var t=e.cell;return n.a.createElement(u.Chip,{variant:"outlined",label:t.value?"Active":"Inactive",size:"small",color:t.value?"primary":"secondary"})}},{Header:"Status",accessor:"userStatus"},{Header:"Phone",accessor:"phoneNumber",Cell:function(e){var t=e.row.original.attributes.find((function(e){return"phone_number"===e.name}));return n.a.createElement(n.a.Fragment,null,t?t.value:"-")}},{Header:"Phone Verified",Cell:function(e){var t=e.row.original.attributes.find((function(e){return"phone_number_verified"===e.name}));return n.a.createElement(u.SystemIcon,{icon:t&&t.value?"Check":"Cancel",size:"xs"})}},{Header:"Email Verified",Cell:function(e){var t=e.row.original.attributes.find((function(e){return"email_verified"===e.name}));return n.a.createElement(u.SystemIcon,{icon:t&&t.value?"Check":"Cancel",size:"xs"})}},{Header:"Actions",accessor:"name",Cell:function(e){var t=e.row.original;return n.a.createElement(fh,{menu:[{label:"Edit",icon:n.a.createElement(u.SystemIcon,{icon:"Edit"}),onClick:function(){return w(t)},visible:!P},{label:"Delete",icon:n.a.createElement(u.SystemIcon,{icon:"Delete"}),onClick:function(){return e=t.userName,void c({message:"Are you sure you want to delete this user?",title:"Confirm Delete",OnConfirm:function(){return l(e)}});var e},visible:!E}]})}}];return n.a.createElement(u.Screen,{titleBar:{actionRow:(P||!C)&&n.a.createElement(u.Button,{variant:"contained",color:"primary",onClick:function(){return s({}),v(!0),void S(!0)},startIcon:n.a.createElement(u.SystemIcon,{icon:"Add",size:"sm"}),disabled:!C},"Add User")}},n.a.createElement(Ye,{displayUnauthorized:!0,permissionSet:le.ViewUsers},n.a.createElement(ah.a,{loading:null==o,columns:k,data:o,withRowSelection:!0,onRowClick:function(e){return w(e.original)}},f&&n.a.createElement(Eh,{saving:O,addMode:b,open:f,onClose:function(){v(!1)},onSave:function(){return A(!0),void r(b).then((function(){v(!1)})).finally((function(){A(!1)}))}}))))}))),kh=function(){var e=[{path:"/Admin",title:"Admin",description:"Admin Settings",component:n.a.createElement("h1",null,"Under Construction")}];return n.a.createElement(u.ScreenCollection,{screens:e})},Th=i(425),Nh=Object(l.o)((function(){return n.a.createElement(u.Card,null,n.a.createElement(u.CardContent,null,n.a.createElement(u.Typography,{variant:"h5",paragraph:!0},"Brand Themes"),n.a.createElement(u.Grid,{container:!0,spacing:"card"},Object(Th.map)(h.Micron,(function(e){return n.a.createElement(u.Grid,{item:!0,xs:12,md:6,lg:4,stretchContent:!0,key:"theme-preview-branding-".concat(e.name)},n.a.createElement(u.ThemePreview,{theme:e}))})))))})),Jh=function(){var e=[{path:"/themes",title:"Themes",description:"Apply Themes",component:Nh},{path:"/notifications",title:"Notifications",description:"Set up notifications",component:n.a.createElement("h1",null,"Under construction")}];return n.a.createElement(u.ScreenCollection,{screens:e})},Dh=i(439),Lh=i.n(Dh),Uh=i(84),Rh=i.n(Uh),xh=function(e){return{logs:e.logs.logs}},Fh=function(e){return{getLogs:function(){return e((function(e){e({type:"GET_LOGS_REQUEST"}),Qd.getAllAuditLog(X.fromJS({pageSize:-1})).then((function(t){e({type:"GET_LOGS_SUCCESS",payload:t.auditLogs})})).catch((function(t){e({type:"GET_LOGS_FAILED",payload:[]}),e(Su({message:t.detail,variant:"error"}))}))}))}}},Mh=(Object(c.b)(xh,Fh),th(Object(c.b)(xh,Fh)((function(e){var t=e.getLogs,i=e.logs;Object(a.useEffect)((function(){t()}),[t]);var r=[{Header:"Log Id",accessor:"auditId"},{Header:"Batch Id",accessor:"batchId"},{Header:"Table Name",accessor:"tableName"},{Header:"Date",accessor:"dateTime",Cell:function(e){var t=e.cell;return Rh()(t.value).format("MMM DD, YYYY, hh:mm:ss a")}},{Header:"UserName",accessor:"micronUserName"},{Header:"Page",accessor:"page"},{Header:"Endpoint",accessor:"endpoint"},{Header:"Mode",accessor:"mode"}];return n.a.createElement(u.Screen,null,n.a.createElement(u.DataTable,{loading:null===i,columns:r,data:i}))})))),Gh=Object(c.b)((function(e){return{emails:e.logs.emails}}),(function(e){return{getEmails:function(){return e((function(e){e({type:"GET_EMAILS_REQUEST"}),Kd.getAllEmailMessage(ee.fromJS({pageSize:-1})).then((function(t){e({type:"GET_EMAILS_SUCCESS",payload:t.emailMessages})})).catch((function(t){e({type:"GET_EMAILS_FAILED",payload:[]}),e(Su({message:t.detail,variant:"error"}))}))}))}}}))((function(e){var t=e.getEmails,i=e.emails;Object(a.useEffect)((function(){t()}),[t]);var r=[{Header:"Subject",accessor:"subject"},{Header:"From",accessor:"fromEmail"},{Header:"To",accessor:"toEmail"},{Header:"CC",accessor:"ccEmail"},{Header:"Status",accessor:"status"},{Header:"Created Date",accessor:"createdDate",Cell:function(e){return Rh()(e.value).format("MMM DD, YYYY, hh:mm:ss a")}},{Header:"Sent Date",accessor:"sentDate",Cell:function(e){return void 0===e.value?"":Rh()(e.value).format("MMM DD, YYYY, hh:mm:ss a")}}];return n.a.createElement(u.Screen,null,n.a.createElement(ah.a,{loading:null===i,columns:r,data:i}))})),Bh=function(){var e=[{path:"/audit",title:"Audit",description:"Audit Logs",component:Mh},{path:"/email",title:"Email",description:"Email Logs",component:Gh}];return n.a.createElement(Lh.a,{screens:e})},qh=i(216),Vh=function(){return function(e){return e(wu(null)),bu.getMMFirmSettings("v1").then((function(t){return e(wu(t)),t})).catch((function(t){return e(Su({message:t.error,variant:"error"})),null}))}},Wh=Object(c.b)((function(e){return{selectedTenant:e.tenants.selectedTenant}}),(function(e){return{addCemUser:function(t){return e(function(e){return function(t){return ru.create(void 0,ti.fromJS(e)).then((function(e){return e})).catch((function(e){throw e}))}}(t))},addLcUser:function(t){return e(function(e){return function(t){return yu.createTenantUser(void 0,Sl.fromJS(e)).then((function(e){return e})).catch((function(e){throw e}))}}(t))},getAppList:function(t){return e(function(e){return function(t){return $d.getTenantApps(e).then((function(e){if(e&&e.tenantApps)return e.tenantApps.filter((function(e){return 0!==e.tenantAppId})).map((function(e){var t;return{name:null===(t=e.app)||void 0===t?void 0:t.name,appId:e.appId}}))})).catch((function(e){t(Su({message:e.error,variant:"error"}))}))}}(t))}}}))((function(e){var t,i,r,s,o,c,l,d,h=e.open,f=e.onClose,v=e.onSave,p=e.addCemUser,m=e.getAppList,b=e.selectedTenant,S=e.addLcUser,g=Object(a.useState)(void 0),O=Object(y.a)(g,1)[0],A=Object(u.useSnackbar)(),j=Object(a.useState)(),C=Object(y.a)(j,2),P=C[0],E=C[1],w=Object(a.useState)(void 0),k=Object(y.a)(w,2),T=k[0],N=k[1];Object(a.useEffect)((function(){var e;b&&m(null!==(e=b.tenantId)&&void 0!==e?e:0).then((function(e){N(e)}))}),[m,b]);var J=function(){var e=Object(ot.a)(st.a.mark((function e(t,i){var r,a,n;return st.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[{roleId:1}],a=[{roleId:12}],e.next=4,new Promise((function(e,n){if(1===t.appId)p(Object(yd.a)(Object(yd.a)({},i),{},{locationId:-1,userRole:r})).then((function(t){e(t)})).catch((function(t){e(t),E(t)}));else if(2===t.appId){var s,o=new Ul({email:null!==(s=null===i||void 0===i?void 0:i.email)&&void 0!==s?s:"",order:1,emailType:bc.Work,userEmailId:0});S(Object(yd.a)(Object(yd.a)({},i),{},{emails:[o],employeeId:i.personnelId,locationId:-1,roles:a})).then((function(t){e(t)})).catch((function(t){e(t),E(t)}))}})).then((function(){return t})).catch((function(e){}));case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}(),D=function(){var e=Object(ot.a)(st.a.mark((function e(t,i){var r,a,n,s,o;return st.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],a=Object(I.a)(t),e.prev=2,a.s();case 4:if((n=a.n()).done){e.next=12;break}return s=n.value,e.next=8,J(s,i);case 8:o=e.sent,r.push(o);case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),a.e(e.t0);case 17:return e.prev=17,a.f(),e.finish(17);case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,null,[[2,14,17,20]])})));return function(t,i){return e.apply(this,arguments)}}(),L={initialValues:{userId:null!==(t=null===O||void 0===O?void 0:O.userId)&&void 0!==t?t:"",personnelId:null!==(i=null===O||void 0===O?void 0:O.personnelId)&&void 0!==i?i:"",firstName:null!==(r=null===O||void 0===O?void 0:O.firstName)&&void 0!==r?r:"",middleName:null!==(s=null===O||void 0===O?void 0:O.middleName)&&void 0!==s?s:"",lastName:null!==(o=null===O||void 0===O?void 0:O.lastName)&&void 0!==o?o:"",email:null!==(c=null===O||void 0===O?void 0:O.email)&&void 0!==c?c:"",userName:null!==(l=null===O||void 0===O?void 0:O.userName)&&void 0!==l?l:"",userType:null!==(d=null===O||void 0===O?void 0:O.userType)&&void 0!==d?d:1,portalAccessEnabled:!0,appId:null},validationSchema:Object(dh.object)().shape({firstName:Object(dh.string)().required("Required").max(100,"First Name is too long!"),middleName:Object(dh.string)().nullable().max(100,"Middle Name is too long!"),lastName:Object(dh.string)().required("Required").max(100,"Last Name is too long!"),email:Object(dh.string)().required("Required").email("Invalid email address").max(100,"Email is too long!"),userName:Object(dh.string)().when("portalAccessEnabled",{is:"1",then:Object(dh.string)().required("Required").max(128,"Username is too long!"),otherwise:Object(dh.string)().max(128,"Username is too long!")}),userTypeId:Object(dh.number)().positive("Required"),portalAccessEnabled:Object(dh.boolean)(),appId:Object(dh.array)().nullable().required("Required")}),onSubmit:function(){var e=Object(ot.a)(st.a.mark((function e(t,i){var r;return st.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((r=t.appId)&&r.length>0)){e.next=8;break}return e.next=4,D(r,t);case 4:i.setSubmitting(!0),A("".concat(t.firstName," ").concat(t.lastName," successfully added"),"success"),f(),v();case 8:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()};return n.a.createElement(Xu.a,{open:h,maxWidth:"md",fullWidth:!0},n.a.createElement(Zu.DialogHeader,{colorMode:"dark",id:"alert-dialog-title",titleBar:{title:"Add User",onClose:f}}),n.a.createElement(lh.Formik,{initialValues:L.initialValues,validationSchema:L.validationSchema,onSubmit:L.onSubmit,enableReinitialize:!0},(function(e){return n.a.createElement(u.Form,{id:"add-user",formikContext:!0},n.a.createElement(Zu.DialogBody,null,n.a.createElement(u.Grid,{container:!0,spacing:"form"},P&&n.a.createElement(u.Grid,{item:!0,lg:12,md:12,sm:12,xs:12},n.a.createElement(u.Alert,{variant:"filled",type:"error",onClose:function(){return E(void 0)}},JSON.stringify(P))),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,sm:12,xs:12},n.a.createElement(u.TextField,{id:"userName",formikContext:!0,label:"Login ID",type:"text",fullWidth:!0,required:!0})),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,sm:12,xs:12},n.a.createElement(u.TextField,{id:"email",formikContext:!0,label:"Email",type:"text",fullWidth:!0,required:!0})),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,sm:12,xs:12},n.a.createElement(u.TextField,{id:"personnelId",formikContext:!0,label:"PersonnelId",type:"text",fullWidth:!0,required:!0})),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,sm:12,xs:12},n.a.createElement(u.ComboBox,{loading:!T,formikContext:!0,fullWidth:!0,id:"appId",label:"Application",multiple:!0,options:T||[],required:!0})),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,sm:12,xs:12},n.a.createElement(u.TextField,{id:"firstName",formikContext:!0,label:"First Name",type:"text",fullWidth:!0,required:!0})),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,sm:12,xs:12},n.a.createElement(u.TextField,{id:"lastName",formikContext:!0,label:"Last Name",type:"text",fullWidth:!0,required:!0})),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,sm:12,xs:12},n.a.createElement(u.TextField,{id:"middleName",formikContext:!0,label:"Middle Name",type:"text",fullWidth:!0})))),n.a.createElement(Zu.DialogFooter,null,n.a.createElement(u.Button,{onClick:function(){return f()},variant:"text",color:"default"},"Close"),n.a.createElement(u.Button,{type:"submit",loading:e.isSubmitting||!T,color:"primary",variant:"contained",autoFocus:!0},"Save")))})))})),zh=i(124),Hh=i.n(zh),$h=function(e){return function(t){var i=t.children;return n.a.createElement(Hh.a,null,n.a.createElement(e,t,i))}},_h=Object(c.b)((function(e){return{selectedTenant:e.tenants.selectedTenant}}),(function(e){return{getUsers:function(t){return e(Iu(t))},getLcUsers:function(t){return e(function(e){return function(t){var i=new ld({filterBy:[],searchCriteria:["Active"],sortBy:"lastName",page:1,pageSize:10});return yu.getAll(void 0,e?ld.fromJS(e):i).then((function(e){return e})).catch((function(e){throw t(gu(e)),e.message}))}}(t))}}})),Yh={filterBy:[],searchCriteria:["UserStatus: 1"],sortBy:"lastName",page:1,pageSize:10},Qh={filterBy:[],searchCriteria:[],sortBy:"lastName",page:1,pageSize:10},Kh=$h(_h((function(e){var t,i,r,s,o=e.getUsers,c=e.getLcUsers,l=e.selectedTenant,d=Object(a.useState)(!1),h=Object(y.a)(d,2),f=h[0],v=h[1],p=Object(a.useState)(),m=Object(y.a)(p,2),b=m[0],S=m[1],g=Object(a.useState)(),I=Object(y.a)(g,2),O=I[0],A=I[1],j=Object(a.useState)("1"),C=Object(y.a)(j,2),P=C[0],E=C[1],w=Object(a.useState)(Yh),k=Object(y.a)(w,2),T=k[0],N=k[1],J=Object(a.useState)(Yh),D=Object(y.a)(J,2),L=D[0],U=D[1],R=Object(a.useState)(!1),x=Object(y.a)(R,2),F=x[0],M=x[1],G=Object(a.useCallback)((function(e){S(void 0),o(e).then((function(e){S(e)}))}),[o]),B=Object(a.useCallback)((function(e){A(void 0),c(e).then((function(e){A(e)}))}),[c]);Object(a.useEffect)((function(){var e;l&&M(1===(null===(e=l.tenantApp)||void 0===e?void 0:e.length)&&2===l.tenantApp[0].appId)}),[l]),Object(a.useEffect)((function(){var e;l&&(1===(null===(e=l.tenantApp)||void 0===e?void 0:e.length)&&2===l.tenantApp[0].appId?B(T):G(T))}),[T,G,B,l]),Object(a.useEffect)((function(){var e,t=null===T||void 0===T||null===(e=T.filterBy)||void 0===e?void 0:e.find((function(e){return e.includes("FirstName[contains]")}));s&&(s.value=void 0===t?"":null===t||void 0===t?void 0:t.substring(t.indexOf(":")+1))}),[s,T]);var q=[{Header:"Name",accessor:"lastName",Cell:function(e){var t=e.row.original,i=t;return n.a.createElement(u.DetailList,{avatarText:"".concat(Ph(i.firstName)).concat(Ph(i.lastName)),name:"".concat(i.firstName," ").concat(i.lastName),description:i.email})}},{Header:"Active",accessor:"inactiveDate",Cell:function(e){var t=e.row.original,i=t;return n.a.createElement(u.Chip,{variant:"outlined",label:void 0===i.inactiveDate?"Active":"Inactive",size:"small",color:void 0===i.inactiveDate?"primary":"secondary"})}},{Header:"Roles",accessor:"value"}],V=Object(qh.useDebounce)((function(e){""!==e?F?U(Object(yd.a)(Object(yd.a)({},T),{},{page:1,filterBy:["FirstName[contains]:".concat(e)]})):N(Object(yd.a)(Object(yd.a)({},T),{},{page:1,filterBy:["FirstName[contains]:".concat(e)]})):F?U(Object(yd.a)(Object(yd.a)({},T),{},{page:1,filterBy:[]})):N(Object(yd.a)(Object(yd.a)({},T),{},{page:1,filterBy:[]}))}),500),W=function(){E("1"),F?L===Qh?B(Qh):U(Qh):T===Yh?G(Yh):N(Yh)},z="1"!==P;return n.a.createElement(u.Screen,{maxWidth:!1,titleBar:{title:"".concat(null===l||void 0===l?void 0:l.name,": Users"),actionRow:n.a.createElement(n.a.Fragment,null,n.a.createElement(u.TextField,{placeholder:"Search",type:"text",inputRef:function(e){return s=e},startAdornment:n.a.createElement(u.InputAdornment,{position:"start"},n.a.createElement(u.SystemIcon,{icon:"Search"})),onChange:function(e){return V(e.target.value)},formikContext:!1,dense:!0}),n.a.createElement(u.Button,{variant:"contained",color:"primary",size:"small",onClick:function(){return v(!0)}},"Add Administrator"))}},n.a.createElement(u.DataGrid,{onSortBy:function(e,t){var i=e;void 0!==i&&(t||(i="-".concat(i)),F?U((function(e){return Object(yd.a)(Object(yd.a)({},e),{},{page:1,sortBy:i})})):N((function(e){return Object(yd.a)(Object(yd.a)({},e),{},{page:1,sortBy:i})})))},onNavigate:function(e,t){F?U((function(i){return Object(yd.a)(Object(yd.a)({},i),{},{page:e,pageSize:t})})):N((function(i){return Object(yd.a)(Object(yd.a)({},i),{},{page:e,pageSize:t})}))},totalRecords:F?null!==(t=null===O||void 0===O?void 0:O.recordCount)&&void 0!==t?t:0:null!==(i=null===b||void 0===b?void 0:b.recordCount)&&void 0!==i?i:0,pageIndex:null!==(r=null===T||void 0===T?void 0:T.page)&&void 0!==r?r:1,advanced:!0,columns:q,data:F?null===O||void 0===O?void 0:O.users:null===b||void 0===b?void 0:b.users,loading:F?void 0===O:void 0===b,withRowSelection:!0,tableActions:n.a.createElement(u.Grid,{container:!0,spacing:"form",alignItems:"flex-start"},n.a.createElement(u.Grid,{item:!0,key:"Status"},n.a.createElement(u.SelectField,{fullWidth:!0,startAdornment:"Status:",id:"templateStatus",value:P,onChange:function(e){var t=e.target.value;E(t),F?U((function(e){return Object(yd.a)(Object(yd.a)({},e),{},{page:1,searchCriteria:["UserStatus: ".concat(t)]})})):N((function(e){return Object(yd.a)(Object(yd.a)({},e),{},{page:1,searchCriteria:["UserStatus: ".concat(t)]})}))},formikContext:!1,dense:!0},n.a.createElement(u.MenuItem,{value:"0"},"All"),n.a.createElement(u.MenuItem,{value:"2"},"Inactive"),n.a.createElement(u.MenuItem,{value:"1"},"Active"))),z&&n.a.createElement(u.Grid,{item:!0,key:"Reset"},n.a.createElement(u.Button,{size:"small",variant:"text",color:"primary",onClick:function(){return W()}},n.a.createElement(u.SystemIcon,{icon:"ClearFilters",color:"secondary"}))))}),f&&n.a.createElement(Wh,{open:f,onClose:function(){return v(!1)},onSave:W}))}))),Zh=i(130),Xh=i(704),ef=i.n(Xh),tf=function(e,t){switch(t){case 2:return Rh()(e).format("MMM DD, YYYY");case 3:return Rh()(e).format("hh:mm A");case 4:return Rh()(e).format("MMM DD, YYYY, hh:mm:ss A");case 5:return Rh()(e).format("MMM DD, YYYY, hh:mm A ZZ");default:return Rh()(e).format("MMM DD, YYYY, hh:mm A")}},rf=function(e){var t={};return null===e||void 0===e||e.forEach((function(e){t[(null===e||void 0===e?void 0:e.name)||""]=e.value})),t},af=Object(c.b)((function(e){return{}}),(function(e){return{}}))((function(e){var t,i,r=e.onClose,s=e.onSave,o=e.open,c=e.unmappedCredits,l=Object(a.useState)(0),d=Object(y.a)(l,2),h=d[0],f=d[1],v=Object(a.useState)(0),p=Object(y.a)(v,2),m=p[0],b=p[1];return n.a.createElement(Xu.a,{open:o,maxWidth:"md",fullWidth:!0},n.a.createElement(Zu.DialogHeader,{colorMode:"dark",id:"alert-dialog-title",titleBar:{title:"Add Subject Area Mapping",onClose:r}}),n.a.createElement(Zu.DialogBody,null,n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,lg:6,md:6,sm:6,xs:6,stretchContent:!0},n.a.createElement(u.SelectField,{variant:"outlined",dense:!0,value:h,onChange:function(e){return t=e.target.value,void f(t);var t},fullWidth:!0},n.a.createElement(u.MenuItem,{key:0,value:0},n.a.createElement(u.Row,null,n.a.createElement(u.Expanded,{flex:0,mr:1},n.a.createElement(u.Typography,{variant:"subtitle2"},"Select Subject Area Credit")))),c&&(null===c||void 0===c||null===(t=c.subjectAreaCredits)||void 0===t?void 0:t.map((function(e){return n.a.createElement(u.MenuItem,{key:e.subjectAreaCreditId,value:e.subjectAreaCreditId},n.a.createElement(u.Box,{display:"flex"},n.a.createElement(u.Box,{flex:1,mr:1},n.a.createElement(u.Typography,{variant:"body2"},e.name))))}))))),n.a.createElement(u.Grid,{item:!0,lg:6,md:6,sm:6,xs:6,stretchContent:!0},n.a.createElement(u.SelectField,{variant:"outlined",dense:!0,value:m,onChange:function(e){return t=e.target.value,void b(t);var t},fullWidth:!0},n.a.createElement(u.MenuItem,{key:0,value:0},n.a.createElement(u.Row,null,n.a.createElement(u.Expanded,{flex:0,mr:1},n.a.createElement(u.Typography,{variant:"subtitle2"},"Select License Credit")))),c&&(null===c||void 0===c||null===(i=c.licenseCredits)||void 0===i?void 0:i.map((function(e){return n.a.createElement(u.MenuItem,{key:e.creditId,value:e.creditId},n.a.createElement(u.Box,{display:"flex"},n.a.createElement(u.Box,{flex:1,mr:1},n.a.createElement(u.Typography,{variant:"body2"},e.name))))}))))))),n.a.createElement(Zu.DialogFooter,null,n.a.createElement(u.Button,{color:"primary",variant:"contained",onClick:function(){s(h,m)}},"Add"),n.a.createElement(u.Button,{color:"secondary",variant:"text",type:"reset",onClick:function(){r()}},"Cancel")))})),nf=Object(c.b)((function(){return{}}),(function(e){return{getSubjectAreaMappings:function(t){return e(function(e){return function(t){return hu.getSubjectAreaMappingByLicenseId(e,void 0).then((function(e){return e})).catch((function(e){throw t(gu(e)),e.message}))}}(t))},getUnmappedSubjectAreaCredits:function(t,i){return e(function(e,t){return function(i){var r=new xi({subjectAreaCreditId:e,licenseId:t});return hu.getUnmappedCredits(void 0,r).then((function(e){return e})).catch((function(e){throw i(gu(e)),e.message}))}}(t,i))},updateSubjectAreaMappings:function(t,i,r,a,n,s,o,c,l){return e(function(e,t,i,r,a,n,s,o,c){return function(l){var d=new qn({licenseId:e,firmSubjectAreaMappingId:t,isLinked:i,isUsingDefaultMapping:r,isMappingRemoved:a,isUpdatingRow:n,isApprovalRequired:s,isLinkUpdate:o,subjectAreaMappings:c});return hu.updateSubjectAreaMapping(void 0,qn.fromJS(d)).then((function(){})).catch((function(e){throw l(gu(e)),e.message}))}}(t,i,r,a,n,s,o,c,l))},getAllLicensesMappedToSubjectArea:function(t){return e(function(e){return function(t){return hu.getAllLicensesMappedToSubjectArea(void 0,Ti.fromJS(e)).then((function(e){return e})).catch((function(e){t(Su({message:e.detail,variant:"error"}))}))}}(t))}}}))((function(e){var t=e.getSubjectAreaMappings,i=e.getUnmappedSubjectAreaCredits,r=e.open,s=e.onClose,o=e.updateSubjectAreaMappings,c=e.getAllLicensesMappedToSubjectArea,l=Object(a.useState)(),d=Object(y.a)(l,2),h=d[0],f=d[1],v=Object(a.useState)(0),p=Object(y.a)(v,2),m=p[0],b=p[1],S=Object(a.useState)(),g=Object(y.a)(S,2),I=g[0],O=g[1],A=Object(a.useState)(!1),j=Object(y.a)(A,2),C=j[0],P=j[1],E=Object(a.useState)(!1),w=Object(y.a)(E,2),k=w[0],T=w[1],N=Object(a.useState)(),J=Object(y.a)(N,2),D=J[0],L=J[1],U=Object(a.useState)(!1),R=Object(y.a)(U,2),x=R[0],F=R[1],M=Object(a.useState)(Object(yd.a)({},{page:1,pageSize:-1,sortBy:"name"})),G=Object(y.a)(M,1)[0];Object(a.useEffect)((function(){f(void 0),c(G).then((function(e){f(e.mappedLicenses)}))}),[G,c]);var B={initialValues:{linkToFieldsOfStudy:rf(function(){var e,t,i=Array();return i.push({name:null!==(e=String(m))&&void 0!==e?e:"",value:null!==(t=null===I||void 0===I?void 0:I.isSubjectAreaLinked)&&void 0!==t&&t}),i}()),useDefaultFieldsOfStudyMappings:rf(function(){var e,t,i=Array();return i.push({name:null!==(e=String(m))&&void 0!==e?e:"",value:null!==(t=null===I||void 0===I?void 0:I.isUsingDefaultMappings)&&void 0!==t&&t}),i}())},onSubmit:function(e,r){var a=e.useDefaultFieldsOfStudyMappings,n=e.linkToFieldsOfStudy,s=!0,c=!0;if(Object.keys(a).forEach((function(e){s=a[e]})),Object.keys(n).forEach((function(e){c=n[e]})),I&&(null===I||void 0===I?void 0:I.subjectAreaMappingGroups)){var l=[];null===I||void 0===I||I.subjectAreaMappingGroups.forEach((function(e){l.push(e.subjectAreaMappings)})),o(m,0,c,s,!1,!1,!1,x,l).then((function(){t(m).then((function(e){var t;O(e),P(null!==(t=e.isUsingDefaultMappings)&&void 0!==t&&t);var r,a=Array();e&&(null===e||void 0===e||null===(r=e.subjectAreaMappingGroups)||void 0===r||r.forEach((function(e){var t;null===(t=e.subjectAreaMappings)||void 0===t||t.forEach((function(e){var t;a.push(null!==(t=e.subjectAreaCreditId)&&void 0!==t?t:0)}))})));i(a,m).then((function(e){L(e)}))}))}))}}},q=function(e){var r=e.columnType,a=e.subjectAreaMappingList,s=0;return n.a.createElement(u.List,null,a&&a.map((function(e){s+=1;var c=e.subjectAreaMappingId,l=!0;switch(e.isApprovalRequired&&(l=!1),r){case 1:return n.a.createElement(n.a.Fragment,{key:"".concat(e.licenseId,"_").concat(e.subjectAreaCreditId,"_").concat(r)},n.a.createElement(u.Box,{key:"".concat(e.subjectAreaCreditId,"_").concat(r),component:"li",minHeight:"32px",width:"100%",display:"flex",alignItems:"center"},n.a.createElement(u.Box,{ml:1,mr:1},n.a.createElement(u.Row,null,n.a.createElement(u.Expanded,{mr:1},n.a.createElement(u.Typography,{variant:"subtitle1"},e.subjectAreaCreditName))))),s!==a.length&&n.a.createElement(u.Divider,null));case 2:return n.a.createElement(n.a.Fragment,{key:"".concat(e.licenseId,"_").concat(e.subjectAreaCreditId,"_").concat(e.licenseCreditId,"_").concat(r)},n.a.createElement(u.Box,{key:"".concat(e.licenseCreditId,"_").concat(r),component:"li",minHeight:"32px",width:"100%",display:"flex",alignItems:"center"},n.a.createElement(u.Box,{ml:1,mr:1},n.a.createElement(u.Row,null,n.a.createElement(u.Expanded,{mr:1},n.a.createElement(u.Typography,{variant:"subtitle1"},e.licenseCreditName))))),s!==a.length&&n.a.createElement(u.Divider,null));case 3:return n.a.createElement(n.a.Fragment,{key:"".concat(e.licenseId,"_").concat(e.subjectAreaCreditId,"_").concat(e.isApprovalRequired,"_").concat(r)},n.a.createElement(u.Box,{key:"".concat(e.subjectAreaCreditId,"_").concat(e.isApprovalRequired,"_").concat(r),component:"li",minHeight:"32px",width:"100%",display:"flex",alignItems:"center"},n.a.createElement(u.Box,{ml:1,mr:1},n.a.createElement(u.Row,null,n.a.createElement(u.Expanded,{mr:1},e.isApprovalRequired&&n.a.createElement(u.SystemIcon,{icon:"Check"}))))),s!==a.length&&n.a.createElement(u.Divider,null));case 4:return n.a.createElement(n.a.Fragment,{key:"".concat(e.licenseId,"_").concat(e.subjectAreaCreditId,"_0_").concat(r)},n.a.createElement(u.Box,{key:"".concat(e.subjectAreaCreditId,"_0_").concat(r),component:"li",minHeight:"32px",width:"100%",display:"flex",alignItems:"center"},n.a.createElement(u.Box,{ml:1,mr:1},n.a.createElement(u.Row,null,n.a.createElement(u.Expanded,{flex:0},n.a.createElement(fh,{menu:[{label:e.isApprovalRequired?"Unrequire State Approval":"Require State Approval",icon:n.a.createElement(u.SystemIcon,{icon:e.isApprovalRequired?"Close":"Check"}),onClick:function(){return function(e,i){if(I&&(null===I||void 0===I?void 0:I.subjectAreaMappingGroups)){var r,a,n=[];null===I||void 0===I||I.subjectAreaMappingGroups.forEach((function(e){n.push(e.subjectAreaMappings)})),o(m,e,null!==(r=null===I||void 0===I?void 0:I.isSubjectAreaLinked)&&void 0!==r&&r,null!==(a=I.isUsingDefaultMappings)&&void 0!==a&&a,!1,!0,i,!1,n).then((function(){t(m).then((function(e){var t;O(e),P(null!==(t=e.isUsingDefaultMappings)&&void 0!==t&&t)}))}))}}(null!==c&&void 0!==c?c:0,l)},disable:C},{label:"Remove",icon:n.a.createElement(u.SystemIcon,{icon:"Remove"}),onClick:function(){return function(e){if(I&&(null===I||void 0===I?void 0:I.subjectAreaMappingGroups)){var r,a,n=[];null===I||void 0===I||I.subjectAreaMappingGroups.forEach((function(e){n.push(e.subjectAreaMappings)})),o(m,e,null!==(r=null===I||void 0===I?void 0:I.isSubjectAreaLinked)&&void 0!==r&&r,null!==(a=I.isUsingDefaultMappings)&&void 0!==a&&a,!0,!0,!1,!1,n).then((function(){t(m).then((function(e){var t;O(e),P(null!==(t=e.isUsingDefaultMappings)&&void 0!==t&&t);var r,a=Array();e&&(null===e||void 0===e||null===(r=e.subjectAreaMappingGroups)||void 0===r||r.forEach((function(e){var t;null===(t=e.subjectAreaMappings)||void 0===t||t.forEach((function(e){var t;a.push(null!==(t=e.subjectAreaCreditId)&&void 0!==t?t:0)}))})));i(a,m).then((function(e){L(e)}))}))}))}}(null!==c&&void 0!==c?c:0)},disable:C}]}))))),s!==a.length&&n.a.createElement(u.Divider,null));default:return n.a.createElement(n.a.Fragment,null)}})))},V=[{Header:"",accessor:"groupName",disableSortBy:!0,Cell:function(e){var t,i=e.row.original;return n.a.createElement(u.Box,null,n.a.createElement(u.Row,null,n.a.createElement(u.Typography,null,n.a.createElement("i",null,n.a.createElement("b",null,null!==(t=i.groupName)&&void 0!==t?t:""))),"Archived"===i.groupName&&n.a.createElement(u.Tooltip,{title:"Fields of Study superseded by NASBA's revised 2016 Standards for CPE are included as archived subject areas. They may be used until December 31, 2017; thereafter, all courses should reflect the revised fields of study.",placement:"top"},n.a.createElement("span",null,"\xa0",n.a.createElement(u.SystemIcon,{icon:"Help"})))))}},{Header:"Fields of Study Subject Areas",id:"subjectAreaCreditName",disableSortBy:!0,Cell:function(e){var t=e.row.original.subjectAreaMappings;return Object(a.useMemo)((function(){return t&&(null===t||void 0===t?void 0:t.length)>0&&n.a.createElement(q,{columnType:1,subjectAreaMappingList:t})}),[t])}},{Header:"Credit Types",id:"licenseCreditName",disableSortBy:!0,Cell:function(e){var t=e.row.original.subjectAreaMappings;return Object(a.useMemo)((function(){return t&&(null===t||void 0===t?void 0:t.length)>0&&n.a.createElement(q,{columnType:2,subjectAreaMappingList:t})}),[t])}},{Header:"Require State Approval",id:"isApprovalRequired",disableSortBy:!0,Cell:function(e){var t=e.row.original.subjectAreaMappings;return Object(a.useMemo)((function(){return t&&(null===t||void 0===t?void 0:t.length)>0&&n.a.createElement(q,{columnType:3,subjectAreaMappingList:t})}),[t])}},{Header:"",id:"actions",disableSortBy:!0,Cell:function(e){var t=e.row.original.subjectAreaMappings;return Object(a.useMemo)((function(){return t&&(null===t||void 0===t?void 0:t.length)>0&&n.a.createElement(q,{columnType:4,subjectAreaMappingList:t})}),[t])}}];return n.a.createElement(Xu.a,{open:r,onClose:s,fullScreen:!0},n.a.createElement(lh.Formik,{enableReinitialize:!0,initialValues:B.initialValues,onSubmit:B.onSubmit},(function(e){var r;return n.a.createElement(n.a.Fragment,null,n.a.createElement(Zu.DialogHeader,{titleBar:{title:"Define Fields of Study Mappings",onClose:s},colorMode:"dark"}),n.a.createElement(Zu.DialogBody,null,n.a.createElement(u.Box,{ml:3},n.a.createElement(u.Row,null,n.a.createElement(u.Typography,null,"Please define how ",n.a.createElement("b",null,"Fields of Study Subject Areas")," apply for the following licenses"),n.a.createElement(u.Tooltip,{title:"Updates are automatically saved.",placement:"top"},n.a.createElement("span",null,"\xa0",n.a.createElement(u.SystemIcon,{icon:"Help"}))))),n.a.createElement(u.DataGrid,{advanced:!0,columns:V,data:null===I||void 0===I?void 0:I.subjectAreaMappingGroups,hideRowsPerPage:!0,hideRowCountDisplay:!0,dense:!0,pageSize:26,loading:void 0===h,tableActions:n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,xs:4,key:"fieldsOfStudyLicenses"},n.a.createElement(u.Box,null,n.a.createElement(u.SelectField,{id:"fieldsOfStudyLicenseIds",variant:"outlined",formikContext:!1,dense:!0,value:m,onChange:function(e){return r=e.target.value,b(r),void t(r).then((function(e){var t;O(e),P(null!==(t=e.isUsingDefaultMappings)&&void 0!==t&&t);var a,n=Array();e&&(null===e||void 0===e||null===(a=e.subjectAreaMappingGroups)||void 0===a||a.forEach((function(e){var t;null===(t=e.subjectAreaMappings)||void 0===t||t.forEach((function(e){var t;n.push(null!==(t=e.subjectAreaCreditId)&&void 0!==t?t:0)}))}))),i(n,r).then((function(e){L(e)}))}));var r},fullWidth:!0,disabled:void 0===h},n.a.createElement(u.MenuItem,{key:0,value:0},n.a.createElement(u.Row,null,n.a.createElement(u.Expanded,{flex:0,mr:1},n.a.createElement(u.Typography,{variant:"subtitle2"},"Select License")))),h&&h.map((function(e){return n.a.createElement(u.MenuItem,{key:e.licenseId,value:e.licenseId},n.a.createElement(u.Box,{display:"flex"},n.a.createElement(u.Box,{flex:1,mr:1},n.a.createElement(u.Typography,{variant:"body2"},e.name))))}))))),n.a.createElement(u.Grid,{item:!0,xs:6},n.a.createElement(u.CheckboxField,{id:"useDefaultFieldsOfStudyMappings.".concat(m),label:"Use Default Definitions",onChange:function(t,i){return function(e,t){P(e),F(!1),t.submitForm()}(i,e)}}),n.a.createElement(u.CheckboxField,{id:"linkToFieldsOfStudy.".concat(m),label:"Link to Fields of Study",onChange:function(){return function(e){F(!0),e.submitForm()}(e)}})),I&&!1===I.isUsingDefaultMappings&&(null===D||void 0===D?void 0:D.subjectAreaCredits)&&(null===D||void 0===D||null===(r=D.subjectAreaCredits)||void 0===r?void 0:r.length)>0&&n.a.createElement(u.Grid,{item:!0,xs:2},n.a.createElement(u.Button,{color:"primary",variant:"contained",size:"small",onClick:function(){return T(!0)}},"Add Credit Mapping")))}),k&&n.a.createElement(af,{open:k,onClose:function(){return T(!1)},onSave:function(e,r){return function(e,r){var a,n,s=[{subjectAreaCreditId:e,licenseCreditId:r}];I&&o(m,-1,null!==(a=null===I||void 0===I?void 0:I.isSubjectAreaLinked)&&void 0!==a&&a,null!==(n=I.isUsingDefaultMappings)&&void 0!==n&&n,!1,!0,!1,!1,s).then((function(){t(m).then((function(e){var t;O(e),P(null!==(t=e.isUsingDefaultMappings)&&void 0!==t&&t);var r,a=Array();e&&(null===e||void 0===e||null===(r=e.subjectAreaMappingGroups)||void 0===r||r.forEach((function(e){var t;null===(t=e.subjectAreaMappings)||void 0===t||t.forEach((function(e){var t;a.push(null!==(t=e.subjectAreaCreditId)&&void 0!==t?t:0)}))})));i(a,m).then((function(e){L(e)}))}))}));T(!1)}(e,r)},unmappedCredits:D})))})))})),sf=function(e){var t=[];return Object.keys(e).map((function(i){return t.push({id:i,selected:e[i]}),i})),{exemptedIds:t.filter((function(e){return!1===e.selected})).map((function(e){return+e.id})),exemptedIdsString:t.filter((function(e){return!1===e.selected})).map((function(e){return"".concat(e.id)})),selectedIds:t.filter((function(e){return!0===e.selected})).map((function(e){return+e.id})),selectedIdsString:t.filter((function(e){return!0===e.selected})).map((function(e){return"".concat(e.id)})),total:t.length}},of=Object(c.b)((function(e){return{selectedTenant:e.tenants.selectedTenant}}),(function(e){return{getLicenses:function(t){return e(Ou(t))},archiveLicense:function(t,i){return e(function(e,t){return function(i){return au.archive(void 0,kt.fromJS({licenseIdList:e,isArchive:t})).then((function(){return i(Su({message:"Firm License(s) updated",variant:"success"})),Promise.resolve})).catch((function(e){throw e}))}}(t,i))},recalcLicense:function(t,i,r){return e(Cu(t,i,r))},showConfirmation:function(t){return e(Ku(t))},addNotification:function(t){return e(Su({message:t,variant:"warning"}))}}})),cf=new Ni({filterBy:[],searchCriteria:[],sortBy:"name",page:1,pageSize:10}),lf=$h(of((function(e){var t,i,r,s=e.getLicenses,o=e.archiveLicense,c=e.recalcLicense,l=e.showConfirmation,d=e.selectedTenant,h=e.addNotification,f=Object(a.useState)(),v=Object(y.a)(f,2),p=v[0],m=v[1],b=Object(a.useState)(!1),S=Object(y.a)(b,2),g=S[0],I=S[1],O=Object(a.useState)(!1),A=Object(y.a)(O,2),j=A[0],C=A[1],P=Object(a.useState)("All"),E=Object(y.a)(P,2),w=E[0],k=E[1],T=Object(a.useState)("All"),N=Object(y.a)(T,2),J=N[0],D=N[1],L=Object(a.useState)(cf),U=Object(y.a)(L,2),R=U[0],x=U[1],F=Object(a.useState)(!1),M=Object(y.a)(F,2),G=M[0],B=M[1],q=Object(zh.useDataGridContext)(),V=q.setSelectedIdList,W=q.selectedIdList,z=sf(W);Object(a.useEffect)((function(){m(void 0),s(R).then((function(e){m(e)}))}),[R,s]);var H=function(e,t){var i=[];t?e.forEach((function(e){i.push(e)})):p&&p.licenses&&p.licenses.forEach((function(t){e.forEach((function(e){t.licenseId===e&&0===t.parentLicenseId&&(t.rulesHistory&&t.rulesHistory.length>0&&void 0!==t.rulesHistory[0].programmedDate||9999===t.licenseId)&&i.push(e)}))})),i&&i.length>0?l({message:"Are you sure you want to ".concat(t?"disable":"enable"," the selected license(s)?"),title:"Confirm ".concat(t?"disable":"enable"),OnConfirm:function(){I(!0),B(!0),o(i,t).then((function(){x((function(e){return Object(yd.a)({},e)})),V({}),I(!1)}))}}):e.length>0&&h("Invalid selection")},$=[{Header:"Name",accessor:"name",Cell:function(e){var t=e.row.original;return n.a.createElement(u.DetailList,{avatarText:Ph(t.name),name:t.name,description:t.shortName})}},{Header:"Industry",accessor:"industryId"},{Header:"Enabled",accessor:"status",disableSortBy:!0,Cell:function(e){var t,i=e.row.original;return i.firmLicense&&(null===(t=i.firmLicense)||void 0===t?void 0:t.isEnabled)?n.a.createElement(u.SystemIcon,{icon:"Check"}):""}},{Header:"Migration Date",accessor:"",disableSortBy:!0,Cell:function(e){var t=e.row.original;if(t.rulesHistory&&t.rulesHistory.length>0){var i=t.rulesHistory[0].programmedDate;return tf(i,2)}return"-"}},{Header:"Actions",accessor:"",Cell:function(e){var t,i,r,a,s,o=e.row.original;return o.rulesHistory&&o.rulesHistory.length>0&&(s=o.rulesHistory[0].programmedDate),n.a.createElement(fh,{menu:[{label:(null===(t=o.firmLicense)||void 0===t?void 0:t.isEnabled)?"Disable":"Enable",icon:n.a.createElement(u.SystemIcon,{icon:(null===(i=o.firmLicense)||void 0===i?void 0:i.isEnabled)?"Close":"Check"}),onClick:function(){var e;return H([null===o||void 0===o?void 0:o.licenseId],(null===o||void 0===o||null===(e=o.firmLicense)||void 0===e?void 0:e.isEnabled)||!1)},disable:(0!==o.parentLicenseId&&!(null===(r=o.firmLicense)||void 0===r?void 0:r.isEnabled)||void 0===s)&&9999!==o.licenseId},{label:"Recalculate",icon:n.a.createElement(u.SystemIcon,{icon:"Repeat"}),onClick:function(){var e;(e=[null===o||void 0===o?void 0:o.licenseId])&&e.length>0&&l({message:"Are you sure you want to recalculate the selected license(s)?",title:"Confirm Recalculation",OnConfirm:function(){I(!0),B(!0),c(e,(null===d||void 0===d?void 0:d.hostName)?[null===d||void 0===d?void 0:d.hostName]:void 0,void 0).then((function(){x((function(e){return Object(yd.a)({},e)})),V({}),I(!1)}))}})},disable:0!==o.parentLicenseId||!(o.firmLicense&&(null===(a=o.firmLicense)||void 0===a?void 0:a.isEnabled))}]})},disableSortBy:!0}],_=Object(Zh.useDebounce)((function(e){x(""!==e?Object(yd.a)(Object(yd.a)({},R),{},{page:1,filterBy:["Name[contains]:".concat(e)]}):Object(yd.a)(Object(yd.a)({},R),{},{page:1,filterBy:[]}))}),500),Y=function(){k("All"),D("All"),r.value="",x(cf)},Q="All"!==w||"All"!==J,K=n.a.createElement(ef.a,{advanced:!0,id:"licenseId",key:"licenseDataGrid",withRowSelection:!0,onSelectAll:function(){return s(Object(yd.a)(Object(yd.a)({},cf),{},{pageSize:-1})).then((function(e){return e.licenses.map((function(e){return e.licenseId}))}))},onSortBy:function(e,t){var i=e;void 0!==i&&(t||(i="-".concat(i)),x((function(e){return Object(yd.a)(Object(yd.a)({},e),{},{page:1,sortBy:i})})))},onNavigate:function(e,t){x((function(i){return Object(yd.a)(Object(yd.a)({},i),{},{page:e,pageSize:t})}))},autoResetSelectedRows:G,loading:void 0===p,totalRecords:null!==(t=null===p||void 0===p?void 0:p.recordCount)&&void 0!==t?t:0,pageIndex:null!==(i=null===R||void 0===R?void 0:R.page)&&void 0!==i?i:1,data:null===p||void 0===p?void 0:p.licenses,columns:$,tableActions:n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,xs:4,key:"quickFilter"},n.a.createElement(u.Row,{crossAxisAlignment:"middle"},n.a.createElement(u.Box,{m:.5},n.a.createElement(u.SelectField,{startAdornment:"Status:",id:"templateStatus",value:w,onChange:function(e){var t=e.target.value;k(t),x((function(e){return Object(yd.a)(Object(yd.a)({},e),{},{page:1,searchCriteria:[t,J]})}))},formikContext:!1,dense:!0},n.a.createElement(u.MenuItem,{value:"All"},"All"),n.a.createElement(u.MenuItem,{value:"Active"},"Active"),n.a.createElement(u.MenuItem,{value:"Inactive"},"Inactive"))),n.a.createElement(u.Box,{m:.5},n.a.createElement(u.SelectField,{startAdornment:"Migration Status:",id:"migrationStatus",value:J,onChange:function(e){var t=e.target.value;D(t),x((function(e){return Object(yd.a)(Object(yd.a)({},e),{},{page:1,searchCriteria:[t,w]})}))},formikContext:!1,dense:!0},n.a.createElement(u.MenuItem,{value:"All"},"All"),n.a.createElement(u.MenuItem,{value:"Migrated"},"Migrated"),n.a.createElement(u.MenuItem,{value:"NotMigrated"},"Not Migrated"))),n.a.createElement(u.Box,{m:.5},Q&&n.a.createElement(u.Button,{size:"small",variant:"text",color:"primary",onClick:function(){return Y()}},n.a.createElement(u.SystemIcon,{icon:"ClearFilters",color:"secondary"}))))),n.a.createElement(u.Grid,{item:!0,xs:8,key:"actions-button",alignment:"center-right"},n.a.createElement(fh,{icon:n.a.createElement(u.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),title:"Actions",menu:[{label:"Disable",disable:!(z&&z.selectedIds.length>0),icon:n.a.createElement(u.SystemIcon,{icon:"Close"}),onClick:function(){return H(z.selectedIds,!0)}},{label:"Enable",disable:!(z&&z.selectedIds.length>0),icon:n.a.createElement(u.SystemIcon,{icon:"Check"}),onClick:function(){return H(z.selectedIds,!1)}}]})))});return n.a.createElement(u.Screen,{maxWidth:!1,titleBar:{title:"".concat(null===d||void 0===d?void 0:d.name,": Licenses"),actionRow:n.a.createElement(n.a.Fragment,null,n.a.createElement(u.TextField,{placeholder:"Search",type:"text",inputRef:function(e){return r=e},startAdornment:n.a.createElement(u.InputAdornment,{position:"start"},n.a.createElement(u.SystemIcon,{icon:"Search"})),onChange:function(e){return _(e.target.value)},formikContext:!1,dense:!0}),n.a.createElement(u.Button,{variant:"contained",color:"primary",size:"small",onClick:function(){return Y()}},"Refresh"),n.a.createElement(u.Button,{variant:"contained",color:"primary",size:"small",onClick:function(){return C(!0)}},"Define Fields of Study Mappings"))}},K,n.a.createElement(u.Backdrop,{open:g},n.a.createElement(u.CircularProgress,{color:"secondary"})),"`",j&&n.a.createElement(nf,{open:j,onClose:function(){C(!1)}}))}))),df=$h(Object(c.b)((function(e){return{selectedTenant:e.tenants.selectedTenant}}),(function(e){return{getCourseFormats:function(){return e((function(e){return nu.getAll(void 0).then((function(e){return e})).catch((function(t){throw e(gu(t)),t.message}))}))},archiveCourseFormats:function(t,i){return e(function(e,t){return function(i){return nu.archive(void 0,wt.fromJS({courseFormatIdList:e,isArchive:t})).then((function(){return i(Su({message:"Course Format(s) updated",variant:"success"})),Promise.resolve})).catch((function(e){throw e}))}}(t,i))},showConfirmation:function(t){return e(Ku(t))}}}))((function(e){var t=e.getCourseFormats,i=e.archiveCourseFormats,r=e.showConfirmation,s=e.selectedTenant,o=Object(a.useState)(),c=Object(y.a)(o,2),l=c[0],d=c[1],h=Object(a.useState)(),f=Object(y.a)(h,2),v=f[0],p=f[1],m=Object(a.useState)(!1),b=Object(y.a)(m,2),S=b[0],g=b[1],I=Object(a.useState)(!1),O=Object(y.a)(I,2),A=O[0],j=O[1],C=Object(zh.useDataGridContext)(),P=C.setSelectedIdList,E=C.selectedIdList,w=sf(E);Object(a.useEffect)((function(){t().then((function(e){d(e),p(e)}))}),[t]);var k=function(e,a){e&&e.length>0&&r({message:"Are you sure you want to ".concat(a?"archive":"unarchive"," these formats?"),title:"Confirm ".concat(a?"archive":"unarchive"),OnConfirm:function(){g(!0),i(e,a).then((function(){j(!0),t().then((function(e){d(e),P({})})).finally((function(){})),g(!1)}))}})},T=Object(Zh.useDebounce)((function(e){if(""!==e){var t,i=null===l||void 0===l||null===(t=l.courseFormats)||void 0===t?void 0:t.filter((function(t){var i;return null===(i=t.name)||void 0===i?void 0:i.toLowerCase().includes(e.toLowerCase())}));d((function(e){return Object(yd.a)(Object(yd.a)({},e),{},{courseFormats:i})}))}else d(v||void 0)}),500),N=[{Header:"Name",accessor:"name",Cell:function(e){var t=e.row,i=e.cell,r=t.original;return n.a.createElement(u.DetailList,{avatarText:"".concat(Ph(i.value)),name:i.value,description:r.name})}},{Header:"Code",accessor:"abbreviation"},{Header:"Category",accessor:"portalCategory"},{Header:"Active",accessor:"isEnabled",Cell:function(e){var t=e.cell;return n.a.createElement(u.Chip,{variant:"outlined",label:t.value?"Active":"Archived",size:"small",color:t.value?"primary":"secondary"})}},{Header:"Actions",accessor:"",Cell:function(e){var t=e.row.original;return n.a.createElement(fh,{menu:[{label:t.isActive?"Archive":"Unarchive",icon:n.a.createElement(u.SystemIcon,{icon:"Archive"}),onClick:function(){return k([null===t||void 0===t?void 0:t.courseFormatId],null===t||void 0===t?void 0:t.isEnabled)}}]})},disableSortBy:!0}],J=n.a.createElement(u.DataGrid,{advanced:!0,id:"courseFormatId",key:"courseFormatDataGrid",withRowSelection:!0,onSelectAll:function(){return l.courseFormats.map((function(e){return e.courseFormatId}))},loading:void 0===l,autoResetSelectedRows:A,data:null===l||void 0===l?void 0:l.courseFormats,columns:N,tableActions:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(fh,{icon:n.a.createElement(u.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),title:"Actions",menu:[{label:"Archive",disable:!(w&&w.selectedIds.length>0),icon:n.a.createElement(u.SystemIcon,{icon:"Archive"}),onClick:function(){return k(w.selectedIds,!0)}},{label:"Unarchive",disable:!(w&&w.selectedIds.length>0),icon:n.a.createElement(u.SystemIcon,{icon:"Archive"}),onClick:function(){return k(w.selectedIds,!1)}}]}))});return n.a.createElement(u.Screen,{maxWidth:!1,titleBar:{title:"".concat(null===s||void 0===s?void 0:s.name,": Course Formats"),actionRow:n.a.createElement(u.TextField,{size:"small",onChange:function(e){return T(e.target.value)},endAdornment:n.a.createElement(u.SystemIcon,{icon:"Search"})})}},J,n.a.createElement(u.Backdrop,{open:S},n.a.createElement(u.CircularProgress,{color:"secondary"})))}))),uf=Object(c.b)((function(e){return{setTenantPasswordPolicy:e.tenants.tenantPasswordPolicy,tenantPasswordPolicy:e.tenants.tenantPasswordPolicy,selectedTenant:e.tenants.selectedTenant,tenantFirmSettings:e.tenants.tenantFirmSettings}}),(function(e){return{getTenantSettings:function(){return e(ju())},getLcTenantSettings:function(){return e(Vh())},setTenantPasswordPolicy:function(t){return e(Lu(t))},getTenantPasswordPolicyAsync:function(t){return e(function(e){return function(){var t=Object(ot.a)(st.a.mark((function t(i){return st.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i(Lu(null)),t.next=3,$d.getTenantPasswordPolicy(e).then((function(e){i(Lu(e))})).catch((function(e){i(Su({message:e.detail,variant:"error"}))}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}(t))},saveTenantPasswordPolicy:function(){return e(function(){var e=Object(ot.a)(st.a.mark((function e(t,i){var r,a,n;return st.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=i().tenants.selectedTenant,a=i().tenants.tenantPasswordPolicy,n=new Be({tenantId:null===r||void 0===r?void 0:r.tenantId,minimumLength:null===a||void 0===a?void 0:a.minimumLength,requireLowercase:null===a||void 0===a?void 0:a.requireLowercase,requireNumbers:null===a||void 0===a?void 0:a.requireNumbers,requireSymbols:null===a||void 0===a?void 0:a.requireSymbols,requireUppercase:null===a||void 0===a?void 0:a.requireUppercase}),$d.updateTenantPasswordPolicy(n).then((function(){t(Su({message:"Save successful",variant:"success"}))})).catch((function(e){t(Su({message:e.detail,variant:"error"}))}));case 4:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}())},updateTenantSettings:function(t){return e(function(e){return function(t){return du.updateSettings(void 0,Mn.fromJS({settings:e})).then((function(){return t(ju()),!0})).catch((function(e){return t(Su({message:e.error,variant:"error"})),!1}))}}(t))},updateLcTenantSettings:function(t){return e(function(e){return function(t){return bu.updateLcbcSettings(void 0,cl.fromJS({settings:e})).then((function(){return t(Vh()),!0})).catch((function(e){return t(Su({message:e.error,variant:"error"})),!1}))}}(t))}}}))((function(e){var t,i,r,s,o,c,l,d,h,f,v,p,m,y,b,S,g,I,O,A,j,C,P,E,w,k,T,N,J,D,L,U,R,x,F=e.tenantFirmSettings,M=e.tenantPasswordPolicy,G=e.getTenantPasswordPolicyAsync,B=e.selectedTenant,q=e.setTenantPasswordPolicy,V=e.saveTenantPasswordPolicy,W=e.getTenantSettings,z=e.getLcTenantSettings,H=e.updateTenantSettings,$=e.updateLcTenantSettings,_=He(le.ViewTenantSettings),Y=He(le.ManageTenantSettings);Object(a.useEffect)((function(){var e;B&&_&&(G(B.tenantId),1===(null===(e=B.tenantApp)||void 0===e?void 0:e.length)&&2===B.tenantApp[0].appId?z():W())}),[_,B,W,z,G]);var Q={initialValues:{minimumLength:null===M||void 0===M?void 0:M.minimumLength,compliancePeriodLimit:F&&(null===(t=F.filter((function(e){return"CompliancePeriodDisplayLimit"===e.key}))[0])||void 0===t||null===(i=t.value)||void 0===i?void 0:i.toString()),compliancePeriodLimitPortal:F&&(null===(r=F.filter((function(e){return"PortalCompliancePeriodDisplayLimit"===e.key}))[0])||void 0===r||null===(s=r.value)||void 0===s?void 0:s.toString()),requireNumber:null!=M&&M.requireNumbers,requireSpecialCharacters:null!=M&&M.requireSymbols,requireUppercase:null!=M&&M.requireUppercase,requireLowercase:null!=M&&M.requireLowercase,isPublicApiEnabled:null!==(o=F&&"true"===(null===(c=F.filter((function(e){return"EnableApiClient"===e.key}))[0])||void 0===c||null===(l=c.value)||void 0===l?void 0:l.toLowerCase()))&&void 0!==o&&o,isMFAOptionEnabled:null!==(d=F&&"true"===(null===F||void 0===F||null===(h=F.filter((function(e){return"EnableMFA"===e.key}))[0])||void 0===h||null===(f=h.value)||void 0===f?void 0:f.toLowerCase()))&&void 0!==d&&d,isUserAutoConfirmAccountEnabled:null!==(v=F&&"true"===(null===F||void 0===F||null===(p=F.filter((function(e){return"EnableUserAutoConfirmAccount"===e.key}))[0])||void 0===p||null===(m=p.value)||void 0===m?void 0:m.toLowerCase()))&&void 0!==v&&v,isAffirmationFormEnabled:null!==(y=F&&"true"===(null===F||void 0===F||null===(b=F.filter((function(e){return"EnableAffirmationForm"===e.key}))[0])||void 0===b||null===(S=b.value)||void 0===S?void 0:S.toLowerCase()))&&void 0!==y&&y,isAccreditationFormEnabled:null!==(g=F&&"true"===(null===F||void 0===F||null===(I=F.filter((function(e){return"EnableAccreditationForm"===e.key}))[0])||void 0===I||null===(O=I.value)||void 0===O?void 0:O.toLowerCase()))&&void 0!==g&&g,isDevelopmentPlanRecordEnabled:null!==(A=F&&"true"===(null===F||void 0===F||null===(j=F.filter((function(e){return"EnableDevelopmentPlanRecord"===e.key}))[0])||void 0===j||null===(C=j.value)||void 0===C?void 0:C.toLowerCase()))&&void 0!==A&&A,isPortalHomeLinkEnabled:null!==(P=F&&"true"===(null===F||void 0===F||null===(E=F.filter((function(e){return"EnablePortalHomeLink"===e.key}))[0])||void 0===E||null===(w=E.value)||void 0===w?void 0:w.toLowerCase()))&&void 0!==P&&P,isToggleAttendanceValidatedEnabled:null!==(k=F&&"true"===(null===F||void 0===F||null===(T=F.filter((function(e){return"EnableToggleAttendanceValidated"===e.key}))[0])||void 0===T||null===(N=T.value)||void 0===N?void 0:N.toLowerCase()))&&void 0!==k&&k,isEnableAdditionalRequirementsComplianceChartHeaderNote:null!==(J=F&&"true"===(null===F||void 0===F||null===(D=F.filter((function(e){return"EnableAdditionalRequirementsComplianceChartHeaderNote"===e.key}))[0])||void 0===D||null===(L=D.value)||void 0===L?void 0:L.toLowerCase()))&&void 0!==J&&J,isEnableSummerProgram:null!==(U=F&&"true"===(null===F||void 0===F||null===(R=F.filter((function(e){return"EnableSummerProgram"===e.key}))[0])||void 0===R||null===(x=R.value)||void 0===x?void 0:x.toLowerCase()))&&void 0!==U&&U},validationSchema:Object(dh.object)().shape({minimumLength:Object(dh.number)().required().max(99).min(6),compliancePeriodLimit:Object(dh.number)().max(99).min(1),compliancePeriodLimitPortal:Object(dh.number)().max(99).min(1),requireNumber:Object(dh.boolean)(),requireSpecialCharacters:Object(dh.boolean)(),requireUppercase:Object(dh.boolean)(),requireLowercase:Object(dh.boolean)(),isPublicApiEnabled:Object(dh.boolean)(),isMFAOptionEnabled:Object(dh.boolean)(),isUserAutoConfirmAccountEnabled:Object(dh.boolean)(),isAffirmationFormEnabled:Object(dh.boolean)(),isAccreditationFormEnabled:Object(dh.boolean)(),isDevelopmentPlanRecordEnabled:Object(dh.boolean)(),isPortalHomeLinkEnabled:Object(dh.boolean)(),isToggleAttendanceValidatedEnabled:Object(dh.boolean)(),isEnableAdditionalRequirementsComplianceChartHeaderNote:Object(dh.boolean)(),isEnableSummerProgram:Object(dh.boolean)()}),onSubmit:function(e,t){var i,r=e.minimumLength,a=e.requireNumber,n=e.requireSpecialCharacters,s=e.requireLowercase,o=e.requireUppercase,c=e.isPublicApiEnabled,l=e.isMFAOptionEnabled,d=e.isUserAutoConfirmAccountEnabled,u=e.isAffirmationFormEnabled,h=e.isAccreditationFormEnabled,f=e.isDevelopmentPlanRecordEnabled,v=e.isPortalHomeLinkEnabled,p=e.compliancePeriodLimit,m=e.compliancePeriodLimitPortal,y=e.isToggleAttendanceValidatedEnabled,b=e.isEnableAdditionalRequirementsComplianceChartHeaderNote,S=e.isEnableSummerProgram;q({minimumLength:r,requireNumbers:a,requireSymbols:n,requireLowercase:s,requireUppercase:o}),!!B&&(1===(null===(i=B.tenantApp)||void 0===i?void 0:i.length)&&2===B.tenantApp[0].appId)?$([{key:"EnableApiClient",value:c.toString()},{key:"EnableMFA",value:l.toString()},{key:"EnableUserAutoConfirmAccount",value:d.toString()},{key:"EnableDevelopmentPlanRecord",value:f.toString()},{key:"EnableAffirmationForm",value:u.toString()},{key:"EnableAccreditationForm",value:h.toString()},{key:"EnablePortalHomeLink",value:v.toString()},{key:"CompliancePeriodDisplayLimit",value:p.toString()},{key:"PortalCompliancePeriodDisplayLimit",value:m.toString()},{key:"EnableAdditionalRequirementsComplianceChartHeaderNote",value:b.toString()},{key:"EnableToggleAttendanceValidated",value:y.toString()},{key:"EnableSummerProgram",value:S.toString()}]).then((function(){V(),t.setSubmitting(!1)})):H([{key:"EnableApiClient",value:c.toString()},{key:"EnableMFA",value:l.toString()},{key:"EnableUserAutoConfirmAccount",value:d.toString()},{key:"EnableDevelopmentPlanRecord",value:f.toString()},{key:"EnableAffirmationForm",value:u.toString()},{key:"EnableAccreditationForm",value:h.toString()},{key:"EnablePortalHomeLink",value:v.toString()},{key:"CompliancePeriodDisplayLimit",value:p.toString()},{key:"PortalCompliancePeriodDisplayLimit",value:m.toString()},{key:"EnableAdditionalRequirementsComplianceChartHeaderNote",value:b.toString()},{key:"EnableToggleAttendanceValidated",value:y.toString()},{key:"EnableSummerProgram",value:S.toString()}]).then((function(){V(),t.setSubmitting(!1)}))}};return n.a.createElement(lh.Formik,{initialValues:Q.initialValues,validationSchema:Q.validationSchema,onSubmit:Q.onSubmit,enableReinitialize:!0},(function(e){return n.a.createElement(u.Form,{id:"form",formikContext:!0},n.a.createElement(u.Screen,{titleBar:{title:"".concat(null===B||void 0===B?void 0:B.name,": Settings"),actionRow:Y&&n.a.createElement(u.Button,{size:"small",variant:"contained",color:"primary",type:"submit",disabled:!e.dirty,loading:e.isSubmitting},"Save")},maxWidth:!1},n.a.createElement(Ye,{permissionSet:le.ViewTenantSettings,displayUnauthorized:!0},n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,lg:12,md:12,xs:12},n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(u.Column,null,n.a.createElement(u.Typography,{variant:"h5"},"Firm Settings"),n.a.createElement(u.Typography,{variant:"caption",color:"textSecondary"},"Setup firm level settings and features"))),null==F?n.a.createElement(u.Skeleton,{height:50,width:300,variant:"rect"}):n.a.createElement(n.a.Fragment,null,n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable Public Api Access",id:"isPublicApiEnabled",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable MFA Option",id:"isMFAOptionEnabled",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable User Auto Confirm Status",id:"isUserAutoConfirmAccountEnabled",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable Development Plan/Record",id:"isDevelopmentPlanRecordEnabled",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable Affirmation Form",id:"isAffirmationFormEnabled",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable Accreditation Form",id:"isAccreditationFormEnabled",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Row,{mainAxisAlignment:"start"},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable Portal Home Link",id:"isPortalHomeLinkEnabled",disabled:!Y}),n.a.createElement(u.Column,{mainAxisAlignment:"bottom",crossAxisAlignment:"center"},n.a.createElement(u.Box,null,n.a.createElement(u.Tooltip,{title:"Enabling this option will hide the Redirect to Course Catalog link from the session enrollment screen and will show the Portal Home link. ",placement:"top",style:{maxWidth:10}},n.a.createElement("span",null,"\xa0",n.a.createElement(u.SystemIcon,{icon:"Info",size:"sm"})," ")))))),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable Toggle Attendance Validated",id:"isToggleAttendanceValidatedEnabled",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable Additional Requirements Compliance Chart Header Note",id:"isEnableAdditionalRequirementsComplianceChartHeaderNote",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Enable Summer Program (Lawcruit)",id:"isEnableSummerProgram",disabled:!Y}))))),n.a.createElement(u.Grid,{item:!0,lg:12,xs:12},n.a.createElement(u.Divider,null)),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,xs:12},n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(u.Column,null,n.a.createElement(u.Typography,{variant:"h5"},"Password Policy"),n.a.createElement(u.Typography,{variant:"caption",color:"textSecondary"},"Setup password requirements."))),null==M?n.a.createElement(u.Skeleton,{height:50,width:300,variant:"rect"}):n.a.createElement(n.a.Fragment,null,n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{formikContext:!0,label:"Minimum Length",id:"minimumLength",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Require Numbers",id:"requireNumber",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Require Special Character",id:"requireSpecialCharacters",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Require Uppercase Letters",id:"requireUppercase",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{formikContext:!0,label:"Require Lowercase Letters",id:"requireLowercase",disabled:!Y}))))),n.a.createElement(u.Grid,{item:!0,lg:12,md:12,xs:12},n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,xs:12,alignment:"top-left"},n.a.createElement(u.Column,null,n.a.createElement(u.Typography,{variant:"h5"},"Compliance Settings"),n.a.createElement(u.Typography,{variant:"caption",color:"textSecondary"},"Setup compliance settings."))),null==F?n.a.createElement(u.Skeleton,{height:50,width:300,variant:"rect"}):n.a.createElement(n.a.Fragment,null,n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{formikContext:!0,label:"Maximum Period (Admin)",id:"compliancePeriodLimit",disabled:!Y})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{formikContext:!0,label:"Maximum Period (Portal)",id:"compliancePeriodLimitPortal",disabled:!Y})))))))))}))})),hf=function(e){var t=e.items;if(void 0===t)return n.a.createElement(n.a.Fragment,null);if(t&&t.length<=1)return n.a.createElement("span",null,t[0]);var i=t[0],r=t.splice(1,t.length);return n.a.createElement(u.Row,null,n.a.createElement(u.Expanded,{flex:0,mr:1},n.a.createElement("span",null,i,",")),n.a.createElement(u.Tooltip,{title:r.join(" \u2022 ")},n.a.createElement("span",null," +",r.length)))},ff=i(68);var vf=function(e,t){var i=t.id,r=t.validationType,a=t.validations,n=void 0===a?[]:a;if(!dh[r])return e;var s=dh[r]();return n.forEach((function(e){var t,i=e.params,r=e.type;s[r]&&(s=(t=s)[r].apply(t,Object(ff.a)(i)))})),e[i]=s,e},pf=[{id:"Webcasts",name:"Webcasts"},{id:"Web Programs",name:"Web Programs"},{id:"Groupcasts",name:"Groupcasts"},{id:"One Hour Briefings",name:"One Hour Briefings"},{id:"On-Demand One-Hour Briefings",name:"On-Demand One-Hour Briefings"},{id:"Web Segments",name:"Web Segments"},{id:"MP3s",name:"MP3s"},{id:"MP4s",name:"MP4s"},{id:"Interative Learning Center",name:"Interative Learning Center"}],mf=[{id:"401(k) plans",name:"401(k) plans"},{id:"Accountants' liability",name:"Accountants' liability"},{id:"Accounting and financial reporting",name:"Accounting and financial reporting"},{id:"Accounting cycle",name:"Accounting cycle"},{id:"Accounting methods",name:"Accounting methods"},{id:"Accounting standards",name:"Accounting standards"},{id:"Accuracy-related penalties",name:"Accuracy-related penalties"},{id:"Acquisition financing",name:"Acquisition financing"},{id:"Acquisitions and dispositions",name:"Acquisitions and dispositions"},{id:"Activist shareholders",name:"Activist shareholders"},{id:"Administration of estates and trusts",name:"Administration of estates and trusts"},{id:"Affirmative action",name:"Affirmative action"},{id:"Alternative fee arrangements",name:"Alternative fee arrangements"},{id:"Anticompetitive practices",name:"Anticompetitive practices"},{id:"Anti-corruption due diligence",name:"Anti-corruption due diligence"},{id:"Anti-money laundering",name:"Anti-money laundering"},{id:"Antitrust",name:"Antitrust"},{id:"Antitrust litigation",name:"Antitrust litigation"},{id:"Antitrust violations",name:"Antitrust violations"},{id:"Appeals",name:"Appeals"},{id:"Appellate advocacy",name:"Appellate advocacy"},{id:"Appellate procedure",name:"Appellate procedure"},{id:"Arbitration",name:"Arbitration"},{id:"Arguments (Litigation)",name:"Arguments (Litigation)"},{id:"Artificial intelligence",name:"Artificial intelligence"},{id:"Arts, entertainment, and sports",name:"Arts, entertainment, and sports"},{id:"Artwork",name:"Artwork"},{id:"Asset management",name:"Asset management"},{id:"Asset sales",name:"Asset sales"},{id:"Asset-backed securities",name:"Asset-backed securities"},{id:"Asset-based financing",name:"Asset-based financing"},{id:"Asset-based lending",name:"Asset-based lending"},{id:"Assets (Securities filings and financial statements)",name:"Assets (Securities filings and financial statements)"},{id:"Asylum status",name:"Asylum status"},{id:"At-the-market offerings",name:"At-the-market offerings"},{id:"Attorney advertising",name:"Attorney advertising"},{id:"Attorney malpractice",name:"Attorney malpractice"},{id:"Attorney mindfulness",name:"Attorney mindfulness"},{id:"Attorney wellness and stress reduction",name:"Attorney wellness and stress reduction"},{id:"Attorney work-life balance",name:"Attorney work-life balance"},{id:"Attorney-client privilege",name:"Attorney-client privilege"},{id:"Attorney-client relations",name:"Attorney-client relations"},{id:"Attorneys' fees",name:"Attorneys' fees"},{id:"Audit committees (Auditing)",name:"Audit committees (Auditing)"},{id:"Audit committees (Corporate governance)",name:"Audit committees (Corporate governance)"},{id:"Auditing",name:"Auditing"},{id:"Auditors",name:"Auditors"},{id:"Augmented reality",name:"Augmented reality"},{id:"Auto loans",name:"Auto loans"},{id:"Automatic stay",name:"Automatic stay"},{id:"Autonomous vehicles",name:"Autonomous vehicles"},{id:"Background checks",name:"Background checks"},{id:"Balance sheets (Securities filings and financial statements)",name:"Balance sheets (Securities filings and financial statements)"},{id:"Bank loans",name:"Bank loans"},{id:"Banking and finance",name:"Banking and finance"},{id:"Bankruptcy and restructuring",name:"Bankruptcy and restructuring"},{id:"Bankruptcy discharge",name:"Bankruptcy discharge"},{id:"Bankruptcy estates",name:"Bankruptcy estates"},{id:"Bankruptcy proceedings (Intellectual property)",name:"Bankruptcy proceedings (Intellectual property)"},{id:"Bankruptcy process",name:"Bankruptcy process"},{id:"Behavioral advertising",name:"Behavioral advertising"},{id:"Bench trials",name:"Bench trials"},{id:"BEPS",name:"BEPS"},{id:"Bias (Employment discrimination)",name:"Bias (Employment discrimination)"},{id:"Big data",name:"Big data"},{id:"Billing (Law practice management)",name:"Billing (Law practice management)"},{id:"Biologics",name:"Biologics"},{id:"Biometric data",name:"Biometric data"},{id:"Biosimilars",name:"Biosimilars"},{id:"Biotechnology",name:"Biotechnology"},{id:"Birth parents",name:"Birth parents"},{id:"Bitcoin",name:"Bitcoin"},{id:"Blockchain",name:"Blockchain"},{id:"Board composition",name:"Board composition"},{id:"Board of directors",name:"Board of directors"},{id:"Broadband and cable",name:"Broadband and cable"},{id:"Broker-dealers",name:"Broker-dealers"},{id:"Business combination accounting",name:"Business combination accounting"},{id:"Business development, marketing, succession, and continuity",name:"Business development, marketing, succession, and continuity"},{id:"Business liability insurance",name:"Business liability insurance"},{id:"Business purpose doctrine",name:"Business purpose doctrine"},{id:"Cable television",name:"Cable television"},{id:"Campaign finance",name:"Campaign finance"},{id:"Cancellation of removal (Immigration and naturalization)",name:"Cancellation of removal (Immigration and naturalization)"},{id:"Capital gains",name:"Capital gains"},{id:"Capital markets",name:"Capital markets"},{id:"Capital structure",name:"Capital structure"},{id:"Career development and management",name:"Career development and management"},{id:"Cartels",name:"Cartels"},{id:"Cash flows (Securities filings and financial statements)",name:"Cash flows (Securities filings and financial statements)"},{id:"Casualty insurance",name:"Casualty insurance"},{id:"Change management (Legal operations)",name:"Change management (Legal operations)"},{id:"Chapter 11",name:"Chapter 11"},{id:"Chapter 7",name:"Chapter 7"},{id:"Charitable trusts",name:"Charitable trusts"},{id:"Chief compliance officers",name:"Chief compliance officers"},{id:"Chief financial officers",name:"Chief financial officers"},{id:"Chief privacy officers",name:"Chief privacy officers"},{id:"Child custody",name:"Child custody"},{id:"Child neglect",name:"Child neglect"},{id:"Child support",name:"Child support"},{id:"Child welfare",name:"Child welfare"},{id:"Civil enforcement actions (Political activity law)",name:"Civil enforcement actions (Political activity law)"},{id:"Civil procedure",name:"Civil procedure"},{id:"Civil rights",name:"Civil rights"},{id:"Civil rights litigation",name:"Civil rights litigation"},{id:"Class actions",name:"Class actions"},{id:"Clearing houses (Financial institutions)",name:"Clearing houses (Financial institutions)"},{id:"Climate change",name:"Climate change"},{id:"Closed-end funds",name:"Closed-end funds"},{id:"Closing arguments",name:"Closing arguments"},{id:"Cloud computing",name:"Cloud computing"},{id:"Collateral (Secured transactions)",name:"Collateral (Secured transactions)"},{id:"Collateralized loan obligations",name:"Collateralized loan obligations"},{id:"Collective actions",name:"Collective actions"},{id:"Collective bargaining",name:"Collective bargaining"},{id:"Combat related disability",name:"Combat related disability"},{id:"Commercial law",name:"Commercial law"},{id:"Commercial leases",name:"Commercial leases"},{id:"Commercial litigation",name:"Commercial litigation"},{id:"Commercial loans",name:"Commercial loans"},{id:"Commercial mortgage-backed securities",name:"Commercial mortgage-backed securities"},{id:"Commercial real estate",name:"Commercial real estate"},{id:"Commercial speech",name:"Commercial speech"},{id:"Commodity pools",name:"Commodity pools"},{id:"Communications (Career development and management)",name:"Communications (Career development and management)"},{id:"Communications and telecommunications",name:"Communications and telecommunications"},{id:"Community reentry",name:"Community reentry"},{id:"Compensation committees",name:"Compensation committees"},{id:"Computer entertainment",name:"Computer entertainment"},{id:"Confidentiality (Ethics and professional responsibility)",name:"Confidentiality (Ethics and professional responsibility)"},{id:"Confidentiality agreements (Corporate contracts)",name:"Confidentiality agreements (Corporate contracts)"},{id:"Conflicts of interest",name:"Conflicts of interest"},{id:"Consolidated tax returns",name:"Consolidated tax returns"},{id:"Constitutional law",name:"Constitutional law"},{id:"Construction contracts",name:"Construction contracts"},{id:"Consumer bankruptcy",name:"Consumer bankruptcy"},{id:"Consumer finance",name:"Consumer finance"},{id:"Consumer protection",name:"Consumer protection"},{id:"Contract drafting and negotiation",name:"Contract drafting and negotiation"},{id:"Contracts of sale (Corporate contracts)",name:"Contracts of sale (Corporate contracts)"},{id:"Contractual terms (Corporate contracts)",name:"Contractual terms (Corporate contracts)"},{id:"Copyright",name:"Copyright"},{id:"Copyright infringement",name:"Copyright infringement"},{id:"Copyright litigation",name:"Copyright litigation"},{id:"Coronavirus",name:"Coronavirus"},{id:"Corporate agreements",name:"Corporate agreements"},{id:"Corporate bankruptcy",name:"Corporate bankruptcy"},{id:"Corporate contracts",name:"Corporate contracts"},{id:"Corporate ethics",name:"Corporate ethics"},{id:"Corporate finance",name:"Corporate finance"},{id:"Corporate governance",name:"Corporate governance"},{id:"Corporate law",name:"Corporate law"},{id:"Corporate litigation",name:"Corporate litigation"},{id:"Corporate partnerships",name:"Corporate partnerships"},{id:"Corporate political activity",name:"Corporate political activity"},{id:"Corporate restructuring",name:"Corporate restructuring"},{id:"Corporate social responsibility",name:"Corporate social responsibility"},{id:"Corporate tax",name:"Corporate tax"},{id:"Cost accounting",name:"Cost accounting"},{id:"Coverage requirements (Employee benefits)",name:"Coverage requirements (Employee benefits)"},{id:"Credit cards",name:"Credit cards"},{id:"Credit default swap",name:"Credit default swap"},{id:"Credit risk retention",name:"Credit risk retention"},{id:"Criminal litigation",name:"Criminal litigation"},{id:"Criminal procedure",name:"Criminal procedure"},{id:"Crisis management (Corporate law)",name:"Crisis management (Corporate law)"},{id:"Crisis management in law practice",name:"Crisis management in law practice"},{id:"Cross-border data transfers",name:"Cross-border data transfers"},{id:"Cross-border investigations",name:"Cross-border investigations"},{id:"Cross-border M&A",name:"Cross-border M&A"},{id:"Cross-border transactions",name:"Cross-border transactions"},{id:"Cross-examination",name:"Cross-examination"},{id:"Crowdfunding",name:"Crowdfunding"},{id:"Cryptocurrencies",name:"Cryptocurrencies"},{id:"Cybersecurity and data protection",name:"Cybersecurity and data protection"},{id:"Cybersecurity and data protection litigation",name:"Cybersecurity and data protection litigation"},{id:"Damages (Litigation)",name:"Damages (Litigation)"},{id:"Data analysis and analytics",name:"Data analysis and analytics"},{id:"Data breach",name:"Data breach"},{id:"Data gathering",name:"Data gathering"},{id:"Data security",name:"Data security"},{id:"Data security regulators",name:"Data security regulators"},{id:"Data use, management, and security (Technology in law practice)",name:"Data use, management, and security (Technology in law practice)"},{id:"Daubert standard",name:"Daubert standard"},{id:"Deal structuring",name:"Deal structuring"},{id:"Debt instruments",name:"Debt instruments"},{id:"Debt restructuring",name:"Debt restructuring"},{id:"Debtor-in-possession financing",name:"Debtor-in-possession financing"},{id:"Decision-making (Career development and management)",name:"Decision-making (Career development and management)"},{id:"Defamation",name:"Defamation"},{id:"Default (Secured transactions)",name:"Default (Secured transactions)"},{id:"Deferred prosecution agreements",name:"Deferred prosecution agreements"},{id:"Defined benefit plans",name:"Defined benefit plans"},{id:"Defined contribution plans",name:"Defined contribution plans"},{id:"Delinquency-related penalties",name:"Delinquency-related penalties"},{id:"Depositions",name:"Depositions"},{id:"Derivatives",name:"Derivatives"},{id:"Digital and mass media",name:"Digital and mass media"},{id:"Digital assets",name:"Digital assets"},{id:"Digital marketing (Social media)",name:"Digital marketing (Social media)"},{id:"Digital privacy (Constitutional law)",name:"Digital privacy (Constitutional law)"},{id:"Diminished capacity",name:"Diminished capacity"},{id:"Direct examination",name:"Direct examination"},{id:"Directors and officers liability insurance",name:"Directors and officers liability insurance"},{id:"Disability (Special education)",name:"Disability (Special education)"},{id:"Disability discrimination (Employment discrimination)",name:"Disability discrimination (Employment discrimination)"},{id:"Disaster assistance",name:"Disaster assistance"},{id:"Disclosure (Securities and other financial products)",name:"Disclosure (Securities and other financial products)"},{id:"Disclosures (Corporate governance)",name:"Disclosures (Corporate governance)"},{id:"Discovery",name:"Discovery"},{id:"Dispute resolution",name:"Dispute resolution"},{id:"Distressed assets",name:"Distressed assets"},{id:"Distressed companies",name:"Distressed companies"},{id:"Distressed loans",name:"Distressed loans"},{id:"Distressed securities",name:"Distressed securities"},{id:"Diversity immigration",name:"Diversity immigration"},{id:"Diversity training in law practice",name:"Diversity training in law practice"},{id:"Diversity, inclusion, and elimination of bias",name:"Diversity, inclusion, and elimination of bias"},{id:"Diversity, inclusion, and elimination of bias in law practice",name:"Diversity, inclusion, and elimination of bias in law practice"},{id:"Divorce",name:"Divorce"},{id:"Domestic violence",name:"Domestic violence"},{id:"Drones",name:"Drones"},{id:"Dual registrants",name:"Dual registrants"},{id:"Due diligence (Mergers and acquisitions)",name:"Due diligence (Mergers and acquisitions)"},{id:"Due process (Special education)",name:"Due process (Special education)"},{id:"Duty to preserve",name:"Duty to preserve"},{id:"Earnings before interest, taxes, depreciation, and amortization",name:"Earnings before interest, taxes, depreciation, and amortization"},{id:"E-commerce",name:"E-commerce"},{id:"Economic substance",name:"Economic substance"},{id:"Education",name:"Education"},{id:"Eighth Amendment",name:"Eighth Amendment"},{id:"Elder abuse",name:"Elder abuse"},{id:"Elder law",name:"Elder law"},{id:"Election laws",name:"Election laws"},{id:"Electronic discovery",name:"Electronic discovery"},{id:"Electronic evidence",name:"Electronic evidence"},{id:"Electronic information (Ethics and professional responsibility)",name:"Electronic information (Ethics and professional responsibility)"},{id:"Elimination of bias",name:"Elimination of bias"},{id:"Emergency motions (Immigration and naturalization)",name:"Emergency motions (Immigration and naturalization)"},{id:"Emergency orders (Immigration and naturalization)",name:"Emergency orders (Immigration and naturalization)"},{id:"Employee benefit plans",name:"Employee benefit plans"},{id:"Employee benefits",name:"Employee benefits"},{id:"Employee benefits litigation",name:"Employee benefits litigation"},{id:"Employee discipline",name:"Employee discipline"},{id:"Employee privacy",name:"Employee privacy"},{id:"Employee stock ownership plans",name:"Employee stock ownership plans"},{id:"Employees",name:"Employees"},{id:"Employer securities",name:"Employer securities"},{id:"Employment agreements",name:"Employment agreements"},{id:"Employment and labor",name:"Employment and labor"},{id:"Employment discrimination",name:"Employment discrimination"},{id:"Employment interviews",name:"Employment interviews"},{id:"Employment litigation",name:"Employment litigation"},{id:"Employment taxes",name:"Employment taxes"},{id:"Employment training",name:"Employment training"},{id:"Employment-based immigration",name:"Employment-based immigration"},{id:"Energy",name:"Energy"},{id:"Energy efficiency",name:"Energy efficiency"},{id:"Enforcement (Antitrust)",name:"Enforcement (Antitrust)"},{id:"Enforcement (Corporate law)",name:"Enforcement (Corporate law)"},{id:"Enforcement (Environmental law)",name:"Enforcement (Environmental law)"},{id:"Enforcement (Health care)",name:"Enforcement (Health care)"},{id:"Enforcement (Immigration and naturalization)",name:"Enforcement (Immigration and naturalization)"},{id:"Enforcement (Intellectual property rights)",name:"Enforcement (Intellectual property rights)"},{id:"Enforcement (Life sciences)",name:"Enforcement (Life sciences)"},{id:"Enforcement (Political activity law)",name:"Enforcement (Political activity law)"},{id:"Enforcement (Secured transactions)",name:"Enforcement (Secured transactions)"},{id:"Enforcement (Securities and other financial products)",name:"Enforcement (Securities and other financial products)"},{id:"Environmental disclosure",name:"Environmental disclosure"},{id:"Environmental due diligence",name:"Environmental due diligence"},{id:"Environmental issues",name:"Environmental issues"},{id:"Environmental law",name:"Environmental law"},{id:"Environmental litigation",name:"Environmental litigation"},{id:"Environmental quality",name:"Environmental quality"},{id:"Environmental sustainability",name:"Environmental sustainability"},{id:"Equity funds",name:"Equity funds"},{id:"Equity instruments",name:"Equity instruments"},{id:"Equity lines of credit",name:"Equity lines of credit"},{id:"Estate planning",name:"Estate planning"},{id:"Estate tax",name:"Estate tax"},{id:"Estates and trusts",name:"Estates and trusts"},{id:"Ethical issues (Ethics and professional responsibility)",name:"Ethical issues (Ethics and professional responsibility)"},{id:"Ethics and professional responsibility",name:"Ethics and professional responsibility"},{id:"Ethiopia 241",name:"Ethiopia 241"},{id:"European Union",name:"European Union"},{id:"Eviction",name:"Eviction"},{id:"Evidence",name:"Evidence"},{id:"Exchange-traded funds",name:"Exchange-traded funds"},{id:"Executive compensation",name:"Executive compensation"},{id:"Exempt employees",name:"Exempt employees"},{id:"Exemptions (Qualified professional asset manager)",name:"Exemptions (Qualified professional asset manager)"},{id:"Expert witnesses",name:"Expert witnesses"},{id:"Explicit bias (Employment discrimination)",name:"Explicit bias (Employment discrimination)"},{id:"Exploited children",name:"Exploited children"},{id:"Export controls",name:"Export controls"},{id:"Fair housing",name:"Fair housing"},{id:"Fair lending",name:"Fair lending"},{id:"Fair use",name:"Fair use"},{id:"Fairness opinions",name:"Fairness opinions"},{id:"False advertising",name:"False advertising"},{id:"Family court",name:"Family court"},{id:"Family law",name:"Family law"},{id:"Family-based immigration",name:"Family-based immigration"},{id:"Fashion design",name:"Fashion design"},{id:"Federal contractors",name:"Federal contractors"},{id:"Fiduciary responsibilities (Board of directors)",name:"Fiduciary responsibilities (Board of directors)"},{id:"Fiduciary responsibility",name:"Fiduciary responsibility"},{id:"Fiduciary responsibility rules (Employee benefits)",name:"Fiduciary responsibility rules (Employee benefits)"},{id:"Fifth Amendment",name:"Fifth Amendment"},{id:"Filing system (Secured transactions)",name:"Filing system (Secured transactions)"},{id:"Film",name:"Film"},{id:"Finance and budgeting (Law practice management)",name:"Finance and budgeting (Law practice management)"},{id:"Financial accounting",name:"Financial accounting"},{id:"Financial audits",name:"Financial audits"},{id:"Financial capital",name:"Financial capital"},{id:"Financial crimes",name:"Financial crimes"},{id:"Financial distress",name:"Financial distress"},{id:"Financial institutions",name:"Financial institutions"},{id:"Financial instrument impairment",name:"Financial instrument impairment"},{id:"Financial markets",name:"Financial markets"},{id:"Financial products",name:"Financial products"},{id:"Financial reporting (Accounting and financial reporting)",name:"Financial reporting (Accounting and financial reporting)"},{id:"Financial services",name:"Financial services"},{id:"Financial services litigation",name:"Financial services litigation"},{id:"Financing",name:"Financing"},{id:"Fintech",name:"Fintech"},{id:"First Amendment",name:"First Amendment"},{id:"Forbearance agreements",name:"Forbearance agreements"},{id:"Foreign asset reporting penalties",name:"Foreign asset reporting penalties"},{id:"Foreign banking organizations",name:"Foreign banking organizations"},{id:"Foreign corporations",name:"Foreign corporations"},{id:"Foreign direct investment",name:"Foreign direct investment"},{id:"Foreign exchange controls",name:"Foreign exchange controls"},{id:"Foreign nationals (Political activity law)",name:"Foreign nationals (Political activity law)"},{id:"Foreign tax credits",name:"Foreign tax credits"},{id:"Foreign trusts",name:"Foreign trusts"},{id:"Form 10-K",name:"Form 10-K"},{id:"Form 10-Q",name:"Form 10-Q"},{id:"Form 20-F",name:"Form 20-F"},{id:"Form 8-K",name:"Form 8-K"},{id:"Form 990 reporting",name:"Form 990 reporting"},{id:"Form S-1",name:"Form S-1"},{id:"Foster care",name:"Foster care"},{id:"Fourth Amendment",name:"Fourth Amendment"},{id:"Fraudulent transfers",name:"Fraudulent transfers"},{id:"Free press",name:"Free press"},{id:"Free speech",name:"Free speech"},{id:"Freedom of religion",name:"Freedom of religion"},{id:"Fund managers",name:"Fund managers"},{id:"Fundraising (Nonprofit organizations)",name:"Fundraising (Nonprofit organizations)"},{id:"Futures contracts",name:"Futures contracts"},{id:"Gatekeepers",name:"Gatekeepers"},{id:"Gender roles and stereotypes in law practice",name:"Gender roles and stereotypes in law practice"},{id:"Gender-identity discrimination (Employment discrimination)",name:"Gender-identity discrimination (Employment discrimination)"},{id:"Generally Accepted Accounting Principles",name:"Generally Accepted Accounting Principles"},{id:"Generally Accepted Auditing Standards",name:"Generally Accepted Auditing Standards"},{id:"Gift tax",name:"Gift tax"},{id:"Government contracts",name:"Government contracts"},{id:"Government investigations (Data breach)",name:"Government investigations (Data breach)"},{id:"Government investigations (Immigration and naturalization)",name:"Government investigations (Immigration and naturalization)"},{id:"Government lawyers",name:"Government lawyers"},{id:"Grantor retained annuity trusts",name:"Grantor retained annuity trusts"},{id:"Ground leases",name:"Ground leases"},{id:"Guardianship (Family law)",name:"Guardianship (Family law)"},{id:"Habeas corpus petition (Immigration and naturalization)",name:"Habeas corpus petition (Immigration and naturalization)"},{id:"Hacking (Cybersecurity and data protection)",name:"Hacking (Cybersecurity and data protection)"},{id:"Harassment (Employment discrimination)",name:"Harassment (Employment discrimination)"},{id:"Health care",name:"Health care"},{id:"Health care fraud",name:"Health care fraud"},{id:"Health care providers",name:"Health care providers"},{id:"Health insurance",name:"Health insurance"},{id:"Hearings (Litigation)",name:"Hearings (Litigation)"},{id:"Hedge funds",name:"Hedge funds"},{id:"Higher education",name:"Higher education"},{id:"Horizontal agreements",name:"Horizontal agreements"},{id:"Hostile takeovers",name:"Hostile takeovers"},{id:"Hostile witnesses",name:"Hostile witnesses"},{id:"Hotels (Real estate)",name:"Hotels (Real estate)"},{id:"Housing",name:"Housing"},{id:"Immigrant communities",name:"Immigrant communities"},{id:"Immigrant visa processing",name:"Immigrant visa processing"},{id:"Immigration and naturalization",name:"Immigration and naturalization"},{id:"Immigration court",name:"Immigration court"},{id:"Immigration detention",name:"Immigration detention"},{id:"Immigration enforcement litigation",name:"Immigration enforcement litigation"},{id:"Immigration executive orders",name:"Immigration executive orders"},{id:"Implicit bias (Employment discrimination)",name:"Implicit bias (Employment discrimination)"},{id:"Inadmissibility (Immigration and naturalization)",name:"Inadmissibility (Immigration and naturalization)"},{id:"Inbound investment",name:"Inbound investment"},{id:"Incarcerated individuals",name:"Incarcerated individuals"},{id:"Income statements (Securities filings and financial statements)",name:"Income statements (Securities filings and financial statements)"},{id:"Income tax",name:"Income tax"},{id:"Indemnification clauses",name:"Indemnification clauses"},{id:"Independent contractors",name:"Independent contractors"},{id:"Independent directors",name:"Independent directors"},{id:"Indigent and low-income individuals",name:"Indigent and low-income individuals"},{id:"Information privacy (Cybersecurity and data protection)",name:"Information privacy (Cybersecurity and data protection)"},{id:"Information technology (Health care)",name:"Information technology (Health care)"},{id:"Information technology outsourcing",name:"Information technology outsourcing"},{id:"Information, data, and knowledge management (Legal operations)",name:"Information, data, and knowledge management (Legal operations)"},{id:"In-house counsel (Ethics and professional responsibility)",name:"In-house counsel (Ethics and professional responsibility)"},{id:"Initial public offerings",name:"Initial public offerings"},{id:"Injunctive relief",name:"Injunctive relief"},{id:"Insider trading",name:"Insider trading"},{id:"Insolvency",name:"Insolvency"},{id:"Insurance",name:"Insurance"},{id:"Insurance claims",name:"Insurance claims"},{id:"Insurance coverage",name:"Insurance coverage"},{id:"Insurance litigation",name:"Insurance litigation"},{id:"Insurance policies",name:"Insurance policies"},{id:"Insurance products",name:"Insurance products"},{id:"Intellectual property",name:"Intellectual property"},{id:"Intellectual property licensing",name:"Intellectual property licensing"},{id:"Inter partes review",name:"Inter partes review"},{id:"Intercreditor agreements",name:"Intercreditor agreements"},{id:"Internal control over financial reporting",name:"Internal control over financial reporting"},{id:"Internal investigations (Corporate law)",name:"Internal investigations (Corporate law)"},{id:"International arbitration",name:"International arbitration"},{id:"International employment",name:"International employment"},{id:"International estate planning",name:"International estate planning"},{id:"International Financial Reporting Standards",name:"International Financial Reporting Standards"},{id:"International investment and securities",name:"International investment and securities"},{id:"International IP transactions",name:"International IP transactions"},{id:"International law",name:"International law"},{id:"International litigation",name:"International litigation"},{id:"International sanctions",name:"International sanctions"},{id:"International tax",name:"International tax"},{id:"International tax reform",name:"International tax reform"},{id:"International trade",name:"International trade"},{id:"Internet",name:"Internet"},{id:"Internet of things",name:"Internet of things"},{id:"Internet service providers",name:"Internet service providers"},{id:"Interviewing, soliciting, and retaining clients",name:"Interviewing, soliciting, and retaining clients"},{id:"Invention disclosures",name:"Invention disclosures"},{id:"Investment advisers",name:"Investment advisers"},{id:"Investment banks",name:"Investment banks"},{id:"Investment companies",name:"Investment companies"},{id:"Investment fund management",name:"Investment fund management"},{id:"IP due diligence",name:"IP due diligence"},{id:"IP monetization",name:"IP monetization"},{id:"Irreparable harm",name:"Irreparable harm"},{id:"Joint employers",name:"Joint employers"},{id:"Judgment",name:"Judgment"},{id:"Juror questionnaire",name:"Juror questionnaire"},{id:"Jury",name:"Jury"},{id:"Jury consultants",name:"Jury consultants"},{id:"Jury investigation",name:"Jury investigation"},{id:"Jury selection",name:"Jury selection"},{id:"Jury trials",name:"Jury trials"},{id:"Juvenile delinquency",name:"Juvenile delinquency"},{id:"Juvenile immigration",name:"Juvenile immigration"},{id:"Knowledge management (Legal operations)",name:"Knowledge management (Legal operations)"},{id:"Labeling (Pharmaceuticals)",name:"Labeling (Pharmaceuticals)"},{id:"Labor certification",name:"Labor certification"},{id:"Labor law",name:"Labor law"},{id:"Labor unions",name:"Labor unions"},{id:"Landlord-tenant law",name:"Landlord-tenant law"},{id:"Last will and testament",name:"Last will and testament"},{id:"Law guardian",name:"Law guardian"},{id:"Law practice management",name:"Law practice management"},{id:"Leadership skills (Career development and management)",name:"Leadership skills (Career development and management)"},{id:"Lease accounting",name:"Lease accounting"},{id:"Leaves of absence",name:"Leaves of absence"},{id:"Legal innovation",name:"Legal innovation"},{id:"Legal operations",name:"Legal operations"},{id:"Legal process improvement",name:"Legal process improvement"},{id:"Legal project and time management",name:"Legal project and time management"},{id:"Legal representation (Attorney-client relations)",name:"Legal representation (Attorney-client relations)"},{id:"Legal services outsourcing and management",name:"Legal services outsourcing and management"},{id:"Legal technology",name:"Legal technology"},{id:"Legal writing, drafting, and negotiation",name:"Legal writing, drafting, and negotiation"},{id:"Letters of intent",name:"Letters of intent"},{id:"Leveraged finance",name:"Leveraged finance"},{id:"LGBTQ individuals",name:"LGBTQ individuals"},{id:"Liabilities (Securities filings and financial statements)",name:"Liabilities (Securities filings and financial statements)"},{id:"Liability (Fiduciary responsibility rules)",name:"Liability (Fiduciary responsibility rules)"},{id:"Libel",name:"Libel"},{id:"License agreements (Corporate contracts)",name:"License agreements (Corporate contracts)"},{id:"License terms (Intellectual property)",name:"License terms (Intellectual property)"},{id:"Life sciences",name:"Life sciences"},{id:"Lines of credit",name:"Lines of credit"},{id:"Liquidity risk",name:"Liquidity risk"},{id:"Litigation",name:"Litigation"},{id:"Litigation financing",name:"Litigation financing"},{id:"Living wills",name:"Living wills"},{id:"Lobbying (Political activity law)",name:"Lobbying (Political activity law)"},{id:"M&A agreements",name:"M&A agreements"},{id:"Machine learning",name:"Machine learning"},{id:"Management discussion and analysis",name:"Management discussion and analysis"},{id:"Margins",name:"Margins"},{id:"Market conduct (Insurance)",name:"Market conduct (Insurance)"},{id:"Marketplace lending",name:"Marketplace lending"},{id:"Markman hearings",name:"Markman hearings"},{id:"Measure of damages (Employment discrimination)",name:"Measure of damages (Employment discrimination)"},{id:"Media ownership",name:"Media ownership"},{id:"Mediation",name:"Mediation"},{id:"Medicaid",name:"Medicaid"},{id:"Medical devices",name:"Medical devices"},{id:"Medical records",name:"Medical records"},{id:"Medicare",name:"Medicare"},{id:"Mental health",name:"Mental health"},{id:"Mental health and substance abuse (Attorney wellness and stress reduction)",name:"Mental health and substance abuse (Attorney wellness and stress reduction)"},{id:"Merger review",name:"Merger review"},{id:"Mergers and acquisitions",name:"Mergers and acquisitions"},{id:"Minimum wage",name:"Minimum wage"},{id:"Mobile applications",name:"Mobile applications"},{id:"Mobile devices",name:"Mobile devices"},{id:"Money laundering",name:"Money laundering"},{id:"Monopolization",name:"Monopolization"},{id:"Mortgage loans",name:"Mortgage loans"},{id:"Motions (Litigation)",name:"Motions (Litigation)"},{id:"Motions to reopen, reconsider, and remand (Immigration and naturalization)",name:"Motions to reopen, reconsider, and remand (Immigration and naturalization)"},{id:"Multichannel networks",name:"Multichannel networks"},{id:"Multichannel video programming distributors",name:"Multichannel video programming distributors"},{id:"Multiemployer plans",name:"Multiemployer plans"},{id:"Multijurisdictional practice (Ethics and professional responsibility)",name:"Multijurisdictional practice (Ethics and professional responsibility)"},{id:"Multinational corporations",name:"Multinational corporations"},{id:"Municipal law",name:"Municipal law"},{id:"Municipal liability",name:"Municipal liability"},{id:"Music",name:"Music"},{id:"Mutual funds",name:"Mutual funds"},{id:"Naturalization",name:"Naturalization"},{id:"Negotiation (Dispute resolution)",name:"Negotiation (Dispute resolution)"},{id:"Net neutrality",name:"Net neutrality"},{id:"News media",name:"News media"},{id:"Non-GAAP financial measures",name:"Non-GAAP financial measures"},{id:"Nonimmigrant visas",name:"Nonimmigrant visas"},{id:"Non-practicing entities",name:"Non-practicing entities"},{id:"Nonprofit organizations",name:"Nonprofit organizations"},{id:"Notes (Securities filings and financial statements)",name:"Notes (Securities filings and financial statements)"},{id:"Obviousness",name:"Obviousness"},{id:"Office leases",name:"Office leases"},{id:"Oil and gas",name:"Oil and gas"},{id:"Online and traditional advertising",name:"Online and traditional advertising"},{id:"Online legal services (Technology in law practice)",name:"Online legal services (Technology in law practice)"},{id:"Online platforms",name:"Online platforms"},{id:"Open source software",name:"Open source software"},{id:"Opioid epidemic",name:"Opioid epidemic"},{id:"Oral arguments",name:"Oral arguments"},{id:"Orders of protection (Family law)",name:"Orders of protection (Family law)"},{id:"Over-the-top media services",name:"Over-the-top media services"},{id:"Overtime pay",name:"Overtime pay"},{id:"Owner-architect and owner-contractor agreements",name:"Owner-architect and owner-contractor agreements"},{id:"Parental rights",name:"Parental rights"},{id:"Parental visitation",name:"Parental visitation"},{id:"Partnership interests",name:"Partnership interests"},{id:"Partnership liability",name:"Partnership liability"},{id:"Partnership tax",name:"Partnership tax"},{id:"Passthroughs (Tax)",name:"Passthroughs (Tax)"},{id:"Patent applications",name:"Patent applications"},{id:"Patent claims",name:"Patent claims"},{id:"Patent damages",name:"Patent damages"},{id:"Patent infringement",name:"Patent infringement"},{id:"Patent litigation",name:"Patent litigation"},{id:"Patent monetization",name:"Patent monetization"},{id:"Patent portfolios",name:"Patent portfolios"},{id:"Patent prosecution",name:"Patent prosecution"},{id:"Patent specifications",name:"Patent specifications"},{id:"Patent valuation",name:"Patent valuation"},{id:"Patentability",name:"Patentability"},{id:"Patents",name:"Patents"},{id:"Pay equity",name:"Pay equity"},{id:"Pay-to-play (Political activity law)",name:"Pay-to-play (Political activity law)"},{id:"Pay-to-play (Securities and other financial products)",name:"Pay-to-play (Securities and other financial products)"},{id:"Perfection (Secured transactions)",name:"Perfection (Secured transactions)"},{id:"Personal injury litigation",name:"Personal injury litigation"},{id:"Personnel",name:"Personnel"},{id:"Pharmaceuticals",name:"Pharmaceuticals"},{id:"PIPEs",name:"PIPEs"},{id:"Placement agents (Financial services)",name:"Placement agents (Financial services)"},{id:"Pleadings (Litigation)",name:"Pleadings (Litigation)"},{id:"Political action committees",name:"Political action committees"},{id:"Political activity law",name:"Political activity law"},{id:"Portfolio management",name:"Portfolio management"},{id:"Post-grant proceedings",name:"Post-grant proceedings"},{id:"Post-traumatic stress disorder",name:"Post-traumatic stress disorder"},{id:"Power of attorney (Estates and trusts)",name:"Power of attorney (Estates and trusts)"},{id:"Practice skills (Accounting and financial reporting)",name:"Practice skills (Accounting and financial reporting)"},{id:"Practice skills (Antitrust)",name:"Practice skills (Antitrust)"},{id:"Practice skills (Banking and finance)",name:"Practice skills (Banking and finance)"},{id:"Practice skills (Bankruptcy and restructuring)",name:"Practice skills (Bankruptcy and restructuring)"},{id:"Practice skills (Commercial law)",name:"Practice skills (Commercial law)"},{id:"Practice skills (Communications and telecommunications)",name:"Practice skills (Communications and telecommunications)"},{id:"Practice skills (Corporate law)",name:"Practice skills (Corporate law)"},{id:"Practice skills (Cybersecurity and data protection)",name:"Practice skills (Cybersecurity and data protection)"},{id:"Practice skills (Employee benefits)",name:"Practice skills (Employee benefits)"},{id:"Practice skills (Employment and labor)",name:"Practice skills (Employment and labor)"},{id:"Practice skills (Ethics and professional responsibility)",name:"Practice skills (Ethics and professional responsibility)"},{id:"Practice skills (Family law)",name:"Practice skills (Family law)"},{id:"Practice skills (Health care)",name:"Practice skills (Health care)"},{id:"Practice skills (Immigration and naturalization)",name:"Practice skills (Immigration and naturalization)"},{id:"Practice skills (Intellectual property)",name:"Practice skills (Intellectual property)"},{id:"Practice skills (Litigation)",name:"Practice skills (Litigation)"},{id:"Practice skills (Municipal law)",name:"Practice skills (Municipal law)"},{id:"Practice skills (Pro bono)",name:"Practice skills (Pro bono)"},{id:"Practice skills (Real estate)",name:"Practice skills (Real estate)"},{id:"Practice skills (Securities and other financial products)",name:"Practice skills (Securities and other financial products)"},{id:"Practice skills (Tax)",name:"Practice skills (Tax)"},{id:"Practice skills (Technology)",name:"Practice skills (Technology)"},{id:"Preferred stock",name:"Preferred stock"},{id:"Pregnancy discrimination (Employment discrimination)",name:"Pregnancy discrimination (Employment discrimination)"},{id:"Pre-trial procedure",name:"Pre-trial procedure"},{id:"Price discrimination",name:"Price discrimination"},{id:"Price fixing",name:"Price fixing"},{id:"Pricing (Pharmaceuticals)",name:"Pricing (Pharmaceuticals)"},{id:"Prior art",name:"Prior art"},{id:"Prison litigation",name:"Prison litigation"},{id:"Privacy (Constitutional law)",name:"Privacy (Constitutional law)"},{id:"Private companies",name:"Private companies"},{id:"Private equity",name:"Private equity"},{id:"Private equity funds",name:"Private equity funds"},{id:"Private placement",name:"Private placement"},{id:"Pro bono",name:"Pro bono"},{id:"Pro bono relations and opportunities",name:"Pro bono relations and opportunities"},{id:"Probate (Estates and trusts)",name:"Probate (Estates and trusts)"},{id:"Product liability litigation",name:"Product liability litigation"},{id:"Professional conduct",name:"Professional conduct"},{id:"Professional development",name:"Professional development"},{id:"Professional liability insurance",name:"Professional liability insurance"},{id:"Prohibited transactions (Employee benefits)",name:"Prohibited transactions (Employee benefits)"},{id:"Project management (Legal operations)",name:"Project management (Legal operations)"},{id:"Proxy statements",name:"Proxy statements"},{id:"Public assistance",name:"Public assistance"},{id:"Public companies",name:"Public companies"},{id:"Public housing",name:"Public housing"},{id:"Qualified plans (Employee benefit plans)",name:"Qualified plans (Employee benefit plans)"},{id:"Qualified professional asset manager",name:"Qualified professional asset manager"},{id:"Quantum computing",name:"Quantum computing"},{id:"Race discrimination (Employment discrimination)",name:"Race discrimination (Employment discrimination)"},{id:"Real estate",name:"Real estate"},{id:"Real estate construction",name:"Real estate construction"},{id:"Real estate contracts",name:"Real estate contracts"},{id:"Real estate development",name:"Real estate development"},{id:"Real estate financing",name:"Real estate financing"},{id:"Real estate foreclosure",name:"Real estate foreclosure"},{id:"Real estate investment trusts",name:"Real estate investment trusts"},{id:"Real estate leasing",name:"Real estate leasing"},{id:"Real estate litigation",name:"Real estate litigation"},{id:"Real estate mergers and acquisitions",name:"Real estate mergers and acquisitions"},{id:"Real estate taxes",name:"Real estate taxes"},{id:"Real estate transactions",name:"Real estate transactions"},{id:"Real estate zoning",name:"Real estate zoning"},{id:"Real property",name:"Real property"},{id:"Real property taxes",name:"Real property taxes"},{id:"Reasonable cause defenses",name:"Reasonable cause defenses"},{id:"Recruitment (Employment and labor)",name:"Recruitment (Employment and labor)"},{id:"Redistricting",name:"Redistricting"},{id:"Registration statements (Securities filings and financial statements)",name:"Registration statements (Securities filings and financial statements)"},{id:"Regulation and compliance (Accounting and financial reporting)",name:"Regulation and compliance (Accounting and financial reporting)"},{id:"Regulation and compliance (Antitrust)",name:"Regulation and compliance (Antitrust)"},{id:"Regulation and compliance (Banking and finance)",name:"Regulation and compliance (Banking and finance)"},{id:"Regulation and compliance (Bankruptcy and restructuring)",name:"Regulation and compliance (Bankruptcy and restructuring)"},{id:"Regulation and Compliance (Commercial law)",name:"Regulation and Compliance (Commercial law)"},{id:"Regulation and compliance (Communications and telecommunications)",name:"Regulation and compliance (Communications and telecommunications)"},{id:"Regulation and compliance (Corporate law)",name:"Regulation and compliance (Corporate law)"},{id:"Regulation and compliance (Cybersecurity and data protection)",name:"Regulation and compliance (Cybersecurity and data protection)"},{id:"Regulation and compliance (Employee benefits)",name:"Regulation and compliance (Employee benefits)"},{id:"Regulation and compliance (Employment and labor)",name:"Regulation and compliance (Employment and labor)"},{id:"Regulation and compliance (Energy)",name:"Regulation and compliance (Energy)"},{id:"Regulation and compliance (Environmental law)",name:"Regulation and compliance (Environmental law)"},{id:"Regulation and compliance (Ethics and professional responsibility)",name:"Regulation and compliance (Ethics and professional responsibility)"},{id:"Regulation and compliance (Health care)",name:"Regulation and compliance (Health care)"},{id:"Regulation and compliance (Immigration and naturalization)",name:"Regulation and compliance (Immigration and naturalization)"},{id:"Regulation and compliance (Insurance)",name:"Regulation and compliance (Insurance)"},{id:"Regulation and compliance (International law)",name:"Regulation and compliance (International law)"},{id:"Regulation and compliance (Life sciences)",name:"Regulation and compliance (Life sciences)"},{id:"Regulation and compliance (Municipal law)",name:"Regulation and compliance (Municipal law)"},{id:"Regulation and compliance (Political activity law)",name:"Regulation and compliance (Political activity law)"},{id:"Regulation and compliance (Real estate)",name:"Regulation and compliance (Real estate)"},{id:"Regulation and compliance (Securities and other financial products)",name:"Regulation and compliance (Securities and other financial products)"},{id:"Regulation and compliance (Tax)",name:"Regulation and compliance (Tax)"},{id:"Regulation and compliance (Technology)",name:"Regulation and compliance (Technology)"},{id:"Remote legal proceedings",name:"Remote legal proceedings"},{id:"Removal proceedings (Immigration and naturalization)",name:"Removal proceedings (Immigration and naturalization)"},{id:"Renewable energy",name:"Renewable energy"},{id:"Rent control",name:"Rent control"},{id:"Reportable transaction penalties",name:"Reportable transaction penalties"},{id:"Resale price maintenance",name:"Resale price maintenance"},{id:"Retail leases",name:"Retail leases"},{id:"Retaliation (Employment discrimination)",name:"Retaliation (Employment discrimination)"},{id:"Retirement benefits",name:"Retirement benefits"},{id:"Return preparer penalties",name:"Return preparer penalties"},{id:"Revenue recognition",name:"Revenue recognition"},{id:"Right of publicity",name:"Right of publicity"},{id:"Risk allocation",name:"Risk allocation"},{id:"Risk factors (Securities and other financial products)",name:"Risk factors (Securities and other financial products)"},{id:"Risk management",name:"Risk management"},{id:"Risk management (Corporate governance)",name:"Risk management (Corporate governance)"},{id:"Robo-advisers",name:"Robo-advisers"},{id:"Sales (Artwork)",name:"Sales (Artwork)"},{id:"Sales contracts",name:"Sales contracts"},{id:"SALT",name:"SALT"},{id:"Search and seizure",name:"Search and seizure"},{id:"Section 16 filings",name:"Section 16 filings"},{id:"Section 1983 litigation (Civil rights)",name:"Section 1983 litigation (Civil rights)"},{id:"Secured transactions",name:"Secured transactions"},{id:"Securities and other financial products",name:"Securities and other financial products"},{id:"Securities arbitration",name:"Securities arbitration"},{id:"Securities filings and financial statements",name:"Securities filings and financial statements"},{id:"Securities fraud",name:"Securities fraud"},{id:"Securities litigation",name:"Securities litigation"},{id:"Securities offerings",name:"Securities offerings"},{id:"Securitization",name:"Securitization"},{id:"Security agreements (Secured transactions)",name:"Security agreements (Secured transactions)"},{id:"Security interest (Secured transactions)",name:"Security interest (Secured transactions)"},{id:"Settlement (Dispute resolution)",name:"Settlement (Dispute resolution)"},{id:"Sex-based discrimination (Employment discrimination)",name:"Sex-based discrimination (Employment discrimination)"},{id:"Sexual harassment (Employment discrimination)",name:"Sexual harassment (Employment discrimination)"},{id:"Shareholder litigation",name:"Shareholder litigation"},{id:"Shareholders (Corporate governance)",name:"Shareholders (Corporate governance)"},{id:"SIJS",name:"SIJS"},{id:"Slander",name:"Slander"},{id:"Smart contracts",name:"Smart contracts"},{id:"Social media",name:"Social media"},{id:"Social media use (Ethics and professional responsibility)",name:"Social media use (Ethics and professional responsibility)"},{id:"Social Security",name:"Social Security"},{id:"Social Security Disability Insurance",name:"Social Security Disability Insurance"},{id:"Software",name:"Software"},{id:"Software and computer applications in law practice",name:"Software and computer applications in law practice"},{id:"Software licenses",name:"Software licenses"},{id:"Sovereign wealth funds",name:"Sovereign wealth funds"},{id:"Special committees (Corporate governance)",name:"Special committees (Corporate governance)"},{id:"Special education",name:"Special education"},{id:"Specialty agreements",name:"Specialty agreements"},{id:"Spectrum management",name:"Spectrum management"},{id:"Spin-offs",name:"Spin-offs"},{id:"Sports",name:"Sports"},{id:"Spousal support",name:"Spousal support"},{id:"Structured finance",name:"Structured finance"},{id:"Student loans",name:"Student loans"},{id:"Subsidized housing",name:"Subsidized housing"},{id:"Substantial similarity",name:"Substantial similarity"},{id:"Summary judgments",name:"Summary judgments"},{id:"Supervision (Broker-dealers)",name:"Supervision (Broker-dealers)"},{id:"Supplemental Nutrition Assistance Program",name:"Supplemental Nutrition Assistance Program"},{id:"Supplemental Security Income",name:"Supplemental Security Income"},{id:"Sustainable business",name:"Sustainable business"},{id:"Swap dealers",name:"Swap dealers"},{id:"Takeover defenses",name:"Takeover defenses"},{id:"Tax",name:"Tax"},{id:"Tax accounting",name:"Tax accounting"},{id:"Tax credits",name:"Tax credits"},{id:"Tax penalties",name:"Tax penalties"},{id:"Tax planning and strategy",name:"Tax planning and strategy"},{id:"Tax reform",name:"Tax reform"},{id:"Tax treaties",name:"Tax treaties"},{id:"Taxable acquisitions",name:"Taxable acquisitions"},{id:"Tax-free acquisitions",name:"Tax-free acquisitions"},{id:"Technology",name:"Technology"},{id:"Technology in law practice",name:"Technology in law practice"},{id:"Technology litigation",name:"Technology litigation"},{id:"Technology-assisted review",name:"Technology-assisted review"},{id:"Technotainment",name:"Technotainment"},{id:"Television (Communications and telecommunications)",name:"Television (Communications and telecommunications)"},{id:"Tenant improvements",name:"Tenant improvements"},{id:"Tender offers",name:"Tender offers"},{id:"Termination of rights",name:"Termination of rights"},{id:"Trade dress",name:"Trade dress"},{id:"Trade secrets",name:"Trade secrets"},{id:"Trademark counterfeiting",name:"Trademark counterfeiting"},{id:"Trademark infringement",name:"Trademark infringement"},{id:"Trademark litigation",name:"Trademark litigation"},{id:"Trademark registration",name:"Trademark registration"},{id:"Trademarks",name:"Trademarks"},{id:"Travel bans (Immigration and naturalization)",name:"Travel bans (Immigration and naturalization)"},{id:"Trial",name:"Trial"},{id:"Unaccompanied alien child",name:"Unaccompanied alien child"},{id:"Undocumented children",name:"Undocumented children"},{id:"Unemployment insurance",name:"Unemployment insurance"},{id:"Unfair and deceptive, or abusive acts and practices",name:"Unfair and deceptive, or abusive acts and practices"},{id:"Unfair competition",name:"Unfair competition"},{id:"Unified loss rules",name:"Unified loss rules"},{id:"UPREITs",name:"UPREITs"},{id:"Valuations (Bankruptcy and restructuring)",name:"Valuations (Bankruptcy and restructuring)"},{id:"Valuations (Corporate finance)",name:"Valuations (Corporate finance)"},{id:"Value (Accounting and financial reporting)",name:"Value (Accounting and financial reporting)"},{id:"Venture capital",name:"Venture capital"},{id:"Venue",name:"Venue"},{id:"Vertical restraints",name:"Vertical restraints"},{id:"Veterans (Pro bono)",name:"Veterans (Pro bono)"},{id:"Victims of criminal activity (Immigration and naturalization)",name:"Victims of criminal activity (Immigration and naturalization)"},{id:"Victims of human trafficking (Immigration and naturalization)",name:"Victims of human trafficking (Immigration and naturalization)"},{id:"Video games",name:"Video games"},{id:"Visa Waiver Program",name:"Visa Waiver Program"},{id:"Voir dire",name:"Voir dire"},{id:"Voting rights",name:"Voting rights"},{id:"Vulnerable populations",name:"Vulnerable populations"},{id:"Wage and hour",name:"Wage and hour"},{id:"Water quality",name:"Water quality"},{id:"Whistleblowers",name:"Whistleblowers"},{id:"White collar crime",name:"White collar crime"},{id:"Wireless telecommunications",name:"Wireless telecommunications"},{id:"Witness preparation",name:"Witness preparation"},{id:"Witnesses",name:"Witnesses"},{id:"Women in law practice",name:"Women in law practice"},{id:"Work-life balance",name:"Work-life balance"},{id:"Workplace accommodations",name:"Workplace accommodations"},{id:"Workplace diversity",name:"Workplace diversity"},{id:"Workplace health and safety",name:"Workplace health and safety"},{id:"Workplace investigations",name:"Workplace investigations"},{id:"Workplace use (Social media)",name:"Workplace use (Social media)"},{id:"Workplace violence",name:"Workplace violence"},{id:"Wrongful conviction (Civil rights)",name:"Wrongful conviction (Civil rights)"}],yf=Object(c.b)((function(e){return{selectedIntegration:e.tenants.tenantSelectedIntegration,providers:e.tenants.tenantProviders,timezones:e.tenants.tenantTimezones}}),(function(e){return{getProviders:function(){return e((function(e){e(Ju(null));var t=new Ji({filterBy:[],searchCriteria:[],sortBy:"name",page:1,pageSize:-1});return ou.getAll(void 0,t).then((function(t){return e(Ju(t.providers)),t.providers})).catch((function(t){throw e(Ju([])),t.message}))}))},getIntegrations:function(){return e(Au())},getTimezones:function(){return e((function(e,t){return e(Du(null)),cu.getAll(void 0).then((function(t){e(Du(t.timezones))})).catch((function(){e(Du())}))}))},getIntegrationById:function(t){return e(function(e){return function(t){return su.getById(e,void 0).then((function(e){return e})).catch((function(e){throw e}))}}(t))},updateIntegration:function(t){return e(function(e){return function(t){return su.update(void 0,Gn.fromJS(e)).then((function(e){return e})).catch((function(e){throw e}))}}(t))},searchUsers:function(t){return e(Iu(t))}}})),bf=[{label:"3 months",value:3},{label:"6 months",value:6},{label:"1 year",value:12}],Sf=[19,30,31],gf=new Li({filterBy:[],sortBy:"lastName",page:1,pageSize:20,searchCriteria:["UserType: 1","UserStatus: 1","ExcludeInactive"]}),If=yf((function(e){var t,i,r=e.open,s=e.onClose,o=e.selectedIntegration,c=e.providers,l=e.getProviders,d=e.updateIntegration,h=e.getIntegrations,f=e.getIntegrationById,v=e.timezones,p=e.getTimezones,m=e.searchUsers,b=Object(a.useState)(),S=Object(y.a)(b,2),g=S[0],I=S[1],O=Object(u.useSnackbar)(),A=Object(a.useState)(),j=Object(y.a)(A,2),C=j[0],P=j[1],E=Object(a.useState)(!1),w=Object(y.a)(E,2),k=w[0],T=w[1];Object(a.useEffect)((function(){P(void 0),m(gf).then((function(e){P(e.users)}))}),[m]);var N=Object(Zh.useDebounce)((function(e){var t=new Li(Object(yd.a)({},gf));""!==e&&(t=new Li(Object(yd.a)(Object(yd.a)({},gf),{},{page:1,pageSize:20,filterBy:["lastName[contains]:".concat(e)]}))),m(t).then((function(e){var t;P(null!==(t=e.users)&&void 0!==t?t:[]),T(!1)}))}),500),J=null===g||void 0===g||null===(t=g.settings)||void 0===t?void 0:t.map((function(e){return{id:e.key||"",validationType:e.type||"",validations:e.validation&&""!==e.validation?JSON.parse(e.validation):[]}})),D=Object(dh.object)().shape(null===J||void 0===J?void 0:J.reduce(vf,{})),L=rf(null===g||void 0===g||null===(i=g.settings)||void 0===i?void 0:i.map((function(e){var t=e.value;return e&&"multilist"===e.type?{name:e.key,value:JSON.parse(t||"[]")}:e&&"checkbox"===e.type?{name:e.key,value:"true"===t}:e&&"date"===e.type?{name:e.key,value:t?tf(t,2):null}:{name:e.key,value:t}}))),U={initialValues:Object(yd.a)(Object(yd.a)({},L),{},{isEnabled:(null===g||void 0===g?void 0:g.isEnabled)||!1,isVisible:(null===g||void 0===g?void 0:g.isVisible)||!1,allowManualRun:(null===g||void 0===g?void 0:g.allowManualRun)||!1,schedule:(null===g||void 0===g?void 0:g.schedule)||"",timezoneID:(null===g||void 0===g?void 0:g.timezoneId)||""}),validationSchema:D,onSubmit:function(e,t){var i=Object(ff.a)((null===g||void 0===g?void 0:g.settings)||[]),r=Object.keys(e).map((function(t){var r=i.filter((function(e){return e.key===t}))[0],a="".concat(e[t]);return r?("multilist"===r.type&&(a=JSON.stringify(e[t])),"date"===r.type&&(a="null"!==a?tf(a,2):"null"),new vr({integrationSettingId:r.integrationSettingId,value:a})):r})),a=Object(yd.a)(Object(yd.a)({},g),{},{isEnabled:e.isEnabled,isVisible:e.isVisible,allowManualRun:e.allowManualRun,timezoneId:e.timezoneId,schedule:e.schedule,settings:Object(ff.a)(r.filter((function(e){return void 0!==e})))});d(a).then((function(e){O("".concat(e.name," integration updated"),"success"),h(),s()})).finally((function(){t.setSubmitting(!1)}))}};Object(a.useEffect)((function(){l(),p(),f((null===o||void 0===o?void 0:o.integrationId)||"").then((function(e){I(e)}))}),[p,l,o,f]);var R=function(e,t){switch(e.name){case"Provider":return n.a.createElement(u.SelectField,{formikContext:!0,label:e.name,id:e.key,fullWidth:!0},c&&c.map((function(e){return n.a.createElement(u.MenuItem,{value:"".concat(e.providerId),key:e.providerId},e.name)})));case"Feed":return n.a.createElement(u.ComboBox,{multiple:!0,formikContext:!0,disableCloseOnSelect:!0,label:e.name,id:e.key,optionId:"id",fullWidth:!0,options:pf||[]});case"Topic":return n.a.createElement(u.ComboBox,{multiple:!0,formikContext:!0,disableCloseOnSelect:!0,label:e.name,id:e.key,optionId:"id",fullWidth:!0,options:mf||[]});case"Email Notifications To":return n.a.createElement(u.ComboBox,{multiple:!0,formikContext:!0,disableCloseOnSelect:!0,label:e.name,id:e.key,optionId:"id",fullWidth:!0,options:(null===C||void 0===C?void 0:C.map((function(e){return function(e){return{id:e.userId,name:"".concat(e.lastName,", ").concat(e.firstName," (").concat(e.email,")"),email:e.email}}(e)})))||[],loadingText:"Searching users...",onInputChange:function(i,r,a){T(!0),N(r),"clear"===a&&t.values.EmailNotificationsTo.length>0&&t.setFieldValue(e.key,[])},noOptionsText:"Please type to search for users",loadResult:k});case"Catalog Integration Limit":return n.a.createElement(u.SelectField,{formikContext:!0,label:e.name,id:e.key,fullWidth:!0},bf.map((function(e){return n.a.createElement(u.MenuItem,{value:"".concat(e.value),key:e.value},e.label)})));default:switch(e.type){case"date":return n.a.createElement(u.DateTimeField,{fullWidth:!0,id:e.key,type:"date",defaultValue:null,label:e.name||"",formikContext:!0,format:"MMM DD, YYYY"});case"checkbox":return n.a.createElement(u.CheckboxField,{id:e.key,label:e.name||"",formikContext:!0});default:switch(e.key){case"FTPPassword":return n.a.createElement(u.TextField,{formikContext:!0,type:"new-password",fullWidth:!0,id:e.key,label:e.name});default:return n.a.createElement(u.TextField,{formikContext:!0,fullWidth:!0,id:e.key,label:e.name})}}}};return n.a.createElement(u.SideDrawer,{size:"sm",open:r,onClose:s},g&&n.a.createElement(lh.Formik,{initialValues:U.initialValues,validationSchema:U.validationSchema,onSubmit:U.onSubmit,enableReinitialize:!0},(function(e){var t,i;return n.a.createElement(u.Form,{id:"enable-integration",formikContext:!0},n.a.createElement(oh.SideDrawerHeader,{titleBar:{title:"Enable Integration"}}),n.a.createElement(oh.SideDrawerBody,null,n.a.createElement(u.Grid,{container:!0,spacing:"form"},null===g||void 0===g||null===(t=g.settings)||void 0===t?void 0:t.map((function(t){return t.isVisible&&!Sf.includes(t.integrationSettingId||0)&&n.a.createElement(u.Grid,{item:!0,xs:12,key:t.integrationSettingId},R(t,e))})),null===g||void 0===g||null===(i=g.settings)||void 0===i?void 0:i.filter((function(e){return Sf.includes(e.integrationSettingId||0)})).map((function(t){return t.isVisible&&"PLI"===t.integrationId&&n.a.createElement(u.Grid,{item:!0,xs:12,key:t.integrationSettingId},R(t,e))})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{label:"Enable",id:"isEnabled",formikContext:!0})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{label:"Show",id:"isVisible",formikContext:!0})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{label:"Allow Manual Run",id:"allowManualRun",formikContext:!0})),(null===g||void 0===g?void 0:g.allowSchedule)&&e.values.isEnabled&&n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Card,{background:"grey",variant:"outlined"},n.a.createElement(u.CardContent,null,n.a.createElement(u.Grid,{container:!0,spacing:"form"},n.a.createElement(u.Grid,{item:!0,alignment:"top-left",lg:12},n.a.createElement(u.Typography,{variant:"subtitle2"},"Schedule Information")),n.a.createElement(u.Grid,{item:!0,lg:4,md:12,xs:12,stretchContent:!0},n.a.createElement(u.TextField,{fullWidth:!0,id:"schedule",formikContext:!0,label:"Schedule (CRON)",defaultValue:g.schedule||""})),v&&n.a.createElement(u.Grid,{item:!0,lg:8,md:12,xs:12,stretchContent:!0},n.a.createElement(u.SelectField,{loading:null===v,formikContext:!0,defaultValue:g.timezoneId,label:"Timezone",id:"timezoneId",fullWidth:!0,variant:"outlined"},null===v||void 0===v?void 0:v.map((function(e){return n.a.createElement(u.MenuItem,{key:e.timezoneId,value:e.timezoneId},e.name)})))),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Alert,{variant:"standard",type:"info"},"Recurrence: ",g.recurrence,"; Next Occurence: ",tf(g.nextOccurrence,5))))))))),n.a.createElement(oh.SideDrawerFooter,null,n.a.createElement(u.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",disabled:!e.dirty},"Save"),n.a.createElement(u.Button,{color:"default",type:"reset",onClick:s,variant:"outlined"},"Cancel")))})))})),Of=Object(c.b)((function(e){return{integrations:e.tenants.tenantIntegrations,selectedTenant:e.tenants.selectedTenant}}),(function(e){return{getIntegrations:function(){return e(Au())},setSelectedIntegration:function(t){return e(function(e){return{type:"SET_TENANT_SELECTED_INTEGRATION",payload:e}}(t))}}}))((function(e){var t=e.getIntegrations,i=e.integrations,r=e.selectedTenant,s=e.setSelectedIntegration,o=Object(a.useState)(!1),c=Object(y.a)(o,2),l=c[0],d=c[1];Object(a.useEffect)((function(){t()}),[t]);var h=[{Header:"Name",accessor:"name"},{Header:"Code",accessor:"integrationId"},{Header:"Tags",accessor:"tags",Cell:function(e){var t,i=e.row.original;return n.a.createElement(hf,{items:null===i||void 0===i||null===(t=i.tags)||void 0===t?void 0:t.map((function(e){return e.name}))})},disableSortBy:!0},{Header:"Schedule",accessor:"",Cell:function(e){var t=e.row.original;return(null===t||void 0===t?void 0:t.allowSchedule)&&n.a.createElement(u.SystemIcon,{icon:"Calendar"})},disableSortBy:!0},{Header:"Show",accessor:"isVisible",Cell:function(e){var t=e.cell;return n.a.createElement(u.SystemIcon,{icon:t.value?"Check":"Close",size:"sm"})}},{Header:"Status",accessor:"isEnabled",Cell:function(e){var t=e.cell;return n.a.createElement(u.Chip,{variant:"outlined",label:t.value?"Enabled":"Disabled",size:"small",color:t.value?"primary":"secondary"})}}],f=n.a.createElement(u.DataTable,{loading:null===i,data:i,columns:h,onRowClick:function(e){return t=e.original,s(t),void d(!0);var t}});return n.a.createElement(u.Screen,{titleBar:{title:"".concat(null===r||void 0===r?void 0:r.name,": Integrations")},maxWidth:!1},f,l&&n.a.createElement(If,{open:l,onClose:function(){return d(!1)}}))})),Af=function(e){var t=new Di({sortBy:"-isDefault,name",pageSize:-1});return function(i,r){return fu.getRoles(void 0,Di.fromJS(e||t)).then((function(e){return e})).catch((function(e){i(gu(e))}))}},jf=function(e){return function(t){return vu.get(e,void 0).then((function(e){return e.permissionSets})).catch((function(e){t(gu(e))}))}},Cf=function(e){var t=e.disabled,i=e.selectedRole,r=e.inEditMode,a=Object(u.UseFormikContext)(!0);return n.a.createElement(u.Grid,{container:!0,spacing:"form"},r&&n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Column,{flex:1,crossAxisAlignment:"stretch"},n.a.createElement(u.Expanded,null,n.a.createElement(u.Typography,{variant:"caption"},"System Role Type")),n.a.createElement(u.ToggleButtonGroup,{formikContext:!0,stretch:!0,id:"type",exclusive:!0,options:function(){var e=Array();return Object.values(en).forEach((function(t){var i=Number(t),a=function(e){var t;return(null!==(t=en[e])&&void 0!==t?t:"").replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()}))}(i);Number.isNaN(i)||a.includes("Global Work")||e.push({label:a,value:i,disabled:r})})),e}()}))),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"name",label:"Role Name",disabled:t||(null===i||void 0===i?void 0:i.isSystem)})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{formikContext:!0,id:"description",label:"Description",fullWidth:!0,multiline:!0,rows:"5",rowsMax:"10",disabled:t||(null===i||void 0===i?void 0:i.isSystem)})),n.a.createElement(u.Grid,{item:!0,xs:12,key:"active",stretchContent:!0},n.a.createElement(u.CheckboxField,{label:"Active",formikContext:!0,id:"isActive",onChange:function(){var e=null===a||void 0===a?void 0:a.getFieldProps("isDefault").value;a&&a.setFieldValue("isDefault",null!==e&&void 0!==e&&null)},disabled:t||(null===i||void 0===i?void 0:i.isSystem)&&i.isDefault})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.CheckboxField,{label:"Default",formikContext:!0,id:"isDefault",disabled:t||!1===(null===a||void 0===a?void 0:a.getFieldProps("isActive").value)||(null===i||void 0===i?void 0:i.isSystem)&&i.isDefault})))},Pf=Object(c.b)((function(){return{}}),(function(e){return{showConfirmation:function(t){return e(Ku(t))}}}))((function(e){var t=e.disabled,i=e.id,r=e.enabledPermissionSetIds,s=e.loading,o=e.permissionSets,c=e.showConfirmation,l=e.formik,d=e.roleType,h=Object(a.useState)(),f=Object(y.a)(h,2),v=f[0],p=f[1],m=Object(a.useState)((function(){return d===en.ApiClient?"admin":"portal"})),b=Object(y.a)(m,2),S=b[0],g=b[1],I=Object(a.useState)([]),O=Object(y.a)(I,2),A=O[0],j=O[1],C=Object(a.useState)(!1),P=Object(y.a)(C,2),E=P[0],w=P[1],k=Object(a.useState)(l?l.getFieldProps(i).value:null!==r&&void 0!==r?r:[]),T=Object(y.a)(k,2),N=T[0],J=T[1],D=[da.ViewUsers,da.ViewCourses,da.ViewSessions,da.ViewPortalUserPreference];Object(a.useEffect)((function(){if(o){var e=o.map((function(e){return e.category})).filter((function(e,t,i){return i.indexOf(e)===t})).filter((function(e){var t=void 0!==la[e]&&null!==la[e]?la[e].toString():"";return"portal"===S&&t.includes("Portal")?e:"admin"!==S||t.includes("Portal")?null:e}));p(e)}}),[o,S,p]);var L=function(e){if(o&&N){var t=Object(ff.a)(N);e.forEach((function(e){var i=t.indexOf(e);-1===i?t.push(e):t.splice(i,1)})),l.setFieldValue(i,t),J(t)}},U=function(e,t){var i=t.dependencies,r=t.permissionSetId;if(r&&i){var a=i.filter((function(t){return t.sourceValue===e&&(null===N||void 0===N?void 0:N.includes(t.targetPermissionSetId))!==t.targetValue}));a.length>0?function(e,t,i){var r=e?"Enable":"Disable",a=i.map((function(e){var t;return e&&(null===o||void 0===o||null===(t=o.find((function(t){return t.permissionSetId===e.targetPermissionSetId})))||void 0===t?void 0:t.name)})),n="This will ".concat(r.toLowerCase()," the following permissions:\n").concat(a);c({message:n,title:"Confirm ".concat(r),OnConfirm:function(){L([t].concat(Object(ff.a)(i.map((function(e){return e.targetPermissionSetId})))))}})}(e,r,a):L([r])}},R=function(e){var t;return(null!==(t=la[e])&&void 0!==t?t:"").replace(/([A-Z])/g," $1").replace("Portal","").replace(/^./,(function(e){return e.toUpperCase()}))};return n.a.createElement(u.Grid,{container:!0,spacing:"form"},s?n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Box,null,n.a.createElement(u.Skeleton,{width:"100%",height:"50px",variant:"rect"}))):o&&(null===o||void 0===o?void 0:o.length)<1?n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Card,{variant:"outlined"},n.a.createElement(u.Box,{color:"#026799",marginTop:1,marginBottom:1,marginLeft:2},n.a.createElement(u.Row,{crossAxisAlignment:"middle"},n.a.createElement(u.Expanded,{flex:0,mr:2},n.a.createElement(u.SystemIcon,{icon:"Info",size:"sm"})),n.a.createElement(u.Expanded,{flex:1},n.a.createElement(u.Typography,{variant:"body2",align:"left"},"No available permissions for the selected role type.")))))):n.a.createElement(n.a.Fragment,null,d===en.Administrator&&n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.ToggleButtonGroup,{stretch:!0,value:S,onChange:function(e,t){null!==t&&g(t)},exclusive:!0,options:[{label:"Admin",value:"admin"},{label:"Portal",value:"portal"}]})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Row,{flex:1,crossAxisAlignment:"middle"},n.a.createElement(u.Expanded,{flex:1},n.a.createElement(u.Button,{color:"default",variant:"outlined",onClick:function(){if(A&&v)if(A.length!==v.length){var e=Object(ff.a)(v);j(e),w(!0)}else j([]),w(!1)},size:"small"},E?"Collapse All":"Expand All")),n.a.createElement(u.Expanded,{flex:0},l&&n.a.createElement(u.Button,{color:"primary",variant:"contained",onClick:function(){if(o&&N)if(o.length!==(null===N||void 0===N?void 0:N.length)){var e=o.map((function(e){return e.permissionSetId}));l.setFieldValue(i,e),J(e)}else l.setFieldValue(i,D),J(D)},disabled:t,size:"small"},(null===o||void 0===o?void 0:o.length)!==(null===N||void 0===N?void 0:N.length)?"Enable All":"Disable All")))),v&&v.map((function(e){return n.a.createElement(u.Grid,{item:!0,xs:12,key:e},n.a.createElement(u.ExpansionPanel,{onChange:function(){!function(e){if(A&&v){var t=Object(ff.a)(A),i=t.indexOf(e);-1===i?t.push(e):t.splice(i,1),t.length!==v.length?w(!1):w(!0),j(t)}}(e)},variant:"outlined",expanded:A.includes(e),summaryVariant:"none",key:e,summary:n.a.createElement(u.Typography,{variant:"body1"},R(e)),details:n.a.createElement(u.Grid,{container:!0,spacing:"form"},o&&(null===o||void 0===o?void 0:o.filter((function(t){return t.category===e})).map((function(e){var i=D.includes(e.permissionSetId);return n.a.createElement(u.Grid,{item:!0,xs:12,key:e.permissionSetId},l?n.a.createElement(u.CheckboxField,{label:e.name,formikContext:!1,id:"permissionSet.".concat(e.permissionSetId),checked:null===N||void 0===N?void 0:N.includes(e.permissionSetId),onChange:function(t,i){U(i,e)},disabled:t||i}):n.a.createElement(u.Row,{flex:1,crossAxisAlignment:"middle"},n.a.createElement(u.Expanded,{flex:1},n.a.createElement(u.Typography,{variant:"body2"},e.name)),n.a.createElement(u.Expanded,{flex:0},(null===N||void 0===N?void 0:N.includes(e.permissionSetId))?n.a.createElement(u.Pill,{variant:"outlined",type:"success",value:"Access Granted"}):n.a.createElement(u.Pill,{variant:"outlined",type:"error",value:"No Access"}))))}))))}))}))))})),Ef=function(e){var t=e.description,i=e.label,r=e.options,a=e.open,s=e.onClose,o=e.onSave,c=e.isSearching,l=e.onSearch,d=e.sourceComponentName,h={initialValues:{selectedRecords:[]},validationSchema:Object(dh.object)().shape({selectedRecords:"userRolesList"===d?Object(dh.array)().ensure().min(1,"Required").required("Required"):Object(dh.array)()}),onSubmit:function(e,t){var i=e.selectedRecords;o(i instanceof Array?i:[i]).then((function(){t.setSubmitting(!1)})).finally((function(){s()}))}},f=d&&"userRolesList"===d?n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Alert,{variant:"standard",type:"warning"},"Role selected below will replace the old role associated to the selected user(s). Please update with caution.")):d&&"RoleUsersTab"===d?n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Alert,{variant:"standard",type:"warning"},"The old role associated to the selected user(s) below will be lost, and will be replaced by this new role. Please update with caution.")):null;return n.a.createElement(u.Dialog,{open:a,onClose:s,maxWidth:"sm",fullWidth:!0},n.a.createElement(lh.Formik,{initialValues:h.initialValues,onSubmit:h.onSubmit,validationSchema:h.validationSchema,enableReinitialize:!0,key:"recordSelection"},(function(e){return n.a.createElement(u.Form,{id:"recordSelection",formikContext:!0},n.a.createElement(Zu.DialogHeader,{titleBar:{title:"".concat("License"===i?"Add":"Assign"," ").concat(i).concat("Role"===i?"":"s"),onClose:s}}),n.a.createElement(Zu.DialogBody,null,n.a.createElement(u.Grid,{container:!0,spacing:"form"},t&&n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Typography,{variant:"body2"},t)),f,n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.ComboBox,{formikContext:!0,id:"selectedRecords",variant:"outlined",fullWidth:!0,label:"".concat(i).concat(d&&"userRolesList"===d?"":"s"),loadingText:"Searching ".concat(i,"..."),loadResult:c,multiple:!d||"userRolesList"!==d,options:r||[],onInputChange:function(e,t){l&&l(t)},required:!(!d||"userRolesList"!==d)})))),n.a.createElement(Zu.DialogFooter,null,n.a.createElement(u.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){s()}},"Cancel"),n.a.createElement(u.Button,{color:"primary",variant:"contained",loading:e.isSubmitting,type:"submit",disabled:!e.dirty||!e.isValid},"Assign")))})))},wf=$h((function(e){var t=e.id,i=e.label,r=e.data,s=e.columns,o=e.hasManagePermission,c=e.options,l=e.onRemove,d=e.onAssign,h=e.isSearching,f=e.onSearch,v=e.sourceComponentName,p=Object(a.useState)(!1),m=Object(y.a)(p,2),b=m[0],S=m[1],g=Object(zh.useDataGridContext)(),I=g.setSelectedIdList,O=g.selectedIdList,A=sf(O);Object(a.useEffect)((function(){r&&I({})}),[r,I]),Object(a.useEffect)((function(){b&&f&&f("")}),[b,f]);var j="RoleUsersTab"===v?null:n.a.createElement(fh,{icon:n.a.createElement(u.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),title:"Actions",menu:[{label:"Remove ".concat(i,"s"),icon:n.a.createElement(u.SystemIcon,{icon:"Delete"}),disable:0===A.selectedIds.length,onClick:function(){return l&&l(A.selectedIds,I)}}]});return n.a.createElement(u.Grid,{container:!0,stretchContent:!0,key:i,spacing:"form"},n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.DataGrid,{id:t,advanced:!0,onSelectAll:function(){return null===r||void 0===r?void 0:r.map((function(e){return e[t]}))},autoResetSelectedRows:!0,loading:void 0===r,columns:s,data:r&&r,withRowSelection:o&&"RoleUsersTab"!==v,hideRowsPerPage:!0,pageSize:10,totalRecords:r&&r.length,tableActions:o&&n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{variant:"text",color:"primary",size:"small",onClick:function(){return S(!0)},startIcon:n.a.createElement(u.SystemIcon,{icon:"Add",type:"solid",size:"sm"})},"".concat("License"===i?"Add":"Assign"," ").concat(i,"s")),j)})),b&&n.a.createElement(Ef,{label:i,options:c,open:b,onClose:function(){return S(!1)},onSave:function(e){return d(e)},isSearching:h,onSearch:f,sourceComponentName:v}))})),kf={filterBy:[],searchCriteria:["Active"],sortBy:"name",page:1,pageSize:10},Tf=function(e){return function(t){var i=new ki(kf);return lu.getAll(void 0,e?ki.fromJS(e):i).then((function(e){return e})).catch((function(e){throw t(gu(e)),e}))}},Nf=function(e){return function(t){var i=Array();""!==e&&i.push("FirstName[contains]:".concat(e));var r=Object(yd.a)(Object(yd.a)({},kf),{},{filterBy:i});return t(Tf(r))}},Jf=function(e){return function(t){return lu.create(void 0,Xt.fromJS(e)).then((function(e){return t(Tf()),e})).catch((function(e){t(gu(e))}))}},Df=Object(c.b)((function(){return{}}),(function(e){return{assignApiClients:function(t){return e(function(e){var t,i="Api ".concat(1===(null===(t=e.roleApiClientIds)||void 0===t?void 0:t.length)?"Client":"Clients"," successfully assigned to role.");return function(t){return fu.assignApiClientToRole(void 0,e).then((function(e){return t(Su({message:i,variant:"success"})),!0})).catch((function(e){return t(gu(e)),!1}))}}(t))},confirmDialog:function(t){return e(Ku(t))},searchApiClients:function(t){return e(Nf(t))}}}))((function(e){var t=e.assignApiClients,i=e.onSuccess,r=e.searchApiClients,s=e.selectedRole,o=e.componentName,c=e.setSelectedRole,l=Object(a.useState)(),d=Object(y.a)(l,2),h=d[0],f=d[1],v=Object(a.useState)(!1),p=Object(y.a)(v,2),m=p[0],b=p[1],S=He(le.ManageTenantSettings),g=Object(Zh.useDebounce)((function(e){b(!0),r(e).then((function(e){if(e&&e.apiClients){var t,i,r=null!==(t=null===s||void 0===s||null===(i=s.roleApiClients)||void 0===i?void 0:i.map((function(e){return e.apiClientId})))&&void 0!==t?t:[],a=e.apiClients.filter((function(e){return!r.includes(e.apiClientId)})).map((function(e){return{id:e.apiClientId,name:"".concat(e.name)}}));f(null!==a&&void 0!==a?a:[])}b(!1)}))})),I=[{Header:"Name",accessor:"firstName",Cell:function(e){var t=e.row.original;return n.a.createElement(u.DetailList,{avatarText:"".concat(Ph(t.name)[0]),name:"".concat(t.name)})}}];return n.a.createElement(oh.SideDrawerBody,{maxWidth:!1},n.a.createElement(wf,{id:"apiClientId",label:"Api Client",columns:S?I:I.filter((function(e){return"Actions"!==e.Headers})),hasManagePermission:S,data:null===s||void 0===s?void 0:s.roleApiClients,options:null!==h&&void 0!==h?h:[],onAssign:function(e){return f(void 0),i&&i(),t(new Tt({roleId:null===s||void 0===s?void 0:s.roleId,roleApiClientIds:e.map((function(e){return e.id}))})).then((function(){var t,i=e.map((function(e){return tn.fromJS({name:e.name,apiClientId:e.id})}));null===s||void 0===s||null===(t=s.roleApiClients)||void 0===t||t.push.apply(t,Object(ff.a)(i)),c(bd(s,{roleApiClients:null===s||void 0===s?void 0:s.roleApiClients}))}))},isSearching:m,onSearch:function(e){g(e)},sourceComponentName:o}))})),Lf=Object(c.b)((function(e){return{}}),(function(e){return{updateRole:function(t){return e((i=t,function(e){var t=new Bn(i);return fu.updateRole(void 0,t).then((function(){return e(Af()),!0})).catch((function(t){return e(gu(t)),!1}))}));var i},getPermissionSets:function(t){return e(jf(t))}}}))((function(e){var t,i,r,s,o,c,l,d=e.getPermissionSets,h=e.open,f=e.onClose,v=e.onSuccess,p=e.selectedRole,m=e.setSelectedRole,b=e.updateRole,S=Object(a.useState)(!1),g=Object(y.a)(S,2),I=g[0],O=g[1],A=Object(a.useState)(),j=Object(y.a)(A,2),C=j[0],P=j[1],E=He(le.ManageTenantSettings);Object(a.useEffect)((function(){h&&p&&d(null===p||void 0===p?void 0:p.type).then((function(e){e&&P(e)}))}),[h,p,d,P]);var w={initialValues:{name:null!==(t=null===p||void 0===p?void 0:p.name)&&void 0!==t?t:"",description:null!==(i=null===p||void 0===p?void 0:p.description)&&void 0!==i?i:"",type:null!==(r=null===p||void 0===p?void 0:p.type)&&void 0!==r?r:-1,isActive:null!==(s=null===p||void 0===p?void 0:p.isActive)&&void 0!==s&&s,isDefault:null!==(o=null===p||void 0===p?void 0:p.isDefault)&&void 0!==o&&o,permissionSetList:null!==(c=null===p||void 0===p||null===(l=p.rolePermissionSets)||void 0===l?void 0:l.map((function(e){return e.permissionSetId})))&&void 0!==c?c:[]},validationSchema:Object(dh.object)().shape({name:Object(dh.string)().required("Required").max(50,"Role Name is too long!"),description:Object(dh.string)().max(255,"Description must not exceed 255 characters.").nullable(),type:Object(dh.number)().positive("Required"),permissionSetList:Object(dh.array)()}),onSubmit:function(e,t){var i,r=e.name,a=e.description,n=e.type,s=e.isActive,o=e.isDefault,c=e.permissionSetList,l=Array();c.forEach((function(e){e&&l.push(new sn({permissionSetId:Number(e),name:da[e]}))})),m(Object(yd.a)(Object(yd.a)({},p),{},{name:r,description:a,type:n,isActive:s,isDefault:null!==o&&void 0!==o&&o,rolePermissionSets:l})),i={roleId:p.roleId,name:r,description:a,isActive:s,isDefault:o,rolePermissionSets:c},O(!0),b(i).then((function(){O(!1),v(),f()})),t.setSubmitting(!1)}},k=function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement(u.Button,{color:"default",fullWidth:!0,variant:"outlined",type:"reset",onClick:function(){f()}},"Cancel"),n.a.createElement(u.Button,{loading:I,fullWidth:!0,color:"primary",variant:"contained",type:"submit",disabled:!E||!e.dirty},"Save"))};return n.a.createElement(ch.a,{size:"sm",open:h,onClose:f},n.a.createElement(lh.Formik,{initialValues:w.initialValues,validationSchema:w.validationSchema,onSubmit:w.onSubmit,enableReinitialize:!0},(function(e){var t,i,r=[{id:"details",label:"Details",component:n.a.createElement(n.a.Fragment,null,n.a.createElement(oh.SideDrawerBody,{maxWidth:!1},n.a.createElement(Cf,{inEditMode:!0,selectedRole:p,disabled:!E})),n.a.createElement(oh.SideDrawerFooter,null,n.a.createElement(k,{dirty:e.dirty})))},{id:"users",label:n.a.createElement(u.Row,null,n.a.createElement(u.Typography,null,"Api Clients"),n.a.createElement(u.Box,{ml:1},n.a.createElement(u.Chip,{size:"small",label:(null===p||void 0===p||null===(t=p.roleApiClients)||void 0===t?void 0:t.length)||"0"}))),component:n.a.createElement(Df,{key:1,onSuccess:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){v()})),componentName:"RoleUsersTab",selectedRole:p,setSelectedRole:m})},{id:"permissions",label:"Permissions",component:n.a.createElement(n.a.Fragment,null,n.a.createElement(oh.SideDrawerBody,{maxWidth:!1},n.a.createElement(Pf,{key:"rolePermissions",formik:e,id:"permissionSetList",roleType:null!==(i=null===p||void 0===p?void 0:p.type)&&void 0!==i?i:1,loading:!C,permissionSets:null!==C&&void 0!==C?C:[],disabled:!E||(null===p||void 0===p?void 0:p.isSystem)})),n.a.createElement(oh.SideDrawerFooter,null,n.a.createElement(k,{dirty:e.dirty})))}];return n.a.createElement(u.Form,{id:"roleDetails",formikContext:!0},n.a.createElement(oh.SideDrawerHeader,{titleBar:{title:"Edit Role"},tabs:r}))})))})),Uf=Object(a.createContext)({role:null,setRole:function(){},permissionSets:null,setPermissionSets:function(){}}),Rf=function(){return Object(a.useContext)(Uf)},xf=function(e){var t,i,r,a,s,o,c=Rf(),l=c.role,d=c.setRole,h=null===(t=en[null===l||void 0===l?void 0:l.type])||void 0===t?void 0:t.replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()})),f={initialValues:{name:null!==(i=null===l||void 0===l?void 0:l.name)&&void 0!==i?i:"",description:null!==(r=null===l||void 0===l?void 0:l.description)&&void 0!==r?r:"",type:null!==(a=null===l||void 0===l?void 0:l.type)&&void 0!==a?a:1,isActive:null===(s=null===l||void 0===l?void 0:l.isActive)||void 0===s||s,isDefault:null!==(o=null===l||void 0===l?void 0:l.isDefault)&&void 0!==o&&o},validationSchema:Object(dh.object)().shape({name:Object(dh.string)().required("Required").max(50,"Role Name is too long!"),description:Object(dh.string)().max(255,"Description must not exceed 255 characters.").nullable(),type:Object(dh.number)().positive("Required")}),onSubmit:function(e,t){var i=e.name,r=e.description,a=e.type,n=e.isActive,s=e.isDefault;d({name:i,description:r,type:a,isActive:n,isDefault:s,rolePermissionSets:null===l||void 0===l?void 0:l.rolePermissionSets,roleUsers:null===l||void 0===l?void 0:l.roleUsers,roleApiClients:null===l||void 0===l?void 0:l.roleApiClients}),t.setSubmitting(!1)}};return n.a.createElement(lh.Formik,{initialValues:f.initialValues,validationSchema:f.validationSchema,onSubmit:f.onSubmit,enableReinitialize:!0,key:"details"},(function(){return n.a.createElement(u.Form,{id:"details",formikContext:!0},n.a.createElement(vh.WizardDialogBody,{titleBar:{title:"".concat(h," Role Detail")},maxWidth:"md"},n.a.createElement(Cf,{selectedRole:l,inEditMode:!1})),n.a.createElement(vh.WizardDialogFooter,{onNext:"submit"}))}))},Ff=Object(c.b)(null,(function(e){return{getPermissionSets:function(t){return e(jf(t))}}}))((function(e){var t,i,r=e.getPermissionSets,s=Rf(),o=s.role,c=s.setRole,l=s.permissionSets,d=s.setPermissionSets;Object(a.useEffect)((function(){o&&r(null===o||void 0===o?void 0:o.type).then((function(e){e&&d(e)}))}),[o,r,d]);var h={initialValues:{rolePermissionSetList:null!==(t=null===o||void 0===o||null===(i=o.rolePermissionSets)||void 0===i?void 0:i.map((function(e){return e})))&&void 0!==t?t:[da.ViewUsers,da.ViewCourses,da.ViewSessions,da.ViewPortalUserPreference]},onSubmit:function(e,t){var i=e.rolePermissionSetList;i&&o&&(c(Object(yd.a)(Object(yd.a)({},o),{},{rolePermissionSets:i})),t.setSubmitting(!1))}};return n.a.createElement(lh.Formik,{initialValues:h.initialValues,onSubmit:h.onSubmit,key:"permissions",enableReinitialize:!0},(function(e){var t;return n.a.createElement(u.Form,{id:"permissions",formikContext:!0},n.a.createElement(vh.WizardDialogBody,{titleBar:{title:"Assign Permissions"},maxWidth:"sm"},n.a.createElement(Pf,{formik:e,id:"rolePermissionSetList",loading:!l,roleType:null!==(t=null===o||void 0===o?void 0:o.type)&&void 0!==t?t:1,permissionSets:null!==l&&void 0!==l?l:[]})),n.a.createElement(vh.WizardDialogFooter,{onNext:"submit"}))}))})),Mf=Object(c.b)(null,(function(e){return{searchApiClient:function(t){return e(Nf(t))}}}))((function(e){var t=e.searchApiClient,i=Rf(),r=i.role,s=i.setRole,o=Object(a.useState)(),c=Object(y.a)(o,2),l=c[0],d=c[1],h=Object(a.useState)(!1),f=Object(y.a)(h,2),v=f[0],p=f[1],m=Object(Zh.useDebounce)((function(e){p(!0),t(e).then((function(e){e&&e.apiClients&&d(e.apiClients),p(!1)}))}));Object(a.useEffect)((function(){void 0===l&&m("")}),[l,m]);var b,S={initialValues:{roleClients:(b=null===r||void 0===r?void 0:r.roleApiClients,b?b.map((function(e){return{id:e.apiClientId,name:e.name}})):[])},validationSchema:Object(dh.object)().shape({roleClients:Object(dh.array)()}),onSubmit:function(e,t){var i=e.roleClients,a=i&&i.map((function(e){return new tn({apiClientId:e.id,name:e.name})}));r&&s(Object(yd.a)(Object(yd.a)({},r),{},{roleApiClients:a.sort((function(e,t){return e.name0&&n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,{style:{paddingBottom:0,paddingTop:0},colSpan:3},n.a.createElement(u.Collapse,{in:f,timeout:"auto",unmountOnExit:!0},n.a.createElement(u.Table,{size:"small"},n.a.createElement(u.TableBody,null,null===c||void 0===c?void 0:c.map((function(e){return n.a.createElement(u.TableRow,{key:e.label},n.a.createElement(u.TableCell,{style:{width:"50%"}},n.a.createElement(u.Typography,{variant:"caption"},n.a.createElement(u.Spacer,null),e.label)),n.a.createElement(u.TableCell,{style:{width:"25%"}},n.a.createElement(p,{style:{position:"relative",left:3},count:e.active,active:!0,withLicense:"with licenses"===e.label})),n.a.createElement(u.TableCell,{style:{width:"25%"}},n.a.createElement(p,{style:{position:"relative",left:7},count:e.inactive,active:!1,withLicense:"with licenses"===e.label})))}))))))))},av=tv((function(e){var t,i,r,s,o,c,l,d,h,f,v,p,m,b,S,g,I,O,A,j,C,P,E,w,k,T,N=e.exportFile,J=e.exportFirmUsageReport,D=e.getFirmUsageReport,L=Object(a.useState)(),U=Object(y.a)(L,2),R=U[0],x=U[1],F=Object(a.useState)(iv),M=Object(y.a)(F,2),G=M[0],B=M[1],q=Object(a.useState)(!1),V=Object(y.a)(q,2),W=V[0],z=V[1],H=Object(a.useState)(!1),$=Object(y.a)(H,2),_=$[0],Y=$[1],Q=Object(a.useCallback)((function(){x(void 0),D(G).then((function(e){return x(e)}))}),[G,D]);Object(a.useEffect)((function(){Q()}),[Q]);var K=function(e){B({searchCriteria:[e],sortBy:"lastName"}),z(!0)},Z=function(e){return _?N(G,e):J(G,e)},X=function(e){var t=e.count,i=e.type,r=e.mode;return n.a.createElement(u.Typography,{variant:"body1",style:{textAlign:"center"}},0===(null!==t&&void 0!==t?t:0)?t:n.a.createElement(u.Link,{onClick:function(){t&&i&&(K(i),Y("file"===r))},underline:"none"},null===t||void 0===t?void 0:t.toLocaleString("en",{useGrouping:!0})))},ee=function(e,t){return n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,e),n.a.createElement(u.TableCell,{align:"center"},t))};return n.a.createElement(u.Grid,{container:!0,spacing:4},n.a.createElement(u.Grid,{item:!0,xs:12,md:12,lg:6},n.a.createElement(Hf.a,{mt:1},n.a.createElement(Kf.a,{variant:"outlined"},n.a.createElement(Zf.a,null,n.a.createElement(u.Table,null,n.a.createElement(u.TableHead,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,n.a.createElement(u.Typography,{variant:"h6"},"Firm Information")),n.a.createElement(u.TableCell,{align:"center"}))),n.a.createElement(u.TableBody,null,ee("Firm Id",n.a.createElement(n.a.Fragment,null,null!==(t=null===R||void 0===R?void 0:R.firmId)&&void 0!==t?t:0))),n.a.createElement(u.TableBody,null,ee("Firm Name",n.a.createElement(n.a.Fragment,null,null!==(i=null===R||void 0===R?void 0:R.firmName)&&void 0!==i?i:""))),n.a.createElement(u.TableBody,null,ee("Renewal Date",n.a.createElement(n.a.Fragment,null,(null===R||void 0===R?void 0:R.renewalDate)||"-"))),n.a.createElement(u.TableBody,null,ee("Learning Packages Total",n.a.createElement(n.a.Fragment,null,null!==(r=null===R||void 0===R||null===(s=R.allLearningPackages)||void 0===s?void 0:s.toLocaleString("en",{useGrouping:!0}))&&void 0!==r?r:"0"))),n.a.createElement(u.TableBody,null,ee("Video\\Audio Total",n.a.createElement(n.a.Fragment,null,((null===R||void 0===R?void 0:R.allAudios)||0)+((null===R||void 0===R?void 0:R.allVideos)||0)))),n.a.createElement(u.TableBody,null,ee("User Total",n.a.createElement(n.a.Fragment,null,null!==(o=null===R||void 0===R||null===(c=R.allUsers)||void 0===c?void 0:c.toLocaleString("en",{useGrouping:!0}))&&void 0!==o?o:"0"))),n.a.createElement(u.TableBody,null,ee("Course Total",n.a.createElement(n.a.Fragment,null," ",null!==(l=null===R||void 0===R||null===(d=R.courses)||void 0===d?void 0:d.toLocaleString("en",{useGrouping:!0}))&&void 0!==l?l:"0")))))))),n.a.createElement(u.Grid,{item:!0,xs:12,md:12,lg:6}),n.a.createElement(u.Grid,{item:!0,lg:12,xs:12},n.a.createElement(Xf.a,null)),n.a.createElement(u.Grid,{item:!0,xs:12,md:12,lg:6},n.a.createElement(Hf.a,{mt:1},n.a.createElement(Kf.a,{variant:"outlined"},n.a.createElement(Zf.a,null,n.a.createElement(u.Table,null,n.a.createElement(u.TableHead,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,n.a.createElement(u.Typography,{variant:"h6"},"Users Summary")),n.a.createElement(u.TableCell,{align:"center"},"Active"),n.a.createElement(u.TableCell,{align:"center"},"Inactive"))),n.a.createElement(u.TableBody,null,rv({type:"Employees",onExport:K,active:null!==(h=null===R||void 0===R?void 0:R.activeEmployees)&&void 0!==h?h:0,inactive:null!==(f=null===R||void 0===R?void 0:R.inactiveEmployees)&&void 0!==f?f:0,breakdown:[{label:"with licenses",active:null!==(v=null===R||void 0===R?void 0:R.activeEmployeesWithLicenses)&&void 0!==v?v:0,inactive:null!==(p=null===R||void 0===R?void 0:R.inactiveEmployeesWithLicenses)&&void 0!==p?p:0},{label:"without licenses",active:null!==(m=null===R||void 0===R?void 0:R.activeEmployeesWithoutLicenses)&&void 0!==m?m:0,inactive:null!==(b=null===R||void 0===R?void 0:R.inactiveStaffWithoutLicenses)&&void 0!==b?b:0}]}),rv({type:"Clients",onExport:K,active:null!==(S=null===R||void 0===R?void 0:R.activeClients)&&void 0!==S?S:0,inactive:null!==(g=null===R||void 0===R?void 0:R.inactiveClients)&&void 0!==g?g:0,breakdown:[{label:"with licenses",active:null!==(I=null===R||void 0===R?void 0:R.activeClientsWithLicenses)&&void 0!==I?I:0,inactive:null!==(O=null===R||void 0===R?void 0:R.inactiveClientsWithLicenses)&&void 0!==O?O:0},{label:"without licenses",active:null!==(A=null===R||void 0===R?void 0:R.activeClientsWithoutLicenses)&&void 0!==A?A:0,inactive:null!==(j=null===R||void 0===R?void 0:R.inactiveClientsWithoutLicenses)&&void 0!==j?j:0}]}),rv({type:"Administrators",onExport:K,active:null!==(C=null===R||void 0===R?void 0:R.activeAdministrators)&&void 0!==C?C:0,inactive:null!==(P=null===R||void 0===R?void 0:R.inactiveAdministrators)&&void 0!==P?P:0,breakdown:[{label:"with licenses",active:null!==(E=null===R||void 0===R?void 0:R.activeAdministratorsWithLicenses)&&void 0!==E?E:0,inactive:null!==(w=null===R||void 0===R?void 0:R.inactiveAdministratorsWithLicenses)&&void 0!==w?w:0},{label:"without licenses",active:null!==(k=null===R||void 0===R?void 0:R.activeAdministratorsWithoutLicenses)&&void 0!==k?k:0,inactive:null!==(T=null===R||void 0===R?void 0:R.inactiveAdministratorsWithoutLicenses)&&void 0!==T?T:0}]})),n.a.createElement(u.TableFooter,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,n.a.createElement(u.Typography,{weight:"bold",variant:"subtitle2"},"Total")),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.activeEmployees)||0)+((null===R||void 0===R?void 0:R.activeClients)||0)+((null===R||void 0===R?void 0:R.activeAdministrators)||0),type:"AllActiveUsers"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.inactiveEmployees)||0)+((null===R||void 0===R?void 0:R.inactiveClients)||0)+((null===R||void 0===R?void 0:R.inactiveAdministrators)||0),type:"AllInactiveUsers"}))))))))),n.a.createElement(u.Grid,{item:!0,xs:12,md:12,lg:6}),n.a.createElement(u.Grid,{item:!0,xs:12,md:12,lg:6},n.a.createElement(Kf.a,{variant:"outlined"},n.a.createElement(Zf.a,null,n.a.createElement(u.Table,null,n.a.createElement(u.TableHead,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Users (With Mandatory Licenses)"),n.a.createElement(u.TableCell,{align:"center"},"Active"),n.a.createElement(u.TableCell,{align:"center"},"Inactive"))),n.a.createElement(u.TableBody,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Employees"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeEmployeesWithMandatoryLicenses,type:"ActiveEmployeesWithMandatoryLicenses"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.inactiveEmployeesWithMandatoryLicenses,type:"InactiveEmployeesWithMandatoryLicenses"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Clients"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeClientsWithMandatoryLicenses,type:"ActiveClientsWithMandatoryLicenses"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.inactiveClientsWithMandatoryLicenses,type:"InactiveClientsWithMandatoryLicenses"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Administrator"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeAdministratorsWithMandatoryLicenses,type:"ActiveAdministratorsWithMandatoryLicenses"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.inactiveAdministratorsWithMandatoryLicenses,type:"InactiveAdministratorsWithMandatoryLicenses"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Total"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.activeEmployeesWithMandatoryLicenses)||0)+((null===R||void 0===R?void 0:R.activeClientsWithMandatoryLicenses)||0)+((null===R||void 0===R?void 0:R.activeAdministratorsWithMandatoryLicenses)||0),type:"AllActiveUsersWithMandatoryLicenses"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.inactiveEmployeesWithMandatoryLicenses)||0)+((null===R||void 0===R?void 0:R.inactiveClientsWithMandatoryLicenses)||0)+((null===R||void 0===R?void 0:R.inactiveAdministratorsWithMandatoryLicenses)||0),type:"AllInactiveUsersWithMandatoryLicenses"})))))))),n.a.createElement(u.Grid,{item:!0,xs:12,md:12,lg:6},n.a.createElement(Kf.a,{variant:"outlined"},n.a.createElement(Zf.a,null,n.a.createElement(u.Table,null,n.a.createElement(u.TableHead,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Users (With Non-Mandatory Licenses) "),n.a.createElement(u.TableCell,{align:"center"},"Active"),n.a.createElement(u.TableCell,{align:"center"},"Inactive"))),n.a.createElement(u.TableBody,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Employees"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeEmployeesWithNonMandatoryLicenses,type:"ActiveEmployeesWithNonMandatoryLicenses"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.inactiveEmployeesWithNonMandatoryLicenses,type:"InactiveEmployeesWithNonMandatoryLicenses"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Clients"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeClientsWithNonMandatoryLicenses,type:"ActiveClientsWithNonMandatoryLicenses"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.inactiveClientsWithNonMandatoryLicenses,type:"InactiveClientsWithNonMandatoryLicenses"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Administrator"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeAdministratorsWithNonMandatoryLicenses,type:"ActiveAdministratorsWithNonMandatoryLicenses"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.inactiveAdministratorsWithNonMandatoryLicenses,type:"InactiveAdministratorsWithNonMandatoryLicenses"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Total"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.activeEmployeesWithNonMandatoryLicenses)||0)+((null===R||void 0===R?void 0:R.activeClientsWithNonMandatoryLicenses)||0)+((null===R||void 0===R?void 0:R.activeAdministratorsWithNonMandatoryLicenses)||0),type:"AllActiveUsersWithNonMandatoryLicenses"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.inactiveEmployeesWithNonMandatoryLicenses)||0)+((null===R||void 0===R?void 0:R.inactiveClientsWithNonMandatoryLicenses)||0)+((null===R||void 0===R?void 0:R.inactiveAdministratorsWithNonMandatoryLicenses)||0),type:"AllInactiveUsersWithNonMandatoryLicenses"})))))))),n.a.createElement(u.Grid,{item:!0,lg:12,xs:12},n.a.createElement(Xf.a,null)),n.a.createElement(u.Grid,{item:!0,xs:12,md:12,lg:6},n.a.createElement(Hf.a,{mt:1},n.a.createElement(Kf.a,{variant:"outlined"},n.a.createElement(Zf.a,null,n.a.createElement(u.Table,{style:{marginTop:25}},n.a.createElement(u.TableHead,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,{align:"left"},n.a.createElement(u.Typography,{variant:"h6"},"Multimedia activity")),n.a.createElement(u.TableCell,{align:"center"},"Video & Audio"),n.a.createElement(u.TableCell,{align:"center"},"Learning Package"))),n.a.createElement(u.TableBody,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Employees"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeEmployeesWithVideoAudioActivity,type:"ActiveEmployeesWithVideoAudioActivity"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeEmployeesWithLearningPackageActivity,type:"ActiveEmployeesWithLearningPackageActivity"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Clients"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeClientsWithVideoAudioActivity,type:"ActiveClientsWithVideoAudioActivity"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeClientsWithLearningPackageActivity,type:"ActiveClientsWithLearningPackageActivity"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Administrator"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeAdministratorsWithVideoAudioActivity,type:"ActiveAdministratorsWithVideoAudioActivity"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeAdministratorsWithLearningPackageActivity,type:"ActiveAdministratorsWithLearningPackageActivity"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Total"),n.a.createElement(u.TableCell,null,n.a.createElement(u.Typography,{variant:"body1"},n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.activeEmployeesWithVideoAudioActivity)||0)+((null===R||void 0===R?void 0:R.activeClientsWithVideoAudioActivity)||0)+((null===R||void 0===R?void 0:R.activeAdministratorsWithVideoAudioActivity)||0),type:"AllUsersWithVideoAudioActivity"}))),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.activeEmployeesWithLearningPackageActivity)||0)+((null===R||void 0===R?void 0:R.activeClientsWithLearningPackageActivity)||0)+((null===R||void 0===R?void 0:R.activeAdministratorsWithLearningPackageActivity)||0),type:"AllUsersWithLearningPackageActivity"}))))))))),n.a.createElement(u.Grid,{item:!0,xs:12,md:12,lg:6},n.a.createElement(Hf.a,{mt:1},n.a.createElement(Kf.a,{variant:"outlined"},n.a.createElement(Zf.a,null,n.a.createElement(u.Table,{style:{marginTop:25}},n.a.createElement(u.TableHead,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,{align:"left"},n.a.createElement(u.Typography,{variant:"h6"},"Multimedia & SCORM")),n.a.createElement(u.TableCell,{align:"center"},"Active"),n.a.createElement(u.TableCell,{align:"center"},"Archived"))),n.a.createElement(u.TableBody,null,n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"Multimedia (Video + Audio)"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.activeAudios)||0)+((null===R||void 0===R?void 0:R.activeVideos)||0),type:"ActiveAudioVideos",mode:"file"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:((null===R||void 0===R?void 0:R.archivedAudios)||0)+((null===R||void 0===R?void 0:R.archivedVideos)||0),type:"ArchivedAudioVideos",mode:"file"}))),n.a.createElement(u.TableRow,null,n.a.createElement(u.TableCell,null,"SCORM"),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.activeLearningPackages,type:"ActiveLearningPackages",mode:"file"})),n.a.createElement(u.TableCell,null,n.a.createElement(X,{count:null===R||void 0===R?void 0:R.archivedLearningPackages,type:"ArchivedLearningPackages",mode:"file"}))))))))),W&&n.a.createElement(ev,{open:W,exportToCsv:function(){return Z("csv")},exportToXls:function(){return Z("xlsx")},onClose:function(){z(!1)}}))})),nv=Object(c.b)((function(e){return{selectedTenant:e.tenants.selectedTenant}}),(function(e){return{exportMultimediaUsageReport:function(t,i){return e(function(e,t){return function(i){return("csv"===t?uu.exportMultimediaUsageReportCsv(void 0,Ri.fromJS(e)):uu.exportMultimediaUsageReportExcel(void 0,Ri.fromJS(e))).then((function(e){var i=window.URL.createObjectURL(new Blob([e.data])),r=document.createElement("a");r.href=i,r.setAttribute("download",e.fileName||"multimedia-usage-report.".concat(t)),document.body.appendChild(r),r.click(),r.remove()})).catch((function(e){i(gu(e))}))}}(t,i))},getMultimediaUsageReport:function(t){return e(function(e){var t=new Ri({filterBy:[],searchCriteria:[],sortBy:"",page:1,pageSize:10});return function(i){return uu.getMultimediaUsageReport(void 0,e?Ri.fromJS(e):t).then((function(e){return e})).catch((function(e){i(gu(e))}))}}(t))},showConfirmation:function(t){return e(Ku(t))}}})),sv=new Ri({filterBy:[],searchCriteria:[],sortBy:"",page:1,pageSize:10}),ov=nv((function(e){var t,i=e.exportMultimediaUsageReport,r=e.getMultimediaUsageReport,s=Object(a.useState)(),o=Object(y.a)(s,2),c=o[0],l=o[1],d=Object(a.useState)(!0),h=Object(y.a)(d,2),f=h[0],v=h[1],p=Object(a.useState)(!1),m=Object(y.a)(p,2),b=m[0],S=m[1],g=Object(a.useState)(sv),I=Object(y.a)(g,2),O=I[0],A=I[1],j=Object(a.useState)("All"),C=Object(y.a)(j,2),P=C[0],E=C[1];Object(a.useEffect)((function(){l(void 0),r(O).then((function(e){return l(e)})),v(!1)}),[O,r]);var w=function(e){return i(O,e)};return n.a.createElement(u.Grid,{container:!0,spacing:2},n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Box,{mt:3,display:"flex",justifyContent:"space-between"},n.a.createElement(u.SelectField,{startAdornment:"Status:",id:"userStatus",value:P,onChange:function(e){var t=e.target.value;E(t),v(!0),A(Object(yd.a)(Object(yd.a)({},O),{},{searchCriteria:[t]}))},dense:!0},n.a.createElement(u.MenuItem,{value:"All"},"All"),n.a.createElement(u.MenuItem,{value:"Active"},"Active"),n.a.createElement(u.MenuItem,{value:"Inactive"},"Inactive")),n.a.createElement(u.Button,{size:"small",key:"export",variant:"contained",color:"primary",onClick:function(){return S(!0)}},"Export"))),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.DataGrid,{loading:f,advanced:!0,columns:[{Header:"Firm",accessor:"firmName",disableSortBy:!0},{Header:"Report Name",accessor:"reportName",disableSortBy:!0},{Header:"CourseId",accessor:"courseId",disableSortBy:!0},{Header:"SessionId",accessor:"sessionId",disableSortBy:!0},{Header:"SessionParticipantId",accessor:"sessionParticipantId",disableSortBy:!0},{Header:"UserOnDemandSessionId",accessor:"userOnDemandSessionId",disableSortBy:!0},{Header:"SessionMediaFileId",accessor:"sessionMediaFileId",disableSortBy:!0},{Header:"UserId",accessor:"userId",disableSortBy:!0},{Header:"Last Name",accessor:"lastName",disableSortBy:!0},{Header:"First Name",accessor:"firstName",disableSortBy:!0},{Header:"User Licenses",accessor:"userLicenses",disableSortBy:!0,wrapText:!0,width:300},{Header:"Course Title",accessor:"courseTitle",disableSortBy:!0,wrapText:!0,width:300},{Header:"Multimedia Title",accessor:"multimediaTitle",disableSortBy:!0,wrapText:!0,width:300},{Header:"Duration",accessor:"duration",disableSortBy:!0},{Header:"View Start Date",accessor:"viewStartDate",disableSortBy:!0},{Header:"View Start Time",accessor:"viewStartTime",disableSortBy:!0},{Header:"View End Date",accessor:"viewEndDate",disableSortBy:!0},{Header:"View End Time",accessor:"viewEndTime",disableSortBy:!0},{Header:"View Status",accessor:"viewStatus",disableSortBy:!0},{Header:"Credits",accessor:"credits",disableSortBy:!0,wrapText:!0,width:300},{Header:"Registered By",accessor:"registeredBy",disableSortBy:!0}],data:null===c||void 0===c?void 0:c.reports,totalRecords:null===c||void 0===c?void 0:c.recordCount,pageIndex:null!==(t=null===O||void 0===O?void 0:O.page)&&void 0!==t?t:1,onNavigate:function(e,t){A(Object(yd.a)(Object(yd.a)({},O),{},{page:e,pageSize:t}))}})),b&&n.a.createElement(ev,{open:b,exportToCsv:function(){return w("csv")},exportToXls:function(){return w("xlsx")},onClose:function(){S(!1)}}))})),cv=Object(c.b)((function(e){return{selectedTenant:e.tenants.selectedTenant}}),{})((function(e){var t=e.selectedTenant;return n.a.createElement(u.Screen,{titleBar:{title:"".concat(null===t||void 0===t?void 0:t.name,": Reports")},maxWidth:!1},n.a.createElement(Ye,{permissionSet:le.NotSet,displayUnauthorized:!0},n.a.createElement(u.Grid,{container:!0},n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.Tabs,{components:[{label:"Firm Usage Report",render:n.a.createElement(av,null)},{label:"Multimedia Usage Report",render:n.a.createElement(ov,null)}],defaultTab:0})))))})),lv=th((function(){var e=[{path:"/settings",title:"Settings",description:"General Settings",component:uf},{path:"/users",title:"Users",description:"Manage Users",component:Kh},{path:"/licenses",title:"Licenses",description:"Setup Licenses",component:lf},{path:"/formats",title:"Course Formats",description:"Setup Course Formats",component:df},{path:"/integrations",title:"Integrations",description:"Setup Integrations",component:Of},{path:"/reports",title:"Reports",description:"Reports",component:cv},{path:"/api-clients",title:"Api Clients",description:"Setup Api Clients",component:Qf},{path:"/api-roles",title:"Api Roles",description:"Setup Roles and Permissions of Api Clients",component:Wf}];return n.a.createElement(Lh.a,{screens:e})})),dv=Object(c.b)((function(e){return{users:e.users.users}}),(function(e){return{}}))((function(e){var t=e.open,i=e.onClose,r=e.onSave,s=e.users,o=e.filteredUsers,c=e.saving,l=Object(a.useState)([]),d=Object(y.a)(l,2),h=d[0],f=d[1],v=[{Header:"Username",accessor:"userName",Cell:function(e){var t,i,r,a=e.cell,s=null===o||void 0===o||null===(t=o.find((function(e){return e.userName===a.value})))||void 0===t||null===(i=t.attributes)||void 0===i||null===(r=i.find((function(e){return"email"===e.name})))||void 0===r?void 0:r.value;return n.a.createElement(u.DetailList,{avatarText:"".concat(Ph(a.value)),name:a.value,description:s})}},{Header:"Status",accessor:"enabled",Cell:function(e){return e.cell.value?"Active":"Inactive"}}];return n.a.createElement(u.Modal,{open:t,onClose:i,fullWidth:!0,maxWidth:"md",footer:n.a.createElement(Zu.DialogFooter,null,n.a.createElement(u.Button,{color:"primary",variant:"contained",loading:c,onClick:function(){r(h)}},"Assign"),n.a.createElement(u.Button,{color:"secondary",variant:"text",type:"reset",onClick:function(){i()}},"Cancel"))},n.a.createElement(u.DataTable,{onToggleRow:function(e,t){var i,r=null!==(i=Array.from(h))&&void 0!==i?i:Array();e.forEach((function(e){var i,a=e.original.userName,n=null!==(i=null===h||void 0===h?void 0:h.findIndex((function(e){return e===a})))&&void 0!==i?i:-1;-1===n?a&&r.push(a):-1===n||t||r.splice(n,1)})),f(r)},loading:null===s&&null===o,columns:v,data:o,withRowSelection:!0,pageSize:10}))})),uv=Object(c.b)((function(e){return{permissionSets:e.permissionSets.permissionSets}}),(function(e){return{showConfirmation:function(t){return e(Ku(t))}}}))((function(e){var t=e.loading,i=e.permissionSets,a=e.formik,s=e.showConfirmation,o=function(e){var t;return(null!==(t=r[e])&&void 0!==t?t:"").replace(/([A-Z])/g," $1").replace(/^./,(function(e){return e.toUpperCase()}))};return n.a.createElement(u.Grid,{container:!0,spacing:"form",key:"permissionSetList"},n.a.createElement(u.Grid,{item:!0,xs:12},t?function(){var e=Array(),t=i&&i.map((function(e){return e.category})).filter((function(e,t,i){return i.indexOf(e)===t}));return t&&t.forEach((function(t){t&&e.push(n.a.createElement(u.ExpansionPanel,{key:t,summary:n.a.createElement(u.Typography,{variant:"body1"},o(t)),details:n.a.createElement(u.Grid,{container:!0,spacing:"form"},i&&(null===i||void 0===i?void 0:i.filter((function(e){return e.category===t})).map((function(e){return e&&n.a.createElement(u.Grid,{item:!0,xs:8,key:e.permissionSetId},n.a.createElement(u.FormControlLabel,{control:n.a.createElement(u.Checkbox,{id:"permissionSetList.".concat(e.permissionSetId),formikContext:!0}),label:e.name,onChange:function(t,r){return function(e,t,r){var n=r.dependencies,o=r.permissionSetId;if(n&&n.length>0){var c=n.filter((function(e){return e.sourceValue===t&&a.getFieldProps("permissionSetList.".concat(e.targetPermissionSetId)).value!==e.targetValue}));if(c.length<1)return;var l=t?"Enable":"Disable",d="This will ".concat(l.toLowerCase()," the following permissions:\n ").concat(c.map((function(e){var t;return e&&"".concat(null===i||void 0===i||null===(t=i.find((function(t){return t.permissionSetId===e.targetPermissionSetId})))||void 0===t?void 0:t.name)})));a.setFieldValue("permissionSetList.".concat(o),!t),s({message:d,title:"Confirm ".concat(l),OnConfirm:function(){a.setFieldValue("permissionSetList.".concat(o),t),c.forEach((function(e){a.setFieldValue("permissionSetList.".concat(e.targetPermissionSetId),e.targetValue)}))}})}}(0,r,e)}}))}))))}))})),e}():n.a.createElement(u.Skeleton,{width:"800px",height:"50px",variant:"rect"})))})),hv=Object(c.b)((function(e){return{roles:e.roles.roles,selectedRole:e.roles.selectedRole,users:e.users.users,permissionSets:e.permissionSets.permissionSets}}),(function(e){return{getPermissionSets:function(t){return e(function(e){return function(t){t(zu(null)),tu.getPermissionSetsByRoleType(e).then((function(e){t(zu(e.permissionSets))})).catch((function(e){throw e}))}}(t))},setSelectedRole:function(t){return e(qu(t))},setPermissionSetToRole:function(t){return e(function(e){return function(t){tu.assignPermissionSetToRole(new V(e)).catch((function(e){throw e}))}}(t))},setRoleUsers:function(t){return e(function(e){var t="User successfully assigned to role.";return e.userNames.length>1&&(t="Users successfully assigned to role."),function(i,r){return Xd.assignUserToRole(e).then((function(e){i(Wu(e)),i(Su({message:t,variant:"success"}))})).catch((function(e){i(Su({message:e.detail,variant:"error"}))}))}}(t))},removeUserRole:function(t){return e(function(e){var t="User successfully unassigned from role.";return e.userNames.length>1&&(t="Users successfully unassigned from role."),function(i,r){Xd.unassignUserFromRole(e).then((function(){e.userNames.map((function(e){return i({type:"UNASSIGN_ROLE_USERS",payload:e})})),i(Su({message:t,variant:"success"})),i(Wu(r().roles.selectedRole))})).catch((function(e){i(Su({message:e.detail,variant:"error"}))}))}}(t))},addNotification:function(t){return e(Su({message:t,variant:"warning"}))},showConfirmation:function(t){return e(Ku(t))},saveRole:function(t){return e(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,i){var r=i().roles.selectedRole;return(e?Xd.createRole(_.fromJS(r)):Xd.updateRole(Me.fromJS(r))).then((function(){t(Su({message:"Save successful",variant:"success"})),t(Yu()),t(_u())})).catch((function(e){t(Su({message:e.detail,variant:"error"}))}))}}(t))}}}))((function(e){var t=e.addNotification,i=e.getPermissionSets,r=e.permissionSets,s=e.selectedRole,o=e.setSelectedRole,c=e.addMode,l=e.open,d=e.onClose,h=e.users,f=e.setPermissionSetToRole,p=e.setRoleUsers,m=e.removeUserRole,b=e.showConfirmation,S=e.saveRole,g=Object(a.useState)(!1),I=Object(y.a)(g,2),O=I[0],A=I[1],j=Object(a.useState)([]),C=Object(y.a)(j,2),P=C[0],E=C[1],w=Object(a.useState)(!1),k=Object(y.a)(w,2),T=k[0],N=k[1],J=Object(a.useState)([]),D=Object(y.a)(J,2),L=D[0],U=D[1],R=Object(a.useState)(!1),x=Object(y.a)(R,2),F=x[0],M=x[1],G=Object(a.useState)([]),B=Object(y.a)(G,2),q=B[0],V=B[1],z={},H=He(le.CreateUser),$=He(le.ManageRoles);Object(a.useEffect)((function(){l&&0===q.length&&V(function(e){var t=Array();return Object.keys(e).forEach((function(i){Number.isNaN(Number(i))&&t.push({id:e[i],name:i})})),t}(he))}),[l,q]),Object(a.useEffect)((function(){l&&!c&&s&&i(s.type)}),[l,c,s,i]);var _=function(e,t){var i,r=null!==(i=Array.from(L))&&void 0!==i?i:Array();e.forEach((function(e){var i,a=e.original.userName,n=null!==(i=null===L||void 0===L?void 0:L.findIndex((function(e){return e===a})))&&void 0!==i?i:-1;-1===n?a&&r.push(a):-1===n||t||r.splice(n,1)})),U(r)},Y=function(e){if(e){var i="Are you sure you want to unassign user from this role?";e.length>1&&(i="Are you sure you want to unassign users from this role?"),b({message:i,title:"Confirm Unassign",OnConfirm:function(){return m(new xe({roleId:s.roleId,userNames:e}))}})}else t("No records to delete.")},Q=function(){var e=s.roleUsers.flatMap((function(e){return e.userName}));return null===h||void 0===h?void 0:h.filter((function(t){return!e.includes(t.userName)}))},K=[{Header:"User Name",accessor:"userName",Cell:function(e){var t,i,r,a,s=e.cell,o=null!==(t=null===(i=h.find((function(e){return e.userName===s.value})))||void 0===i||null===(r=i.attributes)||void 0===r||null===(a=r.find((function(e){return"email"===e.name})))||void 0===a?void 0:a.value)&&void 0!==t?t:"";return n.a.createElement(u.DetailList,{avatarText:"".concat(Ph(s.value)),name:s.value,description:o})}},{Header:"Status",accessor:"enabled",Cell:function(e){var t,i,r=e.row.original;return null!==(t=null===(i=h.find((function(e){return e.userName===r.userName})))||void 0===i?void 0:i.userStatus)&&void 0!==t?t:"DELETED"}},{Headers:"Actions",accessor:"userId",Cell:function(e){var t=e.row;return n.a.createElement(u.Button,{color:"primary",variant:"text",onClick:function(){return Y([t.original.userName])},disabled:!$},n.a.createElement(u.SystemIcon,{icon:"Delete"}))}}],Z={initialValues:{name:s.name,description:s.description,type:s&&s.type,permissionSetList:function(){var e=s&&s.rolePermissionSets,t={};return r&&e&&r.forEach((function(i){var r=!!e.find((function(e){return e.permissionSetId===i.permissionSetId}));t=Object(yd.a)(Object(yd.a)({},t),{},Object(v.a)({},"".concat(i.permissionSetId),r))})),z=Object(yd.a)(Object(yd.a)({},z),t)}()},validationSchema:Object(dh.object)().shape({name:Object(dh.string)().required("Required").max(50,"Too long!"),description:Object(dh.string)().max(255,"Description must not exceed 255 characters.").nullable()}),onSubmit:function(e,t){var i=e.name,r=e.description,a=e.type,n=e.permissionSetList,l=Array();c||n===z||(Object.keys(n).forEach((function(e){!Number.isNaN(Number(e))&&n[e]&&l.push(Number(e))})),f({roleId:s.roleId,permissionSetIds:l})),o(Object(yd.a)(Object(yd.a)({},s),{},{name:i,description:r,type:a})),M(!0),S(c).then((function(){d()})).finally((function(){M(!1)})),t.setSubmitting(!1)}};return n.a.createElement(u.SideDrawer,{size:"md",open:l,onClose:d},n.a.createElement(lh.Formik,{initialValues:Z.initialValues,validationSchema:Z.validationSchema,onSubmit:Z.onSubmit,enableReinitialize:!0},(function(e){return n.a.createElement(u.Form,{id:"edit-role",formikContext:!0},n.a.createElement(oh.SideDrawerHeader,null,n.a.createElement(u.Typography,{variant:"h4"},c?"Add Role":"Edit Role")),n.a.createElement(oh.SideDrawerBody,null,n.a.createElement(u.Tabs,{components:[{label:"Details",render:n.a.createElement(u.Grid,{container:!0,spacing:"form",key:"roleDetails"},n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"name",label:"Role Name"})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.TextField,{formikContext:!0,id:"description",label:"Description",fullWidth:!0,multiline:!0,rows:"5",rowsMax:"10"})),n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(u.SelectField,{disabled:!c,formikContext:!0,label:"Type",id:"type",fullWidth:!0,required:!0},n.a.createElement(u.MenuItem,{key:-1,value:-1}),q&&q.map((function(e){return n.a.createElement(u.MenuItem,{key:e.id,value:e.id},e.name)})))))},{label:s.roleUsers&&n.a.createElement(n.a.Fragment,null,"Users ",n.a.createElement(u.Chip,{size:"small",label:s.roleUsers.length||"0"})),disabled:c,render:n.a.createElement(u.Grid,{container:!0,stretchContent:!0,key:"roleUsers"},n.a.createElement(u.Grid,{item:!0,xs:12},n.a.createElement(Ye,{displayUnauthorized:!0,permissionSet:le.ViewUsers,componentSize:"lg"},n.a.createElement(u.DataTable,{loading:void 0===s.roleUsers,columns:K,data:s.roleUsers,withRowSelection:$,onToggleRow:_,pageSize:5,tableActions:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(u.Button,{variant:"text",color:"primary",size:"small",onClick:function(){return function(){var e=Q();E(null!==e&&void 0!==e?e:[]),A(!0)}()},startIcon:n.a.createElement(u.SystemIcon,{icon:"Add",type:"solid",size:"sm"}),disabled:!H},"Add User"),n.a.createElement(fh,{icon:n.a.createElement(u.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),title:"Actions",menu:[{label:"Remove Users",icon:n.a.createElement(u.SystemIcon,{icon:"Delete"}),disable:0===L.length,onClick:function(){return Y(L&&L)}}]}))}))))},{label:s.rolePermissionSets&&"Permissions",disabled:c,render:n.a.createElement(uv,{formik:e,key:"rolePermissionSets",loading:Object.keys(e.values.permissionSetList).length>0})}],defaultTab:0})),n.a.createElement(oh.SideDrawerFooter,null,n.a.createElement(u.Button,{loading:F,color:"primary",variant:"contained",type:"submit",disabled:!e.dirty},"Save"),n.a.createElement(u.Button,{color:"default",type:"reset",onClick:function(){d()},variant:"outlined"},"Cancel")))})),O&&n.a.createElement(dv,{open:O,saving:T,filteredUsers:P,onClose:function(){A(!1)},onSave:function(e){return function(e){var t=new W({roleId:s.roleId,userNames:e});N(!0),p(t).then((function(){N(!1),A(!1)}))}(e)}}))})),fv=Object(c.b)((function(e){return{roles:e.roles.roles,selectedRole:e.roles.selectedRole}}),(function(e){return{getRoles:function(){return e(Yu())},setSelectedRole:function(t){return e(qu(t))},deleteRoles:function(t){return e(function(e){var t=new Q({roleIdList:e});return function(e){Xd.deleteRole(t).then((function(){e(Su({message:"Delete successful",variant:"success"})),e(Yu())})).catch((function(t){e(Su({message:t.detail,variant:"error"}))}))}}(t))},showConfirmation:function(t){return e(Ku(t))}}}))((function(e){var t=e.getRoles,i=e.roles,r=e.setSelectedRole,s=e.showConfirmation,o=e.deleteRoles,c=Object(a.useState)([]),l=Object(y.a)(c,2),d=l[0],h=l[1],f=Object(a.useState)(!1),v=Object(y.a)(f,2),p=v[0],m=v[1],b=Object(a.useState)(!1),S=Object(y.a)(b,2),g=S[0],I=S[1],O=Object(u.useSnackbar)(),A=He(le.ManageRoles);Object(a.useEffect)((function(){return t()}),[t]);var j=function(e){r(e),m(!0),I(!1)},C=function(e){var t=e.filter((function(e){var t;return 0===(null===(t=e.roleUsers)||void 0===t?void 0:t.length)})).map((function(e){return e.roleId}));if(t&&t.length>0){var i="Are you sure you want to delete this role?",r="Confirm Delete";e.length>1&&(i="Are you sure you want to delete the selected roles?",r="Bulk Delete (".concat(t.length,")")),s({message:i,title:r,OnConfirm:function(){return o(t||[])}})}else O("The selected ".concat(e.length>1?"records are":"record is"," not valid for deletion."),"error")},P=[{Header:"Role",accessor:"name",Cell:function(e){var t=e.row,i=e.cell;return n.a.createElement(u.Link,{onClick:function(){return j(t.original)}},i.value)}},{Header:"Description",accessor:"description"},{Header:"User Count",accessor:"roleUsers",Cell:function(e){return e.row.original.roleUsers.length}},{Header:"Modified Date",accessor:"lastModifiedDate",Cell:function(e){var t=e.cell;return Rh()(t.value).format("MMM DD, YYYY, hh:mm:ss a")}},{Header:"Created Date",accessor:"createdDate",Cell:function(e){var t=e.cell;return Rh()(t.value).format("MMM DD, YYYY, hh:mm:ss a")}},{Header:"Actions",accessor:"",Cell:function(e){var t,i=e.row.original;return n.a.createElement(fh,{menu:[{label:"Edit",icon:n.a.createElement(u.SystemIcon,{icon:"Edit"}),onClick:function(){return j(i)}},{label:"Delete",icon:n.a.createElement(u.SystemIcon,{icon:"Delete"}),disable:(null===(t=i.roleUsers)||void 0===t?void 0:t.length)>0,onClick:function(){return C([i])}}]})}}];return n.a.createElement(u.Screen,{titleBar:{actionRow:n.a.createElement(u.Button,{key:"add",variant:"contained",color:"primary",onClick:function(){r(new ye),m(!0),I(!0)},disabled:!A},"Add Role")}},n.a.createElement(ah.a,{loading:null===i,columns:P,data:i,withRowSelection:!0,onToggleRow:function(e,t){var i,r=null!==(i=Array.from(d))&&void 0!==i?i:Array();e.forEach((function(e){var i,a=e.original,n=null!==(i=null===d||void 0===d?void 0:d.findIndex((function(e){return e.roleId===a.roleId})))&&void 0!==i?i:-1;-1===n?a&&r.push(a):-1===n||t||r.splice(n,1)})),h(r)},tableActions:n.a.createElement(u.Box,{display:"flex",justifyContent:"flex-end"},n.a.createElement(fh,{icon:n.a.createElement(u.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),title:"Actions",menu:[{label:"Bulk Delete",disable:0===d.length,icon:n.a.createElement(u.SystemIcon,{icon:"Delete"}),onClick:function(){return C(d)}}]}))},p&&n.a.createElement(hv,{addMode:g,open:p,onClose:function(){return m(!1)}})))})),vv=Object(l.o)(th((function(){return n.a.createElement(u.Screen,null,n.a.createElement(Ye,{displayUnauthorized:!0,permissionSet:le.ViewSecurityGroups},n.a.createElement(n.a.Fragment,null)))}))),pv=Object(c.b)((function(e){return{users:e.users.users}}),(function(e){return{getUsers:function(){return e(Bu())}}}))((function(e){var t=e.getUsers,i=e.users,r=He(le.ViewSecurityUsers);Object(a.useEffect)((function(){r&&t()}),[r,t]);var s=[{Header:"Username",accessor:"userName",Cell:function(e){var t,i,r=e.row,a=e.cell,s=null===(t=r.original.attributes)||void 0===t||null===(i=t.find((function(e){return"email"===e.name})))||void 0===i?void 0:i.value;return n.a.createElement(u.DetailList,{avatarText:"".concat(Ph(a.value)),name:a.value,description:s})}},{Header:"Active",accessor:"enabled",Cell:function(e){var t=e.cell;return n.a.createElement(u.Chip,{variant:"outlined",label:t.value?"Active":"Inactive",size:"small",color:t.value?"primary":"secondary"})}},{Header:"Status",accessor:"userStatus.value"}];return n.a.createElement(u.Screen,null,n.a.createElement(Ye,{displayUnauthorized:!0,permissionSet:le.ViewSecurityUsers},n.a.createElement(ah.a,{columns:s,data:i,loading:null===i})))})),mv=th((function(){var e=[{path:"/users",title:"Users",description:"Setup user security access",component:pv},{path:"/rolesandpermissions",title:"Roles & Permissions",description:"Setup roles and access permission",component:fv},{path:"/Groups",title:"Groups",description:"Set up groups and criteria",component:vv}];return n.a.createElement(u.ScreenCollection,{screens:e})})),yv=Object(c.b)((function(e){return{industries:e.industries.industries}}),(function(e){return{getIndustries:function(){return e(uh())}}}))((function(e){var t=e.getIndustries,i=e.industries;Object(a.useEffect)((function(){t()}),[t]);var r=[{Header:"Code",accessor:"industryId"},{Header:"Name",accessor:"name"},{Header:"Description",accessor:"description"},{Header:"Active",accessor:"isActive",Cell:function(e){var t=e.cell;return n.a.createElement(u.SystemIcon,{icon:t.value?"Check":"Close",size:"xs"})}}];return n.a.createElement(u.Screen,null,n.a.createElement(u.DataTable,{columns:r,data:i,loading:null===i}))})),bv=th(Object(c.b)((function(e){return{apps:e.apps.apps}}),(function(e){return{getApps:function(){return e(Qu())}}}))((function(e){var t=e.getApps,i=e.apps;Object(a.useEffect)((function(){t()}),[t]);var r=[{Header:"Application",accessor:"logo",Cell:function(e){var t=e.row,i=e.cell;return n.a.createElement("img",{src:i.value,alt:t.description,width:"100px",height:"35px"})}},{Header:"Name",accessor:"name"},{Header:"code",accessor:"code"},{Header:"API Code",accessor:"apiCode"},{Header:"Tenants",accessor:""},{Header:"Description",accessor:"description"}];return n.a.createElement(u.Screen,null,n.a.createElement(ah.a,{columns:r,data:i,loading:null===i})," ")}))),Sv=function(){var e=[{path:"/industry",title:"Industry",description:"List of Industries",component:yv},{path:"/products",title:"Products",description:"List of Products",component:bv}];return n.a.createElement(u.ScreenCollection,{screens:e})},gv=[{path:"/",title:"Landing Page Redirect",component:function(){return n.a.createElement(l.c,{to:"/home"})},exact:!0},{path:"/home",title:"Home",icon:{source:"system",value:"Home"},component:ih,private:!0,showInNavMenu:!0,exact:!0},{title:"Tenants",icon:{source:"system",value:"Tenants"},path:"/tenants",component:Ch,private:!0,showInNavMenu:!0,exact:!0,routes:[{path:"/details",exact:!1,title:"Tenant Details",icon:{source:"system",value:"Tenants"},private:!0,showInNavMenu:!1,component:lv}]},{title:"System User",icon:{source:"system",value:"User"},path:"/users",component:wh,private:!0,showInNavMenu:!0,exact:!0},{title:"Reports",icon:{source:"system",value:"Reports"},path:"/reports",component:th(Object(c.b)((function(){return{}}),(function(e){return{getUserReportToken:function(){return e((function(e){return eu.get("IzendaAdmin",void 0).then((function(e){return e})).catch((function(t){e(Su({message:t.detail,variant:"error"}))}))}))}}}))((function(e){var t=e.getUserReportToken,i=Object(a.useState)(),r=Object(y.a)(i,2),s=r[0],o=r[1];Object(a.useEffect)((function(){return t().then((function(e){o(e)})),o(void 0)}),[t,o]);var c=Object(a.useCallback)((function(){var e={WebApiUrl:"".concat("https://rpt.mm.micronapps.com","/api/"),BaseUrl:"/",RootPath:"/izenda",CssFile:"izenda-ui.css",Routes:{Settings:"settings",New:"new",Dashboard:"dashboard",Report:"report",ReportViewer:"reportviewer",ReportViewerPopup:"reportviewerpopup",Viewer:"viewer"},Timeout:3600};IzendaSynergy.config(e)}),[]),l=Object(a.useCallback)((function(){var e={token:s};IzendaSynergy.setCurrentUserContext(e);var t=document.getElementById("izenda-root");IzendaSynergy.render(t)}),[s]);return Object(a.useEffect)((function(){s&&(c(),l())}),[s,c,l]),n.a.createElement(u.Box,{width:"100%"},s?n.a.createElement("div",{id:"report-designer"},n.a.createElement("div",{id:"izenda-root"})):n.a.createElement(u.Skeleton,{height:"100%",width:"100%",variant:"rect"}))}))),private:!0,showInNavMenu:!0,exact:!0},{title:"System Configuration",path:"/configuration",icon:{source:"system",value:"Admin"},private:!0,showInNavMenu:!0,exact:!0,routes:[{title:"Settings",icon:{source:"system",value:"Settings"},path:"/settings",component:kh,private:!0,showInNavMenu:!0,exact:!1},{title:"Preferences",icon:{source:"system",value:"Preferences"},path:"/preferences",component:Jh,private:!0,showInNavMenu:!0,exact:!1},{path:"/dataManagement",title:"Data Management",icon:{source:"system",value:"DataManagement"},component:Sv,private:!0,showInNavMenu:!0,exact:!1},{path:"/security",title:"Security",icon:{source:"system",value:"UserSecurity"},component:mv,private:!0,showInNavMenu:!0,exact:!1},{title:"Logs",icon:{source:"system",value:"Logs"},path:"/logs",component:Bh,private:!0,showInNavMenu:!0,exact:!1}]}],Iv=i(1099),Ov={minimumLength:8,requireLowercase:!0,requireNumbers:!0,requireSymbols:!0,requireUppercase:!0},Av=Object(c.b)((function(e){return{authentication:e.authentication}}),(function(e){return{signIn:function(t){return e(function(e){return function(t){t(function(e){return{type:"SIGNIN",payload:e}}(e)),t(_u())}}(t))}}})),jv=Object(l.o)(Av((function(e){var t=e.history,i=e.signIn;return Object(a.useEffect)((function(){ct.a.currentAuthenticatedUser().then((function(e){i({accessToken:e.signInUserSession.accessToken.jwtToken,jwtExpiration:1e3*e.signInUserSession.accessToken.getExpiration(),authenticated:!0})})).catch((function(e){}))}),[t,i]),n.a.createElement(Iv.AuthenticationScreenTemplate,{passwordPolicy:Ov,form:"SignIn",awsAuth:ct.a,externalProviders:[],onSignInSuccess:function(e){i({authenticated:!0,accessToken:e.signInUserSession.accessToken.jwtToken,jwtExpiration:1e3*e.signInUserSession.accessToken.getExpiration()})},onNewPasswordSuccess:function(e){i({authenticated:!0,accessToken:e.signInUserSession.accessToken.jwtToken,jwtExpiration:1e3*e.signInUserSession.accessToken.getExpiration()})},onMultiFactorAuthSuccess:function(e){i({authenticated:!0,accessToken:e.signInUserSession.accessToken.jwtToken,jwtExpiration:1e3*e.signInUserSession.accessToken.getExpiration()})}})}))),Cv=Object(m.makeStyles)((function(){return{root:{padding:"3vh",paddingTop:"10vh",display:"flex",flexDirection:"column",alignContent:"center"},imageContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"},image:{maxWidth:"100%",width:560,maxHeight:300,height:"auto"},buttonContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"}}})),Pv=function(){var e=Cv(),t=Object(m.useTheme)(),i=Object(m.useMediaQuery)(t.breakpoints.down("sm"));return n.a.createElement("div",{className:e.root,title:"Logout"},n.a.createElement(u.Typography,{align:"center",variant:i?"h4":"h3"},"Logout successful."),n.a.createElement(u.Typography,{align:"center",variant:"subtitle2"},"Please click the button below to go back to the login page."),n.a.createElement("div",{className:e.imageContainer},n.a.createElement("img",{alt:"Under development",className:e.image,src:"/images/undraw_authentication_fsn5.svg"})),n.a.createElement("div",{className:e.buttonContainer},n.a.createElement(u.Button,{color:"primary",linkTo:"/login",variant:"outlined"},"Back to home")))},Ev=Object(m.makeStyles)((function(){return{root:{padding:"3vh",paddingTop:"10vh",display:"flex",flexDirection:"column",alignContent:"center"},imageContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"},image:{maxWidth:"100%",width:560,maxHeight:300,height:"auto"},buttonContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"}}})),wv=function(){var e=Ev(),t=Object(m.useTheme)(),i=Object(m.useMediaQuery)(t.breakpoints.down("sm"));return n.a.createElement("div",{className:e.root,title:"Error 503"},n.a.createElement(u.Typography,{align:"center",variant:i?"h4":"h3"},"500: Ooops, something went terribly wrong!"),n.a.createElement(u.Typography,{align:"center",variant:"subtitle2"},"You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation"),n.a.createElement("div",{className:e.imageContainer},n.a.createElement("img",{alt:"Under development",className:e.image,src:"/images/undraw_server_down_s4lk.svg"})),n.a.createElement("div",{className:e.buttonContainer},n.a.createElement(u.Button,{color:"primary",linkTo:"/",variant:"outlined"},"Back to home")))},kv=Object(m.makeStyles)((function(){return{root:{padding:"6vh",paddingTop:"10vh",display:"flex",flexDirection:"column",alignContent:"center"},imageContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"},image:{maxWidth:"100%",width:560,maxHeight:300,height:"auto"},buttonContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"}}})),Tv=function(){var e=kv(),t=Object(m.useTheme)(),i=Object(m.useMediaQuery)(t.breakpoints.down("sm"));return n.a.createElement("div",{className:e.root,title:"Error 404"},n.a.createElement(u.Typography,{align:"center",variant:i?"h4":"h3"},"404: The page you are looking for isn\u2019t here"),n.a.createElement(u.Typography,{align:"center",variant:"subtitle2"},"You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation"),n.a.createElement("div",{className:e.imageContainer},n.a.createElement("img",{alt:"Under development",className:e.image,src:"/images/undraw_page_not_found_su7k.svg"})),n.a.createElement("div",{className:e.buttonContainer},n.a.createElement(u.Button,{color:"primary",linkTo:"/",variant:"outlined"},"Back to home")))},Nv=Object(m.makeStyles)((function(){return{root:{padding:"3vh",paddingTop:"10vh",display:"flex",flexDirection:"column",alignContent:"center"},imageContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"},image:{maxWidth:"100%",width:560,maxHeight:300,height:"auto"},buttonContainer:{marginTop:"6vh",display:"flex",justifyContent:"center"}}})),Jv=function(){var e=Nv(),t=Object(m.useTheme)(),i=Object(m.useMediaQuery)(t.breakpoints.down("sm"));return n.a.createElement("div",{className:e.root,title:"Error 404"},n.a.createElement(u.Typography,{align:"center",variant:i?"h4":"h3"},"500: Ooops, something went terribly wrong!"),n.a.createElement(u.Typography,{align:"center",variant:"subtitle2"},"You either tried some shady route or you came here by mistake. Whichever it is, try using the navigation"),n.a.createElement("div",{className:e.imageContainer},n.a.createElement("img",{alt:"Under development",className:e.image,src:"/images/undraw_server_down_s4lk.svg"})),n.a.createElement("div",{className:e.buttonContainer},n.a.createElement(u.Button,{color:"primary",linkTo:"/",variant:"outlined"},"Back to home")))},Dv=i(525),Lv=Object(c.b)(null,(function(e){return{signOut:function(){return e({type:"SIGNOUT",payload:null})}}}))((function(e){var t=e.history,i=e.signOut;return Object(a.useEffect)((function(){ct.a.signOut().then(Object(ot.a)(st.a.mark((function e(){return st.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i();case 2:Dv.a.clear(),localStorage.clear(),t.push("/logout");case 5:case"end":return e.stop()}}),e)})))).catch((function(){t.push("/error501")}))}),[t,i]),n.a.createElement(u.Backdrop,{open:!0},n.a.createElement(u.CircularProgress,{color:"inherit"}))}));d.default.configure(Wd);var Uv=function(){var e=Object(c.c)((function(e){return e.authentication.authenticated}));return n.a.createElement(u.MdsApp,{title:"Micron Management",assets:{appLogoUrl:"/images/cemanager-logo-white.png",appLogoMobileUrl:"/images/cemanager-logo-white.png",micronLogoUrl:"/images/micronsystems-logo.png",micronLogoWhiteUrl:"/images/micronsystems-logo-white.png"},paths:{home:"/home",signIn:"/login",signOut:"/signout",error503:"/error503"},routes:gv,state:{authenticated:e,theme:h.Micron.MicronManagement,user:{menu:f}}},n.a.createElement(l.d,{path:"/error503",match:!0,component:wv}),n.a.createElement(l.d,{path:"/error404",match:!0,component:Tv}),n.a.createElement(l.d,{path:"/error501",match:!0,component:Jv}),n.a.createElement(l.d,{path:"/login",match:!0,component:jv}),n.a.createElement(l.d,{path:"/logout",match:!0,component:Pv}),n.a.createElement(l.d,{path:"/signout",match:!0,component:Lv}),n.a.createElement(l.c,{to:"/error404"}))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var Rv=n.a.createElement(c.a,{store:Vd},n.a.createElement(Uv,null));o.a.render(Rv,document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},[[1144,1,2]]]);