Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / squareReport / squareReport.controller.js
index 9b81ee6..c0889d1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2ce5=['intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','filters','pick','filter','merge','VIRTUAL','options','include','rows','show','params','includeAll','find','catch','create','body','describe','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','to-csv','fs-extra','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','end','status','json','offset','limit','undefined','count','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','index','map','SquareReport','rawAttributes','fieldName','type','model','keys','query'];(function(_0x182b7d,_0x416e33){var _0x4f3e12=function(_0x595fde){while(--_0x595fde){_0x182b7d['push'](_0x182b7d['shift']());}};_0x4f3e12(++_0x416e33);}(_0x2ce5,0xb3));var _0x52ce=function(_0x9bd9cd,_0x3ff3dd){_0x9bd9cd=_0x9bd9cd-0x0;var _0x2e6e3f=_0x2ce5[_0x9bd9cd];return _0x2e6e3f;};'use strict';var emlformat=require(_0x52ce('0x0'));var rimraf=require(_0x52ce('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x52ce('0x2'));var rp=require(_0x52ce('0x3'));var moment=require(_0x52ce('0x4'));var BPromise=require(_0x52ce('0x5'));var Mustache=require(_0x52ce('0x6'));var util=require(_0x52ce('0x7'));var path=require(_0x52ce('0x8'));var sox=require('sox');var csv=require(_0x52ce('0x9'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x52ce('0xa'));var _=require('lodash');var squel=require(_0x52ce('0xb'));var crypto=require(_0x52ce('0xc'));var jsforce=require(_0x52ce('0xd'));var deskjs=require('desk.js');var toCsv=require(_0x52ce('0x9'));var querystring=require(_0x52ce('0xe'));var Papa=require(_0x52ce('0xf'));var Redis=require(_0x52ce('0x10'));var authService=require(_0x52ce('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0x52ce('0x12'));var hardwareService=require(_0x52ce('0x13'));var logger=require(_0x52ce('0x14'))('api');var utils=require(_0x52ce('0x15'));var config=require('../../config/environment');var licenseUtil=require(_0x52ce('0x16'));var db=require(_0x52ce('0x17'))['db'];function respondWithStatusCode(_0x2e5b48,_0x3521b1){_0x3521b1=_0x3521b1||0xcc;return function(_0x381627){if(_0x381627){return _0x2e5b48[_0x52ce('0x18')](_0x3521b1);}return _0x2e5b48['status'](_0x3521b1)[_0x52ce('0x19')]();};}function respondWithResult(_0x168375,_0x17dab6){_0x17dab6=_0x17dab6||0xc8;return function(_0x3b924c){if(_0x3b924c){return _0x168375[_0x52ce('0x1a')](_0x17dab6)[_0x52ce('0x1b')](_0x3b924c);}};}function respondWithFilteredResult(_0x475c4f,_0x47db9e){return function(_0x1f85a0){if(_0x1f85a0){var _0x3386d=typeof _0x47db9e[_0x52ce('0x1c')]==='undefined'&&typeof _0x47db9e[_0x52ce('0x1d')]===_0x52ce('0x1e');var _0x4b475f=_0x1f85a0[_0x52ce('0x1f')];var _0x638042=_0x3386d?0x0:_0x47db9e[_0x52ce('0x1c')];var _0x148c98=_0x3386d?_0x1f85a0[_0x52ce('0x1f')]:_0x47db9e['offset']+_0x47db9e[_0x52ce('0x1d')];var _0x33372b;if(_0x148c98>=_0x4b475f){_0x148c98=_0x4b475f;_0x33372b=0xc8;}else{_0x33372b=0xce;}_0x475c4f[_0x52ce('0x1a')](_0x33372b);return _0x475c4f[_0x52ce('0x20')](_0x52ce('0x21'),_0x638042+'-'+_0x148c98+'/'+_0x4b475f)[_0x52ce('0x1b')](_0x1f85a0);}return null;};}function patchUpdates(_0x3ce01b){return function(_0x20557e){try{jsonpatch[_0x52ce('0x22')](_0x20557e,_0x3ce01b,!![]);}catch(_0x47b9e2){return BPromise[_0x52ce('0x23')](_0x47b9e2);}return _0x20557e[_0x52ce('0x24')]();};}function saveUpdates(_0x1182f5,_0x20737a){return function(_0x2c522e){if(_0x2c522e){return _0x2c522e[_0x52ce('0x25')](_0x1182f5)[_0x52ce('0x26')](function(_0x37f8e8){return _0x37f8e8;});}return null;};}function removeEntity(_0x36ad55,_0x38d143){return function(_0x5c6f0e){if(_0x5c6f0e){return _0x5c6f0e[_0x52ce('0x27')]()['then'](function(){_0x36ad55[_0x52ce('0x1a')](0xcc)[_0x52ce('0x19')]();});}};}function handleEntityNotFound(_0x48609f,_0x1129f5){return function(_0x5bffbc){if(!_0x5bffbc){_0x48609f[_0x52ce('0x18')](0x194);}return _0x5bffbc;};}function handleError(_0x565e9e,_0x234666){_0x234666=_0x234666||0x1f4;return function(_0x3313ca){logger[_0x52ce('0x28')](_0x3313ca[_0x52ce('0x29')]);if(_0x3313ca[_0x52ce('0x2a')]){delete _0x3313ca['name'];}_0x565e9e['status'](_0x234666)['send'](_0x3313ca);};}exports[_0x52ce('0x2b')]=function(_0x583a17,_0x3b0868){var _0x2ff386={},_0x167384={},_0x15ba41={'count':0x0,'rows':[]};var _0x4b1317=_[_0x52ce('0x2c')](db[_0x52ce('0x2d')][_0x52ce('0x2e')],function(_0x5024da){return{'name':_0x5024da[_0x52ce('0x2f')],'type':_0x5024da[_0x52ce('0x30')]['key']};});_0x167384[_0x52ce('0x31')]=_['map'](_0x4b1317,_0x52ce('0x2a'));_0x167384['query']=_[_0x52ce('0x32')](_0x583a17[_0x52ce('0x33')]);_0x167384['filters']=_['intersection'](_0x167384['model'],_0x167384[_0x52ce('0x33')]);_0x2ff386['attributes']=_[_0x52ce('0x34')](_0x167384[_0x52ce('0x31')],qs[_0x52ce('0x35')](_0x583a17[_0x52ce('0x33')][_0x52ce('0x35')]));_0x2ff386[_0x52ce('0x36')]=_0x2ff386[_0x52ce('0x36')][_0x52ce('0x37')]?_0x2ff386[_0x52ce('0x36')]:_0x167384['model'];if(!_0x583a17[_0x52ce('0x33')][_0x52ce('0x38')](_0x52ce('0x39'))){_0x2ff386[_0x52ce('0x1d')]=qs['limit'](_0x583a17[_0x52ce('0x33')][_0x52ce('0x1d')]);_0x2ff386[_0x52ce('0x1c')]=qs['offset'](_0x583a17[_0x52ce('0x33')]['offset']);}_0x2ff386[_0x52ce('0x3a')]=qs[_0x52ce('0x3b')](_0x583a17['query'][_0x52ce('0x3b')]);_0x2ff386[_0x52ce('0x3c')]=qs[_0x52ce('0x3d')](_[_0x52ce('0x3e')](_0x583a17['query'],_0x167384[_0x52ce('0x3d')]),_0x4b1317);if(_0x583a17[_0x52ce('0x33')][_0x52ce('0x3f')]){_0x2ff386[_0x52ce('0x3c')]=_[_0x52ce('0x40')](_0x2ff386[_0x52ce('0x3c')],{'$or':_['map'](_0x4b1317,function(_0x4196c3){if(_0x4196c3[_0x52ce('0x30')]!==_0x52ce('0x41')){var _0x3ffe41={};_0x3ffe41[_0x4196c3[_0x52ce('0x2a')]]={'$like':'%'+_0x583a17[_0x52ce('0x33')][_0x52ce('0x3f')]+'%'};return _0x3ffe41;}})});}_0x2ff386=_[_0x52ce('0x40')]({},_0x2ff386,_0x583a17[_0x52ce('0x42')]);var _0x31b88e={'where':_0x2ff386[_0x52ce('0x3c')]};return db[_0x52ce('0x2d')][_0x52ce('0x1f')](_0x31b88e)[_0x52ce('0x26')](function(_0x27f306){_0x15ba41['count']=_0x27f306;if(_0x583a17[_0x52ce('0x33')]['includeAll']){_0x2ff386[_0x52ce('0x43')]=[{'all':!![]}];}return db[_0x52ce('0x2d')]['findAll'](_0x2ff386);})[_0x52ce('0x26')](function(_0x3e9b16){_0x15ba41[_0x52ce('0x44')]=_0x3e9b16;return _0x15ba41;})['then'](respondWithFilteredResult(_0x3b0868,_0x2ff386))['catch'](handleError(_0x3b0868,null));};exports[_0x52ce('0x45')]=function(_0x12af7f,_0x289420){var _0x5eb3be={'raw':!![],'where':{'id':_0x12af7f[_0x52ce('0x46')]['id']}},_0x3f2e1e={};_0x3f2e1e[_0x52ce('0x31')]=_[_0x52ce('0x32')](db['SquareReport']['rawAttributes']);_0x3f2e1e[_0x52ce('0x33')]=_[_0x52ce('0x32')](_0x12af7f[_0x52ce('0x33')]);_0x3f2e1e[_0x52ce('0x3d')]=_[_0x52ce('0x34')](_0x3f2e1e['model'],_0x3f2e1e[_0x52ce('0x33')]);_0x5eb3be[_0x52ce('0x36')]=_[_0x52ce('0x34')](_0x3f2e1e[_0x52ce('0x31')],qs['fields'](_0x12af7f['query'][_0x52ce('0x35')]));_0x5eb3be[_0x52ce('0x36')]=_0x5eb3be[_0x52ce('0x36')]['length']?_0x5eb3be[_0x52ce('0x36')]:_0x3f2e1e[_0x52ce('0x31')];if(_0x12af7f['query'][_0x52ce('0x47')]){_0x5eb3be[_0x52ce('0x43')]=[{'all':!![]}];}_0x5eb3be=_[_0x52ce('0x40')]({},_0x5eb3be,_0x12af7f[_0x52ce('0x42')]);return db['SquareReport'][_0x52ce('0x48')](_0x5eb3be)['then'](handleEntityNotFound(_0x289420,null))[_0x52ce('0x26')](respondWithResult(_0x289420,null))[_0x52ce('0x49')](handleError(_0x289420,null));};exports[_0x52ce('0x4a')]=function(_0x11b053,_0x1fb3ad){return db['SquareReport'][_0x52ce('0x4a')](_0x11b053[_0x52ce('0x4b')],{})[_0x52ce('0x26')](respondWithResult(_0x1fb3ad,0xc9))[_0x52ce('0x49')](handleError(_0x1fb3ad,null));};exports[_0x52ce('0x25')]=function(_0x179f00,_0x34405c){if(_0x179f00[_0x52ce('0x4b')]['id']){delete _0x179f00[_0x52ce('0x4b')]['id'];}return db[_0x52ce('0x2d')][_0x52ce('0x48')]({'where':{'id':_0x179f00[_0x52ce('0x46')]['id']}})[_0x52ce('0x26')](handleEntityNotFound(_0x34405c,null))[_0x52ce('0x26')](saveUpdates(_0x179f00['body'],null))[_0x52ce('0x26')](respondWithResult(_0x34405c,null))[_0x52ce('0x49')](handleError(_0x34405c,null));};exports[_0x52ce('0x27')]=function(_0x511264,_0x59c13c){return db[_0x52ce('0x2d')][_0x52ce('0x48')]({'where':{'id':_0x511264[_0x52ce('0x46')]['id']}})['then'](handleEntityNotFound(_0x59c13c,null))['then'](removeEntity(_0x59c13c,null))['catch'](handleError(_0x59c13c,null));};exports[_0x52ce('0x4c')]=function(_0x4532bb,_0x4433f3){return db[_0x52ce('0x2d')]['describe']()['then'](respondWithResult(_0x4433f3,null))['catch'](handleError(_0x4433f3,null));};
\ No newline at end of file
+var _0xd011=['update','then','destroy','error','stack','name','index','map','SquareReport','rawAttributes','fieldName','type','key','model','query','keys','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','filters','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','show','find','catch','create','body','params','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save'];(function(_0xe8129c,_0x2fb03c){var _0x709fc5=function(_0xb8e0c6){while(--_0xb8e0c6){_0xe8129c['push'](_0xe8129c['shift']());}};_0x709fc5(++_0x2fb03c);}(_0xd011,0x1ae));var _0x1d01=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xd011[_0x3dd15e];return _0x231fd0;};'use strict';var emlformat=require(_0x1d01('0x0'));var rimraf=require(_0x1d01('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x1d01('0x2'));var rp=require(_0x1d01('0x3'));var moment=require(_0x1d01('0x4'));var BPromise=require(_0x1d01('0x5'));var Mustache=require(_0x1d01('0x6'));var util=require('util');var path=require(_0x1d01('0x7'));var sox=require(_0x1d01('0x8'));var csv=require(_0x1d01('0x9'));var ejs=require(_0x1d01('0xa'));var fs=require('fs');var fs_extra=require(_0x1d01('0xb'));var _=require(_0x1d01('0xc'));var squel=require(_0x1d01('0xd'));var crypto=require(_0x1d01('0xe'));var jsforce=require(_0x1d01('0xf'));var deskjs=require('desk.js');var toCsv=require(_0x1d01('0x9'));var querystring=require('querystring');var Papa=require(_0x1d01('0x10'));var Redis=require(_0x1d01('0x11'));var authService=require('../../components/auth/service');var qs=require(_0x1d01('0x12'));var as=require(_0x1d01('0x13'));var hardwareService=require(_0x1d01('0x14'));var logger=require(_0x1d01('0x15'))('api');var utils=require(_0x1d01('0x16'));var config=require(_0x1d01('0x17'));var licenseUtil=require('../../config/license/util');var db=require(_0x1d01('0x18'))['db'];function respondWithStatusCode(_0x451ecc,_0x599a19){_0x599a19=_0x599a19||0xcc;return function(_0xaa92dc){if(_0xaa92dc){return _0x451ecc[_0x1d01('0x19')](_0x599a19);}return _0x451ecc[_0x1d01('0x1a')](_0x599a19)[_0x1d01('0x1b')]();};}function respondWithResult(_0xa09f62,_0x2ee47a){_0x2ee47a=_0x2ee47a||0xc8;return function(_0x2ddeed){if(_0x2ddeed){return _0xa09f62[_0x1d01('0x1a')](_0x2ee47a)[_0x1d01('0x1c')](_0x2ddeed);}};}function respondWithFilteredResult(_0x49066d,_0x433279){return function(_0x3e1ab0){if(_0x3e1ab0){var _0x3f5eb3=typeof _0x433279[_0x1d01('0x1d')]===_0x1d01('0x1e')&&typeof _0x433279[_0x1d01('0x1f')]===_0x1d01('0x1e');var _0x26e01e=_0x3e1ab0[_0x1d01('0x20')];var _0x45364d=_0x3f5eb3?0x0:_0x433279[_0x1d01('0x1d')];var _0x28da35=_0x3f5eb3?_0x3e1ab0[_0x1d01('0x20')]:_0x433279[_0x1d01('0x1d')]+_0x433279[_0x1d01('0x1f')];var _0x32dc8b;if(_0x28da35>=_0x26e01e){_0x28da35=_0x26e01e;_0x32dc8b=0xc8;}else{_0x32dc8b=0xce;}_0x49066d[_0x1d01('0x1a')](_0x32dc8b);return _0x49066d[_0x1d01('0x21')](_0x1d01('0x22'),_0x45364d+'-'+_0x28da35+'/'+_0x26e01e)[_0x1d01('0x1c')](_0x3e1ab0);}return null;};}function patchUpdates(_0xacaaab){return function(_0x5dd7b4){try{jsonpatch[_0x1d01('0x23')](_0x5dd7b4,_0xacaaab,!![]);}catch(_0x47e8d4){return BPromise[_0x1d01('0x24')](_0x47e8d4);}return _0x5dd7b4[_0x1d01('0x25')]();};}function saveUpdates(_0x565f75,_0x42104c){return function(_0x31f846){if(_0x31f846){return _0x31f846[_0x1d01('0x26')](_0x565f75)[_0x1d01('0x27')](function(_0x5358db){return _0x5358db;});}return null;};}function removeEntity(_0xa96e2e,_0x18618a){return function(_0x40ca30){if(_0x40ca30){return _0x40ca30[_0x1d01('0x28')]()['then'](function(){_0xa96e2e[_0x1d01('0x1a')](0xcc)[_0x1d01('0x1b')]();});}};}function handleEntityNotFound(_0x2f936a,_0x4683dd){return function(_0x4fe01e){if(!_0x4fe01e){_0x2f936a[_0x1d01('0x19')](0x194);}return _0x4fe01e;};}function handleError(_0x2aede0,_0x526345){_0x526345=_0x526345||0x1f4;return function(_0x2837cd){logger[_0x1d01('0x29')](_0x2837cd[_0x1d01('0x2a')]);if(_0x2837cd['name']){delete _0x2837cd[_0x1d01('0x2b')];}_0x2aede0[_0x1d01('0x1a')](_0x526345)['send'](_0x2837cd);};}exports[_0x1d01('0x2c')]=function(_0x13f76f,_0x49bfd9){var _0x2ac1b4={},_0x49e8aa={},_0x2fde1b={'count':0x0,'rows':[]};var _0x341e96=_[_0x1d01('0x2d')](db[_0x1d01('0x2e')][_0x1d01('0x2f')],function(_0x4ff685){return{'name':_0x4ff685[_0x1d01('0x30')],'type':_0x4ff685[_0x1d01('0x31')][_0x1d01('0x32')]};});_0x49e8aa[_0x1d01('0x33')]=_[_0x1d01('0x2d')](_0x341e96,_0x1d01('0x2b'));_0x49e8aa[_0x1d01('0x34')]=_[_0x1d01('0x35')](_0x13f76f['query']);_0x49e8aa['filters']=_['intersection'](_0x49e8aa[_0x1d01('0x33')],_0x49e8aa['query']);_0x2ac1b4['attributes']=_[_0x1d01('0x36')](_0x49e8aa[_0x1d01('0x33')],qs[_0x1d01('0x37')](_0x13f76f[_0x1d01('0x34')][_0x1d01('0x37')]));_0x2ac1b4[_0x1d01('0x38')]=_0x2ac1b4[_0x1d01('0x38')][_0x1d01('0x39')]?_0x2ac1b4['attributes']:_0x49e8aa[_0x1d01('0x33')];if(!_0x13f76f['query'][_0x1d01('0x3a')](_0x1d01('0x3b'))){_0x2ac1b4[_0x1d01('0x1f')]=qs[_0x1d01('0x1f')](_0x13f76f[_0x1d01('0x34')][_0x1d01('0x1f')]);_0x2ac1b4[_0x1d01('0x1d')]=qs[_0x1d01('0x1d')](_0x13f76f[_0x1d01('0x34')]['offset']);}_0x2ac1b4[_0x1d01('0x3c')]=qs[_0x1d01('0x3d')](_0x13f76f[_0x1d01('0x34')]['sort']);_0x2ac1b4[_0x1d01('0x3e')]=qs[_0x1d01('0x3f')](_['pick'](_0x13f76f[_0x1d01('0x34')],_0x49e8aa[_0x1d01('0x3f')]),_0x341e96);if(_0x13f76f['query'][_0x1d01('0x40')]){_0x2ac1b4[_0x1d01('0x3e')]=_[_0x1d01('0x41')](_0x2ac1b4[_0x1d01('0x3e')],{'$or':_[_0x1d01('0x2d')](_0x341e96,function(_0x50782a){if(_0x50782a[_0x1d01('0x31')]!==_0x1d01('0x42')){var _0x56459f={};_0x56459f[_0x50782a[_0x1d01('0x2b')]]={'$like':'%'+_0x13f76f[_0x1d01('0x34')][_0x1d01('0x40')]+'%'};return _0x56459f;}})});}_0x2ac1b4=_[_0x1d01('0x41')]({},_0x2ac1b4,_0x13f76f[_0x1d01('0x43')]);var _0x1e768e={'where':_0x2ac1b4[_0x1d01('0x3e')]};return db['SquareReport'][_0x1d01('0x20')](_0x1e768e)[_0x1d01('0x27')](function(_0x1f149e){_0x2fde1b[_0x1d01('0x20')]=_0x1f149e;if(_0x13f76f[_0x1d01('0x34')][_0x1d01('0x44')]){_0x2ac1b4[_0x1d01('0x45')]=[{'all':!![]}];}return db[_0x1d01('0x2e')][_0x1d01('0x46')](_0x2ac1b4);})[_0x1d01('0x27')](function(_0x1024ef){_0x2fde1b[_0x1d01('0x47')]=_0x1024ef;return _0x2fde1b;})[_0x1d01('0x27')](respondWithFilteredResult(_0x49bfd9,_0x2ac1b4))['catch'](handleError(_0x49bfd9,null));};exports[_0x1d01('0x48')]=function(_0xe7d45f,_0xafb524){var _0x584bc8={'raw':!![],'where':{'id':_0xe7d45f['params']['id']}},_0xf96958={};_0xf96958[_0x1d01('0x33')]=_[_0x1d01('0x35')](db['SquareReport'][_0x1d01('0x2f')]);_0xf96958['query']=_[_0x1d01('0x35')](_0xe7d45f['query']);_0xf96958[_0x1d01('0x3f')]=_[_0x1d01('0x36')](_0xf96958[_0x1d01('0x33')],_0xf96958[_0x1d01('0x34')]);_0x584bc8[_0x1d01('0x38')]=_['intersection'](_0xf96958[_0x1d01('0x33')],qs['fields'](_0xe7d45f[_0x1d01('0x34')][_0x1d01('0x37')]));_0x584bc8['attributes']=_0x584bc8[_0x1d01('0x38')]['length']?_0x584bc8[_0x1d01('0x38')]:_0xf96958['model'];if(_0xe7d45f[_0x1d01('0x34')][_0x1d01('0x44')]){_0x584bc8[_0x1d01('0x45')]=[{'all':!![]}];}_0x584bc8=_['merge']({},_0x584bc8,_0xe7d45f[_0x1d01('0x43')]);return db[_0x1d01('0x2e')][_0x1d01('0x49')](_0x584bc8)['then'](handleEntityNotFound(_0xafb524,null))[_0x1d01('0x27')](respondWithResult(_0xafb524,null))[_0x1d01('0x4a')](handleError(_0xafb524,null));};exports['create']=function(_0x3741c7,_0xdb7f90){return db[_0x1d01('0x2e')][_0x1d01('0x4b')](_0x3741c7[_0x1d01('0x4c')],{})[_0x1d01('0x27')](respondWithResult(_0xdb7f90,0xc9))[_0x1d01('0x4a')](handleError(_0xdb7f90,null));};exports[_0x1d01('0x26')]=function(_0x594de6,_0x32e9b6){if(_0x594de6['body']['id']){delete _0x594de6[_0x1d01('0x4c')]['id'];}return db[_0x1d01('0x2e')][_0x1d01('0x49')]({'where':{'id':_0x594de6[_0x1d01('0x4d')]['id']}})[_0x1d01('0x27')](handleEntityNotFound(_0x32e9b6,null))['then'](saveUpdates(_0x594de6[_0x1d01('0x4c')],null))[_0x1d01('0x27')](respondWithResult(_0x32e9b6,null))['catch'](handleError(_0x32e9b6,null));};exports[_0x1d01('0x28')]=function(_0x46368e,_0x1d0da5){return db['SquareReport']['find']({'where':{'id':_0x46368e[_0x1d01('0x4d')]['id']}})[_0x1d01('0x27')](handleEntityNotFound(_0x1d0da5,null))[_0x1d01('0x27')](removeEntity(_0x1d0da5,null))[_0x1d01('0x4a')](handleError(_0x1d0da5,null));};exports['describe']=function(_0x36478f,_0x416532){return db['SquareReport']['describe']()['then'](respondWithResult(_0x416532,null))['catch'](handleError(_0x416532,null));};
\ No newline at end of file