Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index 2777f5e..c5b0594 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 _0x3be3=['filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','keys','find','create','body','params','destroy','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','sox','to-csv','lodash','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','offset','undefined','limit','count','set','Content-Range','json','apply','reject','update','then','error','stack','name','map','SquareDetailsReport','rawAttributes','type','key','model','query','intersection','attributes','fields','length','hasOwnProperty','order','sort','where','filters','pick'];(function(_0x2f5ac5,_0x1ee939){var _0x37c9a8=function(_0x15031f){while(--_0x15031f){_0x2f5ac5['push'](_0x2f5ac5['shift']());}};_0x37c9a8(++_0x1ee939);}(_0x3be3,0xf5));var _0x33be=function(_0x5c72ee,_0x5a8bf8){_0x5c72ee=_0x5c72ee-0x0;var _0x231876=_0x3be3[_0x5c72ee];return _0x231876;};'use strict';var emlformat=require(_0x33be('0x0'));var rimraf=require(_0x33be('0x1'));var zipdir=require(_0x33be('0x2'));var jsonpatch=require(_0x33be('0x3'));var rp=require('request-promise');var moment=require(_0x33be('0x4'));var BPromise=require(_0x33be('0x5'));var Mustache=require(_0x33be('0x6'));var util=require(_0x33be('0x7'));var path=require('path');var sox=require(_0x33be('0x8'));var csv=require(_0x33be('0x9'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x33be('0xa'));var squel=require('squel');var crypto=require(_0x33be('0xb'));var jsforce=require(_0x33be('0xc'));var deskjs=require(_0x33be('0xd'));var toCsv=require(_0x33be('0x9'));var querystring=require(_0x33be('0xe'));var Papa=require(_0x33be('0xf'));var Redis=require(_0x33be('0x10'));var authService=require(_0x33be('0x11'));var qs=require(_0x33be('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x33be('0x13'))(_0x33be('0x14'));var utils=require(_0x33be('0x15'));var config=require(_0x33be('0x16'));var licenseUtil=require(_0x33be('0x17'));var db=require(_0x33be('0x18'))['db'];function respondWithStatusCode(_0x3b943a,_0x18cbac){_0x18cbac=_0x18cbac||0xcc;return function(_0x2bb62f){if(_0x2bb62f){return _0x3b943a[_0x33be('0x19')](_0x18cbac);}return _0x3b943a[_0x33be('0x1a')](_0x18cbac)[_0x33be('0x1b')]();};}function respondWithResult(_0x4f33e6,_0x277bb8){_0x277bb8=_0x277bb8||0xc8;return function(_0x4aa819){if(_0x4aa819){return _0x4f33e6[_0x33be('0x1a')](_0x277bb8)['json'](_0x4aa819);}};}function respondWithFilteredResult(_0x1e997b,_0x275134){return function(_0x52314a){if(_0x52314a){var _0x62ac6c=typeof _0x275134[_0x33be('0x1c')]===_0x33be('0x1d')&&typeof _0x275134[_0x33be('0x1e')]===_0x33be('0x1d');var _0x3feff2=_0x52314a[_0x33be('0x1f')];var _0x35bb0a=_0x62ac6c?0x0:_0x275134[_0x33be('0x1c')];var _0x38e2f7=_0x62ac6c?_0x52314a['count']:_0x275134[_0x33be('0x1c')]+_0x275134[_0x33be('0x1e')];var _0x75b44f;if(_0x38e2f7>=_0x3feff2){_0x38e2f7=_0x3feff2;_0x75b44f=0xc8;}else{_0x75b44f=0xce;}_0x1e997b[_0x33be('0x1a')](_0x75b44f);return _0x1e997b[_0x33be('0x20')](_0x33be('0x21'),_0x35bb0a+'-'+_0x38e2f7+'/'+_0x3feff2)[_0x33be('0x22')](_0x52314a);}return null;};}function patchUpdates(_0x47ce13){return function(_0x39a324){try{jsonpatch[_0x33be('0x23')](_0x39a324,_0x47ce13,!![]);}catch(_0x5c10fc){return BPromise[_0x33be('0x24')](_0x5c10fc);}return _0x39a324['save']();};}function saveUpdates(_0x360e17,_0x376922){return function(_0x55ddd9){if(_0x55ddd9){return _0x55ddd9[_0x33be('0x25')](_0x360e17)[_0x33be('0x26')](function(_0x2ed466){return _0x2ed466;});}return null;};}function removeEntity(_0x3eb326,_0x515b6e){return function(_0x16e539){if(_0x16e539){return _0x16e539['destroy']()['then'](function(){_0x3eb326[_0x33be('0x1a')](0xcc)[_0x33be('0x1b')]();});}};}function handleEntityNotFound(_0x599c53,_0x5cbbdb){return function(_0x2fa0a5){if(!_0x2fa0a5){_0x599c53[_0x33be('0x19')](0x194);}return _0x2fa0a5;};}function handleError(_0x5a9384,_0x39b134){_0x39b134=_0x39b134||0x1f4;return function(_0x5bbef6){logger[_0x33be('0x27')](_0x5bbef6[_0x33be('0x28')]);if(_0x5bbef6[_0x33be('0x29')]){delete _0x5bbef6[_0x33be('0x29')];}_0x5a9384[_0x33be('0x1a')](_0x39b134)['send'](_0x5bbef6);};}exports['index']=function(_0x2a22ab,_0x1321a5){var _0x1919dc={},_0x3fbfb3={},_0x49800e={'count':0x0,'rows':[]};var _0x813fb2=_[_0x33be('0x2a')](db[_0x33be('0x2b')][_0x33be('0x2c')],function(_0x2168fe){return{'name':_0x2168fe['fieldName'],'type':_0x2168fe[_0x33be('0x2d')][_0x33be('0x2e')]};});_0x3fbfb3[_0x33be('0x2f')]=_['map'](_0x813fb2,_0x33be('0x29'));_0x3fbfb3[_0x33be('0x30')]=_['keys'](_0x2a22ab['query']);_0x3fbfb3['filters']=_[_0x33be('0x31')](_0x3fbfb3['model'],_0x3fbfb3[_0x33be('0x30')]);_0x1919dc[_0x33be('0x32')]=_['intersection'](_0x3fbfb3[_0x33be('0x2f')],qs[_0x33be('0x33')](_0x2a22ab['query'][_0x33be('0x33')]));_0x1919dc[_0x33be('0x32')]=_0x1919dc[_0x33be('0x32')][_0x33be('0x34')]?_0x1919dc[_0x33be('0x32')]:_0x3fbfb3['model'];if(!_0x2a22ab[_0x33be('0x30')][_0x33be('0x35')]('nolimit')){_0x1919dc['limit']=qs[_0x33be('0x1e')](_0x2a22ab[_0x33be('0x30')][_0x33be('0x1e')]);_0x1919dc[_0x33be('0x1c')]=qs[_0x33be('0x1c')](_0x2a22ab[_0x33be('0x30')][_0x33be('0x1c')]);}_0x1919dc[_0x33be('0x36')]=qs[_0x33be('0x37')](_0x2a22ab[_0x33be('0x30')][_0x33be('0x37')]);_0x1919dc[_0x33be('0x38')]=qs[_0x33be('0x39')](_[_0x33be('0x3a')](_0x2a22ab[_0x33be('0x30')],_0x3fbfb3[_0x33be('0x39')]),_0x813fb2);if(_0x2a22ab['query'][_0x33be('0x3b')]){_0x1919dc['where']=_[_0x33be('0x3c')](_0x1919dc[_0x33be('0x38')],{'$or':_[_0x33be('0x2a')](_0x813fb2,function(_0x46c565){if(_0x46c565[_0x33be('0x2d')]!==_0x33be('0x3d')){var _0x17cc5d={};_0x17cc5d[_0x46c565[_0x33be('0x29')]]={'$like':'%'+_0x2a22ab[_0x33be('0x30')][_0x33be('0x3b')]+'%'};return _0x17cc5d;}})});}_0x1919dc=_[_0x33be('0x3c')]({},_0x1919dc,_0x2a22ab[_0x33be('0x3e')]);var _0xb94dab={'where':_0x1919dc[_0x33be('0x38')]};return db[_0x33be('0x2b')][_0x33be('0x1f')](_0xb94dab)['then'](function(_0x622b9d){_0x49800e['count']=_0x622b9d;if(_0x2a22ab[_0x33be('0x30')][_0x33be('0x3f')]){_0x1919dc[_0x33be('0x40')]=[{'all':!![]}];}return db['SquareDetailsReport'][_0x33be('0x41')](_0x1919dc);})[_0x33be('0x26')](function(_0x36a568){_0x49800e[_0x33be('0x42')]=_0x36a568;return _0x49800e;})[_0x33be('0x26')](respondWithFilteredResult(_0x1321a5,_0x1919dc))[_0x33be('0x43')](handleError(_0x1321a5,null));};exports[_0x33be('0x44')]=function(_0x532e0a,_0x19d1f8){var _0x5a8bf5={'raw':!![],'where':{'id':_0x532e0a['params']['id']}},_0x3b4e5e={};_0x3b4e5e[_0x33be('0x2f')]=_[_0x33be('0x45')](db['SquareDetailsReport']['rawAttributes']);_0x3b4e5e[_0x33be('0x30')]=_[_0x33be('0x45')](_0x532e0a[_0x33be('0x30')]);_0x3b4e5e['filters']=_[_0x33be('0x31')](_0x3b4e5e[_0x33be('0x2f')],_0x3b4e5e['query']);_0x5a8bf5[_0x33be('0x32')]=_[_0x33be('0x31')](_0x3b4e5e[_0x33be('0x2f')],qs[_0x33be('0x33')](_0x532e0a['query']['fields']));_0x5a8bf5[_0x33be('0x32')]=_0x5a8bf5[_0x33be('0x32')]['length']?_0x5a8bf5[_0x33be('0x32')]:_0x3b4e5e['model'];if(_0x532e0a[_0x33be('0x30')][_0x33be('0x3f')]){_0x5a8bf5['include']=[{'all':!![]}];}_0x5a8bf5=_[_0x33be('0x3c')]({},_0x5a8bf5,_0x532e0a[_0x33be('0x3e')]);return db[_0x33be('0x2b')][_0x33be('0x46')](_0x5a8bf5)['then'](handleEntityNotFound(_0x19d1f8,null))[_0x33be('0x26')](respondWithResult(_0x19d1f8,null))['catch'](handleError(_0x19d1f8,null));};exports[_0x33be('0x47')]=function(_0x52b36d,_0x4c6a19){return db[_0x33be('0x2b')][_0x33be('0x47')](_0x52b36d[_0x33be('0x48')],{})[_0x33be('0x26')](respondWithResult(_0x4c6a19,0xc9))[_0x33be('0x43')](handleError(_0x4c6a19,null));};exports[_0x33be('0x25')]=function(_0x410307,_0x30eee9){if(_0x410307['body']['id']){delete _0x410307[_0x33be('0x48')]['id'];}return db[_0x33be('0x2b')][_0x33be('0x46')]({'where':{'id':_0x410307[_0x33be('0x49')]['id']}})['then'](handleEntityNotFound(_0x30eee9,null))[_0x33be('0x26')](saveUpdates(_0x410307[_0x33be('0x48')],null))[_0x33be('0x26')](respondWithResult(_0x30eee9,null))[_0x33be('0x43')](handleError(_0x30eee9,null));};exports[_0x33be('0x4a')]=function(_0x4319c5,_0x35c987){return db['SquareDetailsReport'][_0x33be('0x46')]({'where':{'id':_0x4319c5[_0x33be('0x49')]['id']}})['then'](handleEntityNotFound(_0x35c987,null))[_0x33be('0x26')](removeEntity(_0x35c987,null))[_0x33be('0x43')](handleError(_0x35c987,null));};exports['describe']=function(_0x22b323,_0x2b2874){return db['SquareDetailsReport'][_0x33be('0x4b')]()[_0x33be('0x26')](respondWithResult(_0x2b2874,null))[_0x33be('0x43')](handleError(_0x2b2874,null));};
\ No newline at end of file