Built motion from commit e0fa946e.|2.6.5
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index 945dfb4..eeb6e68 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x569c=['map','SquareDetailsReport','rawAttributes','fieldName','type','key','model','filters','intersection','fields','attributes','length','query','hasOwnProperty','nolimit','sort','where','filter','VIRTUAL','merge','options','includeAll','findAll','rows','keys','find','create','body','catch','params','describe','fast-json-patch','request-promise','bluebird','util','path','sox','fs-extra','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','offset','limit','count','Content-Range','apply','reject','save','update','then','destroy','error','name','send','index'];(function(_0xa2ac4f,_0xbea210){var _0x175c6f=function(_0x47ed61){while(--_0x47ed61){_0xa2ac4f['push'](_0xa2ac4f['shift']());}};_0x175c6f(++_0xbea210);}(_0x569c,0xf7));var _0xc569=function(_0x143997,_0x380081){_0x143997=_0x143997-0x0;var _0x4f16df=_0x569c[_0x143997];return _0x4f16df;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0xc569('0x0'));var rp=require(_0xc569('0x1'));var moment=require('moment');var BPromise=require(_0xc569('0x2'));var Mustache=require('mustache');var util=require(_0xc569('0x3'));var path=require(_0xc569('0x4'));var sox=require(_0xc569('0x5'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xc569('0x6'));var _=require(_0xc569('0x7'));var squel=require(_0xc569('0x8'));var crypto=require(_0xc569('0x9'));var jsforce=require(_0xc569('0xa'));var deskjs=require(_0xc569('0xb'));var toCsv=require(_0xc569('0xc'));var querystring=require(_0xc569('0xd'));var Papa=require(_0xc569('0xe'));var Redis=require('ioredis');var authService=require(_0xc569('0xf'));var qs=require(_0xc569('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xc569('0x11'));var logger=require(_0xc569('0x12'))(_0xc569('0x13'));var utils=require(_0xc569('0x14'));var config=require(_0xc569('0x15'));var licenseUtil=require(_0xc569('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1c1593,_0x9dda9a){_0x9dda9a=_0x9dda9a||0xcc;return function(_0x175ae8){if(_0x175ae8){return _0x1c1593[_0xc569('0x17')](_0x9dda9a);}return _0x1c1593[_0xc569('0x18')](_0x9dda9a)[_0xc569('0x19')]();};}function respondWithResult(_0x4d50d4,_0x65a125){_0x65a125=_0x65a125||0xc8;return function(_0x1eacbb){if(_0x1eacbb){return _0x4d50d4[_0xc569('0x18')](_0x65a125)[_0xc569('0x1a')](_0x1eacbb);}};}function respondWithFilteredResult(_0x1fb63f,_0x1a647c){return function(_0x5a6a26){if(_0x5a6a26){var _0x4b19fe=typeof _0x1a647c[_0xc569('0x1b')]==='undefined'&&typeof _0x1a647c[_0xc569('0x1c')]==='undefined';var _0x274cc0=_0x5a6a26['count'];var _0x1a20ee=_0x4b19fe?0x0:_0x1a647c[_0xc569('0x1b')];var _0x49d338=_0x4b19fe?_0x5a6a26[_0xc569('0x1d')]:_0x1a647c[_0xc569('0x1b')]+_0x1a647c[_0xc569('0x1c')];var _0x52154d;if(_0x49d338>=_0x274cc0){_0x49d338=_0x274cc0;_0x52154d=0xc8;}else{_0x52154d=0xce;}_0x1fb63f['status'](_0x52154d);return _0x1fb63f['set'](_0xc569('0x1e'),_0x1a20ee+'-'+_0x49d338+'/'+_0x274cc0)[_0xc569('0x1a')](_0x5a6a26);}return null;};}function patchUpdates(_0xb8c0a4){return function(_0x5354af){try{jsonpatch[_0xc569('0x1f')](_0x5354af,_0xb8c0a4,!![]);}catch(_0x534fe2){return BPromise[_0xc569('0x20')](_0x534fe2);}return _0x5354af[_0xc569('0x21')]();};}function saveUpdates(_0xa07f5c,_0x1e199f){return function(_0x40d30a){if(_0x40d30a){return _0x40d30a[_0xc569('0x22')](_0xa07f5c)[_0xc569('0x23')](function(_0x5edc70){return _0x5edc70;});}return null;};}function removeEntity(_0x3651c8,_0x412bd7){return function(_0x44c235){if(_0x44c235){return _0x44c235[_0xc569('0x24')]()[_0xc569('0x23')](function(){_0x3651c8[_0xc569('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x574948,_0x3048e2){return function(_0x415f96){if(!_0x415f96){_0x574948['sendStatus'](0x194);}return _0x415f96;};}function handleError(_0x41e535,_0x3f4897){_0x3f4897=_0x3f4897||0x1f4;return function(_0x21d643){logger[_0xc569('0x25')](_0x21d643['stack']);if(_0x21d643[_0xc569('0x26')]){delete _0x21d643[_0xc569('0x26')];}_0x41e535[_0xc569('0x18')](_0x3f4897)[_0xc569('0x27')](_0x21d643);};}exports[_0xc569('0x28')]=function(_0x1512d9,_0x4e0d7e){var _0x410530={},_0x4c8ace={},_0x4b8810={'count':0x0,'rows':[]};var _0x8e64e7=_[_0xc569('0x29')](db[_0xc569('0x2a')][_0xc569('0x2b')],function(_0x40be30){return{'name':_0x40be30[_0xc569('0x2c')],'type':_0x40be30[_0xc569('0x2d')][_0xc569('0x2e')]};});_0x4c8ace[_0xc569('0x2f')]=_[_0xc569('0x29')](_0x8e64e7,_0xc569('0x26'));_0x4c8ace['query']=_['keys'](_0x1512d9['query']);_0x4c8ace[_0xc569('0x30')]=_[_0xc569('0x31')](_0x4c8ace[_0xc569('0x2f')],_0x4c8ace['query']);_0x410530['attributes']=_['intersection'](_0x4c8ace[_0xc569('0x2f')],qs['fields'](_0x1512d9['query'][_0xc569('0x32')]));_0x410530[_0xc569('0x33')]=_0x410530['attributes'][_0xc569('0x34')]?_0x410530[_0xc569('0x33')]:_0x4c8ace[_0xc569('0x2f')];if(!_0x1512d9[_0xc569('0x35')][_0xc569('0x36')](_0xc569('0x37'))){_0x410530[_0xc569('0x1c')]=qs[_0xc569('0x1c')](_0x1512d9['query']['limit']);_0x410530['offset']=qs[_0xc569('0x1b')](_0x1512d9[_0xc569('0x35')][_0xc569('0x1b')]);}_0x410530['order']=qs[_0xc569('0x38')](_0x1512d9[_0xc569('0x35')][_0xc569('0x38')]);_0x410530[_0xc569('0x39')]=qs[_0xc569('0x30')](_['pick'](_0x1512d9[_0xc569('0x35')],_0x4c8ace[_0xc569('0x30')]),_0x8e64e7);if(_0x1512d9[_0xc569('0x35')][_0xc569('0x3a')]){_0x410530[_0xc569('0x39')]=_['merge'](_0x410530[_0xc569('0x39')],{'$or':_[_0xc569('0x29')](_0x8e64e7,function(_0xebdd32){if(_0xebdd32['type']!==_0xc569('0x3b')){var _0x4998dd={};_0x4998dd[_0xebdd32['name']]={'$like':'%'+_0x1512d9['query'][_0xc569('0x3a')]+'%'};return _0x4998dd;}})});}_0x410530=_[_0xc569('0x3c')]({},_0x410530,_0x1512d9[_0xc569('0x3d')]);var _0xbea075={'where':_0x410530[_0xc569('0x39')]};return db[_0xc569('0x2a')][_0xc569('0x1d')](_0xbea075)[_0xc569('0x23')](function(_0x2902a8){_0x4b8810['count']=_0x2902a8;if(_0x1512d9[_0xc569('0x35')][_0xc569('0x3e')]){_0x410530['include']=[{'all':!![]}];}return db[_0xc569('0x2a')][_0xc569('0x3f')](_0x410530);})[_0xc569('0x23')](function(_0x1a4af3){_0x4b8810[_0xc569('0x40')]=_0x1a4af3;return _0x4b8810;})[_0xc569('0x23')](respondWithFilteredResult(_0x4e0d7e,_0x410530))['catch'](handleError(_0x4e0d7e,null));};exports['show']=function(_0x3f7699,_0x515ec7){var _0x40db1b={'raw':!![],'where':{'id':_0x3f7699['params']['id']}},_0x536e72={};_0x536e72['model']=_['keys'](db[_0xc569('0x2a')][_0xc569('0x2b')]);_0x536e72[_0xc569('0x35')]=_[_0xc569('0x41')](_0x3f7699[_0xc569('0x35')]);_0x536e72[_0xc569('0x30')]=_[_0xc569('0x31')](_0x536e72[_0xc569('0x2f')],_0x536e72['query']);_0x40db1b[_0xc569('0x33')]=_[_0xc569('0x31')](_0x536e72['model'],qs[_0xc569('0x32')](_0x3f7699[_0xc569('0x35')]['fields']));_0x40db1b[_0xc569('0x33')]=_0x40db1b['attributes'][_0xc569('0x34')]?_0x40db1b[_0xc569('0x33')]:_0x536e72[_0xc569('0x2f')];if(_0x3f7699[_0xc569('0x35')]['includeAll']){_0x40db1b['include']=[{'all':!![]}];}_0x40db1b=_[_0xc569('0x3c')]({},_0x40db1b,_0x3f7699[_0xc569('0x3d')]);return db[_0xc569('0x2a')][_0xc569('0x42')](_0x40db1b)['then'](handleEntityNotFound(_0x515ec7,null))[_0xc569('0x23')](respondWithResult(_0x515ec7,null))['catch'](handleError(_0x515ec7,null));};exports[_0xc569('0x43')]=function(_0x5d7baa,_0x9dad0c){return db['SquareDetailsReport'][_0xc569('0x43')](_0x5d7baa[_0xc569('0x44')],{})['then'](respondWithResult(_0x9dad0c,0xc9))[_0xc569('0x45')](handleError(_0x9dad0c,null));};exports[_0xc569('0x22')]=function(_0x14acfa,_0x31b4fb){if(_0x14acfa[_0xc569('0x44')]['id']){delete _0x14acfa[_0xc569('0x44')]['id'];}return db[_0xc569('0x2a')][_0xc569('0x42')]({'where':{'id':_0x14acfa[_0xc569('0x46')]['id']}})[_0xc569('0x23')](handleEntityNotFound(_0x31b4fb,null))[_0xc569('0x23')](saveUpdates(_0x14acfa['body'],null))[_0xc569('0x23')](respondWithResult(_0x31b4fb,null))[_0xc569('0x45')](handleError(_0x31b4fb,null));};exports[_0xc569('0x24')]=function(_0x4330ad,_0x27184f){return db[_0xc569('0x2a')]['find']({'where':{'id':_0x4330ad['params']['id']}})[_0xc569('0x23')](handleEntityNotFound(_0x27184f,null))[_0xc569('0x23')](removeEntity(_0x27184f,null))[_0xc569('0x45')](handleError(_0x27184f,null));};exports['describe']=function(_0x350be7,_0x3c6ee3){return db['SquareDetailsReport'][_0xc569('0x47')]()[_0xc569('0x23')](respondWithResult(_0x3c6ee3,null))['catch'](handleError(_0x3c6ee3,null));};
\ No newline at end of file
+var _0x8eac=['filters','model','attributes','fields','hasOwnProperty','nolimit','order','sort','where','merge','VIRTUAL','filter','includeAll','include','findAll','rows','catch','intersection','length','options','find','create','body','params','describe','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','fs-extra','crypto','jsforce','querystring','papaparse','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','undefined','count','offset','limit','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','send','index','map','SquareDetailsReport','rawAttributes','fieldName','type','key','query','keys'];(function(_0x414c82,_0x3103ef){var _0x5d14c5=function(_0x3782f6){while(--_0x3782f6){_0x414c82['push'](_0x414c82['shift']());}};_0x5d14c5(++_0x3103ef);}(_0x8eac,0x1ed));var _0xc8ea=function(_0x39bf21,_0x5c2e3f){_0x39bf21=_0x39bf21-0x0;var _0x19c6e9=_0x8eac[_0x39bf21];return _0x19c6e9;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xc8ea('0x0'));var zipdir=require(_0xc8ea('0x1'));var jsonpatch=require(_0xc8ea('0x2'));var rp=require(_0xc8ea('0x3'));var moment=require(_0xc8ea('0x4'));var BPromise=require(_0xc8ea('0x5'));var Mustache=require(_0xc8ea('0x6'));var util=require('util');var path=require(_0xc8ea('0x7'));var sox=require(_0xc8ea('0x8'));var csv=require(_0xc8ea('0x9'));var ejs=require(_0xc8ea('0xa'));var fs=require('fs');var fs_extra=require(_0xc8ea('0xb'));var _=require('lodash');var squel=require('squel');var crypto=require(_0xc8ea('0xc'));var jsforce=require(_0xc8ea('0xd'));var deskjs=require('desk.js');var toCsv=require(_0xc8ea('0x9'));var querystring=require(_0xc8ea('0xe'));var Papa=require(_0xc8ea('0xf'));var Redis=require('ioredis');var authService=require(_0xc8ea('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0xc8ea('0x11'));var hardwareService=require(_0xc8ea('0x12'));var logger=require(_0xc8ea('0x13'))(_0xc8ea('0x14'));var utils=require(_0xc8ea('0x15'));var config=require(_0xc8ea('0x16'));var licenseUtil=require(_0xc8ea('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0xd26ad5,_0x5816f5){_0x5816f5=_0x5816f5||0xcc;return function(_0x2b7018){if(_0x2b7018){return _0xd26ad5[_0xc8ea('0x18')](_0x5816f5);}return _0xd26ad5[_0xc8ea('0x19')](_0x5816f5)[_0xc8ea('0x1a')]();};}function respondWithResult(_0x349717,_0x4ee49b){_0x4ee49b=_0x4ee49b||0xc8;return function(_0x5c8cc5){if(_0x5c8cc5){return _0x349717[_0xc8ea('0x19')](_0x4ee49b)[_0xc8ea('0x1b')](_0x5c8cc5);}};}function respondWithFilteredResult(_0xcc54bc,_0x211855){return function(_0x29e35e){if(_0x29e35e){var _0x291ba4=typeof _0x211855['offset']===_0xc8ea('0x1c')&&typeof _0x211855['limit']===_0xc8ea('0x1c');var _0x446e10=_0x29e35e[_0xc8ea('0x1d')];var _0x1c0894=_0x291ba4?0x0:_0x211855[_0xc8ea('0x1e')];var _0x310645=_0x291ba4?_0x29e35e[_0xc8ea('0x1d')]:_0x211855[_0xc8ea('0x1e')]+_0x211855[_0xc8ea('0x1f')];var _0x13094a;if(_0x310645>=_0x446e10){_0x310645=_0x446e10;_0x13094a=0xc8;}else{_0x13094a=0xce;}_0xcc54bc[_0xc8ea('0x19')](_0x13094a);return _0xcc54bc[_0xc8ea('0x20')](_0xc8ea('0x21'),_0x1c0894+'-'+_0x310645+'/'+_0x446e10)['json'](_0x29e35e);}return null;};}function patchUpdates(_0x21d816){return function(_0x13c443){try{jsonpatch[_0xc8ea('0x22')](_0x13c443,_0x21d816,!![]);}catch(_0x2c8f02){return BPromise[_0xc8ea('0x23')](_0x2c8f02);}return _0x13c443[_0xc8ea('0x24')]();};}function saveUpdates(_0x13c304,_0x3a88ba){return function(_0x2b6f17){if(_0x2b6f17){return _0x2b6f17[_0xc8ea('0x25')](_0x13c304)[_0xc8ea('0x26')](function(_0x2bb4b9){return _0x2bb4b9;});}return null;};}function removeEntity(_0xc48ea2,_0x332a27){return function(_0x567685){if(_0x567685){return _0x567685[_0xc8ea('0x27')]()[_0xc8ea('0x26')](function(){_0xc48ea2[_0xc8ea('0x19')](0xcc)[_0xc8ea('0x1a')]();});}};}function handleEntityNotFound(_0x49bb96,_0x1ccb2e){return function(_0x2cb5de){if(!_0x2cb5de){_0x49bb96[_0xc8ea('0x18')](0x194);}return _0x2cb5de;};}function handleError(_0x405fcc,_0x266d94){_0x266d94=_0x266d94||0x1f4;return function(_0x1ff640){logger[_0xc8ea('0x28')](_0x1ff640[_0xc8ea('0x29')]);if(_0x1ff640[_0xc8ea('0x2a')]){delete _0x1ff640['name'];}_0x405fcc[_0xc8ea('0x19')](_0x266d94)[_0xc8ea('0x2b')](_0x1ff640);};}exports[_0xc8ea('0x2c')]=function(_0x530e2d,_0x134230){var _0x4b6fca={},_0x4bb806={},_0xb2d43d={'count':0x0,'rows':[]};var _0x5f0a3b=_[_0xc8ea('0x2d')](db[_0xc8ea('0x2e')][_0xc8ea('0x2f')],function(_0x253220){return{'name':_0x253220[_0xc8ea('0x30')],'type':_0x253220[_0xc8ea('0x31')][_0xc8ea('0x32')]};});_0x4bb806['model']=_[_0xc8ea('0x2d')](_0x5f0a3b,_0xc8ea('0x2a'));_0x4bb806[_0xc8ea('0x33')]=_[_0xc8ea('0x34')](_0x530e2d[_0xc8ea('0x33')]);_0x4bb806[_0xc8ea('0x35')]=_['intersection'](_0x4bb806[_0xc8ea('0x36')],_0x4bb806[_0xc8ea('0x33')]);_0x4b6fca[_0xc8ea('0x37')]=_['intersection'](_0x4bb806[_0xc8ea('0x36')],qs[_0xc8ea('0x38')](_0x530e2d[_0xc8ea('0x33')][_0xc8ea('0x38')]));_0x4b6fca[_0xc8ea('0x37')]=_0x4b6fca[_0xc8ea('0x37')]['length']?_0x4b6fca[_0xc8ea('0x37')]:_0x4bb806['model'];if(!_0x530e2d[_0xc8ea('0x33')][_0xc8ea('0x39')](_0xc8ea('0x3a'))){_0x4b6fca[_0xc8ea('0x1f')]=qs['limit'](_0x530e2d['query']['limit']);_0x4b6fca[_0xc8ea('0x1e')]=qs['offset'](_0x530e2d[_0xc8ea('0x33')][_0xc8ea('0x1e')]);}_0x4b6fca[_0xc8ea('0x3b')]=qs[_0xc8ea('0x3c')](_0x530e2d[_0xc8ea('0x33')]['sort']);_0x4b6fca[_0xc8ea('0x3d')]=qs[_0xc8ea('0x35')](_['pick'](_0x530e2d[_0xc8ea('0x33')],_0x4bb806[_0xc8ea('0x35')]),_0x5f0a3b);if(_0x530e2d[_0xc8ea('0x33')]['filter']){_0x4b6fca['where']=_[_0xc8ea('0x3e')](_0x4b6fca[_0xc8ea('0x3d')],{'$or':_[_0xc8ea('0x2d')](_0x5f0a3b,function(_0x44dcf3){if(_0x44dcf3[_0xc8ea('0x31')]!==_0xc8ea('0x3f')){var _0x1e171a={};_0x1e171a[_0x44dcf3[_0xc8ea('0x2a')]]={'$like':'%'+_0x530e2d[_0xc8ea('0x33')][_0xc8ea('0x40')]+'%'};return _0x1e171a;}})});}_0x4b6fca=_['merge']({},_0x4b6fca,_0x530e2d['options']);var _0x50f120={'where':_0x4b6fca['where']};return db[_0xc8ea('0x2e')]['count'](_0x50f120)[_0xc8ea('0x26')](function(_0x544397){_0xb2d43d[_0xc8ea('0x1d')]=_0x544397;if(_0x530e2d[_0xc8ea('0x33')][_0xc8ea('0x41')]){_0x4b6fca[_0xc8ea('0x42')]=[{'all':!![]}];}return db[_0xc8ea('0x2e')][_0xc8ea('0x43')](_0x4b6fca);})['then'](function(_0x5ba011){_0xb2d43d[_0xc8ea('0x44')]=_0x5ba011;return _0xb2d43d;})[_0xc8ea('0x26')](respondWithFilteredResult(_0x134230,_0x4b6fca))[_0xc8ea('0x45')](handleError(_0x134230,null));};exports['show']=function(_0x2f0322,_0x40f296){var _0x13df8e={'raw':!![],'where':{'id':_0x2f0322['params']['id']}},_0x563615={};_0x563615[_0xc8ea('0x36')]=_['keys'](db[_0xc8ea('0x2e')]['rawAttributes']);_0x563615[_0xc8ea('0x33')]=_[_0xc8ea('0x34')](_0x2f0322['query']);_0x563615[_0xc8ea('0x35')]=_[_0xc8ea('0x46')](_0x563615[_0xc8ea('0x36')],_0x563615['query']);_0x13df8e['attributes']=_[_0xc8ea('0x46')](_0x563615[_0xc8ea('0x36')],qs[_0xc8ea('0x38')](_0x2f0322[_0xc8ea('0x33')][_0xc8ea('0x38')]));_0x13df8e[_0xc8ea('0x37')]=_0x13df8e[_0xc8ea('0x37')][_0xc8ea('0x47')]?_0x13df8e['attributes']:_0x563615[_0xc8ea('0x36')];if(_0x2f0322['query'][_0xc8ea('0x41')]){_0x13df8e[_0xc8ea('0x42')]=[{'all':!![]}];}_0x13df8e=_['merge']({},_0x13df8e,_0x2f0322[_0xc8ea('0x48')]);return db[_0xc8ea('0x2e')][_0xc8ea('0x49')](_0x13df8e)[_0xc8ea('0x26')](handleEntityNotFound(_0x40f296,null))[_0xc8ea('0x26')](respondWithResult(_0x40f296,null))['catch'](handleError(_0x40f296,null));};exports['create']=function(_0x10b327,_0x194649){return db[_0xc8ea('0x2e')][_0xc8ea('0x4a')](_0x10b327[_0xc8ea('0x4b')],{})[_0xc8ea('0x26')](respondWithResult(_0x194649,0xc9))['catch'](handleError(_0x194649,null));};exports[_0xc8ea('0x25')]=function(_0x523dd4,_0x28f5dc){if(_0x523dd4[_0xc8ea('0x4b')]['id']){delete _0x523dd4[_0xc8ea('0x4b')]['id'];}return db[_0xc8ea('0x2e')][_0xc8ea('0x49')]({'where':{'id':_0x523dd4[_0xc8ea('0x4c')]['id']}})[_0xc8ea('0x26')](handleEntityNotFound(_0x28f5dc,null))['then'](saveUpdates(_0x523dd4[_0xc8ea('0x4b')],null))['then'](respondWithResult(_0x28f5dc,null))[_0xc8ea('0x45')](handleError(_0x28f5dc,null));};exports[_0xc8ea('0x27')]=function(_0x17339a,_0x2b2201){return db[_0xc8ea('0x2e')][_0xc8ea('0x49')]({'where':{'id':_0x17339a[_0xc8ea('0x4c')]['id']}})[_0xc8ea('0x26')](handleEntityNotFound(_0x2b2201,null))[_0xc8ea('0x26')](removeEntity(_0x2b2201,null))[_0xc8ea('0x45')](handleError(_0x2b2201,null));};exports[_0xc8ea('0x4d')]=function(_0x68a636,_0x9d53bf){return db['SquareDetailsReport'][_0xc8ea('0x4d')]()[_0xc8ea('0x26')](respondWithResult(_0x9d53bf,null))[_0xc8ea('0x45')](handleError(_0x9d53bf,null));};
\ No newline at end of file