Built motion from commit e0fa946e.|2.6.5
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index 5228e34..eeb6e68 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfe9c=['query','intersection','fields','length','nolimit','order','sort','filters','filter','where','merge','type','options','findAll','rows','show','keys','attributes','includeAll','find','create','body','params','catch','describe','eml-format','rimraf','zip-dir','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','papaparse','ioredis','../../components/auth/service','../../config/logger','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','undefined','limit','count','set','Content-Range','reject','update','then','destroy','end','stack','name','send','index','map','SquareDetailsReport','rawAttributes','fieldName','model'];(function(_0x3496c3,_0x4c3221){var _0x39878c=function(_0x30cc51){while(--_0x30cc51){_0x3496c3['push'](_0x3496c3['shift']());}};_0x39878c(++_0x4c3221);}(_0xfe9c,0x12d));var _0xcfe9=function(_0x432682,_0x253044){_0x432682=_0x432682-0x0;var _0x463d05=_0xfe9c[_0x432682];return _0x463d05;};'use strict';var emlformat=require(_0xcfe9('0x0'));var rimraf=require(_0xcfe9('0x1'));var zipdir=require(_0xcfe9('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0xcfe9('0x3'));var moment=require('moment');var BPromise=require(_0xcfe9('0x4'));var Mustache=require(_0xcfe9('0x5'));var util=require(_0xcfe9('0x6'));var path=require(_0xcfe9('0x7'));var sox=require(_0xcfe9('0x8'));var csv=require(_0xcfe9('0x9'));var ejs=require(_0xcfe9('0xa'));var fs=require('fs');var fs_extra=require(_0xcfe9('0xb'));var _=require(_0xcfe9('0xc'));var squel=require(_0xcfe9('0xd'));var crypto=require('crypto');var jsforce=require(_0xcfe9('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xcfe9('0x9'));var querystring=require('querystring');var Papa=require(_0xcfe9('0xf'));var Redis=require(_0xcfe9('0x10'));var authService=require(_0xcfe9('0x11'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0xcfe9('0x12'))('api');var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0xcfe9('0x13'));var db=require(_0xcfe9('0x14'))['db'];function respondWithStatusCode(_0x22c83c,_0x16b1c0){_0x16b1c0=_0x16b1c0||0xcc;return function(_0x3767cd){if(_0x3767cd){return _0x22c83c[_0xcfe9('0x15')](_0x16b1c0);}return _0x22c83c['status'](_0x16b1c0)['end']();};}function respondWithResult(_0x221089,_0x1387dd){_0x1387dd=_0x1387dd||0xc8;return function(_0x45eab0){if(_0x45eab0){return _0x221089[_0xcfe9('0x16')](_0x1387dd)[_0xcfe9('0x17')](_0x45eab0);}};}function respondWithFilteredResult(_0x2756b9,_0x183e21){return function(_0x4411ff){if(_0x4411ff){var _0x32ad1c=typeof _0x183e21[_0xcfe9('0x18')]===_0xcfe9('0x19')&&typeof _0x183e21[_0xcfe9('0x1a')]===_0xcfe9('0x19');var _0x510eb4=_0x4411ff[_0xcfe9('0x1b')];var _0x2203c5=_0x32ad1c?0x0:_0x183e21[_0xcfe9('0x18')];var _0x355eaf=_0x32ad1c?_0x4411ff[_0xcfe9('0x1b')]:_0x183e21[_0xcfe9('0x18')]+_0x183e21[_0xcfe9('0x1a')];var _0x202cbb;if(_0x355eaf>=_0x510eb4){_0x355eaf=_0x510eb4;_0x202cbb=0xc8;}else{_0x202cbb=0xce;}_0x2756b9['status'](_0x202cbb);return _0x2756b9[_0xcfe9('0x1c')](_0xcfe9('0x1d'),_0x2203c5+'-'+_0x355eaf+'/'+_0x510eb4)[_0xcfe9('0x17')](_0x4411ff);}return null;};}function patchUpdates(_0x3e3565){return function(_0x3ef8b1){try{jsonpatch['apply'](_0x3ef8b1,_0x3e3565,!![]);}catch(_0x14d500){return BPromise[_0xcfe9('0x1e')](_0x14d500);}return _0x3ef8b1['save']();};}function saveUpdates(_0x5ad595,_0x1d5cac){return function(_0x31c0bc){if(_0x31c0bc){return _0x31c0bc[_0xcfe9('0x1f')](_0x5ad595)[_0xcfe9('0x20')](function(_0x58bfd7){return _0x58bfd7;});}return null;};}function removeEntity(_0x476e7d,_0x375cdb){return function(_0x513f82){if(_0x513f82){return _0x513f82[_0xcfe9('0x21')]()['then'](function(){_0x476e7d[_0xcfe9('0x16')](0xcc)[_0xcfe9('0x22')]();});}};}function handleEntityNotFound(_0xdf53b9,_0x4520b6){return function(_0xe566d7){if(!_0xe566d7){_0xdf53b9[_0xcfe9('0x15')](0x194);}return _0xe566d7;};}function handleError(_0x52ee2d,_0x1e8605){_0x1e8605=_0x1e8605||0x1f4;return function(_0x5ef739){logger['error'](_0x5ef739[_0xcfe9('0x23')]);if(_0x5ef739[_0xcfe9('0x24')]){delete _0x5ef739[_0xcfe9('0x24')];}_0x52ee2d[_0xcfe9('0x16')](_0x1e8605)[_0xcfe9('0x25')](_0x5ef739);};}exports[_0xcfe9('0x26')]=function(_0x10c6cf,_0x2bcb90){var _0x3fbc5f={},_0x1467cb={},_0x639681={'count':0x0,'rows':[]};var _0x4436f7=_[_0xcfe9('0x27')](db[_0xcfe9('0x28')][_0xcfe9('0x29')],function(_0x7e1b06){return{'name':_0x7e1b06[_0xcfe9('0x2a')],'type':_0x7e1b06['type']['key']};});_0x1467cb[_0xcfe9('0x2b')]=_[_0xcfe9('0x27')](_0x4436f7,_0xcfe9('0x24'));_0x1467cb[_0xcfe9('0x2c')]=_['keys'](_0x10c6cf[_0xcfe9('0x2c')]);_0x1467cb['filters']=_[_0xcfe9('0x2d')](_0x1467cb['model'],_0x1467cb['query']);_0x3fbc5f['attributes']=_[_0xcfe9('0x2d')](_0x1467cb['model'],qs[_0xcfe9('0x2e')](_0x10c6cf[_0xcfe9('0x2c')][_0xcfe9('0x2e')]));_0x3fbc5f['attributes']=_0x3fbc5f['attributes'][_0xcfe9('0x2f')]?_0x3fbc5f['attributes']:_0x1467cb[_0xcfe9('0x2b')];if(!_0x10c6cf[_0xcfe9('0x2c')]['hasOwnProperty'](_0xcfe9('0x30'))){_0x3fbc5f[_0xcfe9('0x1a')]=qs[_0xcfe9('0x1a')](_0x10c6cf[_0xcfe9('0x2c')][_0xcfe9('0x1a')]);_0x3fbc5f['offset']=qs[_0xcfe9('0x18')](_0x10c6cf[_0xcfe9('0x2c')][_0xcfe9('0x18')]);}_0x3fbc5f[_0xcfe9('0x31')]=qs[_0xcfe9('0x32')](_0x10c6cf[_0xcfe9('0x2c')][_0xcfe9('0x32')]);_0x3fbc5f['where']=qs['filters'](_['pick'](_0x10c6cf[_0xcfe9('0x2c')],_0x1467cb[_0xcfe9('0x33')]),_0x4436f7);if(_0x10c6cf[_0xcfe9('0x2c')][_0xcfe9('0x34')]){_0x3fbc5f[_0xcfe9('0x35')]=_[_0xcfe9('0x36')](_0x3fbc5f[_0xcfe9('0x35')],{'$or':_[_0xcfe9('0x27')](_0x4436f7,function(_0x25188c){if(_0x25188c[_0xcfe9('0x37')]!=='VIRTUAL'){var _0x5bc59e={};_0x5bc59e[_0x25188c['name']]={'$like':'%'+_0x10c6cf[_0xcfe9('0x2c')][_0xcfe9('0x34')]+'%'};return _0x5bc59e;}})});}_0x3fbc5f=_[_0xcfe9('0x36')]({},_0x3fbc5f,_0x10c6cf[_0xcfe9('0x38')]);var _0x397e26={'where':_0x3fbc5f['where']};return db[_0xcfe9('0x28')]['count'](_0x397e26)['then'](function(_0x3e51ac){_0x639681[_0xcfe9('0x1b')]=_0x3e51ac;if(_0x10c6cf[_0xcfe9('0x2c')]['includeAll']){_0x3fbc5f['include']=[{'all':!![]}];}return db[_0xcfe9('0x28')][_0xcfe9('0x39')](_0x3fbc5f);})[_0xcfe9('0x20')](function(_0x589f23){_0x639681[_0xcfe9('0x3a')]=_0x589f23;return _0x639681;})[_0xcfe9('0x20')](respondWithFilteredResult(_0x2bcb90,_0x3fbc5f))['catch'](handleError(_0x2bcb90,null));};exports[_0xcfe9('0x3b')]=function(_0x168024,_0x2612ea){var _0x40179d={'raw':!![],'where':{'id':_0x168024['params']['id']}},_0x2da942={};_0x2da942[_0xcfe9('0x2b')]=_[_0xcfe9('0x3c')](db[_0xcfe9('0x28')][_0xcfe9('0x29')]);_0x2da942[_0xcfe9('0x2c')]=_[_0xcfe9('0x3c')](_0x168024[_0xcfe9('0x2c')]);_0x2da942[_0xcfe9('0x33')]=_[_0xcfe9('0x2d')](_0x2da942[_0xcfe9('0x2b')],_0x2da942[_0xcfe9('0x2c')]);_0x40179d[_0xcfe9('0x3d')]=_[_0xcfe9('0x2d')](_0x2da942[_0xcfe9('0x2b')],qs[_0xcfe9('0x2e')](_0x168024[_0xcfe9('0x2c')][_0xcfe9('0x2e')]));_0x40179d[_0xcfe9('0x3d')]=_0x40179d[_0xcfe9('0x3d')][_0xcfe9('0x2f')]?_0x40179d[_0xcfe9('0x3d')]:_0x2da942[_0xcfe9('0x2b')];if(_0x168024[_0xcfe9('0x2c')][_0xcfe9('0x3e')]){_0x40179d['include']=[{'all':!![]}];}_0x40179d=_[_0xcfe9('0x36')]({},_0x40179d,_0x168024[_0xcfe9('0x38')]);return db[_0xcfe9('0x28')][_0xcfe9('0x3f')](_0x40179d)['then'](handleEntityNotFound(_0x2612ea,null))['then'](respondWithResult(_0x2612ea,null))['catch'](handleError(_0x2612ea,null));};exports[_0xcfe9('0x40')]=function(_0x18bdd0,_0x588a88){return db[_0xcfe9('0x28')][_0xcfe9('0x40')](_0x18bdd0[_0xcfe9('0x41')],{})[_0xcfe9('0x20')](respondWithResult(_0x588a88,0xc9))['catch'](handleError(_0x588a88,null));};exports[_0xcfe9('0x1f')]=function(_0x267708,_0x49464b){if(_0x267708[_0xcfe9('0x41')]['id']){delete _0x267708[_0xcfe9('0x41')]['id'];}return db['SquareDetailsReport'][_0xcfe9('0x3f')]({'where':{'id':_0x267708[_0xcfe9('0x42')]['id']}})[_0xcfe9('0x20')](handleEntityNotFound(_0x49464b,null))['then'](saveUpdates(_0x267708[_0xcfe9('0x41')],null))['then'](respondWithResult(_0x49464b,null))[_0xcfe9('0x43')](handleError(_0x49464b,null));};exports[_0xcfe9('0x21')]=function(_0x2860db,_0x328261){return db[_0xcfe9('0x28')]['find']({'where':{'id':_0x2860db[_0xcfe9('0x42')]['id']}})['then'](handleEntityNotFound(_0x328261,null))['then'](removeEntity(_0x328261,null))[_0xcfe9('0x43')](handleError(_0x328261,null));};exports[_0xcfe9('0x44')]=function(_0x325382,_0x367e32){return db[_0xcfe9('0x28')][_0xcfe9('0x44')]()[_0xcfe9('0x20')](respondWithResult(_0x367e32,null))[_0xcfe9('0x43')](handleError(_0x367e32,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