{"version":3,"sources":["jsdelivr-header.js","/npm/iworks-core-api@1.6.3/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,OAAO,eAAe,QAAS,aAAc,CAC3C,OAAO,IAET,QAAQ,OAAS,QAAQ,YAAS,EAElC,IAAI,kBAAoB,QAAQ,qBAE5B,WAAa,QAAQ,aAErB,eAAiB,QAAQ,mBAEzB,UAAY,QAAQ,cAEpB,WAAa,uBAAuB,WAEpC,cAAgB,QAAQ,kBAExB,eAAiB,uBAAuB,eAE5C,SAAS,uBAAuB,GAAO,OAAO,GAAO,EAAI,WAAa,EAAM,CAAE,QAAS,EAAO,CAI9F,MAAM,QAAS,EAAI,kBAAkB,WAAW,MAAM,eAAe,UAAU,MAAM,eAAe,aAAa,MAAM,eAAe,qBAAqB,MAAM,eAAe,OAAO,MAAM,eAAe,OAAO,MAAM,eAAe,QAAQ,MAAM,eAAe,aAAa,MAAM,eAAe,gBAAgB,MAAM,eAAe,oBAAoB,MAAM,eAAe,UAAU,MAAM,eAAe,cAAc,MAAM,eAAe,mBAAmB,MAAM,eAAe,cAAc,MAAM,eAAe,cAAc,MAAM,eAAe,uBAAuB,MAAM,eAAe,iBAAiB,MAAM,eAAe,sBAAsB,MAAM,eAAe,eAAe,MAAM,eAAe,oBAAoB,MAAM,eAAe,MAAM,MAAM,eAAe,QAAQ,MAAM,eAAe,OAAO,MAAM,eAAe,MAAM,MAAM,eAAe,WAAW,oBAAoB,WAAW,SAAS,wBAAwB,eAAe,SAEv7B,kBAAkB,CACjB,eAAe,IACd,QAEG,OAAS,IACb,WAAW,MAAM,KAAK,EAAK,EAG7B,QAAQ,OAAS,OACjB,QAAQ,OAAS","file":"/npm/iworks-core-api@1.6.3/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/iworks-core-api@1.6.3/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.initDb = exports.schema = undefined;\n\nvar _objectionGraphql = require('objection-graphql');\n\nvar _objection = require('objection');\n\nvar _iworksDbModel = require('iworks-db-model');\n\nvar _mutation = require('./mutation');\n\nvar _mutation2 = _interopRequireDefault(_mutation);\n\nvar _subscription = require('./subscription');\n\nvar _subscription2 = _interopRequireDefault(_subscription);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Build query schema\n\nconst schema = (0, _objectionGraphql.builder)().model(_iworksDbModel.Customer).model(_iworksDbModel.JobInstance).model(_iworksDbModel.JobInstanceMaterial).model(_iworksDbModel.Stage).model(_iworksDbModel.Phase).model(_iworksDbModel.JobTpl).model(_iworksDbModel.JobTplStage).model(_iworksDbModel.JobTplMaterial).model(_iworksDbModel.JobTplMaterialType).model(_iworksDbModel.Material).model(_iworksDbModel.MaterialType).model(_iworksDbModel.RenovationProject).model(_iworksDbModel.ProjectPhase).model(_iworksDbModel.ProjectStage).model(_iworksDbModel.ProjectStageApplicant).model(_iworksDbModel.ProjectStageDoc).model(_iworksDbModel.RenovationProjectTpl).model(_iworksDbModel.StateProperty).model(_iworksDbModel.ResidentialComplex).model(_iworksDbModel.User).model(_iworksDbModel.Device).model(_iworksDbModel.Skill).model(_iworksDbModel.Role).model(_iworksDbModel.UserSkill).extendWithMutations(_mutation2.default).extendWithSubscriptions(_subscription2.default)\n// .extendWithUpload()\n.setBuilderOptions({\n  skipUndefined: true\n}).build();\n\nconst initDb = knex => {\n  _objection.Model.knex(knex);\n};\n\nexports.schema = schema;\nexports.initDb = initDb;"]}