Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index c42b769..e7b607b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4c8a=['rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','ejs','lodash','squel','crypto','jsforce','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','set','Content-Range','apply','reject','update','then','destroy','end','error','stack','name','send','SquareDetailsReport','rawAttributes','fieldName','key','model','map','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','limit','order','sort','where','filter','merge','type','VIRTUAL','options','count','show','params','includeAll','include','find','catch','create','body','describe','html-pdf'];(function(_0xb826d2,_0x26ddda){var _0x1a297a=function(_0xdd9cec){while(--_0xdd9cec){_0xb826d2['push'](_0xb826d2['shift']());}};_0x1a297a(++_0x26ddda);}(_0x4c8a,0x1d9));var _0xa4c8=function(_0x3e1ba0,_0x54daab){_0x3e1ba0=_0x3e1ba0-0x0;var _0x2c4536=_0x4c8a[_0x3e1ba0];return _0x2c4536;};'use strict';var pdf=require(_0xa4c8('0x0'));var emlformat=require('eml-format');var rimraf=require(_0xa4c8('0x1'));var zipdir=require(_0xa4c8('0x2'));var jsonpatch=require(_0xa4c8('0x3'));var rp=require(_0xa4c8('0x4'));var moment=require(_0xa4c8('0x5'));var BPromise=require(_0xa4c8('0x6'));var Mustache=require(_0xa4c8('0x7'));var util=require(_0xa4c8('0x8'));var path=require(_0xa4c8('0x9'));var sox=require(_0xa4c8('0xa'));var csv=require('to-csv');var ejs=require(_0xa4c8('0xb'));var fs=require('fs');var _=require(_0xa4c8('0xc'));var squel=require(_0xa4c8('0xd'));var crypto=require(_0xa4c8('0xe'));var jsforce=require(_0xa4c8('0xf'));var deskjs=require('desk.js');var toCsv=require(_0xa4c8('0x10'));var querystring=require(_0xa4c8('0x11'));var Papa=require(_0xa4c8('0x12'));var Redis=require(_0xa4c8('0x13'));var authService=require(_0xa4c8('0x14'));var qs=require(_0xa4c8('0x15'));var as=require(_0xa4c8('0x16'));var hardwareService=require(_0xa4c8('0x17'));var logger=require('../../config/logger')(_0xa4c8('0x18'));var utils=require(_0xa4c8('0x19'));var config=require(_0xa4c8('0x1a'));var licenseUtil=require(_0xa4c8('0x1b'));var db=require(_0xa4c8('0x1c'))['db'];function respondWithStatusCode(_0x6df97c,_0x45c02f){_0x45c02f=_0x45c02f||0xcc;return function(_0x488137){if(_0x488137){return _0x6df97c[_0xa4c8('0x1d')](_0x45c02f);}return _0x6df97c[_0xa4c8('0x1e')](_0x45c02f)['end']();};}function respondWithResult(_0x371ff0,_0x303861){_0x303861=_0x303861||0xc8;return function(_0xb5dc4c){if(_0xb5dc4c){return _0x371ff0[_0xa4c8('0x1e')](_0x303861)[_0xa4c8('0x1f')](_0xb5dc4c);}};}function respondWithFilteredResult(_0x1e89f2,_0x472c08){return function(_0x21b63b){if(_0x21b63b){var _0x175de5=_0x21b63b['count'],_0x32e287=_0x472c08[_0xa4c8('0x20')],_0x5d3d41=_0x472c08[_0xa4c8('0x20')]+_0x472c08['limit'],_0x1fbe94;if(_0x5d3d41>=_0x175de5){_0x5d3d41=_0x175de5;_0x1fbe94=0xc8;}else{_0x1fbe94=0xce;}_0x1e89f2[_0xa4c8('0x1e')](_0x1fbe94);return _0x1e89f2[_0xa4c8('0x21')](_0xa4c8('0x22'),_0x32e287+'-'+_0x5d3d41+'/'+_0x175de5)[_0xa4c8('0x1f')](_0x21b63b);}return null;};}function patchUpdates(_0x647853){return function(_0xc7a468){try{jsonpatch[_0xa4c8('0x23')](_0xc7a468,_0x647853,!![]);}catch(_0x76a7d7){return BPromise[_0xa4c8('0x24')](_0x76a7d7);}return _0xc7a468['save']();};}function saveUpdates(_0x5db1bd,_0x27bf95){return function(_0x46d56a){if(_0x46d56a){return _0x46d56a[_0xa4c8('0x25')](_0x5db1bd)[_0xa4c8('0x26')](function(_0x4a9e78){return _0x4a9e78;});}return null;};}function removeEntity(_0x4693a0,_0x54e7d8){return function(_0x24eaca){if(_0x24eaca){return _0x24eaca[_0xa4c8('0x27')]()[_0xa4c8('0x26')](function(){_0x4693a0[_0xa4c8('0x1e')](0xcc)[_0xa4c8('0x28')]();});}};}function handleEntityNotFound(_0x2c6fe9,_0x190707){return function(_0xf722f1){if(!_0xf722f1){_0x2c6fe9[_0xa4c8('0x1d')](0x194);}return _0xf722f1;};}function handleError(_0x471108,_0x2085ae){_0x2085ae=_0x2085ae||0x1f4;return function(_0x4ac814){logger[_0xa4c8('0x29')](_0x4ac814[_0xa4c8('0x2a')]);if(_0x4ac814[_0xa4c8('0x2b')]){delete _0x4ac814[_0xa4c8('0x2b')];}_0x471108['status'](_0x2085ae)[_0xa4c8('0x2c')](_0x4ac814);};}exports['index']=function(_0x36699f,_0x32ac16){var _0x47b62a={},_0x179b12={},_0x1f75e7={'count':0x0,'rows':[]};var _0x4e1553=_['map'](db[_0xa4c8('0x2d')][_0xa4c8('0x2e')],function(_0x330cfd){return{'name':_0x330cfd[_0xa4c8('0x2f')],'type':_0x330cfd['type'][_0xa4c8('0x30')]};});_0x179b12[_0xa4c8('0x31')]=_[_0xa4c8('0x32')](_0x4e1553,_0xa4c8('0x2b'));_0x179b12[_0xa4c8('0x33')]=_[_0xa4c8('0x34')](_0x36699f[_0xa4c8('0x33')]);_0x179b12[_0xa4c8('0x35')]=_[_0xa4c8('0x36')](_0x179b12[_0xa4c8('0x31')],_0x179b12[_0xa4c8('0x33')]);_0x47b62a[_0xa4c8('0x37')]=_[_0xa4c8('0x36')](_0x179b12['model'],qs[_0xa4c8('0x38')](_0x36699f[_0xa4c8('0x33')]['fields']));_0x47b62a['attributes']=_0x47b62a[_0xa4c8('0x37')][_0xa4c8('0x39')]?_0x47b62a[_0xa4c8('0x37')]:_0x179b12[_0xa4c8('0x31')];if(!_0x36699f['query'][_0xa4c8('0x3a')](_0xa4c8('0x3b'))){_0x47b62a['limit']=qs['limit'](_0x36699f[_0xa4c8('0x33')][_0xa4c8('0x3c')]);_0x47b62a['offset']=qs[_0xa4c8('0x20')](_0x36699f[_0xa4c8('0x33')]['offset']);}_0x47b62a[_0xa4c8('0x3d')]=qs[_0xa4c8('0x3e')](_0x36699f[_0xa4c8('0x33')][_0xa4c8('0x3e')]);_0x47b62a[_0xa4c8('0x3f')]=qs[_0xa4c8('0x35')](_['pick'](_0x36699f[_0xa4c8('0x33')],_0x179b12[_0xa4c8('0x35')]),_0x4e1553);if(_0x36699f[_0xa4c8('0x33')][_0xa4c8('0x40')]){_0x47b62a[_0xa4c8('0x3f')]=_[_0xa4c8('0x41')](_0x47b62a['where'],{'$or':_[_0xa4c8('0x32')](_0x4e1553,function(_0x2d83b8){if(_0x2d83b8[_0xa4c8('0x42')]!==_0xa4c8('0x43')){var _0x77f8aa={};_0x77f8aa[_0x2d83b8[_0xa4c8('0x2b')]]={'$like':'%'+_0x36699f[_0xa4c8('0x33')][_0xa4c8('0x40')]+'%'};return _0x77f8aa;}})});}_0x47b62a=_['merge']({},_0x47b62a,_0x36699f[_0xa4c8('0x44')]);var _0x4f8132={'where':_0x47b62a['where']};return db[_0xa4c8('0x2d')][_0xa4c8('0x45')](_0x4f8132)['then'](function(_0xf981f6){_0x1f75e7[_0xa4c8('0x45')]=_0xf981f6;if(_0x36699f[_0xa4c8('0x33')]['includeAll']){_0x47b62a['include']=[{'all':!![]}];}return db[_0xa4c8('0x2d')]['findAll'](_0x47b62a);})['then'](function(_0x38f914){_0x1f75e7['rows']=_0x38f914;return _0x1f75e7;})[_0xa4c8('0x26')](respondWithFilteredResult(_0x32ac16,_0x47b62a))['catch'](handleError(_0x32ac16,null));};exports[_0xa4c8('0x46')]=function(_0x180890,_0x4ba153){var _0x56b797={'raw':!![],'where':{'id':_0x180890[_0xa4c8('0x47')]['id']}},_0x15810d={};_0x15810d[_0xa4c8('0x31')]=_[_0xa4c8('0x34')](db[_0xa4c8('0x2d')][_0xa4c8('0x2e')]);_0x15810d[_0xa4c8('0x33')]=_[_0xa4c8('0x34')](_0x180890[_0xa4c8('0x33')]);_0x15810d['filters']=_[_0xa4c8('0x36')](_0x15810d[_0xa4c8('0x31')],_0x15810d[_0xa4c8('0x33')]);_0x56b797[_0xa4c8('0x37')]=_[_0xa4c8('0x36')](_0x15810d[_0xa4c8('0x31')],qs['fields'](_0x180890['query'][_0xa4c8('0x38')]));_0x56b797[_0xa4c8('0x37')]=_0x56b797['attributes'][_0xa4c8('0x39')]?_0x56b797['attributes']:_0x15810d[_0xa4c8('0x31')];if(_0x180890[_0xa4c8('0x33')][_0xa4c8('0x48')]){_0x56b797[_0xa4c8('0x49')]=[{'all':!![]}];}_0x56b797=_['merge']({},_0x56b797,_0x180890[_0xa4c8('0x44')]);return db[_0xa4c8('0x2d')][_0xa4c8('0x4a')](_0x56b797)[_0xa4c8('0x26')](handleEntityNotFound(_0x4ba153,null))['then'](respondWithResult(_0x4ba153,null))[_0xa4c8('0x4b')](handleError(_0x4ba153,null));};exports[_0xa4c8('0x4c')]=function(_0x3d2c38,_0x4f866b){return db['SquareDetailsReport'][_0xa4c8('0x4c')](_0x3d2c38[_0xa4c8('0x4d')],{})['then'](respondWithResult(_0x4f866b,0xc9))[_0xa4c8('0x4b')](handleError(_0x4f866b,null));};exports[_0xa4c8('0x25')]=function(_0x3a9648,_0x2d4fe8){if(_0x3a9648[_0xa4c8('0x4d')]['id']){delete _0x3a9648[_0xa4c8('0x4d')]['id'];}return db['SquareDetailsReport']['find']({'where':{'id':_0x3a9648[_0xa4c8('0x47')]['id']}})[_0xa4c8('0x26')](handleEntityNotFound(_0x2d4fe8,null))[_0xa4c8('0x26')](saveUpdates(_0x3a9648['body'],null))[_0xa4c8('0x26')](respondWithResult(_0x2d4fe8,null))['catch'](handleError(_0x2d4fe8,null));};exports['destroy']=function(_0x37bb22,_0x71d713){return db['SquareDetailsReport']['find']({'where':{'id':_0x37bb22[_0xa4c8('0x47')]['id']}})[_0xa4c8('0x26')](handleEntityNotFound(_0x71d713,null))[_0xa4c8('0x26')](removeEntity(_0x71d713,null))[_0xa4c8('0x4b')](handleError(_0x71d713,null));};exports[_0xa4c8('0x4e')]=function(_0x211cb7,_0x315065){return db[_0xa4c8('0x2d')][_0xa4c8('0x4e')]()[_0xa4c8('0x26')](respondWithResult(_0x315065,null))[_0xa4c8('0x4b')](handleError(_0x315065,null));};
\ No newline at end of file
+var _0xa490=['name','send','index','rawAttributes','type','model','map','query','keys','filters','intersection','attributes','fields','length','sort','where','pick','filter','merge','VIRTUAL','options','SquareDetailsReport','count','include','rows','catch','show','params','find','create','body','describe','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','squel','crypto','jsforce','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','offset','limit','undefined','set','save','update','destroy','then','sendStatus','error','stack'];(function(_0x34fe4b,_0x4e59a5){var _0x2a5101=function(_0x200965){while(--_0x200965){_0x34fe4b['push'](_0x34fe4b['shift']());}};_0x2a5101(++_0x4e59a5);}(_0xa490,0xf5));var _0x0a49=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xa490[_0x321bb2];return _0x9c12ed;};'use strict';var emlformat=require(_0x0a49('0x0'));var rimraf=require(_0x0a49('0x1'));var zipdir=require(_0x0a49('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x0a49('0x3'));var moment=require(_0x0a49('0x4'));var BPromise=require(_0x0a49('0x5'));var Mustache=require(_0x0a49('0x6'));var util=require(_0x0a49('0x7'));var path=require(_0x0a49('0x8'));var sox=require(_0x0a49('0x9'));var csv=require(_0x0a49('0xa'));var ejs=require(_0x0a49('0xb'));var fs=require('fs');var fs_extra=require(_0x0a49('0xc'));var _=require('lodash');var squel=require(_0x0a49('0xd'));var crypto=require(_0x0a49('0xe'));var jsforce=require(_0x0a49('0xf'));var deskjs=require('desk.js');var toCsv=require(_0x0a49('0xa'));var querystring=require('querystring');var Papa=require(_0x0a49('0x10'));var Redis=require(_0x0a49('0x11'));var authService=require('../../components/auth/service');var qs=require(_0x0a49('0x12'));var as=require(_0x0a49('0x13'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x0a49('0x14'))(_0x0a49('0x15'));var utils=require('../../config/utils');var config=require(_0x0a49('0x16'));var licenseUtil=require(_0x0a49('0x17'));var db=require(_0x0a49('0x18'))['db'];function respondWithStatusCode(_0x1fd442,_0x127e31){_0x127e31=_0x127e31||0xcc;return function(_0x10456b){if(_0x10456b){return _0x1fd442['sendStatus'](_0x127e31);}return _0x1fd442[_0x0a49('0x19')](_0x127e31)[_0x0a49('0x1a')]();};}function respondWithResult(_0x54e569,_0x4681df){_0x4681df=_0x4681df||0xc8;return function(_0x412528){if(_0x412528){return _0x54e569[_0x0a49('0x19')](_0x4681df)[_0x0a49('0x1b')](_0x412528);}};}function respondWithFilteredResult(_0x2c09b7,_0xf31831){return function(_0xd28729){if(_0xd28729){var _0x410d5d=typeof _0xf31831[_0x0a49('0x1c')]==='undefined'&&typeof _0xf31831[_0x0a49('0x1d')]===_0x0a49('0x1e');var _0x4dc4dd=_0xd28729['count'];var _0x9a88f5=_0x410d5d?0x0:_0xf31831[_0x0a49('0x1c')];var _0x46b696=_0x410d5d?_0xd28729['count']:_0xf31831[_0x0a49('0x1c')]+_0xf31831[_0x0a49('0x1d')];var _0x428dda;if(_0x46b696>=_0x4dc4dd){_0x46b696=_0x4dc4dd;_0x428dda=0xc8;}else{_0x428dda=0xce;}_0x2c09b7['status'](_0x428dda);return _0x2c09b7[_0x0a49('0x1f')]('Content-Range',_0x9a88f5+'-'+_0x46b696+'/'+_0x4dc4dd)['json'](_0xd28729);}return null;};}function patchUpdates(_0x5e2a66){return function(_0x4ab5c2){try{jsonpatch['apply'](_0x4ab5c2,_0x5e2a66,!![]);}catch(_0x4ca5a5){return BPromise['reject'](_0x4ca5a5);}return _0x4ab5c2[_0x0a49('0x20')]();};}function saveUpdates(_0x5b73eb,_0x105d35){return function(_0x4449b3){if(_0x4449b3){return _0x4449b3[_0x0a49('0x21')](_0x5b73eb)['then'](function(_0x79b5f8){return _0x79b5f8;});}return null;};}function removeEntity(_0x13af13,_0x29ef80){return function(_0x28d1f5){if(_0x28d1f5){return _0x28d1f5[_0x0a49('0x22')]()[_0x0a49('0x23')](function(){_0x13af13[_0x0a49('0x19')](0xcc)[_0x0a49('0x1a')]();});}};}function handleEntityNotFound(_0x10c385,_0x3476df){return function(_0x411cbe){if(!_0x411cbe){_0x10c385[_0x0a49('0x24')](0x194);}return _0x411cbe;};}function handleError(_0x2b2cd7,_0x5a835f){_0x5a835f=_0x5a835f||0x1f4;return function(_0x1200df){logger[_0x0a49('0x25')](_0x1200df[_0x0a49('0x26')]);if(_0x1200df[_0x0a49('0x27')]){delete _0x1200df[_0x0a49('0x27')];}_0x2b2cd7[_0x0a49('0x19')](_0x5a835f)[_0x0a49('0x28')](_0x1200df);};}exports[_0x0a49('0x29')]=function(_0x36387f,_0x300eeb){var _0x5e434d={},_0x5e1062={},_0x5030fa={'count':0x0,'rows':[]};var _0x228df1=_['map'](db['SquareDetailsReport'][_0x0a49('0x2a')],function(_0x37b92b){return{'name':_0x37b92b['fieldName'],'type':_0x37b92b[_0x0a49('0x2b')]['key']};});_0x5e1062[_0x0a49('0x2c')]=_[_0x0a49('0x2d')](_0x228df1,_0x0a49('0x27'));_0x5e1062[_0x0a49('0x2e')]=_[_0x0a49('0x2f')](_0x36387f['query']);_0x5e1062[_0x0a49('0x30')]=_[_0x0a49('0x31')](_0x5e1062['model'],_0x5e1062[_0x0a49('0x2e')]);_0x5e434d[_0x0a49('0x32')]=_[_0x0a49('0x31')](_0x5e1062[_0x0a49('0x2c')],qs[_0x0a49('0x33')](_0x36387f['query']['fields']));_0x5e434d['attributes']=_0x5e434d[_0x0a49('0x32')][_0x0a49('0x34')]?_0x5e434d[_0x0a49('0x32')]:_0x5e1062[_0x0a49('0x2c')];if(!_0x36387f[_0x0a49('0x2e')]['hasOwnProperty']('nolimit')){_0x5e434d['limit']=qs[_0x0a49('0x1d')](_0x36387f[_0x0a49('0x2e')]['limit']);_0x5e434d['offset']=qs[_0x0a49('0x1c')](_0x36387f['query'][_0x0a49('0x1c')]);}_0x5e434d['order']=qs['sort'](_0x36387f[_0x0a49('0x2e')][_0x0a49('0x35')]);_0x5e434d[_0x0a49('0x36')]=qs['filters'](_[_0x0a49('0x37')](_0x36387f[_0x0a49('0x2e')],_0x5e1062[_0x0a49('0x30')]),_0x228df1);if(_0x36387f['query'][_0x0a49('0x38')]){_0x5e434d[_0x0a49('0x36')]=_[_0x0a49('0x39')](_0x5e434d[_0x0a49('0x36')],{'$or':_['map'](_0x228df1,function(_0x20d09b){if(_0x20d09b[_0x0a49('0x2b')]!==_0x0a49('0x3a')){var _0x25d253={};_0x25d253[_0x20d09b[_0x0a49('0x27')]]={'$like':'%'+_0x36387f['query'][_0x0a49('0x38')]+'%'};return _0x25d253;}})});}_0x5e434d=_[_0x0a49('0x39')]({},_0x5e434d,_0x36387f[_0x0a49('0x3b')]);var _0xf812ee={'where':_0x5e434d[_0x0a49('0x36')]};return db[_0x0a49('0x3c')][_0x0a49('0x3d')](_0xf812ee)[_0x0a49('0x23')](function(_0x38cb43){_0x5030fa['count']=_0x38cb43;if(_0x36387f[_0x0a49('0x2e')]['includeAll']){_0x5e434d[_0x0a49('0x3e')]=[{'all':!![]}];}return db[_0x0a49('0x3c')]['findAll'](_0x5e434d);})[_0x0a49('0x23')](function(_0x5f5989){_0x5030fa[_0x0a49('0x3f')]=_0x5f5989;return _0x5030fa;})['then'](respondWithFilteredResult(_0x300eeb,_0x5e434d))[_0x0a49('0x40')](handleError(_0x300eeb,null));};exports[_0x0a49('0x41')]=function(_0x5d252d,_0x43e09d){var _0x175c1c={'raw':!![],'where':{'id':_0x5d252d[_0x0a49('0x42')]['id']}},_0x46f836={};_0x46f836['model']=_['keys'](db[_0x0a49('0x3c')][_0x0a49('0x2a')]);_0x46f836[_0x0a49('0x2e')]=_[_0x0a49('0x2f')](_0x5d252d['query']);_0x46f836['filters']=_[_0x0a49('0x31')](_0x46f836[_0x0a49('0x2c')],_0x46f836[_0x0a49('0x2e')]);_0x175c1c[_0x0a49('0x32')]=_[_0x0a49('0x31')](_0x46f836[_0x0a49('0x2c')],qs[_0x0a49('0x33')](_0x5d252d[_0x0a49('0x2e')][_0x0a49('0x33')]));_0x175c1c[_0x0a49('0x32')]=_0x175c1c['attributes'][_0x0a49('0x34')]?_0x175c1c['attributes']:_0x46f836[_0x0a49('0x2c')];if(_0x5d252d[_0x0a49('0x2e')]['includeAll']){_0x175c1c['include']=[{'all':!![]}];}_0x175c1c=_['merge']({},_0x175c1c,_0x5d252d['options']);return db[_0x0a49('0x3c')][_0x0a49('0x43')](_0x175c1c)['then'](handleEntityNotFound(_0x43e09d,null))[_0x0a49('0x23')](respondWithResult(_0x43e09d,null))[_0x0a49('0x40')](handleError(_0x43e09d,null));};exports[_0x0a49('0x44')]=function(_0x13a07d,_0x327f18){return db[_0x0a49('0x3c')][_0x0a49('0x44')](_0x13a07d[_0x0a49('0x45')],{})[_0x0a49('0x23')](respondWithResult(_0x327f18,0xc9))[_0x0a49('0x40')](handleError(_0x327f18,null));};exports[_0x0a49('0x21')]=function(_0xc26151,_0x5950cf){if(_0xc26151[_0x0a49('0x45')]['id']){delete _0xc26151[_0x0a49('0x45')]['id'];}return db[_0x0a49('0x3c')][_0x0a49('0x43')]({'where':{'id':_0xc26151['params']['id']}})[_0x0a49('0x23')](handleEntityNotFound(_0x5950cf,null))[_0x0a49('0x23')](saveUpdates(_0xc26151[_0x0a49('0x45')],null))[_0x0a49('0x23')](respondWithResult(_0x5950cf,null))[_0x0a49('0x40')](handleError(_0x5950cf,null));};exports['destroy']=function(_0x5c7f67,_0x55c73){return db[_0x0a49('0x3c')]['find']({'where':{'id':_0x5c7f67[_0x0a49('0x42')]['id']}})[_0x0a49('0x23')](handleEntityNotFound(_0x55c73,null))[_0x0a49('0x23')](removeEntity(_0x55c73,null))[_0x0a49('0x40')](handleError(_0x55c73,null));};exports[_0x0a49('0x46')]=function(_0x525823,_0x2e41d3){return db['SquareDetailsReport'][_0x0a49('0x46')]()['then'](respondWithResult(_0x2e41d3,null))[_0x0a49('0x40')](handleError(_0x2e41d3,null));};
\ No newline at end of file