Built motion from commit (unavailable).|2.0.84
[motion2.git] / server / api / faxApplication / faxApplication.controller.js
index f5425da..7e5f188 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf839=['querystring','../../components/parsers/qs','../../config/logger','api','../../mysqldb','sendStatus','status','end','count','offset','limit','set','Content-Range','json','apply','reject','update','then','stack','name','send','index','FaxApplication','rawAttributes','model','keys','query','dateStart','dateEnd','filters','intersection','fields','nolimit','sort','pick','add','day','merge','filter','where','attributes','options','includeAll','findAll','rows','show','params','length','find','catch','create','body','destroy','html-pdf','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','sox','to-csv','lodash','squel','crypto','desk.js'];(function(_0x654576,_0x325445){var _0x507697=function(_0x49df9b){while(--_0x49df9b){_0x654576['push'](_0x654576['shift']());}};_0x507697(++_0x325445);}(_0xf839,0xbb));var _0x9f83=function(_0x2f4f5b,_0x57b43f){_0x2f4f5b=_0x2f4f5b-0x0;var _0x334e1c=_0xf839[_0x2f4f5b];return _0x334e1c;};'use strict';var pdf=require(_0x9f83('0x0'));var emlformat=require(_0x9f83('0x1'));var rimraf=require('rimraf');var zipdir=require(_0x9f83('0x2'));var jsonpatch=require(_0x9f83('0x3'));var rp=require(_0x9f83('0x4'));var moment=require('moment');var BPromise=require(_0x9f83('0x5'));var Mustache=require(_0x9f83('0x6'));var util=require(_0x9f83('0x7'));var path=require('path');var sox=require(_0x9f83('0x8'));var csv=require(_0x9f83('0x9'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x9f83('0xa'));var squel=require(_0x9f83('0xb'));var crypto=require(_0x9f83('0xc'));var jsforce=require('jsforce');var deskjs=require(_0x9f83('0xd'));var toCsv=require(_0x9f83('0x9'));var querystring=require(_0x9f83('0xe'));var Papa=require('papaparse');var qs=require(_0x9f83('0xf'));var logger=require(_0x9f83('0x10'))(_0x9f83('0x11'));var utils=require('../../config/utils');var config=require('../../config/environment');var db=require(_0x9f83('0x12'))['db'];function respondWithStatusCode(_0x20448e,_0x4e4a8b){_0x4e4a8b=_0x4e4a8b||0xcc;return function(_0x1f6e12){if(_0x1f6e12){return _0x20448e[_0x9f83('0x13')](_0x4e4a8b);}return _0x20448e[_0x9f83('0x14')](_0x4e4a8b)[_0x9f83('0x15')]();};}function respondWithResult(_0x5dbc52,_0xf5a603){_0xf5a603=_0xf5a603||0xc8;return function(_0x15faaa){if(_0x15faaa){return _0x5dbc52[_0x9f83('0x14')](_0xf5a603)['json'](_0x15faaa);}};}function respondWithFilteredResult(_0x1a0674,_0x7cdf5c){return function(_0x5195e4){if(_0x5195e4){var _0x39a8f4=_0x5195e4[_0x9f83('0x16')],_0x2affb8=_0x7cdf5c[_0x9f83('0x17')],_0x29fd80=_0x7cdf5c[_0x9f83('0x17')]+_0x7cdf5c[_0x9f83('0x18')],_0x1ef99e;if(_0x29fd80>=_0x39a8f4){_0x29fd80=_0x39a8f4;_0x1ef99e=0xc8;}else{_0x1ef99e=0xce;}_0x1a0674[_0x9f83('0x14')](_0x1ef99e);return _0x1a0674[_0x9f83('0x19')](_0x9f83('0x1a'),_0x2affb8+'-'+_0x29fd80+'/'+_0x39a8f4)[_0x9f83('0x1b')](_0x5195e4);}return null;};}function patchUpdates(_0x53192e){return function(_0xfca417){try{jsonpatch[_0x9f83('0x1c')](_0xfca417,_0x53192e,!![]);}catch(_0x27835e){return BPromise[_0x9f83('0x1d')](_0x27835e);}return _0xfca417['save']();};}function saveUpdates(_0x2cd78a,_0x1610d3){return function(_0x5c335a){if(_0x5c335a){return _0x5c335a[_0x9f83('0x1e')](_0x2cd78a)['then'](function(_0x5ec6f8){return _0x5ec6f8;});}return null;};}function removeEntity(_0x3f3a30,_0x55a2aa){return function(_0xe53c33){if(_0xe53c33){return _0xe53c33['destroy']()[_0x9f83('0x1f')](function(){_0x3f3a30[_0x9f83('0x14')](0xcc)[_0x9f83('0x15')]();});}};}function handleEntityNotFound(_0x2641ee,_0x4f3787){return function(_0x4a565c){if(!_0x4a565c){_0x2641ee[_0x9f83('0x13')](0x194);}return _0x4a565c;};}function handleError(_0x35f1c3,_0x1cb0de){_0x1cb0de=_0x1cb0de||0x1f4;return function(_0x11eb8a){logger['error'](_0x11eb8a[_0x9f83('0x20')]);if(_0x11eb8a[_0x9f83('0x21')]){delete _0x11eb8a[_0x9f83('0x21')];}_0x35f1c3[_0x9f83('0x14')](_0x1cb0de)[_0x9f83('0x22')](_0x11eb8a);};}exports[_0x9f83('0x23')]=function(_0x2052ad,_0x239660){var _0x4fc78f={},_0x35d544={},_0x1265c1={'count':0x0,'rows':[]};var _0x229e95=db[_0x9f83('0x24')][_0x9f83('0x25')];_0x35d544[_0x9f83('0x26')]=_[_0x9f83('0x27')](_0x229e95);var _0xbed0ab={'dateStart':_0x2052ad[_0x9f83('0x28')][_0x9f83('0x29')],'dateEnd':_0x2052ad['query'][_0x9f83('0x2a')]};delete _0x2052ad['query']['dateStart'];delete _0x2052ad['query'][_0x9f83('0x2a')];_0x35d544['query']=_[_0x9f83('0x27')](_0x2052ad[_0x9f83('0x28')]);_0x35d544[_0x9f83('0x2b')]=_[_0x9f83('0x2c')](_0x35d544[_0x9f83('0x26')],_0x35d544['query']);_0x4fc78f['attributes']=_[_0x9f83('0x2c')](_0x35d544[_0x9f83('0x26')],qs[_0x9f83('0x2d')](_0x2052ad[_0x9f83('0x28')]['fields']));_0x4fc78f['attributes']=_0x4fc78f['attributes']['length']?_0x4fc78f['attributes']:_0x35d544[_0x9f83('0x26')];if(!_0x2052ad[_0x9f83('0x28')]['hasOwnProperty'](_0x9f83('0x2e'))){_0x4fc78f['limit']=qs[_0x9f83('0x18')](_0x2052ad[_0x9f83('0x28')][_0x9f83('0x18')]);_0x4fc78f[_0x9f83('0x17')]=qs[_0x9f83('0x17')](_0x2052ad[_0x9f83('0x28')]['offset']);}_0x4fc78f['order']=qs[_0x9f83('0x2f')](_0x2052ad[_0x9f83('0x28')]['sort']);_0x4fc78f['where']=qs[_0x9f83('0x2b')](_[_0x9f83('0x30')](_0x2052ad[_0x9f83('0x28')],_0x35d544[_0x9f83('0x2b')]));if(_0xbed0ab[_0x9f83('0x29')]){if(_0xbed0ab['dateEnd']){_0xbed0ab[_0x9f83('0x2a')]=moment(_0xbed0ab['dateEnd'])[_0x9f83('0x31')](0x1,_0x9f83('0x32'));}else{_0xbed0ab[_0x9f83('0x2a')]=moment(_0xbed0ab[_0x9f83('0x29')])[_0x9f83('0x31')](0x1,_0x9f83('0x32'));}_[_0x9f83('0x33')](_0x4fc78f['where'],{'createdAt':{'$gte':_0xbed0ab['dateStart'],'$lte':_0xbed0ab[_0x9f83('0x2a')]}});}if(_0x2052ad[_0x9f83('0x28')][_0x9f83('0x34')]){_0x4fc78f[_0x9f83('0x35')]=_['merge'](_0x4fc78f[_0x9f83('0x35')],{'$or':_['map'](_0x4fc78f[_0x9f83('0x36')],function(_0x116cc5){var _0x1877c1={};_0x1877c1[_0x116cc5]={'$like':'%'+_0x2052ad[_0x9f83('0x28')][_0x9f83('0x34')]+'%'};return _0x1877c1;})});}_0x4fc78f=_['merge']({},_0x4fc78f,_0x2052ad[_0x9f83('0x37')]);var _0x531de4={'where':_0x4fc78f['where']};return db[_0x9f83('0x24')]['count'](_0x531de4)[_0x9f83('0x1f')](function(_0xd1e77c){_0x1265c1[_0x9f83('0x16')]=_0xd1e77c;if(_0x2052ad[_0x9f83('0x28')][_0x9f83('0x38')]){_0x4fc78f['include']=[{'all':!![]}];}return db[_0x9f83('0x24')][_0x9f83('0x39')](_0x4fc78f);})[_0x9f83('0x1f')](function(_0x326b09){_0x1265c1[_0x9f83('0x3a')]=_0x326b09;return _0x1265c1;})[_0x9f83('0x1f')](respondWithFilteredResult(_0x239660,_0x4fc78f))['catch'](handleError(_0x239660,null));};exports[_0x9f83('0x3b')]=function(_0x51203f,_0x1513a0){var _0x362bf5={'raw':!![],'where':{'id':_0x51203f[_0x9f83('0x3c')]['id']}},_0x2fdd96={};_0x2fdd96[_0x9f83('0x26')]=_['keys'](db[_0x9f83('0x24')][_0x9f83('0x25')]);_0x2fdd96[_0x9f83('0x28')]=_[_0x9f83('0x27')](_0x51203f[_0x9f83('0x28')]);_0x2fdd96[_0x9f83('0x2b')]=_[_0x9f83('0x2c')](_0x2fdd96[_0x9f83('0x26')],_0x2fdd96[_0x9f83('0x28')]);_0x362bf5[_0x9f83('0x36')]=_[_0x9f83('0x2c')](_0x2fdd96[_0x9f83('0x26')],qs[_0x9f83('0x2d')](_0x51203f[_0x9f83('0x28')]['fields']));_0x362bf5['attributes']=_0x362bf5[_0x9f83('0x36')][_0x9f83('0x3d')]?_0x362bf5[_0x9f83('0x36')]:_0x2fdd96['model'];if(_0x51203f[_0x9f83('0x28')][_0x9f83('0x38')]){_0x362bf5['include']=[{'all':!![]}];}_0x362bf5=_[_0x9f83('0x33')]({},_0x362bf5,_0x51203f[_0x9f83('0x37')]);return db[_0x9f83('0x24')][_0x9f83('0x3e')](_0x362bf5)[_0x9f83('0x1f')](handleEntityNotFound(_0x1513a0,null))[_0x9f83('0x1f')](respondWithResult(_0x1513a0,null))[_0x9f83('0x3f')](handleError(_0x1513a0,null));};exports[_0x9f83('0x40')]=function(_0x3ca556,_0x287d45){return db[_0x9f83('0x24')]['create'](_0x3ca556['body'],{})[_0x9f83('0x1f')](respondWithResult(_0x287d45,0xc9))['catch'](handleError(_0x287d45,null));};exports[_0x9f83('0x1e')]=function(_0x599744,_0x224828){if(_0x599744[_0x9f83('0x41')]['id']){delete _0x599744[_0x9f83('0x41')]['id'];}return db[_0x9f83('0x24')][_0x9f83('0x3e')]({'where':{'id':_0x599744['params']['id']}})[_0x9f83('0x1f')](handleEntityNotFound(_0x224828,null))[_0x9f83('0x1f')](saveUpdates(_0x599744[_0x9f83('0x41')],null))[_0x9f83('0x1f')](respondWithResult(_0x224828,null))['catch'](handleError(_0x224828,null));};exports[_0x9f83('0x42')]=function(_0x7932fc,_0x3f8f0d){return db[_0x9f83('0x24')][_0x9f83('0x3e')]({'where':{'id':_0x7932fc[_0x9f83('0x3c')]['id']}})[_0x9f83('0x1f')](handleEntityNotFound(_0x3f8f0d,null))['then'](removeEntity(_0x3f8f0d,null))[_0x9f83('0x3f')](handleError(_0x3f8f0d,null));};
\ No newline at end of file
+var _0x1605=['update','then','destroy','error','name','send','index','rawAttributes','model','dateStart','query','dateEnd','filters','intersection','attributes','hasOwnProperty','limit','order','sort','where','add','day','merge','filter','map','options','FaxApplication','include','rows','show','params','keys','fields','length','includeAll','find','catch','create','body','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','sox','to-csv','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','count','offset','set','Content-Range','json','apply','reject','save'];(function(_0x263a74,_0xc31414){var _0x2aa86c=function(_0x382896){while(--_0x382896){_0x263a74['push'](_0x263a74['shift']());}};_0x2aa86c(++_0xc31414);}(_0x1605,0xbb));var _0x5160=function(_0x9fd7e7,_0x34bcce){_0x9fd7e7=_0x9fd7e7-0x0;var _0x299514=_0x1605[_0x9fd7e7];return _0x299514;};'use strict';var pdf=require(_0x5160('0x0'));var emlformat=require(_0x5160('0x1'));var rimraf=require(_0x5160('0x2'));var zipdir=require(_0x5160('0x3'));var jsonpatch=require(_0x5160('0x4'));var rp=require(_0x5160('0x5'));var moment=require(_0x5160('0x6'));var BPromise=require(_0x5160('0x7'));var Mustache=require(_0x5160('0x8'));var util=require('util');var path=require('path');var sox=require(_0x5160('0x9'));var csv=require(_0x5160('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x5160('0xb'));var squel=require(_0x5160('0xc'));var crypto=require(_0x5160('0xd'));var jsforce=require(_0x5160('0xe'));var deskjs=require(_0x5160('0xf'));var toCsv=require(_0x5160('0xa'));var querystring=require(_0x5160('0x10'));var Papa=require(_0x5160('0x11'));var Redis=require(_0x5160('0x12'));var qs=require('../../components/parsers/qs');var logger=require(_0x5160('0x13'))(_0x5160('0x14'));var utils=require(_0x5160('0x15'));var config=require(_0x5160('0x16'));var db=require(_0x5160('0x17'))['db'];function respondWithStatusCode(_0x1292bc,_0x1044d2){_0x1044d2=_0x1044d2||0xcc;return function(_0x3eeb80){if(_0x3eeb80){return _0x1292bc[_0x5160('0x18')](_0x1044d2);}return _0x1292bc[_0x5160('0x19')](_0x1044d2)[_0x5160('0x1a')]();};}function respondWithResult(_0xccab71,_0x155a77){_0x155a77=_0x155a77||0xc8;return function(_0x4a76a0){if(_0x4a76a0){return _0xccab71[_0x5160('0x19')](_0x155a77)['json'](_0x4a76a0);}};}function respondWithFilteredResult(_0x4c0b75,_0x3d523f){return function(_0x246bc4){if(_0x246bc4){var _0xc3f509=_0x246bc4[_0x5160('0x1b')],_0x1665b3=_0x3d523f[_0x5160('0x1c')],_0x5d0bf1=_0x3d523f[_0x5160('0x1c')]+_0x3d523f['limit'],_0x5b5876;if(_0x5d0bf1>=_0xc3f509){_0x5d0bf1=_0xc3f509;_0x5b5876=0xc8;}else{_0x5b5876=0xce;}_0x4c0b75['status'](_0x5b5876);return _0x4c0b75[_0x5160('0x1d')](_0x5160('0x1e'),_0x1665b3+'-'+_0x5d0bf1+'/'+_0xc3f509)[_0x5160('0x1f')](_0x246bc4);}return null;};}function patchUpdates(_0x21a923){return function(_0x322bba){try{jsonpatch[_0x5160('0x20')](_0x322bba,_0x21a923,!![]);}catch(_0x1fbfe3){return BPromise[_0x5160('0x21')](_0x1fbfe3);}return _0x322bba[_0x5160('0x22')]();};}function saveUpdates(_0x250e7f,_0x310d81){return function(_0x1409b8){if(_0x1409b8){return _0x1409b8[_0x5160('0x23')](_0x250e7f)[_0x5160('0x24')](function(_0x7544a4){return _0x7544a4;});}return null;};}function removeEntity(_0x13b9dd,_0x4dcb24){return function(_0x5897bc){if(_0x5897bc){return _0x5897bc[_0x5160('0x25')]()[_0x5160('0x24')](function(){_0x13b9dd[_0x5160('0x19')](0xcc)[_0x5160('0x1a')]();});}};}function handleEntityNotFound(_0x2ae4ff,_0x3a156f){return function(_0x422cfa){if(!_0x422cfa){_0x2ae4ff[_0x5160('0x18')](0x194);}return _0x422cfa;};}function handleError(_0x4266c8,_0x20bc1f){_0x20bc1f=_0x20bc1f||0x1f4;return function(_0x1713f3){logger[_0x5160('0x26')](_0x1713f3['stack']);if(_0x1713f3[_0x5160('0x27')]){delete _0x1713f3[_0x5160('0x27')];}_0x4266c8[_0x5160('0x19')](_0x20bc1f)[_0x5160('0x28')](_0x1713f3);};}exports[_0x5160('0x29')]=function(_0x29e727,_0x5238a4){var _0x5d40d2={},_0x1d3667={},_0x3ffeeb={'count':0x0,'rows':[]};var _0x3c25d3=db['FaxApplication'][_0x5160('0x2a')];_0x1d3667[_0x5160('0x2b')]=_['keys'](_0x3c25d3);var _0x4c6057={'dateStart':_0x29e727['query'][_0x5160('0x2c')],'dateEnd':_0x29e727[_0x5160('0x2d')][_0x5160('0x2e')]};delete _0x29e727[_0x5160('0x2d')][_0x5160('0x2c')];delete _0x29e727[_0x5160('0x2d')][_0x5160('0x2e')];_0x1d3667[_0x5160('0x2d')]=_['keys'](_0x29e727[_0x5160('0x2d')]);_0x1d3667[_0x5160('0x2f')]=_['intersection'](_0x1d3667[_0x5160('0x2b')],_0x1d3667[_0x5160('0x2d')]);_0x5d40d2['attributes']=_[_0x5160('0x30')](_0x1d3667[_0x5160('0x2b')],qs['fields'](_0x29e727[_0x5160('0x2d')]['fields']));_0x5d40d2[_0x5160('0x31')]=_0x5d40d2[_0x5160('0x31')]['length']?_0x5d40d2[_0x5160('0x31')]:_0x1d3667['model'];if(!_0x29e727['query'][_0x5160('0x32')]('nolimit')){_0x5d40d2[_0x5160('0x33')]=qs[_0x5160('0x33')](_0x29e727[_0x5160('0x2d')][_0x5160('0x33')]);_0x5d40d2[_0x5160('0x1c')]=qs[_0x5160('0x1c')](_0x29e727[_0x5160('0x2d')][_0x5160('0x1c')]);}_0x5d40d2[_0x5160('0x34')]=qs[_0x5160('0x35')](_0x29e727[_0x5160('0x2d')][_0x5160('0x35')]);_0x5d40d2[_0x5160('0x36')]=qs[_0x5160('0x2f')](_['pick'](_0x29e727[_0x5160('0x2d')],_0x1d3667['filters']));if(_0x4c6057[_0x5160('0x2c')]){if(_0x4c6057[_0x5160('0x2e')]){_0x4c6057[_0x5160('0x2e')]=moment(_0x4c6057[_0x5160('0x2e')])[_0x5160('0x37')](0x1,'day');}else{_0x4c6057[_0x5160('0x2e')]=moment(_0x4c6057[_0x5160('0x2c')])[_0x5160('0x37')](0x1,_0x5160('0x38'));}_[_0x5160('0x39')](_0x5d40d2['where'],{'createdAt':{'$gte':_0x4c6057[_0x5160('0x2c')],'$lte':_0x4c6057[_0x5160('0x2e')]}});}if(_0x29e727['query'][_0x5160('0x3a')]){_0x5d40d2[_0x5160('0x36')]=_['merge'](_0x5d40d2[_0x5160('0x36')],{'$or':_[_0x5160('0x3b')](_0x5d40d2[_0x5160('0x31')],function(_0x5ca821){var _0x18d1e0={};_0x18d1e0[_0x5ca821]={'$like':'%'+_0x29e727[_0x5160('0x2d')]['filter']+'%'};return _0x18d1e0;})});}_0x5d40d2=_['merge']({},_0x5d40d2,_0x29e727[_0x5160('0x3c')]);var _0x1fb36b={'where':_0x5d40d2['where']};return db[_0x5160('0x3d')][_0x5160('0x1b')](_0x1fb36b)[_0x5160('0x24')](function(_0x48a744){_0x3ffeeb[_0x5160('0x1b')]=_0x48a744;if(_0x29e727[_0x5160('0x2d')]['includeAll']){_0x5d40d2[_0x5160('0x3e')]=[{'all':!![]}];}return db[_0x5160('0x3d')]['findAll'](_0x5d40d2);})[_0x5160('0x24')](function(_0x58ffd1){_0x3ffeeb[_0x5160('0x3f')]=_0x58ffd1;return _0x3ffeeb;})[_0x5160('0x24')](respondWithFilteredResult(_0x5238a4,_0x5d40d2))['catch'](handleError(_0x5238a4,null));};exports[_0x5160('0x40')]=function(_0x56aa42,_0x1c964c){var _0x3fcb72={'raw':!![],'where':{'id':_0x56aa42[_0x5160('0x41')]['id']}},_0x4eb888={};_0x4eb888['model']=_[_0x5160('0x42')](db[_0x5160('0x3d')][_0x5160('0x2a')]);_0x4eb888[_0x5160('0x2d')]=_[_0x5160('0x42')](_0x56aa42['query']);_0x4eb888[_0x5160('0x2f')]=_['intersection'](_0x4eb888[_0x5160('0x2b')],_0x4eb888['query']);_0x3fcb72[_0x5160('0x31')]=_[_0x5160('0x30')](_0x4eb888[_0x5160('0x2b')],qs[_0x5160('0x43')](_0x56aa42[_0x5160('0x2d')][_0x5160('0x43')]));_0x3fcb72[_0x5160('0x31')]=_0x3fcb72[_0x5160('0x31')][_0x5160('0x44')]?_0x3fcb72[_0x5160('0x31')]:_0x4eb888[_0x5160('0x2b')];if(_0x56aa42[_0x5160('0x2d')][_0x5160('0x45')]){_0x3fcb72[_0x5160('0x3e')]=[{'all':!![]}];}_0x3fcb72=_[_0x5160('0x39')]({},_0x3fcb72,_0x56aa42['options']);return db[_0x5160('0x3d')][_0x5160('0x46')](_0x3fcb72)['then'](handleEntityNotFound(_0x1c964c,null))[_0x5160('0x24')](respondWithResult(_0x1c964c,null))[_0x5160('0x47')](handleError(_0x1c964c,null));};exports[_0x5160('0x48')]=function(_0x5c583b,_0x3c4926){return db[_0x5160('0x3d')][_0x5160('0x48')](_0x5c583b['body'],{})['then'](respondWithResult(_0x3c4926,0xc9))[_0x5160('0x47')](handleError(_0x3c4926,null));};exports[_0x5160('0x23')]=function(_0x2cb46e,_0x4d4e37){if(_0x2cb46e['body']['id']){delete _0x2cb46e['body']['id'];}return db[_0x5160('0x3d')][_0x5160('0x46')]({'where':{'id':_0x2cb46e[_0x5160('0x41')]['id']}})[_0x5160('0x24')](handleEntityNotFound(_0x4d4e37,null))[_0x5160('0x24')](saveUpdates(_0x2cb46e[_0x5160('0x49')],null))[_0x5160('0x24')](respondWithResult(_0x4d4e37,null))[_0x5160('0x47')](handleError(_0x4d4e37,null));};exports[_0x5160('0x25')]=function(_0x2592fc,_0x31f63a){return db[_0x5160('0x3d')][_0x5160('0x46')]({'where':{'id':_0x2592fc['params']['id']}})['then'](handleEntityNotFound(_0x31f63a,null))[_0x5160('0x24')](removeEntity(_0x31f63a,null))['catch'](handleError(_0x31f63a,null));};
\ No newline at end of file