alfresco-js-api
Version:
JavaScript client library for the Alfresco REST API
1 lines • 624 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.AlfrescoApi=e():t.AlfrescoApi=e()}(window,function(){return function(t){function e(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var o={};return e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=547)}([function(t,e,o){"use strict";!function(e){function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):function(t,e){for(var o=Object.getOwnPropertyNames(e),n=0;o.length>n;n++){var i=o[n],r=Object.getOwnPropertyDescriptor(e,i);r&&r.configurable&&void 0===t[i]&&Object.defineProperty(t,i,r)}}(t,e))}var i=o(15),r=o(1),a=o(392),s=o(308),p=function(t){function o(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return n.storage=new s,n.host=e,i.call(n),n}return n(o,t),o.prototype.callApi=function(t,e,o,n,i,r,a,s,p,c,l,u,d){var y;u?y=this.buildUrlCustomBasePath(this.host+"/"+u,t,o):y=this.buildUrl(t,o);return this.callHostApi(t,e,o,n,i,r,a,s,p,c,l,u,d,y)},o.prototype.callCustomApi=function(t,e,o,n,i,r,a,s,p,c,l,u,d){var y=this.buildUrlCustomBasePath(t,"",o);return this.callHostApi(t,e,o,n,i,r,a,s,p,c,l,u,d,y)},o.prototype.callHostApi=function(t,e,o,n,r,s,p,c,l,u,d,y,f,h){var v=this,m={};i(m);var g=this.buildRequest(e,h,n,r,s,p,l,u,f,m,d);return"Binary"===d&&(g=g.buffer(!0).parse(a.parse["application/octet-stream"])),this.promise=new Promise(function(t,e){g.end(function(o,n){if(o)v.emit("error",o),m.emit("error",o),401===o.status&&(v.emit("unauthorized"),m.emit("unauthorized")),e(n&&n.text?Object.assign(o=o||{},{message:n.text}):{error:o});else{v.isBpmRequest()&&n.header&&n.header.hasOwnProperty("set-cookie")&&(v.authentications.cookie=n.header["set-cookie"]);var i={};i=v.deserialize(n,"text/html"===n.type?"String":d),m.emit("success",i),t(i)}}).on("abort",function(){m.emit("abort")})}),this.promise.on=function(){return m.on.apply(m,arguments),this},this.promise.once=function(){return m.once.apply(m,arguments),this},this.promise.emit=function(){return m.emit.apply(m,arguments),this},this.promise.off=function(){return m.off.apply(m,arguments),this},this.promise.abort=function(){return g.abort(),this},this.promise},o.prototype.isBpmRequest=function(){return"BpmAuth"===this.className||"BpmClient"===this.className},o.prototype.isCsrfEnabled=function(){return!this.config||!this.config.disableCsrf},o.prototype.setCsrfToken=function(t){var e=this.token();t.set("X-CSRF-TOKEN",e),this.isNodeEnv()&&t.set("Cookie","CSRF-TOKEN="+e+";path=/");try{document.cookie="CSRF-TOKEN="+e+";path=/"}catch(t){}},o.prototype.isWithCredentials=function(){return!!this.config&&this.config.withCredentials},o.prototype.isNodeEnv=function(){return void 0!==e&&e.release&&"node"===e.release.name},o.prototype.token=function(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e16]+1e16).replace(/[01]/g,this.token)},o.prototype.progress=function(t,e){t.lengthComputable&&this.promise&&e.emit("progress",{total:t.total,loaded:t.loaded,percent:Math.round(t.loaded/t.total*100)})},o.prototype.buildUrlCustomBasePath=function(t,e,o){e.match(/^\//)||(e="/"+e);var n=t+e,i=this;return n=n.replace(/\{([\w-]+)\}/g,function(t,e){var n;return n=o.hasOwnProperty(e)?i.paramToString(o[e]):t,encodeURIComponent(n)})},o.prototype.buildRequest=function(t,e,o,n,i,r,s,p,c,l,u){var d=this,y=a(t,e);this.applyAuthToRequest(y,["basicAuth"]),y.query(this.normalizeParams(o)),y.set(this.defaultHeaders).set(this.normalizeParams(n)),this.isBpmRequest()&&this.isCsrfEnabled()&&this.setCsrfToken(y),this.isWithCredentials()&&y.withCredentials(),this.isBpmRequest()&&(y._withCredentials=!0,this.authentications.cookie&&this.isNodeEnv()&&y.set("Cookie",this.authentications.cookie)),y.timeout(this.timeout);var f=this.jsonPreferredMime(s);if(f&&"multipart/form-data"!==f?y.type(f):y.header["Content-Type"]||"multipart/form-data"===f||y.type("application/json"),"application/x-www-form-urlencoded"===f)y.send(this.normalizeParams(i)).on("progress",function(t){d.progress(t,l)});else if("multipart/form-data"===f){var h=this.normalizeParams(i);for(var v in h)h.hasOwnProperty(v)&&(this.isFileParam(h[v])?y.attach(v,h[v]).on("progress",function(t){d.progress(t,l)}):y.field(v,h[v]).on("progress",function(t){d.progress(t,l)}))}else r&&y.send(r).on("progress",function(t){d.progress(t,l)});var m=this.jsonPreferredMime(p);return m&&y.accept(m),"Blob"===u||"blob"===c||"Blob"===c?y.responseType("blob"):"String"===u&&y.responseType("string"),y},o}(r);i(p.prototype),t.exports=p}(o(502))},function(t,e,o){"use strict";var n,i,r,a,s;n=o(124).Buffer,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=[o(392)],void 0===(a="function"==typeof(i=function(t){var e=function(){this.basePath="https://localhost/alfresco/api/-default-/public/alfresco/versions/1",this.authentications={basicAuth:{type:"basic"}},this.defaultHeaders={},this.timeout=void 0};return e.prototype.paramToString=function(t){return void 0==t||null==t?"":t instanceof Date?t.toJSON():""+t},e.prototype.buildUrl=function(t,e){t.match(/^\//)||(t="/"+t);var o=this.basePath+t,n=this;return o=o.replace(/\{([\w-]+)\}/g,function(t,o){var i;return i=e.hasOwnProperty(o)?n.paramToString(e[o]):t,encodeURIComponent(i)})},e.prototype.isJsonMime=function(t){return!(null==t||!t.match(/^application\/json(;.*)?$/i))},e.prototype.jsonPreferredMime=function(t){for(var e=0;t.length>e;e++)if(this.isJsonMime(t[e]))return t[e];return t[0]},e.prototype.isFileParam=function(t){return!!(s(o(123).ReadStream)&&"undefined"==typeof window&&o(123)&&t instanceof o(123).ReadStream)||"function"==typeof n&&t instanceof n||"function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File||"object"===("undefined"==typeof File?"undefined":s(File))&&t instanceof File},e.prototype.normalizeParams=function(t){var e={};for(var o in t)if(t.hasOwnProperty(o)&&void 0!=t[o]&&null!=t[o]){var n=t[o];e[o]=this.isFileParam(n)||Array.isArray(n)?n:this.paramToString(n)}return e},e.CollectionFormatEnum={CSV:",",SSV:" ",TSV:"\t",PIPES:"|",MULTI:"multi"},e.prototype.buildCollectionParam=function(t,e){if(null==t)return null;switch(e){case"csv":return t.map(this.paramToString).join(",");case"ssv":return t.map(this.paramToString).join(" ");case"tsv":return t.map(this.paramToString).join("\t");case"pipes":return t.map(this.paramToString).join("|");case"multi":return t.map(this.paramToString);default:throw Error("Unknown collection format: "+e)}},e.prototype.applyAuthToRequest=function(t,e){var o=this;e.forEach(function(e){var n=o.authentications[e];switch(n.type){case"basic":(n.username||n.password)&&t.auth(n.username?encodeURI(n.username):"",n.password?encodeURI(n.password):"");break;case"apiKey":if(n.apiKey){var i={};i[n.name]=n.apiKeyPrefix?n.apiKeyPrefix+" "+n.apiKey:n.apiKey,"header"===n.in?t.set(i):t.query(i)}break;case"activiti":n.ticket&&t.set({Authorization:n.ticket});break;case"oauth2":n.accessToken&&t.set({Authorization:"Bearer "+n.accessToken});break;default:throw Error("Unknown authentication type: "+n.type)}})},e.prototype.deserialize=function(t,o){if(null==t||null==o)return null;var n=t.body;return null==n&&(n=t.text),e.convertToType(n,o)},e.prototype.callApi=function(e,o,n,i,r,a,s,p,c,l,u){var d=this,y=this.buildUrl(e,n),f=t(o,y);this.applyAuthToRequest(f,p),f.query(this.normalizeParams(i)),f.set(this.defaultHeaders).set(this.normalizeParams(r)),f.timeout(this.timeout);var h=this.jsonPreferredMime(c);if(h?f.type(h):f.header["Content-Type"]||f.type("application/json"),"application/x-www-form-urlencoded"===h)f.send(this.normalizeParams(a));else if("multipart/form-data"==h){var v=this.normalizeParams(a);for(var m in v)v.hasOwnProperty(m)&&(this.isFileParam(v[m])?f.attach(m,v[m]):f.field(m,v[m]))}else s&&f.send(s);var g=this.jsonPreferredMime(l);return g&&f.accept(g),new Promise(function(t,e){f.end(function(o,n){if(o)e(n&&n.text?{error:o,message:n.text}:{error:o});else{var i=d.deserialize(n,u);t(i)}})})},e.parseDate=function(t){var o=t.substring(10).search(/[\+\-]/)+10,n=o>10?t.substring(0,o):t,i=o>10?t.substring(o):"",r=e.parseDateTime(n),a=e.parseDateTimeZone(i);return r.setTime(r.getTime()+6e4*a),r},e.parseDateTime=function(t){t.split("+");var e=t.split(/[^0-9]/).map(function(t){return parseInt(t,10)});return new Date(Date.UTC(e[0],e[1]-1||0,e[2]||1,e[3]||0,e[4]||0,e[5]||0,e[6]||0))},e.parseDateTimeZone=function(t){var e=/([\+\-])(\d{2}):?(\d{2})?/.exec(t);return null!==e?-1*parseInt(e[1]+"1")*(60*parseInt(e[2]))+parseInt(e[3]||0):0},e.convertToType=function(t,o){switch(o){case"Binary":return t;case"Boolean":return!!t;case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return null!==t&&void 0!==t?t+"":t;case"Date":return t?this.parseDate(t+""):null;default:if(o===Object)return t;if("function"==typeof o)return o.constructFromObject(t);if(Array.isArray(o)){var n=o[0];return t?t.map(function(t){return e.convertToType(t,n)}):null}if("object"===(void 0===o?"undefined":s(o))){var i,r;for(var a in o)if(o.hasOwnProperty(a)){i=a,r=o[a];break}var p={};for(var a in t)if(t.hasOwnProperty(a)){var c=e.convertToType(a,i),l=t[a],u="object"===(void 0===l?"undefined":s(l))?l:e.convertToType(l,r);p[c]=u}return p}return t}},e.instance=new e,e})?i.apply(e,r):i)||(t.exports=a)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(162)],void 0===(r="function"==typeof(n=function(t){var e=function(){};return e.constructFromObject=function(o,n){return o&&(n=o||new e,o.hasOwnProperty("data")&&(n.data=t.convertToType(o.data,"object")),o.hasOwnProperty("size")&&(n.size=t.convertToType(o.size,"Integer")),o.hasOwnProperty("start")&&(n.start=t.convertToType(o.start,"Integer")),o.hasOwnProperty("total")&&(n.total=t.convertToType(o.total,"Integer"))),n},e.prototype.data=void 0,e.prototype.size=void 0,e.prototype.start=void 0,e.prototype.total=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1)],void 0===(r="function"==typeof(n=function(t){var e=function(t,e,o,n){this.count=t,this.hasMoreItems=e,this.skipCount=o,this.maxItems=n};return e.constructFromObject=function(o,n){return o&&(n=o||new e,o.hasOwnProperty("count")&&(n.count=t.convertToType(o.count,"Integer")),o.hasOwnProperty("hasMoreItems")&&(n.hasMoreItems=t.convertToType(o.hasMoreItems,"Boolean")),o.hasOwnProperty("totalItems")&&(n.totalItems=t.convertToType(o.totalItems,"Integer")),o.hasOwnProperty("skipCount")&&(n.skipCount=t.convertToType(o.skipCount,"Integer")),o.hasOwnProperty("maxItems")&&(n.maxItems=t.convertToType(o.maxItems,"Integer"))),n},e.prototype.count=void 0,e.prototype.hasMoreItems=void 0,e.prototype.totalItems=void 0,e.prototype.skipCount=void 0,e.prototype.maxItems=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(t,e){this.displayName=t,this.id=e};return e.constructFromObject=function(o,n){return o&&(n=n||new e,o.hasOwnProperty("displayName")&&(n.displayName=t.convertToType(o.displayName,"String")),o.hasOwnProperty("id")&&(n.id=t.convertToType(o.id,"String"))),n},e.prototype.displayName=void 0,e.prototype.id=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(388)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("error")&&(n.error=e.constructFromObject(t.error))),n},o.prototype.error=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(215)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(n,i){return n&&(i=i||new o,n.hasOwnProperty("elements")&&(i.elements=t.convertToType(n.elements,[e])),n.hasOwnProperty("name")&&(i.name=t.convertToType(n.name,"String")),n.hasOwnProperty("isCompleted")&&(i.isCompleted=t.convertToType(n.isCompleted,"Boolean"))),i},o.prototype.elements=void 0,o.prototype.name=void 0,o.prototype.isCompleted=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1)],void 0===(r="function"==typeof(n=function(t){var e=function(){};return e.constructFromObject=function(o,n){return o&&(n=o||new e,o.hasOwnProperty("mimeType")&&(n.mimeType=t.convertToType(o.mimeType,"String")),o.hasOwnProperty("mimeTypeName")&&(n.mimeTypeName=t.convertToType(o.mimeTypeName,"String")),o.hasOwnProperty("sizeInBytes")&&(n.sizeInBytes=t.convertToType(o.sizeInBytes,"Integer")),o.hasOwnProperty("encoding")&&(n.encoding=t.convertToType(o.encoding,"String"))),n},e.prototype.mimeType=void 0,e.prototype.mimeTypeName=void 0,e.prototype.sizeInBytes=void 0,e.prototype.encoding=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(218)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(t,n){return t&&(n=n||new o,t.hasOwnProperty("error")&&(n.error=e.constructFromObject(t.error))),n},o.prototype.error=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1)],void 0===(r="function"==typeof(n=function(t){var e=function(){};return e.constructFromObject=function(o,n){return o&&(n=o||new e,o.hasOwnProperty("displayName")&&(n.displayName=t.convertToType(o.displayName,"String")),o.hasOwnProperty("id")&&(n.id=t.convertToType(o.id,"String"))),n},e.prototype.displayName=void 0,e.prototype.id=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(){};return e.constructFromObject=function(o,n){return o&&(n=o||new e,o.hasOwnProperty("email")&&(n.email=t.convertToType(o.email,"String")),o.hasOwnProperty("externalId")&&(n.externalId=t.convertToType(o.externalId,"String")),o.hasOwnProperty("firstName")&&(n.firstName=t.convertToType(o.firstName,"String")),o.hasOwnProperty("id")&&(n.id=t.convertToType(o.id,"Integer")),o.hasOwnProperty("lastName")&&(n.lastName=t.convertToType(o.lastName,"String")),o.hasOwnProperty("pictureId")&&(n.pictureId=t.convertToType(o.pictureId,"Integer"))),n},e.prototype.email=void 0,e.prototype.externalId=void 0,e.prototype.firstName=void 0,e.prototype.id=void 0,e.prototype.lastName=void 0,e.prototype.pictureId=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(t,e,o,n){this.count=t,this.hasMoreItems=e,this.skipCount=o,this.maxItems=n};return e.constructFromObject=function(o,n){return o&&(n=n||new e,o.hasOwnProperty("count")&&(n.count=t.convertToType(o.count,"Number")),o.hasOwnProperty("hasMoreItems")&&(n.hasMoreItems=t.convertToType(o.hasMoreItems,"Boolean")),o.hasOwnProperty("totalItems")&&(n.totalItems=t.convertToType(o.totalItems,"Number")),o.hasOwnProperty("skipCount")&&(n.skipCount=t.convertToType(o.skipCount,"Number")),o.hasOwnProperty("maxItems")&&(n.maxItems=t.convertToType(o.maxItems,"Number"))),n},e.prototype.count=void 0,e.prototype.hasMoreItems=void 0,e.prototype.totalItems=void 0,e.prototype.skipCount=void 0,e.prototype.maxItems=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(62),o(146),o(61),o(145)],void 0===(r="function"==typeof(n=function(t,e,o,n,i){var r=function(){};return r.constructFromObject=function(a,s){return a&&(s=a||new r,a.hasOwnProperty("className")&&(s.className=t.convertToType(a.className,"String")),a.hasOwnProperty("customFieldTemplates")&&(s.customFieldTemplates=t.convertToType(a.customFieldTemplates,{String:"String"})),a.hasOwnProperty("fields")&&(s.fields=t.convertToType(a.fields,[e])),a.hasOwnProperty("gridsterForm")&&(s.gridsterForm=t.convertToType(a.gridsterForm,"Boolean")),a.hasOwnProperty("id")&&(s.id=t.convertToType(a.id,"Integer")),a.hasOwnProperty("javascriptEvents")&&(s.javascriptEvents=t.convertToType(a.javascriptEvents,[o])),a.hasOwnProperty("metadata")&&(s.metadata=t.convertToType(a.metadata,{String:"String"})),a.hasOwnProperty("name")&&(s.name=t.convertToType(a.name,"String")),a.hasOwnProperty("outcomeTarget")&&(s.outcomeTarget=t.convertToType(a.outcomeTarget,"String")),a.hasOwnProperty("outcomes")&&(s.outcomes=t.convertToType(a.outcomes,[n])),a.hasOwnProperty("processDefinitionId")&&(s.processDefinitionId=t.convertToType(a.processDefinitionId,"String")),a.hasOwnProperty("processDefinitionKey")&&(s.processDefinitionKey=t.convertToType(a.processDefinitionKey,"String")),a.hasOwnProperty("processDefinitionName")&&(s.processDefinitionName=t.convertToType(a.processDefinitionName,"String")),a.hasOwnProperty("selectedOutcome")&&(s.selectedOutcome=t.convertToType(a.selectedOutcome,"String")),a.hasOwnProperty("style")&&(s.style=t.convertToType(a.style,"String")),a.hasOwnProperty("tabs")&&(s.tabs=t.convertToType(a.tabs,[i])),a.hasOwnProperty("taskDefinitionKey")&&(s.taskDefinitionKey=t.convertToType(a.taskDefinitionKey,"String")),a.hasOwnProperty("taskId")&&(s.taskId=t.convertToType(a.taskId,"String")),a.hasOwnProperty("taskName")&&(s.taskName=t.convertToType(a.taskName,"String"))),s},r.prototype.className=void 0,r.prototype.customFieldTemplates=void 0,r.prototype.fields=void 0,r.prototype.gridsterForm=void 0,r.prototype.id=void 0,r.prototype.javascriptEvents=void 0,r.prototype.metadata=void 0,r.prototype.name=void 0,r.prototype.outcomeTarget=void 0,r.prototype.outcomes=void 0,r.prototype.processDefinitionId=void 0,r.prototype.processDefinitionKey=void 0,r.prototype.processDefinitionName=void 0,r.prototype.selectedOutcome=void 0,r.prototype.style=void 0,r.prototype.tabs=void 0,r.prototype.taskDefinitionKey=void 0,r.prototype.taskId=void 0,r.prototype.taskName=void 0,r})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(){var t=function(){};return t.constructFromObject=function(e,o){return e&&(o=e||new t),o},t})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(t,e){this.assocType=t,this.isPrimary=e};return e.constructFromObject=function(o,n){return o&&(n=n||new e,o.hasOwnProperty("assocType")&&(n.assocType=t.convertToType(o.assocType,"String")),o.hasOwnProperty("isPrimary")&&(n.isPrimary=t.convertToType(o.isPrimary,"Boolean"))),n},e.prototype.assocType=void 0,e.prototype.isPrimary=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r,a,s,p,c,l=o(501),u=o(487),d=Function.prototype.apply,y=Function.prototype.call,f=Object.create,h=Object.defineProperty,v=Object.defineProperties,m=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};s={on:n=function(t,e){var o;return u(e),m.call(this,"__ee__")?o=this.__ee__:(o=g.value=f(null),h(this,"__ee__",g),g.value=null),o[t]?"object"==typeof o[t]?o[t].push(e):o[t]=[o[t],e]:o[t]=e,this},once:i=function(t,e){var o,i;return u(e),i=this,n.call(this,t,o=function(){r.call(i,t,o),d.call(e,this,arguments)}),o.__eeOnceListener__=e,this},off:r=function(t,e){var o,n,i,r;if(u(e),!m.call(this,"__ee__"))return this;if(!(o=this.__ee__)[t])return this;if("object"==typeof(n=o[t]))for(r=0;i=n[r];++r)i!==e&&i.__eeOnceListener__!==e||(2===n.length?o[t]=n[r?0:1]:n.splice(r,1));else n!==e&&n.__eeOnceListener__!==e||delete o[t];return this},emit:a=function(t){var e,o,n,i,r;if(m.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"==typeof i){for(r=Array((o=arguments.length)-1),e=1;o>e;++e)r[e-1]=arguments[e];for(i=i.slice(),e=0;n=i[e];++e)d.call(n,this,r)}else switch(arguments.length){case 1:y.call(i,this);break;case 2:y.call(i,this,arguments[1]);break;case 3:y.call(i,this,arguments[1],arguments[2]);break;default:for(r=Array((o=arguments.length)-1),e=1;o>e;++e)r[e-1]=arguments[e];d.call(i,this,r)}}},p={on:l(n),once:l(i),off:l(r),emit:l(a)},c=v({},p),t.exports=e=function(t){return null==t?f(c):v(Object(t),p)},e.methods=s},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(27),o(141)],void 0===(r="function"==typeof(n=function(t,e,o){var n=function(){};return n.constructFromObject=function(i,r){return i&&(r=i||new n,i.hasOwnProperty("apps")&&(r.apps=t.convertToType(i.apps,[o])),i.hasOwnProperty("capabilities")&&(r.capabilities=t.convertToType(i.capabilities,["String"])),i.hasOwnProperty("company")&&(r.company=t.convertToType(i.company,"String")),i.hasOwnProperty("created")&&(r.created=t.convertToType(i.created,"Date")),i.hasOwnProperty("email")&&(r.email=t.convertToType(i.email,"String")),i.hasOwnProperty("externalId")&&(r.externalId=t.convertToType(i.externalId,"String")),i.hasOwnProperty("firstName")&&(r.firstName=t.convertToType(i.firstName,"String")),i.hasOwnProperty("fullname")&&(r.fullname=t.convertToType(i.fullname,"String")),i.hasOwnProperty("groups")&&(r.groups=t.convertToType(i.groups,[e])),i.hasOwnProperty("id")&&(r.id=t.convertToType(i.id,"Integer")),i.hasOwnProperty("lastName")&&(r.lastName=t.convertToType(i.lastName,"String")),i.hasOwnProperty("lastUpdate")&&(r.lastUpdate=t.convertToType(i.lastUpdate,"Date")),i.hasOwnProperty("latestSyncTimeStamp")&&(r.latestSyncTimeStamp=t.convertToType(i.latestSyncTimeStamp,"Date")),i.hasOwnProperty("password")&&(r.password=t.convertToType(i.password,"String")),i.hasOwnProperty("pictureId")&&(r.pictureId=t.convertToType(i.pictureId,"Integer")),i.hasOwnProperty("status")&&(r.status=t.convertToType(i.status,"String")),i.hasOwnProperty("tenantId")&&(r.tenantId=t.convertToType(i.tenantId,"Integer")),i.hasOwnProperty("tenantName")&&(r.tenantName=t.convertToType(i.tenantName,"String")),i.hasOwnProperty("tenantPictureId")&&(r.tenantPictureId=t.convertToType(i.tenantPictureId,"Integer")),i.hasOwnProperty("type")&&(r.type=t.convertToType(i.type,"String"))),r},n.prototype.apps=void 0,n.prototype.capabilities=void 0,n.prototype.company=void 0,n.prototype.created=void 0,n.prototype.email=void 0,n.prototype.externalId=void 0,n.prototype.firstName=void 0,n.prototype.fullname=void 0,n.prototype.groups=void 0,n.prototype.id=void 0,n.prototype.lastName=void 0,n.prototype.lastUpdate=void 0,n.prototype.latestSyncTimeStamp=void 0,n.prototype.password=void 0,n.prototype.pictureId=void 0,n.prototype.status=void 0,n.prototype.tenantId=void 0,n.prototype.tenantName=void 0,n.prototype.tenantPictureId=void 0,n.prototype.type=void 0,n})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(){};return e.constructFromObject=function(o,n){return o&&(n=o||new e,o.hasOwnProperty("id")&&(n.id=t.convertToType(o.id,"String")),o.hasOwnProperty("name")&&(n.name=t.convertToType(o.name,"String"))),n},e.prototype.id=void 0,e.prototype.name=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(){};return e.constructFromObject=function(o,n){return o&&(n=o||new e,o.hasOwnProperty("name")&&(n.name=t.convertToType(o.name,"String")),o.hasOwnProperty("scope")&&(n.scope=t.convertToType(o.scope,"String")),o.hasOwnProperty("type")&&(n.type=t.convertToType(o.type,"String")),o.hasOwnProperty("value")&&(n.value=t.convertToType(o.value,Object)),o.hasOwnProperty("valueUrl")&&(n.valueUrl=t.convertToType(o.valueUrl,"String"))),n},e.prototype.name=void 0,e.prototype.scope=void 0,e.prototype.type=void 0,e.prototype.value=void 0,e.prototype.valueUrl=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(){};return e.constructFromObject=function(o,n){return o&&(n=o||new e,o.hasOwnProperty("defaultAppId")&&(n.defaultAppId=t.convertToType(o.defaultAppId,"String")),o.hasOwnProperty("deploymentId")&&(n.deploymentId=t.convertToType(o.deploymentId,"String")),o.hasOwnProperty("description")&&(n.description=t.convertToType(o.description,"String")),o.hasOwnProperty("icon")&&(n.icon=t.convertToType(o.icon,"String")),o.hasOwnProperty("id")&&(n.id=t.convertToType(o.id,"Integer")),o.hasOwnProperty("modelId")&&(n.modelId=t.convertToType(o.modelId,"Integer")),o.hasOwnProperty("name")&&(n.name=t.convertToType(o.name,"String")),o.hasOwnProperty("tenantId")&&(n.tenantId=t.convertToType(o.tenantId,"Integer")),o.hasOwnProperty("theme")&&(n.theme=t.convertToType(o.theme,"String"))),n},e.prototype.defaultAppId=void 0,e.prototype.deploymentId=void 0,e.prototype.description=void 0,e.prototype.icon=void 0,e.prototype.id=void 0,e.prototype.modelId=void 0,e.prototype.name=void 0,e.prototype.tenantId=void 0,e.prototype.theme=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(t,e,o,n){this.count=t,this.hasMoreItems=e,this.skipCount=o,this.maxItems=n};return e.constructFromObject=function(o,n){return o&&(n=n||new e,o.hasOwnProperty("count")&&(n.count=t.convertToType(o.count,"Number")),o.hasOwnProperty("hasMoreItems")&&(n.hasMoreItems=t.convertToType(o.hasMoreItems,"Boolean")),o.hasOwnProperty("totalItems")&&(n.totalItems=t.convertToType(o.totalItems,"Number")),o.hasOwnProperty("skipCount")&&(n.skipCount=t.convertToType(o.skipCount,"Number")),o.hasOwnProperty("maxItems")&&(n.maxItems=t.convertToType(o.maxItems,"Number"))),n},e.prototype.count=void 0,e.prototype.hasMoreItems=void 0,e.prototype.totalItems=void 0,e.prototype.skipCount=void 0,e.prototype.maxItems=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(251)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(t,n){return t&&(n=n||new o,t.hasOwnProperty("error")&&(n.error=e.constructFromObject(t.error))),n},o.prototype.error=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(344)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("list")&&(n.list=e.constructFromObject(t.list))),n},o.prototype.list=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(7),o(44),o(43),o(9)],void 0===(r="function"==typeof(n=function(t,e,o,n,i){var r=function(t,e,o,n,i,r,a,s,p){this.id=t,this.name=e,this.nodeType=o,this.isFolder=n,this.isFile=i,this.modifiedAt=r,this.modifiedByUser=a,this.createdAt=s,this.createdByUser=p};return r.constructFromObject=function(a,s){return a&&(s=s||new r,a.hasOwnProperty("id")&&(s.id=t.convertToType(a.id,"String")),a.hasOwnProperty("name")&&(s.name=t.convertToType(a.name,"String")),a.hasOwnProperty("nodeType")&&(s.nodeType=t.convertToType(a.nodeType,"String")),a.hasOwnProperty("isFolder")&&(s.isFolder=t.convertToType(a.isFolder,"Boolean")),a.hasOwnProperty("isFile")&&(s.isFile=t.convertToType(a.isFile,"Boolean")),a.hasOwnProperty("isLocked")&&(s.isLocked=t.convertToType(a.isLocked,"Boolean")),a.hasOwnProperty("modifiedAt")&&(s.modifiedAt=t.convertToType(a.modifiedAt,"Date")),a.hasOwnProperty("modifiedByUser")&&(s.modifiedByUser=i.constructFromObject(a.modifiedByUser)),a.hasOwnProperty("createdAt")&&(s.createdAt=t.convertToType(a.createdAt,"Date")),a.hasOwnProperty("createdByUser")&&(s.createdByUser=i.constructFromObject(a.createdByUser)),a.hasOwnProperty("parentId")&&(s.parentId=t.convertToType(a.parentId,"String")),a.hasOwnProperty("isLink")&&(s.isLink=t.convertToType(a.isLink,"Boolean")),a.hasOwnProperty("content")&&(s.content=e.constructFromObject(a.content)),a.hasOwnProperty("aspectNames")&&(s.aspectNames=t.convertToType(a.aspectNames,["String"])),a.hasOwnProperty("properties")&&(s.properties=t.convertToType(a.properties,Object)),a.hasOwnProperty("allowableOperations")&&(s.allowableOperations=t.convertToType(a.allowableOperations,["String"])),a.hasOwnProperty("path")&&(s.path=o.constructFromObject(a.path)),a.hasOwnProperty("permissions")&&(s.permissions=n.constructFromObject(a.permissions))),s},r.prototype.id=void 0,r.prototype.name=void 0,r.prototype.nodeType=void 0,r.prototype.isFolder=void 0,r.prototype.isFile=void 0,r.prototype.isLocked=!1,r.prototype.modifiedAt=void 0,r.prototype.modifiedByUser=void 0,r.prototype.createdAt=void 0,r.prototype.createdByUser=void 0,r.prototype.parentId=void 0,r.prototype.isLink=void 0,r.prototype.content=void 0,r.prototype.aspectNames=void 0,r.prototype.properties=void 0,r.prototype.allowableOperations=void 0,r.prototype.path=void 0,r.prototype.permissions=void 0,r})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(378)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t,e,o,n,i){this.id=t,this.firstName=e,this.lastName=o,this.email=n,this.enabled=i};return o.constructFromObject=function(n,i){return n&&(i=n||new o,n.hasOwnProperty("id")&&(i.id=t.convertToType(n.id,"String")),n.hasOwnProperty("firstName")&&(i.firstName=t.convertToType(n.firstName,"String")),n.hasOwnProperty("lastName")&&(i.lastName=t.convertToType(n.lastName,"String")),n.hasOwnProperty("description")&&(i.description=t.convertToType(n.description,"String")),n.hasOwnProperty("avatarId")&&(i.avatarId=t.convertToType(n.avatarId,"String")),n.hasOwnProperty("email")&&(i.email=t.convertToType(n.email,"String")),n.hasOwnProperty("skypeId")&&(i.skypeId=t.convertToType(n.skypeId,"String")),n.hasOwnProperty("googleId")&&(i.googleId=t.convertToType(n.googleId,"String")),n.hasOwnProperty("instantMessageId")&&(i.instantMessageId=t.convertToType(n.instantMessageId,"String")),n.hasOwnProperty("jobTitle")&&(i.jobTitle=t.convertToType(n.jobTitle,"String")),n.hasOwnProperty("location")&&(i.location=t.convertToType(n.location,"String")),n.hasOwnProperty("company")&&(i.company=e.constructFromObject(n.company)),n.hasOwnProperty("mobile")&&(i.mobile=t.convertToType(n.mobile,"String")),n.hasOwnProperty("telephone")&&(i.telephone=t.convertToType(n.telephone,"String")),n.hasOwnProperty("statusUpdatedAt")&&(i.statusUpdatedAt=t.convertToType(n.statusUpdatedAt,"Date")),n.hasOwnProperty("userStatus")&&(i.userStatus=t.convertToType(n.userStatus,"String")),n.hasOwnProperty("enabled")&&(i.enabled=t.convertToType(n.enabled,"Boolean")),n.hasOwnProperty("emailNotificationsEnabled")&&(i.emailNotificationsEnabled=t.convertToType(n.emailNotificationsEnabled,"Boolean"))),i},o.prototype.id=void 0,o.prototype.firstName=void 0,o.prototype.lastName=void 0,o.prototype.description=void 0,o.prototype.avatarId=void 0,o.prototype.email=void 0,o.prototype.skypeId=void 0,o.prototype.googleId=void 0,o.prototype.instantMessageId=void 0,o.prototype.jobTitle=void 0,o.prototype.location=void 0,o.prototype.company=void 0,o.prototype.mobile=void 0,o.prototype.telephone=void 0,o.prototype.statusUpdatedAt=void 0,o.prototype.userStatus=void 0,o.prototype.enabled=!0,o.prototype.emailNotificationsEnabled=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(10)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(n,i){return n&&(i=n||new o,n.hasOwnProperty("adhocTaskCanBeReassigned")&&(i.adhocTaskCanBeReassigned=t.convertToType(n.adhocTaskCanBeReassigned,"Boolean")),n.hasOwnProperty("assignee")&&(i.assignee=e.constructFromObject(n.assignee)),n.hasOwnProperty("category")&&(i.category=t.convertToType(n.category,"String")),n.hasOwnProperty("created")&&(i.created=t.convertToType(n.created,"Date")),n.hasOwnProperty("description")&&(i.description=t.convertToType(n.description,"String")),n.hasOwnProperty("dueDate")&&(i.dueDate=t.convertToType(n.dueDate,"Date")),n.hasOwnProperty("duration")&&(i.duration=t.convertToType(n.duration,"Integer")),n.hasOwnProperty("endDate")&&(i.endDate=t.convertToType(n.endDate,"Date")),n.hasOwnProperty("formKey")&&(i.formKey=t.convertToType(n.formKey,"String")),n.hasOwnProperty("id")&&(i.id=t.convertToType(n.id,"String")),n.hasOwnProperty("initiatorCanCompleteTask")&&(i.initiatorCanCompleteTask=t.convertToType(n.initiatorCanCompleteTask,"Boolean")),n.hasOwnProperty("involvedPeople")&&(i.involvedPeople=t.convertToType(n.involvedPeople,[e])),n.hasOwnProperty("memberOfCandidateGroup")&&(i.memberOfCandidateGroup=t.convertToType(n.memberOfCandidateGroup,"Boolean")),n.hasOwnProperty("memberOfCandidateUsers")&&(i.memberOfCandidateUsers=t.convertToType(n.memberOfCandidateUsers,"Boolean")),n.hasOwnProperty("name")&&(i.name=t.convertToType(n.name,"String")),n.hasOwnProperty("parentTaskId")&&(i.parentTaskId=t.convertToType(n.parentTaskId,"String")),n.hasOwnProperty("parentTaskName")&&(i.parentTaskName=t.convertToType(n.parentTaskName,"String")),n.hasOwnProperty("priority")&&(i.priority=t.convertToType(n.priority,"Integer")),n.hasOwnProperty("processDefinitionCategory")&&(i.processDefinitionCategory=t.convertToType(n.processDefinitionCategory,"String")),n.hasOwnProperty("processDefinitionDeploymentId")&&(i.processDefinitionDeploymentId=t.convertToType(n.processDefinitionDeploymentId,"String")),n.hasOwnProperty("processDefinitionDescription")&&(i.processDefinitionDescription=t.convertToType(n.processDefinitionDescription,"String")),n.hasOwnProperty("processDefinitionId")&&(i.processDefinitionId=t.convertToType(n.processDefinitionId,"String")),n.hasOwnProperty("processDefinitionKey")&&(i.processDefinitionKey=t.convertToType(n.processDefinitionKey,"String")),n.hasOwnProperty("processDefinitionName")&&(i.processDefinitionName=t.convertToType(n.processDefinitionName,"String")),n.hasOwnProperty("processDefinitionVersion")&&(i.processDefinitionVersion=t.convertToType(n.processDefinitionVersion,"Integer")),n.hasOwnProperty("processInstanceId")&&(i.processInstanceId=t.convertToType(n.processInstanceId,"String")),n.hasOwnProperty("processInstanceName")&&(i.processInstanceName=t.convertToType(n.processInstanceName,"String")),n.hasOwnProperty("processInstanceStartUserId")&&(i.processInstanceStartUserId=t.convertToType(n.processInstanceStartUserId,"String"))),i},o.prototype.adhocTaskCanBeReassigned=void 0,o.prototype.assignee=void 0,o.prototype.category=void 0,o.prototype.created=void 0,o.prototype.description=void 0,o.prototype.dueDate=void 0,o.prototype.duration=void 0,o.prototype.endDate=void 0,o.prototype.formKey=void 0,o.prototype.id=void 0,o.prototype.initiatorCanCompleteTask=void 0,o.prototype.involvedPeople=void 0,o.prototype.memberOfCandidateGroup=void 0,o.prototype.memberOfCandidateUsers=void 0,o.prototype.name=void 0,o.prototype.parentTaskId=void 0,o.prototype.parentTaskName=void 0,o.prototype.priority=void 0,o.prototype.processDefinitionCategory=void 0,o.prototype.processDefinitionDeploymentId=void 0,o.prototype.processDefinitionDescription=void 0,o.prototype.processDefinitionId=void 0,o.prototype.processDefinitionKey=void 0,o.prototype.processDefinitionName=void 0,o.prototype.processDefinitionVersion=void 0,o.prototype.processInstanceId=void 0,o.prototype.processInstanceName=void 0,o.prototype.processInstanceStartUserId=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(10),o(18)],void 0===(r="function"==typeof(n=function(t,e,o){var n=function(){};return n.constructFromObject=function(i,r){return i&&(r=i||new n,i.hasOwnProperty("businessKey")&&(r.businessKey=t.convertToType(i.businessKey,"String")),i.hasOwnProperty("ended")&&(r.ended=t.convertToType(i.ended,"Date")),i.hasOwnProperty("graphicalNotationDefined")&&(r.graphicalNotationDefined=t.convertToType(i.graphicalNotationDefined,"Boolean")),i.hasOwnProperty("id")&&(r.id=t.convertToType(i.id,"String")),i.hasOwnProperty("name")&&(r.name=t.convertToType(i.name,"String")),i.hasOwnProperty("processDefinitionCategory")&&(r.processDefinitionCategory=t.convertToType(i.processDefinitionCategory,"String")),i.hasOwnProperty("processDefinitionDeploymentId")&&(r.processDefinitionDeploymentId=t.convertToType(i.processDefinitionDeploymentId,"String")),i.hasOwnProperty("processDefinitionDescription")&&(r.processDefinitionDescription=t.convertToType(i.processDefinitionDescription,"String")),i.hasOwnProperty("processDefinitionId")&&(r.processDefinitionId=t.convertToType(i.processDefinitionId,"String")),i.hasOwnProperty("processDefinitionKey")&&(r.processDefinitionKey=t.convertToType(i.processDefinitionKey,"String")),i.hasOwnProperty("processDefinitionName")&&(r.processDefinitionName=t.convertToType(i.processDefinitionName,"String")),i.hasOwnProperty("processDefinitionVersion")&&(r.processDefinitionVersion=t.convertToType(i.processDefinitionVersion,"Integer")),i.hasOwnProperty("startFormDefined")&&(r.startFormDefined=t.convertToType(i.startFormDefined,"Boolean")),i.hasOwnProperty("started")&&(r.started=t.convertToType(i.started,"Date")),i.hasOwnProperty("startedBy")&&(r.startedBy=e.constructFromObject(i.startedBy)),i.hasOwnProperty("tenantId")&&(r.tenantId=t.convertToType(i.tenantId,"String")),i.hasOwnProperty("variables")&&(r.variables=t.convertToType(i.variables,[o]))),r},n.prototype.businessKey=void 0,n.prototype.ended=void 0,n.prototype.graphicalNotationDefined=void 0,n.prototype.id=void 0,n.prototype.name=void 0,n.prototype.processDefinitionCategory=void 0,n.prototype.processDefinitionDeploymentId=void 0,n.prototype.processDefinitionDescription=void 0,n.prototype.processDefinitionId=void 0,n.prototype.processDefinitionKey=void 0,n.prototype.processDefinitionName=void 0,n.prototype.processDefinitionVersion=void 0,n.prototype.startFormDefined=void 0,n.prototype.started=void 0,n.prototype.startedBy=void 0,n.prototype.tenantId=void 0,n.prototype.variables=void 0,n})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(142),o(27),o(16)],void 0===(r="function"==typeof(n=function(t,e,o,n){var i=function(){};return i.constructFromObject=function(r,a){return r&&(a=r||new i,r.hasOwnProperty("capabilities")&&(a.capabilities=t.convertToType(r.capabilities,[e])),r.hasOwnProperty("externalId")&&(a.externalId=t.convertToType(r.externalId,"String")),r.hasOwnProperty("groups")&&(a.groups=t.convertToType(r.groups,[o])),r.hasOwnProperty("id")&&(a.id=t.convertToType(r.id,"Integer")),r.hasOwnProperty("lastSyncTimeStamp")&&(a.lastSyncTimeStamp=t.convertToType(r.lastSyncTimeStamp,"Date")),r.hasOwnProperty("name")&&(a.name=t.convertToType(r.name,"String")),r.hasOwnProperty("parentGroupId")&&(a.parentGroupId=t.convertToType(r.parentGroupId,"Integer")),r.hasOwnProperty("status")&&(a.status=t.convertToType(r.status,"String")),r.hasOwnProperty("tenantId")&&(a.tenantId=t.convertToType(r.tenantId,"Integer")),r.hasOwnProperty("type")&&(a.type=t.convertToType(r.type,"Integer")),r.hasOwnProperty("userCount")&&(a.userCount=t.convertToType(r.userCount,"Integer")),r.hasOwnProperty("users")&&(a.users=t.convertToType(r.users,[n]))),a},i.prototype.capabilities=void 0,i.prototype.externalId=void 0,i.prototype.groups=void 0,i.prototype.id=void 0,i.prototype.lastSyncTimeStamp=void 0,i.prototype.name=void 0,i.prototype.parentGroupId=void 0,i.prototype.status=void 0,i.prototype.tenantId=void 0,i.prototype.type=void 0,i.prototype.userCount=void 0,i.prototype.users=void 0,i})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(10)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(n,i){return n&&(i=n||new o,n.hasOwnProperty("created")&&(i.created=t.convertToType(n.created,"Date")),n.hasOwnProperty("createdBy")&&(i.createdBy=e.constructFromObject(n.createdBy)),n.hasOwnProperty("id")&&(i.id=t.convertToType(n.id,"Integer")),n.hasOwnProperty("message")&&(i.message=t.convertToType(n.message,"String"))),i},o.prototype.created=void 0,o.prototype.createdBy=void 0,o.prototype.id=void 0,o.prototype.message=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(29)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(n,i){return n&&(i=n||new o,n.hasOwnProperty("externalId")&&(i.externalId=t.convertToType(n.externalId,"String")),n.hasOwnProperty("groups")&&(i.groups=t.convertToType(n.groups,[e])),n.hasOwnProperty("id")&&(i.id=t.convertToType(n.id,"Integer")),n.hasOwnProperty("name")&&(i.name=t.convertToType(n.name,"String")),n.hasOwnProperty("status")&&(i.status=t.convertToType(n.status,"String"))),i},o.prototype.externalId=void 0,o.prototype.groups=void 0,o.prototype.id=void 0,o.prototype.name=void 0,o.prototype.status=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(76)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t){this.entry=t};return o.constructFromObject=function(t,n){return t&&(n=n||new o,t.hasOwnProperty("entry")&&(n.entry=e.constructFromObject(t.entry))),n},o.prototype.entry=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0),o(75)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t){this.entry=t};return o.constructFromObject=function(t,n){return t&&(n=n||new o,t.hasOwnProperty("entry")&&(n.entry=e.constructFromObject(t.entry))),n},o.prototype.entry=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(){};return e.constructFromObject=function(o,n){return o&&(n=n||new e,o.hasOwnProperty("name")&&(n.name=t.convertToType(o.name,"String")),o.hasOwnProperty("aspectNames")&&(n.aspectNames=t.convertToType(o.aspectNames,["String"])),o.hasOwnProperty("properties")&&(n.properties=t.convertToType(o.properties,{String:"String"}))),n},e.prototype.name=void 0,e.prototype.aspectNames=void 0,e.prototype.properties=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(0)],void 0===(r="function"==typeof(n=function(t){var e=function(t,e){this.level=t,this.reasonIds=e};return e.constructFromObject=function(o,n){return o&&(n=n||new e,o.hasOwnProperty("level")&&(n.level=t.convertToType(o.level,"String")),o.hasOwnProperty("classificationAgency")&&(n.classificationAgency=t.convertToType(o.classificationAgency,"String")),o.hasOwnProperty("reasonIds")&&(n.reasonIds=t.convertToType(o.reasonIds,["String"])),o.hasOwnProperty("downgradeOn")&&(n.downgradeOn=t.convertToType(o.downgradeOn,"Date")),o.hasOwnProperty("downgradeEvent")&&(n.downgradeEvent=t.convertToType(o.downgradeEvent,"String")),o.hasOwnProperty("downgradeInstructions")&&(n.downgradeInstructions=t.convertToType(o.downgradeInstructions,"String")),o.hasOwnProperty("declassifyOn")&&(n.declassifyOn=t.convertToType(o.declassifyOn,"Date")),o.hasOwnProperty("declassificationEvent")&&(n.declassificationEvent=t.convertToType(o.declassificationEvent,"String")),o.hasOwnProperty("exemptionIds")&&(n.exemptionIds=t.convertToType(o.exemptionIds,["String"]))),n},e.prototype.level=void 0,e.prototype.classificationAgency=void 0,e.prototype.reasonIds=void 0,e.prototype.downgradeOn=void 0,e.prototype.downgradeEvent=void 0,e.prototype.downgradeInstructions=void 0,e.prototype.declassifyOn=void 0,e.prototype.declassificationEvent=void 0,e.prototype.exemptionIds=void 0,e})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(36)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("list")&&(n.list=e.constructFromObject(t.list))),n},o.prototype.list=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(101)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t){this.entry=t};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("entry")&&(n.entry=e.constructFromObject(t.entry))),n},o.prototype.entry=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(3)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t){this.pagination=t};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("pagination")&&(n.pagination=e.constructFromObject(t.pagination))),n},o.prototype.pagination=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(329)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t){this.entry=t};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("entry")&&(n.entry=e.constructFromObject(t.entry))),n},o.prototype.entry=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(339)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t){this.entry=t};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("entry")&&(n.entry=e.constructFromObject(t.entry))),n},o.prototype.entry=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(343)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t){this.entry=t};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("entry")&&(n.entry=e.constructFromObject(t.entry))),n},o.prototype.entry=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(118)],void 0===(r="function"==typeof(n=function(t,e){var o=function(t){this.entry=t};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("entry")&&(n.entry=e.constructFromObject(t.entry))),n},o.prototype.entry=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(349)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(n,i){return n&&(i=n||new o,n.hasOwnProperty("name")&&(i.name=t.convertToType(n.name,"String")),n.hasOwnProperty("nodeType")&&(i.nodeType=t.convertToType(n.nodeType,"String")),n.hasOwnProperty("relativePath")&&(i.relativePath=t.convertToType(n.relativePath,"String")),n.hasOwnProperty("content")&&(i.content=e.constructFromObject(n.content)),n.hasOwnProperty("aspectNames")&&(i.aspectNames=t.convertToType(n.aspectNames,["String"])),n.hasOwnProperty("properties")&&(i.properties=t.convertToType(n.properties,{String:"String"}))),i},o.prototype.name=void 0,o.prototype.nodeType=void 0,o.prototype.relativePath=void 0,o.prototype.content=void 0,o.prototype.aspectNames=void 0,o.prototype.properties=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(350)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(t,n){return t&&(n=t||new o,t.hasOwnProperty("list")&&(n.list=e.constructFromObject(t.list))),n},o.prototype.list=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(360)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(n,i){return n&&(i=i||new o,n.hasOwnProperty("isInheritanceEnabled")&&(i.isInheritanceEnabled=t.convertToType(n.isInheritanceEnabled,"Boolean")),n.hasOwnProperty("inherited")&&(i.inherited=t.convertToType(n.inherited,[e])),n.hasOwnProperty("locallySet")&&(i.locallySet=t.convertToType(n.locallySet,[e])),n.hasOwnProperty("settable")&&(i.settable=t.convertToType(n.settable,["String"]))),i},o.prototype.isInheritanceEnabled=void 0,o.prototype.inherited=void 0,o.prototype.locallySet=void 0,o.prototype.settable=void 0,o})?n.apply(e,i):n)||(t.exports=r)},function(t,e,o){"use strict";var n,i,r;"function"==typeof Symbol&&Symbol;i=[o(1),o(47)],void 0===(r="function"==typeof(n=function(t,e){var o=function(){};return o.constructFromObject=function(n,i){return n&&(i=n||new o,n.hasOwnProperty("elements")&&(i.elements=t.convertToType(n.elements,[e])),n.hasOwnProperty("name")&&(i.name=t.convertToType(n.name,"String")),n.hasOwnProperty("isComplete")&&(i.isComplete=t.c