Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index 2777f5e..e8f7325 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2b6d=['pick','filter','merge','VIRTUAL','options','SquareDetailsReport','includeAll','include','rows','show','length','find','catch','create','body','params','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','util','path','sox','to-csv','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','end','count','offset','limit','status','set','json','apply','reject','update','then','destroy','sendStatus','name','send','index','map','rawAttributes','fieldName','type','key','query','keys','intersection','fields','attributes','model','hasOwnProperty','nolimit','order','sort','where','filters'];(function(_0x2077c2,_0x275ab5){var _0x312f9f=function(_0x331435){while(--_0x331435){_0x2077c2['push'](_0x2077c2['shift']());}};_0x312f9f(++_0x275ab5);}(_0x2b6d,0xa8));var _0xd2b6=function(_0xb27575,_0x3f1835){_0xb27575=_0xb27575-0x0;var _0x30e859=_0x2b6d[_0xb27575];return _0x30e859;};'use strict';var pdf=require(_0xd2b6('0x0'));var emlformat=require(_0xd2b6('0x1'));var rimraf=require(_0xd2b6('0x2'));var zipdir=require(_0xd2b6('0x3'));var jsonpatch=require(_0xd2b6('0x4'));var rp=require(_0xd2b6('0x5'));var moment=require(_0xd2b6('0x6'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0xd2b6('0x7'));var path=require(_0xd2b6('0x8'));var sox=require(_0xd2b6('0x9'));var csv=require(_0xd2b6('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require(_0xd2b6('0xb'));var squel=require(_0xd2b6('0xc'));var crypto=require(_0xd2b6('0xd'));var jsforce=require('jsforce');var deskjs=require(_0xd2b6('0xe'));var toCsv=require(_0xd2b6('0xa'));var querystring=require(_0xd2b6('0xf'));var Papa=require(_0xd2b6('0x10'));var Redis=require(_0xd2b6('0x11'));var authService=require(_0xd2b6('0x12'));var qs=require(_0xd2b6('0x13'));var as=require(_0xd2b6('0x14'));var hardwareService=require(_0xd2b6('0x15'));var logger=require(_0xd2b6('0x16'))(_0xd2b6('0x17'));var utils=require(_0xd2b6('0x18'));var config=require(_0xd2b6('0x19'));var db=require(_0xd2b6('0x1a'))['db'];function respondWithStatusCode(_0x1c0692,_0x3ba33c){_0x3ba33c=_0x3ba33c||0xcc;return function(_0x1647f5){if(_0x1647f5){return _0x1c0692['sendStatus'](_0x3ba33c);}return _0x1c0692['status'](_0x3ba33c)[_0xd2b6('0x1b')]();};}function respondWithResult(_0x41a8cc,_0x2734f6){_0x2734f6=_0x2734f6||0xc8;return function(_0x55350f){if(_0x55350f){return _0x41a8cc['status'](_0x2734f6)['json'](_0x55350f);}};}function respondWithFilteredResult(_0x56f1da,_0x4be053){return function(_0x368e08){if(_0x368e08){var _0x2e6b16=_0x368e08[_0xd2b6('0x1c')],_0x185f0d=_0x4be053[_0xd2b6('0x1d')],_0x4b4753=_0x4be053[_0xd2b6('0x1d')]+_0x4be053[_0xd2b6('0x1e')],_0x5f138e;if(_0x4b4753>=_0x2e6b16){_0x4b4753=_0x2e6b16;_0x5f138e=0xc8;}else{_0x5f138e=0xce;}_0x56f1da[_0xd2b6('0x1f')](_0x5f138e);return _0x56f1da[_0xd2b6('0x20')]('Content-Range',_0x185f0d+'-'+_0x4b4753+'/'+_0x2e6b16)[_0xd2b6('0x21')](_0x368e08);}return null;};}function patchUpdates(_0x2ddf56){return function(_0x150be6){try{jsonpatch[_0xd2b6('0x22')](_0x150be6,_0x2ddf56,!![]);}catch(_0x3a1f7d){return BPromise[_0xd2b6('0x23')](_0x3a1f7d);}return _0x150be6['save']();};}function saveUpdates(_0x21ec6a,_0x5e554b){return function(_0x481c6c){if(_0x481c6c){return _0x481c6c[_0xd2b6('0x24')](_0x21ec6a)[_0xd2b6('0x25')](function(_0x168324){return _0x168324;});}return null;};}function removeEntity(_0x1c0524,_0x2a9df7){return function(_0x325e12){if(_0x325e12){return _0x325e12[_0xd2b6('0x26')]()[_0xd2b6('0x25')](function(){_0x1c0524[_0xd2b6('0x1f')](0xcc)[_0xd2b6('0x1b')]();});}};}function handleEntityNotFound(_0x45a56f,_0x4355b9){return function(_0x3b9c25){if(!_0x3b9c25){_0x45a56f[_0xd2b6('0x27')](0x194);}return _0x3b9c25;};}function handleError(_0x173da2,_0x34d113){_0x34d113=_0x34d113||0x1f4;return function(_0x5d589a){logger['error'](_0x5d589a['stack']);if(_0x5d589a[_0xd2b6('0x28')]){delete _0x5d589a[_0xd2b6('0x28')];}_0x173da2[_0xd2b6('0x1f')](_0x34d113)[_0xd2b6('0x29')](_0x5d589a);};}exports[_0xd2b6('0x2a')]=function(_0x2d98ca,_0x31808e){var _0x4d23ae={},_0x250299={},_0x5df9b3={'count':0x0,'rows':[]};var _0x16fd9a=_[_0xd2b6('0x2b')](db['SquareDetailsReport'][_0xd2b6('0x2c')],function(_0x1f9788){return{'name':_0x1f9788[_0xd2b6('0x2d')],'type':_0x1f9788[_0xd2b6('0x2e')][_0xd2b6('0x2f')]};});_0x250299['model']=_[_0xd2b6('0x2b')](_0x16fd9a,_0xd2b6('0x28'));_0x250299[_0xd2b6('0x30')]=_[_0xd2b6('0x31')](_0x2d98ca[_0xd2b6('0x30')]);_0x250299['filters']=_[_0xd2b6('0x32')](_0x250299['model'],_0x250299['query']);_0x4d23ae['attributes']=_[_0xd2b6('0x32')](_0x250299['model'],qs[_0xd2b6('0x33')](_0x2d98ca[_0xd2b6('0x30')][_0xd2b6('0x33')]));_0x4d23ae[_0xd2b6('0x34')]=_0x4d23ae[_0xd2b6('0x34')]['length']?_0x4d23ae[_0xd2b6('0x34')]:_0x250299[_0xd2b6('0x35')];if(!_0x2d98ca[_0xd2b6('0x30')][_0xd2b6('0x36')](_0xd2b6('0x37'))){_0x4d23ae['limit']=qs[_0xd2b6('0x1e')](_0x2d98ca[_0xd2b6('0x30')][_0xd2b6('0x1e')]);_0x4d23ae[_0xd2b6('0x1d')]=qs['offset'](_0x2d98ca[_0xd2b6('0x30')]['offset']);}_0x4d23ae[_0xd2b6('0x38')]=qs[_0xd2b6('0x39')](_0x2d98ca[_0xd2b6('0x30')][_0xd2b6('0x39')]);_0x4d23ae[_0xd2b6('0x3a')]=qs[_0xd2b6('0x3b')](_[_0xd2b6('0x3c')](_0x2d98ca[_0xd2b6('0x30')],_0x250299[_0xd2b6('0x3b')]));if(_0x2d98ca[_0xd2b6('0x30')][_0xd2b6('0x3d')]){_0x4d23ae[_0xd2b6('0x3a')]=_[_0xd2b6('0x3e')](_0x4d23ae[_0xd2b6('0x3a')],{'$or':_['map'](_0x16fd9a,function(_0x594747){if(_0x594747[_0xd2b6('0x2e')]!==_0xd2b6('0x3f')){var _0x5ada2e={};_0x5ada2e[_0x594747[_0xd2b6('0x28')]]={'$like':'%'+_0x2d98ca['query'][_0xd2b6('0x3d')]+'%'};return _0x5ada2e;}})});}_0x4d23ae=_['merge']({},_0x4d23ae,_0x2d98ca[_0xd2b6('0x40')]);var _0x4afe9b={'where':_0x4d23ae[_0xd2b6('0x3a')]};return db[_0xd2b6('0x41')]['count'](_0x4afe9b)[_0xd2b6('0x25')](function(_0x11b165){_0x5df9b3[_0xd2b6('0x1c')]=_0x11b165;if(_0x2d98ca[_0xd2b6('0x30')][_0xd2b6('0x42')]){_0x4d23ae[_0xd2b6('0x43')]=[{'all':!![]}];}return db[_0xd2b6('0x41')]['findAll'](_0x4d23ae);})[_0xd2b6('0x25')](function(_0xf99448){_0x5df9b3[_0xd2b6('0x44')]=_0xf99448;return _0x5df9b3;})[_0xd2b6('0x25')](respondWithFilteredResult(_0x31808e,_0x4d23ae))['catch'](handleError(_0x31808e,null));};exports[_0xd2b6('0x45')]=function(_0xf1cf33,_0x1abd78){var _0x3c3383={'raw':!![],'where':{'id':_0xf1cf33['params']['id']}},_0x1f4e02={};_0x1f4e02[_0xd2b6('0x35')]=_[_0xd2b6('0x31')](db[_0xd2b6('0x41')]['rawAttributes']);_0x1f4e02[_0xd2b6('0x30')]=_['keys'](_0xf1cf33[_0xd2b6('0x30')]);_0x1f4e02[_0xd2b6('0x3b')]=_[_0xd2b6('0x32')](_0x1f4e02[_0xd2b6('0x35')],_0x1f4e02[_0xd2b6('0x30')]);_0x3c3383[_0xd2b6('0x34')]=_[_0xd2b6('0x32')](_0x1f4e02[_0xd2b6('0x35')],qs[_0xd2b6('0x33')](_0xf1cf33[_0xd2b6('0x30')]['fields']));_0x3c3383['attributes']=_0x3c3383[_0xd2b6('0x34')][_0xd2b6('0x46')]?_0x3c3383['attributes']:_0x1f4e02[_0xd2b6('0x35')];if(_0xf1cf33[_0xd2b6('0x30')]['includeAll']){_0x3c3383[_0xd2b6('0x43')]=[{'all':!![]}];}_0x3c3383=_['merge']({},_0x3c3383,_0xf1cf33[_0xd2b6('0x40')]);return db[_0xd2b6('0x41')][_0xd2b6('0x47')](_0x3c3383)[_0xd2b6('0x25')](handleEntityNotFound(_0x1abd78,null))['then'](respondWithResult(_0x1abd78,null))[_0xd2b6('0x48')](handleError(_0x1abd78,null));};exports['create']=function(_0x1f8b19,_0x4a3c5b){return db[_0xd2b6('0x41')][_0xd2b6('0x49')](_0x1f8b19['body'],{})[_0xd2b6('0x25')](respondWithResult(_0x4a3c5b,0xc9))[_0xd2b6('0x48')](handleError(_0x4a3c5b,null));};exports[_0xd2b6('0x24')]=function(_0xea9a30,_0x2bb48f){if(_0xea9a30[_0xd2b6('0x4a')]['id']){delete _0xea9a30[_0xd2b6('0x4a')]['id'];}return db[_0xd2b6('0x41')][_0xd2b6('0x47')]({'where':{'id':_0xea9a30[_0xd2b6('0x4b')]['id']}})['then'](handleEntityNotFound(_0x2bb48f,null))[_0xd2b6('0x25')](saveUpdates(_0xea9a30['body'],null))['then'](respondWithResult(_0x2bb48f,null))[_0xd2b6('0x48')](handleError(_0x2bb48f,null));};exports[_0xd2b6('0x26')]=function(_0xb15c97,_0x5e65c8){return db[_0xd2b6('0x41')][_0xd2b6('0x47')]({'where':{'id':_0xb15c97[_0xd2b6('0x4b')]['id']}})[_0xd2b6('0x25')](handleEntityNotFound(_0x5e65c8,null))[_0xd2b6('0x25')](removeEntity(_0x5e65c8,null))[_0xd2b6('0x48')](handleError(_0x5e65c8,null));};exports['describe']=function(_0x35e33a,_0x48663e){return db[_0xd2b6('0x41')]['describe']()['then'](respondWithResult(_0x48663e,null))['catch'](handleError(_0x48663e,null));};
\ No newline at end of file
+var _0xfc9d=['rawAttributes','type','key','model','query','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','findAll','show','params','keys','include','create','body','catch','destroy','describe','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','limit','apply','reject','save','update','then','error','stack','name','send','index','map','SquareDetailsReport'];(function(_0x4f6467,_0x11b602){var _0x4c8330=function(_0x166541){while(--_0x166541){_0x4f6467['push'](_0x4f6467['shift']());}};_0x4c8330(++_0x11b602);}(_0xfc9d,0x67));var _0xdfc9=function(_0x1f336d,_0x5d0bee){_0x1f336d=_0x1f336d-0x0;var _0x49199d=_0xfc9d[_0x1f336d];return _0x49199d;};'use strict';var emlformat=require(_0xdfc9('0x0'));var rimraf=require(_0xdfc9('0x1'));var zipdir=require(_0xdfc9('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0xdfc9('0x3'));var moment=require(_0xdfc9('0x4'));var BPromise=require(_0xdfc9('0x5'));var Mustache=require(_0xdfc9('0x6'));var util=require(_0xdfc9('0x7'));var path=require(_0xdfc9('0x8'));var sox=require(_0xdfc9('0x9'));var csv=require(_0xdfc9('0xa'));var ejs=require(_0xdfc9('0xb'));var fs=require('fs');var fs_extra=require(_0xdfc9('0xc'));var _=require('lodash');var squel=require(_0xdfc9('0xd'));var crypto=require('crypto');var jsforce=require(_0xdfc9('0xe'));var deskjs=require(_0xdfc9('0xf'));var toCsv=require('to-csv');var querystring=require(_0xdfc9('0x10'));var Papa=require(_0xdfc9('0x11'));var Redis=require(_0xdfc9('0x12'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xdfc9('0x13'));var hardwareService=require(_0xdfc9('0x14'));var logger=require(_0xdfc9('0x15'))('api');var utils=require('../../config/utils');var config=require(_0xdfc9('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0xdfc9('0x17'))['db'];function respondWithStatusCode(_0x2e3332,_0x133e97){_0x133e97=_0x133e97||0xcc;return function(_0x41b706){if(_0x41b706){return _0x2e3332[_0xdfc9('0x18')](_0x133e97);}return _0x2e3332[_0xdfc9('0x19')](_0x133e97)[_0xdfc9('0x1a')]();};}function respondWithResult(_0x2c3c32,_0x394367){_0x394367=_0x394367||0xc8;return function(_0x3a94f2){if(_0x3a94f2){return _0x2c3c32[_0xdfc9('0x19')](_0x394367)[_0xdfc9('0x1b')](_0x3a94f2);}};}function respondWithFilteredResult(_0x535a66,_0x469c1a){return function(_0x204e25){if(_0x204e25){var _0x86ff2e=_0x204e25[_0xdfc9('0x1c')],_0x40afa5=_0x469c1a['offset'],_0x25813e=_0x469c1a[_0xdfc9('0x1d')]+_0x469c1a[_0xdfc9('0x1e')],_0x14ac8c;if(_0x25813e>=_0x86ff2e){_0x25813e=_0x86ff2e;_0x14ac8c=0xc8;}else{_0x14ac8c=0xce;}_0x535a66['status'](_0x14ac8c);return _0x535a66['set']('Content-Range',_0x40afa5+'-'+_0x25813e+'/'+_0x86ff2e)[_0xdfc9('0x1b')](_0x204e25);}return null;};}function patchUpdates(_0x55e5f1){return function(_0x28ed1f){try{jsonpatch[_0xdfc9('0x1f')](_0x28ed1f,_0x55e5f1,!![]);}catch(_0x26a24b){return BPromise[_0xdfc9('0x20')](_0x26a24b);}return _0x28ed1f[_0xdfc9('0x21')]();};}function saveUpdates(_0x2f7827,_0x4e1984){return function(_0x6caa71){if(_0x6caa71){return _0x6caa71[_0xdfc9('0x22')](_0x2f7827)[_0xdfc9('0x23')](function(_0x2d811e){return _0x2d811e;});}return null;};}function removeEntity(_0x1774a7,_0x3c492c){return function(_0x5b5466){if(_0x5b5466){return _0x5b5466['destroy']()[_0xdfc9('0x23')](function(){_0x1774a7[_0xdfc9('0x19')](0xcc)[_0xdfc9('0x1a')]();});}};}function handleEntityNotFound(_0x5e0831,_0x75dba5){return function(_0xfdd120){if(!_0xfdd120){_0x5e0831[_0xdfc9('0x18')](0x194);}return _0xfdd120;};}function handleError(_0x29d690,_0x411c5c){_0x411c5c=_0x411c5c||0x1f4;return function(_0x4a2a48){logger[_0xdfc9('0x24')](_0x4a2a48[_0xdfc9('0x25')]);if(_0x4a2a48[_0xdfc9('0x26')]){delete _0x4a2a48[_0xdfc9('0x26')];}_0x29d690[_0xdfc9('0x19')](_0x411c5c)[_0xdfc9('0x27')](_0x4a2a48);};}exports[_0xdfc9('0x28')]=function(_0x4f00e0,_0x51cc40){var _0x1e9002={},_0x223ba1={},_0x41d04d={'count':0x0,'rows':[]};var _0x1aaf5b=_[_0xdfc9('0x29')](db[_0xdfc9('0x2a')][_0xdfc9('0x2b')],function(_0x113647){return{'name':_0x113647['fieldName'],'type':_0x113647[_0xdfc9('0x2c')][_0xdfc9('0x2d')]};});_0x223ba1[_0xdfc9('0x2e')]=_[_0xdfc9('0x29')](_0x1aaf5b,_0xdfc9('0x26'));_0x223ba1['query']=_['keys'](_0x4f00e0[_0xdfc9('0x2f')]);_0x223ba1[_0xdfc9('0x30')]=_[_0xdfc9('0x31')](_0x223ba1[_0xdfc9('0x2e')],_0x223ba1[_0xdfc9('0x2f')]);_0x1e9002[_0xdfc9('0x32')]=_[_0xdfc9('0x31')](_0x223ba1[_0xdfc9('0x2e')],qs[_0xdfc9('0x33')](_0x4f00e0[_0xdfc9('0x2f')][_0xdfc9('0x33')]));_0x1e9002[_0xdfc9('0x32')]=_0x1e9002[_0xdfc9('0x32')][_0xdfc9('0x34')]?_0x1e9002['attributes']:_0x223ba1['model'];if(!_0x4f00e0['query'][_0xdfc9('0x35')]('nolimit')){_0x1e9002[_0xdfc9('0x1e')]=qs[_0xdfc9('0x1e')](_0x4f00e0['query'][_0xdfc9('0x1e')]);_0x1e9002[_0xdfc9('0x1d')]=qs['offset'](_0x4f00e0[_0xdfc9('0x2f')][_0xdfc9('0x1d')]);}_0x1e9002[_0xdfc9('0x36')]=qs[_0xdfc9('0x37')](_0x4f00e0[_0xdfc9('0x2f')][_0xdfc9('0x37')]);_0x1e9002[_0xdfc9('0x38')]=qs[_0xdfc9('0x30')](_[_0xdfc9('0x39')](_0x4f00e0[_0xdfc9('0x2f')],_0x223ba1[_0xdfc9('0x30')]),_0x1aaf5b);if(_0x4f00e0[_0xdfc9('0x2f')][_0xdfc9('0x3a')]){_0x1e9002[_0xdfc9('0x38')]=_[_0xdfc9('0x3b')](_0x1e9002['where'],{'$or':_[_0xdfc9('0x29')](_0x1aaf5b,function(_0x16a231){if(_0x16a231[_0xdfc9('0x2c')]!==_0xdfc9('0x3c')){var _0x302a64={};_0x302a64[_0x16a231[_0xdfc9('0x26')]]={'$like':'%'+_0x4f00e0[_0xdfc9('0x2f')][_0xdfc9('0x3a')]+'%'};return _0x302a64;}})});}_0x1e9002=_['merge']({},_0x1e9002,_0x4f00e0[_0xdfc9('0x3d')]);var _0x544c6b={'where':_0x1e9002[_0xdfc9('0x38')]};return db[_0xdfc9('0x2a')][_0xdfc9('0x1c')](_0x544c6b)[_0xdfc9('0x23')](function(_0x273aa1){_0x41d04d[_0xdfc9('0x1c')]=_0x273aa1;if(_0x4f00e0[_0xdfc9('0x2f')][_0xdfc9('0x3e')]){_0x1e9002['include']=[{'all':!![]}];}return db[_0xdfc9('0x2a')][_0xdfc9('0x3f')](_0x1e9002);})['then'](function(_0x25824b){_0x41d04d['rows']=_0x25824b;return _0x41d04d;})[_0xdfc9('0x23')](respondWithFilteredResult(_0x51cc40,_0x1e9002))['catch'](handleError(_0x51cc40,null));};exports[_0xdfc9('0x40')]=function(_0x561c26,_0x3e0a70){var _0x2472ff={'raw':!![],'where':{'id':_0x561c26[_0xdfc9('0x41')]['id']}},_0xaf5298={};_0xaf5298[_0xdfc9('0x2e')]=_[_0xdfc9('0x42')](db[_0xdfc9('0x2a')]['rawAttributes']);_0xaf5298[_0xdfc9('0x2f')]=_[_0xdfc9('0x42')](_0x561c26[_0xdfc9('0x2f')]);_0xaf5298['filters']=_[_0xdfc9('0x31')](_0xaf5298[_0xdfc9('0x2e')],_0xaf5298['query']);_0x2472ff['attributes']=_['intersection'](_0xaf5298[_0xdfc9('0x2e')],qs[_0xdfc9('0x33')](_0x561c26[_0xdfc9('0x2f')][_0xdfc9('0x33')]));_0x2472ff[_0xdfc9('0x32')]=_0x2472ff[_0xdfc9('0x32')][_0xdfc9('0x34')]?_0x2472ff[_0xdfc9('0x32')]:_0xaf5298[_0xdfc9('0x2e')];if(_0x561c26[_0xdfc9('0x2f')][_0xdfc9('0x3e')]){_0x2472ff[_0xdfc9('0x43')]=[{'all':!![]}];}_0x2472ff=_[_0xdfc9('0x3b')]({},_0x2472ff,_0x561c26[_0xdfc9('0x3d')]);return db[_0xdfc9('0x2a')]['find'](_0x2472ff)[_0xdfc9('0x23')](handleEntityNotFound(_0x3e0a70,null))[_0xdfc9('0x23')](respondWithResult(_0x3e0a70,null))['catch'](handleError(_0x3e0a70,null));};exports[_0xdfc9('0x44')]=function(_0x3cde24,_0x33a81c){return db[_0xdfc9('0x2a')]['create'](_0x3cde24[_0xdfc9('0x45')],{})['then'](respondWithResult(_0x33a81c,0xc9))[_0xdfc9('0x46')](handleError(_0x33a81c,null));};exports[_0xdfc9('0x22')]=function(_0x33e3e4,_0x40a2d1){if(_0x33e3e4[_0xdfc9('0x45')]['id']){delete _0x33e3e4[_0xdfc9('0x45')]['id'];}return db[_0xdfc9('0x2a')]['find']({'where':{'id':_0x33e3e4[_0xdfc9('0x41')]['id']}})[_0xdfc9('0x23')](handleEntityNotFound(_0x40a2d1,null))[_0xdfc9('0x23')](saveUpdates(_0x33e3e4[_0xdfc9('0x45')],null))[_0xdfc9('0x23')](respondWithResult(_0x40a2d1,null))[_0xdfc9('0x46')](handleError(_0x40a2d1,null));};exports[_0xdfc9('0x47')]=function(_0x5af613,_0x130507){return db[_0xdfc9('0x2a')]['find']({'where':{'id':_0x5af613['params']['id']}})[_0xdfc9('0x23')](handleEntityNotFound(_0x130507,null))['then'](removeEntity(_0x130507,null))[_0xdfc9('0x46')](handleError(_0x130507,null));};exports['describe']=function(_0x1a8fdc,_0x3cd50a){return db[_0xdfc9('0x2a')][_0xdfc9('0x48')]()[_0xdfc9('0x23')](respondWithResult(_0x3cd50a,null))[_0xdfc9('0x46')](handleError(_0x3cd50a,null));};
\ No newline at end of file