Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index 6dd5659..541e7cb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbfee=['sox','ejs','fs-extra','squel','crypto','jsforce','querystring','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','set','apply','reject','update','then','destroy','stack','name','send','index','map','rawAttributes','fieldName','type','key','model','query','keys','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','filters','pick','filter','merge','VIRTUAL','options','SquareDetailsReport','findAll','rows','catch','show','params','include','find','create','body','describe','eml-format','rimraf','fast-json-patch','request-promise','bluebird','mustache','util','path'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0xbfee,0x120));var _0xebfe=function(_0x1d1779,_0x284147){_0x1d1779=_0x1d1779-0x0;var _0x2377e9=_0xbfee[_0x1d1779];return _0x2377e9;};'use strict';var emlformat=require(_0xebfe('0x0'));var rimraf=require(_0xebfe('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xebfe('0x2'));var rp=require(_0xebfe('0x3'));var moment=require('moment');var BPromise=require(_0xebfe('0x4'));var Mustache=require(_0xebfe('0x5'));var util=require(_0xebfe('0x6'));var path=require(_0xebfe('0x7'));var sox=require(_0xebfe('0x8'));var csv=require('to-csv');var ejs=require(_0xebfe('0x9'));var fs=require('fs');var fs_extra=require(_0xebfe('0xa'));var _=require('lodash');var squel=require(_0xebfe('0xb'));var crypto=require(_0xebfe('0xc'));var jsforce=require(_0xebfe('0xd'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0xebfe('0xe'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0xebfe('0xf'));var qs=require(_0xebfe('0x10'));var as=require(_0xebfe('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xebfe('0x12'))(_0xebfe('0x13'));var utils=require(_0xebfe('0x14'));var config=require(_0xebfe('0x15'));var licenseUtil=require(_0xebfe('0x16'));var db=require(_0xebfe('0x17'))['db'];function respondWithStatusCode(_0x4baf14,_0x3bc656){_0x3bc656=_0x3bc656||0xcc;return function(_0x3d64b6){if(_0x3d64b6){return _0x4baf14[_0xebfe('0x18')](_0x3bc656);}return _0x4baf14[_0xebfe('0x19')](_0x3bc656)[_0xebfe('0x1a')]();};}function respondWithResult(_0x55ca18,_0x3acb62){_0x3acb62=_0x3acb62||0xc8;return function(_0x5133f6){if(_0x5133f6){return _0x55ca18[_0xebfe('0x19')](_0x3acb62)[_0xebfe('0x1b')](_0x5133f6);}};}function respondWithFilteredResult(_0x45bad6,_0x5b4ab0){return function(_0xdbf29f){if(_0xdbf29f){var _0xa1107a=typeof _0x5b4ab0[_0xebfe('0x1c')]===_0xebfe('0x1d')&&typeof _0x5b4ab0['limit']===_0xebfe('0x1d');var _0x5cf98c=_0xdbf29f['count'];var _0x109940=_0xa1107a?0x0:_0x5b4ab0[_0xebfe('0x1c')];var _0x14a222=_0xa1107a?_0xdbf29f['count']:_0x5b4ab0[_0xebfe('0x1c')]+_0x5b4ab0[_0xebfe('0x1e')];var _0x111c6c;if(_0x14a222>=_0x5cf98c){_0x14a222=_0x5cf98c;_0x111c6c=0xc8;}else{_0x111c6c=0xce;}_0x45bad6[_0xebfe('0x19')](_0x111c6c);return _0x45bad6[_0xebfe('0x1f')]('Content-Range',_0x109940+'-'+_0x14a222+'/'+_0x5cf98c)[_0xebfe('0x1b')](_0xdbf29f);}return null;};}function patchUpdates(_0x37b48f){return function(_0x39ff67){try{jsonpatch[_0xebfe('0x20')](_0x39ff67,_0x37b48f,!![]);}catch(_0x207a1c){return BPromise[_0xebfe('0x21')](_0x207a1c);}return _0x39ff67['save']();};}function saveUpdates(_0x27ac34,_0x240c0b){return function(_0x5b7c6d){if(_0x5b7c6d){return _0x5b7c6d[_0xebfe('0x22')](_0x27ac34)[_0xebfe('0x23')](function(_0x1ea617){return _0x1ea617;});}return null;};}function removeEntity(_0x11e55d,_0x427031){return function(_0x5b48f9){if(_0x5b48f9){return _0x5b48f9[_0xebfe('0x24')]()[_0xebfe('0x23')](function(){_0x11e55d[_0xebfe('0x19')](0xcc)['end']();});}};}function handleEntityNotFound(_0x411220,_0x163263){return function(_0x172029){if(!_0x172029){_0x411220[_0xebfe('0x18')](0x194);}return _0x172029;};}function handleError(_0x317c4f,_0x1a663f){_0x1a663f=_0x1a663f||0x1f4;return function(_0x221e95){logger['error'](_0x221e95[_0xebfe('0x25')]);if(_0x221e95[_0xebfe('0x26')]){delete _0x221e95[_0xebfe('0x26')];}_0x317c4f[_0xebfe('0x19')](_0x1a663f)[_0xebfe('0x27')](_0x221e95);};}exports[_0xebfe('0x28')]=function(_0x1db298,_0x44d4cf){var _0x76a0b7={},_0x374e10={},_0x37da70={'count':0x0,'rows':[]};var _0x10d28e=_[_0xebfe('0x29')](db['SquareDetailsReport'][_0xebfe('0x2a')],function(_0x36c09d){return{'name':_0x36c09d[_0xebfe('0x2b')],'type':_0x36c09d[_0xebfe('0x2c')][_0xebfe('0x2d')]};});_0x374e10[_0xebfe('0x2e')]=_[_0xebfe('0x29')](_0x10d28e,'name');_0x374e10[_0xebfe('0x2f')]=_[_0xebfe('0x30')](_0x1db298[_0xebfe('0x2f')]);_0x374e10['filters']=_[_0xebfe('0x31')](_0x374e10[_0xebfe('0x2e')],_0x374e10[_0xebfe('0x2f')]);_0x76a0b7[_0xebfe('0x32')]=_[_0xebfe('0x31')](_0x374e10[_0xebfe('0x2e')],qs[_0xebfe('0x33')](_0x1db298[_0xebfe('0x2f')][_0xebfe('0x33')]));_0x76a0b7[_0xebfe('0x32')]=_0x76a0b7[_0xebfe('0x32')][_0xebfe('0x34')]?_0x76a0b7[_0xebfe('0x32')]:_0x374e10[_0xebfe('0x2e')];if(!_0x1db298['query'][_0xebfe('0x35')](_0xebfe('0x36'))){_0x76a0b7[_0xebfe('0x1e')]=qs[_0xebfe('0x1e')](_0x1db298['query'][_0xebfe('0x1e')]);_0x76a0b7[_0xebfe('0x1c')]=qs[_0xebfe('0x1c')](_0x1db298[_0xebfe('0x2f')][_0xebfe('0x1c')]);}_0x76a0b7['order']=qs[_0xebfe('0x37')](_0x1db298[_0xebfe('0x2f')][_0xebfe('0x37')]);_0x76a0b7[_0xebfe('0x38')]=qs[_0xebfe('0x39')](_[_0xebfe('0x3a')](_0x1db298[_0xebfe('0x2f')],_0x374e10[_0xebfe('0x39')]),_0x10d28e);if(_0x1db298[_0xebfe('0x2f')][_0xebfe('0x3b')]){_0x76a0b7[_0xebfe('0x38')]=_[_0xebfe('0x3c')](_0x76a0b7[_0xebfe('0x38')],{'$or':_[_0xebfe('0x29')](_0x10d28e,function(_0x1824ef){if(_0x1824ef['type']!==_0xebfe('0x3d')){var _0x39c57c={};_0x39c57c[_0x1824ef[_0xebfe('0x26')]]={'$like':'%'+_0x1db298[_0xebfe('0x2f')]['filter']+'%'};return _0x39c57c;}})});}_0x76a0b7=_[_0xebfe('0x3c')]({},_0x76a0b7,_0x1db298[_0xebfe('0x3e')]);var _0x430486={'where':_0x76a0b7[_0xebfe('0x38')]};return db[_0xebfe('0x3f')]['count'](_0x430486)[_0xebfe('0x23')](function(_0x4092d2){_0x37da70['count']=_0x4092d2;if(_0x1db298[_0xebfe('0x2f')]['includeAll']){_0x76a0b7['include']=[{'all':!![]}];}return db[_0xebfe('0x3f')][_0xebfe('0x40')](_0x76a0b7);})[_0xebfe('0x23')](function(_0x515661){_0x37da70[_0xebfe('0x41')]=_0x515661;return _0x37da70;})[_0xebfe('0x23')](respondWithFilteredResult(_0x44d4cf,_0x76a0b7))[_0xebfe('0x42')](handleError(_0x44d4cf,null));};exports[_0xebfe('0x43')]=function(_0x159c76,_0x5161bc){var _0x306940={'raw':!![],'where':{'id':_0x159c76[_0xebfe('0x44')]['id']}},_0x141e50={};_0x141e50[_0xebfe('0x2e')]=_[_0xebfe('0x30')](db[_0xebfe('0x3f')][_0xebfe('0x2a')]);_0x141e50[_0xebfe('0x2f')]=_[_0xebfe('0x30')](_0x159c76[_0xebfe('0x2f')]);_0x141e50[_0xebfe('0x39')]=_[_0xebfe('0x31')](_0x141e50[_0xebfe('0x2e')],_0x141e50[_0xebfe('0x2f')]);_0x306940[_0xebfe('0x32')]=_[_0xebfe('0x31')](_0x141e50['model'],qs[_0xebfe('0x33')](_0x159c76['query'][_0xebfe('0x33')]));_0x306940['attributes']=_0x306940[_0xebfe('0x32')][_0xebfe('0x34')]?_0x306940[_0xebfe('0x32')]:_0x141e50['model'];if(_0x159c76[_0xebfe('0x2f')]['includeAll']){_0x306940[_0xebfe('0x45')]=[{'all':!![]}];}_0x306940=_['merge']({},_0x306940,_0x159c76[_0xebfe('0x3e')]);return db[_0xebfe('0x3f')][_0xebfe('0x46')](_0x306940)['then'](handleEntityNotFound(_0x5161bc,null))['then'](respondWithResult(_0x5161bc,null))[_0xebfe('0x42')](handleError(_0x5161bc,null));};exports[_0xebfe('0x47')]=function(_0x422668,_0x362f88){return db[_0xebfe('0x3f')][_0xebfe('0x47')](_0x422668['body'],{})[_0xebfe('0x23')](respondWithResult(_0x362f88,0xc9))[_0xebfe('0x42')](handleError(_0x362f88,null));};exports[_0xebfe('0x22')]=function(_0xdc68cb,_0x70f570){if(_0xdc68cb[_0xebfe('0x48')]['id']){delete _0xdc68cb['body']['id'];}return db[_0xebfe('0x3f')][_0xebfe('0x46')]({'where':{'id':_0xdc68cb[_0xebfe('0x44')]['id']}})['then'](handleEntityNotFound(_0x70f570,null))[_0xebfe('0x23')](saveUpdates(_0xdc68cb['body'],null))[_0xebfe('0x23')](respondWithResult(_0x70f570,null))['catch'](handleError(_0x70f570,null));};exports[_0xebfe('0x24')]=function(_0x1b5468,_0x399a31){return db[_0xebfe('0x3f')][_0xebfe('0x46')]({'where':{'id':_0x1b5468[_0xebfe('0x44')]['id']}})['then'](handleEntityNotFound(_0x399a31,null))[_0xebfe('0x23')](removeEntity(_0x399a31,null))[_0xebfe('0x42')](handleError(_0x399a31,null));};exports[_0xebfe('0x49')]=function(_0x44f850,_0x42838d){return db['SquareDetailsReport'][_0xebfe('0x49')]()[_0xebfe('0x23')](respondWithResult(_0x42838d,null))[_0xebfe('0x42')](handleError(_0x42838d,null));};
\ No newline at end of file
+var _0xebfe=['../../config/license/util','../../mysqldb','sendStatus','status','json','undefined','offset','count','limit','set','Content-Range','apply','save','update','destroy','then','end','error','stack','name','send','SquareDetailsReport','fieldName','type','key','model','map','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','rows','catch','show','params','keys','rawAttributes','find','create','body','describe','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','ejs','fs-extra','lodash','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment'];(function(_0x4f9b18,_0x2cb5ca){var _0x29f20c=function(_0x268b3d){while(--_0x268b3d){_0x4f9b18['push'](_0x4f9b18['shift']());}};_0x29f20c(++_0x2cb5ca);}(_0xebfe,0x11a));var _0xeebf=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xebfe[_0x3dd15e];return _0x231fd0;};'use strict';var emlformat=require(_0xeebf('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xeebf('0x1'));var jsonpatch=require(_0xeebf('0x2'));var rp=require(_0xeebf('0x3'));var moment=require('moment');var BPromise=require(_0xeebf('0x4'));var Mustache=require(_0xeebf('0x5'));var util=require(_0xeebf('0x6'));var path=require(_0xeebf('0x7'));var sox=require(_0xeebf('0x8'));var csv=require('to-csv');var ejs=require(_0xeebf('0x9'));var fs=require('fs');var fs_extra=require(_0xeebf('0xa'));var _=require(_0xeebf('0xb'));var squel=require('squel');var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xeebf('0xc'));var toCsv=require('to-csv');var querystring=require(_0xeebf('0xd'));var Papa=require(_0xeebf('0xe'));var Redis=require(_0xeebf('0xf'));var authService=require('../../components/auth/service');var qs=require(_0xeebf('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xeebf('0x11'));var logger=require(_0xeebf('0x12'))(_0xeebf('0x13'));var utils=require(_0xeebf('0x14'));var config=require(_0xeebf('0x15'));var licenseUtil=require(_0xeebf('0x16'));var db=require(_0xeebf('0x17'))['db'];function respondWithStatusCode(_0x1f9943,_0x2a7929){_0x2a7929=_0x2a7929||0xcc;return function(_0x43fcb3){if(_0x43fcb3){return _0x1f9943[_0xeebf('0x18')](_0x2a7929);}return _0x1f9943[_0xeebf('0x19')](_0x2a7929)['end']();};}function respondWithResult(_0x4a1ab6,_0x3a0ec7){_0x3a0ec7=_0x3a0ec7||0xc8;return function(_0xf4d086){if(_0xf4d086){return _0x4a1ab6[_0xeebf('0x19')](_0x3a0ec7)[_0xeebf('0x1a')](_0xf4d086);}};}function respondWithFilteredResult(_0x414236,_0x541aeb){return function(_0x18173c){if(_0x18173c){var _0x1bf78e=typeof _0x541aeb['offset']===_0xeebf('0x1b')&&typeof _0x541aeb['limit']==='undefined';var _0x5cfaad=_0x18173c['count'];var _0x196f1c=_0x1bf78e?0x0:_0x541aeb[_0xeebf('0x1c')];var _0x22ae2f=_0x1bf78e?_0x18173c[_0xeebf('0x1d')]:_0x541aeb[_0xeebf('0x1c')]+_0x541aeb[_0xeebf('0x1e')];var _0x2b6b0f;if(_0x22ae2f>=_0x5cfaad){_0x22ae2f=_0x5cfaad;_0x2b6b0f=0xc8;}else{_0x2b6b0f=0xce;}_0x414236[_0xeebf('0x19')](_0x2b6b0f);return _0x414236[_0xeebf('0x1f')](_0xeebf('0x20'),_0x196f1c+'-'+_0x22ae2f+'/'+_0x5cfaad)[_0xeebf('0x1a')](_0x18173c);}return null;};}function patchUpdates(_0x4d782e){return function(_0x10e7c1){try{jsonpatch[_0xeebf('0x21')](_0x10e7c1,_0x4d782e,!![]);}catch(_0x11b6b4){return BPromise['reject'](_0x11b6b4);}return _0x10e7c1[_0xeebf('0x22')]();};}function saveUpdates(_0x445f75,_0x3df57e){return function(_0x1e25cb){if(_0x1e25cb){return _0x1e25cb[_0xeebf('0x23')](_0x445f75)['then'](function(_0x27296c){return _0x27296c;});}return null;};}function removeEntity(_0x444543,_0x452179){return function(_0x2f59d4){if(_0x2f59d4){return _0x2f59d4[_0xeebf('0x24')]()[_0xeebf('0x25')](function(){_0x444543[_0xeebf('0x19')](0xcc)[_0xeebf('0x26')]();});}};}function handleEntityNotFound(_0x2c94f8,_0x3e3bd4){return function(_0x48b67b){if(!_0x48b67b){_0x2c94f8[_0xeebf('0x18')](0x194);}return _0x48b67b;};}function handleError(_0x526ffe,_0x1bad6b){_0x1bad6b=_0x1bad6b||0x1f4;return function(_0x4a1974){logger[_0xeebf('0x27')](_0x4a1974[_0xeebf('0x28')]);if(_0x4a1974['name']){delete _0x4a1974[_0xeebf('0x29')];}_0x526ffe[_0xeebf('0x19')](_0x1bad6b)[_0xeebf('0x2a')](_0x4a1974);};}exports['index']=function(_0x376a83,_0x3ec093){var _0x2265cf={},_0x11f814={},_0x25c390={'count':0x0,'rows':[]};var _0x3b1028=_['map'](db[_0xeebf('0x2b')]['rawAttributes'],function(_0x3fa5fc){return{'name':_0x3fa5fc[_0xeebf('0x2c')],'type':_0x3fa5fc[_0xeebf('0x2d')][_0xeebf('0x2e')]};});_0x11f814[_0xeebf('0x2f')]=_[_0xeebf('0x30')](_0x3b1028,_0xeebf('0x29'));_0x11f814['query']=_['keys'](_0x376a83[_0xeebf('0x31')]);_0x11f814[_0xeebf('0x32')]=_[_0xeebf('0x33')](_0x11f814[_0xeebf('0x2f')],_0x11f814[_0xeebf('0x31')]);_0x2265cf[_0xeebf('0x34')]=_['intersection'](_0x11f814[_0xeebf('0x2f')],qs[_0xeebf('0x35')](_0x376a83[_0xeebf('0x31')]['fields']));_0x2265cf[_0xeebf('0x34')]=_0x2265cf[_0xeebf('0x34')][_0xeebf('0x36')]?_0x2265cf[_0xeebf('0x34')]:_0x11f814['model'];if(!_0x376a83[_0xeebf('0x31')][_0xeebf('0x37')](_0xeebf('0x38'))){_0x2265cf['limit']=qs[_0xeebf('0x1e')](_0x376a83[_0xeebf('0x31')][_0xeebf('0x1e')]);_0x2265cf[_0xeebf('0x1c')]=qs[_0xeebf('0x1c')](_0x376a83['query'][_0xeebf('0x1c')]);}_0x2265cf[_0xeebf('0x39')]=qs[_0xeebf('0x3a')](_0x376a83[_0xeebf('0x31')][_0xeebf('0x3a')]);_0x2265cf[_0xeebf('0x3b')]=qs[_0xeebf('0x32')](_[_0xeebf('0x3c')](_0x376a83['query'],_0x11f814[_0xeebf('0x32')]),_0x3b1028);if(_0x376a83[_0xeebf('0x31')][_0xeebf('0x3d')]){_0x2265cf[_0xeebf('0x3b')]=_[_0xeebf('0x3e')](_0x2265cf[_0xeebf('0x3b')],{'$or':_[_0xeebf('0x30')](_0x3b1028,function(_0x48aa4b){if(_0x48aa4b[_0xeebf('0x2d')]!==_0xeebf('0x3f')){var _0x3d35b5={};_0x3d35b5[_0x48aa4b[_0xeebf('0x29')]]={'$like':'%'+_0x376a83['query']['filter']+'%'};return _0x3d35b5;}})});}_0x2265cf=_[_0xeebf('0x3e')]({},_0x2265cf,_0x376a83[_0xeebf('0x40')]);var _0x5a9bab={'where':_0x2265cf[_0xeebf('0x3b')]};return db[_0xeebf('0x2b')][_0xeebf('0x1d')](_0x5a9bab)[_0xeebf('0x25')](function(_0x508c45){_0x25c390[_0xeebf('0x1d')]=_0x508c45;if(_0x376a83[_0xeebf('0x31')][_0xeebf('0x41')]){_0x2265cf['include']=[{'all':!![]}];}return db[_0xeebf('0x2b')]['findAll'](_0x2265cf);})[_0xeebf('0x25')](function(_0x469ec1){_0x25c390[_0xeebf('0x42')]=_0x469ec1;return _0x25c390;})[_0xeebf('0x25')](respondWithFilteredResult(_0x3ec093,_0x2265cf))[_0xeebf('0x43')](handleError(_0x3ec093,null));};exports[_0xeebf('0x44')]=function(_0x5db4a1,_0x41b2c0){var _0x4739a2={'raw':!![],'where':{'id':_0x5db4a1[_0xeebf('0x45')]['id']}},_0x1d85db={};_0x1d85db[_0xeebf('0x2f')]=_[_0xeebf('0x46')](db[_0xeebf('0x2b')][_0xeebf('0x47')]);_0x1d85db['query']=_[_0xeebf('0x46')](_0x5db4a1[_0xeebf('0x31')]);_0x1d85db['filters']=_[_0xeebf('0x33')](_0x1d85db[_0xeebf('0x2f')],_0x1d85db[_0xeebf('0x31')]);_0x4739a2[_0xeebf('0x34')]=_[_0xeebf('0x33')](_0x1d85db['model'],qs['fields'](_0x5db4a1[_0xeebf('0x31')][_0xeebf('0x35')]));_0x4739a2[_0xeebf('0x34')]=_0x4739a2['attributes'][_0xeebf('0x36')]?_0x4739a2[_0xeebf('0x34')]:_0x1d85db[_0xeebf('0x2f')];if(_0x5db4a1[_0xeebf('0x31')][_0xeebf('0x41')]){_0x4739a2['include']=[{'all':!![]}];}_0x4739a2=_['merge']({},_0x4739a2,_0x5db4a1[_0xeebf('0x40')]);return db[_0xeebf('0x2b')][_0xeebf('0x48')](_0x4739a2)[_0xeebf('0x25')](handleEntityNotFound(_0x41b2c0,null))['then'](respondWithResult(_0x41b2c0,null))[_0xeebf('0x43')](handleError(_0x41b2c0,null));};exports[_0xeebf('0x49')]=function(_0xc507e1,_0x28afd9){return db['SquareDetailsReport'][_0xeebf('0x49')](_0xc507e1[_0xeebf('0x4a')],{})[_0xeebf('0x25')](respondWithResult(_0x28afd9,0xc9))[_0xeebf('0x43')](handleError(_0x28afd9,null));};exports[_0xeebf('0x23')]=function(_0x5b8edf,_0x1eae11){if(_0x5b8edf[_0xeebf('0x4a')]['id']){delete _0x5b8edf[_0xeebf('0x4a')]['id'];}return db[_0xeebf('0x2b')][_0xeebf('0x48')]({'where':{'id':_0x5b8edf[_0xeebf('0x45')]['id']}})[_0xeebf('0x25')](handleEntityNotFound(_0x1eae11,null))[_0xeebf('0x25')](saveUpdates(_0x5b8edf[_0xeebf('0x4a')],null))[_0xeebf('0x25')](respondWithResult(_0x1eae11,null))['catch'](handleError(_0x1eae11,null));};exports[_0xeebf('0x24')]=function(_0x3ac5d0,_0x441a46){return db[_0xeebf('0x2b')]['find']({'where':{'id':_0x3ac5d0[_0xeebf('0x45')]['id']}})[_0xeebf('0x25')](handleEntityNotFound(_0x441a46,null))[_0xeebf('0x25')](removeEntity(_0x441a46,null))['catch'](handleError(_0x441a46,null));};exports[_0xeebf('0x4b')]=function(_0x52ceb6,_0x506584){return db['SquareDetailsReport']['describe']()[_0xeebf('0x25')](respondWithResult(_0x506584,null))[_0xeebf('0x43')](handleError(_0x506584,null));};
\ No newline at end of file