Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / whatsappApplication / whatsappApplication.controller.js
index 5380614..6813a3c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf970=['order','sort','where','pick','filter','merge','options','includeAll','include','findAll','rows','show','catch','create','body','find','params','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','limit','undefined','count','offset','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','send','index','map','WhatsappApplication','rawAttributes','key','model','query','keys','filters','intersection','fields','attributes','hasOwnProperty','nolimit'];(function(_0x4cd644,_0x12d71a){var _0x497071=function(_0x49f665){while(--_0x49f665){_0x4cd644['push'](_0x4cd644['shift']());}};_0x497071(++_0x12d71a);}(_0xf970,0x1d9));var _0x0f97=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xf970[_0x14add3];return _0x4a174f;};'use strict';var emlformat=require(_0x0f97('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x0f97('0x1'));var jsonpatch=require(_0x0f97('0x2'));var rp=require(_0x0f97('0x3'));var moment=require(_0x0f97('0x4'));var BPromise=require(_0x0f97('0x5'));var Mustache=require(_0x0f97('0x6'));var util=require(_0x0f97('0x7'));var path=require('path');var sox=require(_0x0f97('0x8'));var csv=require(_0x0f97('0x9'));var ejs=require(_0x0f97('0xa'));var fs=require('fs');var fs_extra=require(_0x0f97('0xb'));var _=require(_0x0f97('0xc'));var squel=require(_0x0f97('0xd'));var crypto=require(_0x0f97('0xe'));var jsforce=require(_0x0f97('0xf'));var deskjs=require(_0x0f97('0x10'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x0f97('0x11'));var Redis=require('ioredis');var authService=require(_0x0f97('0x12'));var qs=require(_0x0f97('0x13'));var as=require(_0x0f97('0x14'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x0f97('0x15'))('api');var utils=require(_0x0f97('0x16'));var config=require(_0x0f97('0x17'));var licenseUtil=require(_0x0f97('0x18'));var db=require(_0x0f97('0x19'))['db'];function respondWithStatusCode(_0x38ae73,_0x4934af){_0x4934af=_0x4934af||0xcc;return function(_0x56d310){if(_0x56d310){return _0x38ae73[_0x0f97('0x1a')](_0x4934af);}return _0x38ae73[_0x0f97('0x1b')](_0x4934af)[_0x0f97('0x1c')]();};}function respondWithResult(_0x2aeeed,_0x300f29){_0x300f29=_0x300f29||0xc8;return function(_0x424c47){if(_0x424c47){return _0x2aeeed['status'](_0x300f29)['json'](_0x424c47);}};}function respondWithFilteredResult(_0x2a1fb8,_0x2392c0){return function(_0x1448f9){if(_0x1448f9){var _0xe92b09=typeof _0x2392c0['offset']==='undefined'&&typeof _0x2392c0[_0x0f97('0x1d')]===_0x0f97('0x1e');var _0x3edaf7=_0x1448f9[_0x0f97('0x1f')];var _0xae246=_0xe92b09?0x0:_0x2392c0[_0x0f97('0x20')];var _0x5059ad=_0xe92b09?_0x1448f9['count']:_0x2392c0[_0x0f97('0x20')]+_0x2392c0[_0x0f97('0x1d')];var _0x3b547f;if(_0x5059ad>=_0x3edaf7){_0x5059ad=_0x3edaf7;_0x3b547f=0xc8;}else{_0x3b547f=0xce;}_0x2a1fb8[_0x0f97('0x1b')](_0x3b547f);return _0x2a1fb8[_0x0f97('0x21')](_0x0f97('0x22'),_0xae246+'-'+_0x5059ad+'/'+_0x3edaf7)['json'](_0x1448f9);}return null;};}function patchUpdates(_0x27b771){return function(_0x15a1ef){try{jsonpatch[_0x0f97('0x23')](_0x15a1ef,_0x27b771,!![]);}catch(_0x15376e){return BPromise[_0x0f97('0x24')](_0x15376e);}return _0x15a1ef[_0x0f97('0x25')]();};}function saveUpdates(_0x21784d,_0x52dde8){return function(_0x2977fa){if(_0x2977fa){return _0x2977fa[_0x0f97('0x26')](_0x21784d)[_0x0f97('0x27')](function(_0x5c2af0){return _0x5c2af0;});}return null;};}function removeEntity(_0x31d384,_0x25d1ef){return function(_0x4ec6d0){if(_0x4ec6d0){return _0x4ec6d0[_0x0f97('0x28')]()[_0x0f97('0x27')](function(){_0x31d384['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x51aa82,_0x406e24){return function(_0x22eb53){if(!_0x22eb53){_0x51aa82['sendStatus'](0x194);}return _0x22eb53;};}function handleError(_0x8ef8c4,_0x42b385){_0x42b385=_0x42b385||0x1f4;return function(_0x30a715){logger[_0x0f97('0x29')](_0x30a715[_0x0f97('0x2a')]);if(_0x30a715[_0x0f97('0x2b')]){delete _0x30a715[_0x0f97('0x2b')];}_0x8ef8c4[_0x0f97('0x1b')](_0x42b385)[_0x0f97('0x2c')](_0x30a715);};}exports[_0x0f97('0x2d')]=function(_0x37d7c9,_0x4fe728){var _0x2f17ef={},_0x22cc9e={},_0x590f72={'count':0x0,'rows':[]};var _0x2c7f04=_[_0x0f97('0x2e')](db[_0x0f97('0x2f')][_0x0f97('0x30')],function(_0x28ba36){return{'name':_0x28ba36['fieldName'],'type':_0x28ba36['type'][_0x0f97('0x31')]};});_0x22cc9e[_0x0f97('0x32')]=_[_0x0f97('0x2e')](_0x2c7f04,_0x0f97('0x2b'));_0x22cc9e[_0x0f97('0x33')]=_[_0x0f97('0x34')](_0x37d7c9[_0x0f97('0x33')]);_0x22cc9e[_0x0f97('0x35')]=_[_0x0f97('0x36')](_0x22cc9e[_0x0f97('0x32')],_0x22cc9e[_0x0f97('0x33')]);_0x2f17ef['attributes']=_[_0x0f97('0x36')](_0x22cc9e[_0x0f97('0x32')],qs[_0x0f97('0x37')](_0x37d7c9[_0x0f97('0x33')][_0x0f97('0x37')]));_0x2f17ef['attributes']=_0x2f17ef[_0x0f97('0x38')]['length']?_0x2f17ef[_0x0f97('0x38')]:_0x22cc9e['model'];if(!_0x37d7c9[_0x0f97('0x33')][_0x0f97('0x39')](_0x0f97('0x3a'))){_0x2f17ef[_0x0f97('0x1d')]=qs[_0x0f97('0x1d')](_0x37d7c9['query']['limit']);_0x2f17ef[_0x0f97('0x20')]=qs[_0x0f97('0x20')](_0x37d7c9['query'][_0x0f97('0x20')]);}_0x2f17ef[_0x0f97('0x3b')]=qs[_0x0f97('0x3c')](_0x37d7c9[_0x0f97('0x33')]['sort']);_0x2f17ef[_0x0f97('0x3d')]=qs[_0x0f97('0x35')](_[_0x0f97('0x3e')](_0x37d7c9[_0x0f97('0x33')],_0x22cc9e[_0x0f97('0x35')]),_0x2c7f04);if(_0x37d7c9['query'][_0x0f97('0x3f')]){_0x2f17ef[_0x0f97('0x3d')]=_[_0x0f97('0x40')](_0x2f17ef[_0x0f97('0x3d')],{'$or':_[_0x0f97('0x2e')](_0x2c7f04,function(_0x244a03){if(_0x244a03['type']!=='VIRTUAL'){var _0x230ccf={};_0x230ccf[_0x244a03[_0x0f97('0x2b')]]={'$like':'%'+_0x37d7c9[_0x0f97('0x33')]['filter']+'%'};return _0x230ccf;}})});}_0x2f17ef=_[_0x0f97('0x40')]({},_0x2f17ef,_0x37d7c9[_0x0f97('0x41')]);var _0x1053cb={'where':_0x2f17ef['where']};return db[_0x0f97('0x2f')][_0x0f97('0x1f')](_0x1053cb)[_0x0f97('0x27')](function(_0x679aea){_0x590f72[_0x0f97('0x1f')]=_0x679aea;if(_0x37d7c9[_0x0f97('0x33')][_0x0f97('0x42')]){_0x2f17ef[_0x0f97('0x43')]=[{'all':!![]}];}return db[_0x0f97('0x2f')][_0x0f97('0x44')](_0x2f17ef);})[_0x0f97('0x27')](function(_0x5c1cd1){_0x590f72[_0x0f97('0x45')]=_0x5c1cd1;return _0x590f72;})[_0x0f97('0x27')](respondWithFilteredResult(_0x4fe728,_0x2f17ef))['catch'](handleError(_0x4fe728,null));};exports[_0x0f97('0x46')]=function(_0x57269c,_0x153777){var _0x51f2a={'raw':!![],'where':{'id':_0x57269c['params']['id']}},_0x3e14b1={};_0x3e14b1['model']=_[_0x0f97('0x34')](db[_0x0f97('0x2f')][_0x0f97('0x30')]);_0x3e14b1[_0x0f97('0x33')]=_[_0x0f97('0x34')](_0x57269c['query']);_0x3e14b1['filters']=_[_0x0f97('0x36')](_0x3e14b1[_0x0f97('0x32')],_0x3e14b1[_0x0f97('0x33')]);_0x51f2a[_0x0f97('0x38')]=_[_0x0f97('0x36')](_0x3e14b1[_0x0f97('0x32')],qs[_0x0f97('0x37')](_0x57269c[_0x0f97('0x33')][_0x0f97('0x37')]));_0x51f2a['attributes']=_0x51f2a[_0x0f97('0x38')]['length']?_0x51f2a[_0x0f97('0x38')]:_0x3e14b1[_0x0f97('0x32')];if(_0x57269c[_0x0f97('0x33')]['includeAll']){_0x51f2a['include']=[{'all':!![]}];}_0x51f2a=_[_0x0f97('0x40')]({},_0x51f2a,_0x57269c[_0x0f97('0x41')]);return db[_0x0f97('0x2f')]['find'](_0x51f2a)['then'](handleEntityNotFound(_0x153777,null))['then'](respondWithResult(_0x153777,null))[_0x0f97('0x47')](handleError(_0x153777,null));};exports[_0x0f97('0x48')]=function(_0x1871b6,_0xf95e68){return db[_0x0f97('0x2f')][_0x0f97('0x48')](_0x1871b6[_0x0f97('0x49')],{})[_0x0f97('0x27')](respondWithResult(_0xf95e68,0xc9))[_0x0f97('0x47')](handleError(_0xf95e68,null));};exports[_0x0f97('0x26')]=function(_0x55eba,_0x4c5d53){if(_0x55eba[_0x0f97('0x49')]['id']){delete _0x55eba['body']['id'];}return db['WhatsappApplication'][_0x0f97('0x4a')]({'where':{'id':_0x55eba['params']['id']}})[_0x0f97('0x27')](handleEntityNotFound(_0x4c5d53,null))[_0x0f97('0x27')](saveUpdates(_0x55eba[_0x0f97('0x49')],null))[_0x0f97('0x27')](respondWithResult(_0x4c5d53,null))[_0x0f97('0x47')](handleError(_0x4c5d53,null));};exports['destroy']=function(_0x497042,_0x1e0cc9){return db[_0x0f97('0x2f')]['find']({'where':{'id':_0x497042[_0x0f97('0x4b')]['id']}})[_0x0f97('0x27')](handleEntityNotFound(_0x1e0cc9,null))[_0x0f97('0x27')](removeEntity(_0x1e0cc9,null))[_0x0f97('0x47')](handleError(_0x1e0cc9,null));};
\ No newline at end of file
+var _0x6050=['rawAttributes','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filter','merge','VIRTUAL','options','includeAll','findAll','rows','catch','show','params','include','find','create','body','update','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','fs-extra','jsforce','desk.js','to-csv','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','Content-Range','apply','reject','save','then','destroy','name','send','index','map','WhatsappApplication'];(function(_0x19ab39,_0x4e871b){var _0x267b6a=function(_0x149aa3){while(--_0x149aa3){_0x19ab39['push'](_0x19ab39['shift']());}};_0x267b6a(++_0x4e871b);}(_0x6050,0x196));var _0x0605=function(_0x22efb0,_0xd42df6){_0x22efb0=_0x22efb0-0x0;var _0x11ae8e=_0x6050[_0x22efb0];return _0x11ae8e;};'use strict';var emlformat=require(_0x0605('0x0'));var rimraf=require(_0x0605('0x1'));var zipdir=require(_0x0605('0x2'));var jsonpatch=require(_0x0605('0x3'));var rp=require(_0x0605('0x4'));var moment=require(_0x0605('0x5'));var BPromise=require('bluebird');var Mustache=require(_0x0605('0x6'));var util=require(_0x0605('0x7'));var path=require(_0x0605('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x0605('0x9'));var _=require('lodash');var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0x0605('0xa'));var deskjs=require(_0x0605('0xb'));var toCsv=require(_0x0605('0xc'));var querystring=require(_0x0605('0xd'));var Papa=require(_0x0605('0xe'));var Redis=require('ioredis');var authService=require(_0x0605('0xf'));var qs=require(_0x0605('0x10'));var as=require(_0x0605('0x11'));var hardwareService=require(_0x0605('0x12'));var logger=require(_0x0605('0x13'))(_0x0605('0x14'));var utils=require(_0x0605('0x15'));var config=require(_0x0605('0x16'));var licenseUtil=require(_0x0605('0x17'));var db=require(_0x0605('0x18'))['db'];function respondWithStatusCode(_0xd22e35,_0x39e288){_0x39e288=_0x39e288||0xcc;return function(_0x34c9e6){if(_0x34c9e6){return _0xd22e35[_0x0605('0x19')](_0x39e288);}return _0xd22e35[_0x0605('0x1a')](_0x39e288)[_0x0605('0x1b')]();};}function respondWithResult(_0x169a70,_0x65a20b){_0x65a20b=_0x65a20b||0xc8;return function(_0x1b944f){if(_0x1b944f){return _0x169a70['status'](_0x65a20b)[_0x0605('0x1c')](_0x1b944f);}};}function respondWithFilteredResult(_0x1a802b,_0x4993ab){return function(_0x5ce56a){if(_0x5ce56a){var _0x4eefe9=typeof _0x4993ab[_0x0605('0x1d')]===_0x0605('0x1e')&&typeof _0x4993ab[_0x0605('0x1f')]===_0x0605('0x1e');var _0xefc557=_0x5ce56a[_0x0605('0x20')];var _0x2b7b5a=_0x4eefe9?0x0:_0x4993ab[_0x0605('0x1d')];var _0x193520=_0x4eefe9?_0x5ce56a[_0x0605('0x20')]:_0x4993ab[_0x0605('0x1d')]+_0x4993ab[_0x0605('0x1f')];var _0x2e2204;if(_0x193520>=_0xefc557){_0x193520=_0xefc557;_0x2e2204=0xc8;}else{_0x2e2204=0xce;}_0x1a802b[_0x0605('0x1a')](_0x2e2204);return _0x1a802b['set'](_0x0605('0x21'),_0x2b7b5a+'-'+_0x193520+'/'+_0xefc557)[_0x0605('0x1c')](_0x5ce56a);}return null;};}function patchUpdates(_0x430f28){return function(_0x443326){try{jsonpatch[_0x0605('0x22')](_0x443326,_0x430f28,!![]);}catch(_0x90b2e1){return BPromise[_0x0605('0x23')](_0x90b2e1);}return _0x443326[_0x0605('0x24')]();};}function saveUpdates(_0x226ef5,_0x5b0d44){return function(_0xc334b8){if(_0xc334b8){return _0xc334b8['update'](_0x226ef5)[_0x0605('0x25')](function(_0x118e9c){return _0x118e9c;});}return null;};}function removeEntity(_0x110098,_0xf182c4){return function(_0x10c575){if(_0x10c575){return _0x10c575[_0x0605('0x26')]()[_0x0605('0x25')](function(){_0x110098[_0x0605('0x1a')](0xcc)[_0x0605('0x1b')]();});}};}function handleEntityNotFound(_0x2896d7,_0x9f2833){return function(_0x1c3722){if(!_0x1c3722){_0x2896d7['sendStatus'](0x194);}return _0x1c3722;};}function handleError(_0x6bc204,_0x3c8e36){_0x3c8e36=_0x3c8e36||0x1f4;return function(_0x4b1e0c){logger['error'](_0x4b1e0c['stack']);if(_0x4b1e0c[_0x0605('0x27')]){delete _0x4b1e0c[_0x0605('0x27')];}_0x6bc204[_0x0605('0x1a')](_0x3c8e36)[_0x0605('0x28')](_0x4b1e0c);};}exports[_0x0605('0x29')]=function(_0x4554df,_0x4e32ef){var _0x34f25d={},_0x5daef6={},_0xa836f2={'count':0x0,'rows':[]};var _0x3640b9=_[_0x0605('0x2a')](db[_0x0605('0x2b')][_0x0605('0x2c')],function(_0x352dd6){return{'name':_0x352dd6['fieldName'],'type':_0x352dd6[_0x0605('0x2d')][_0x0605('0x2e')]};});_0x5daef6[_0x0605('0x2f')]=_[_0x0605('0x2a')](_0x3640b9,_0x0605('0x27'));_0x5daef6[_0x0605('0x30')]=_[_0x0605('0x31')](_0x4554df[_0x0605('0x30')]);_0x5daef6[_0x0605('0x32')]=_[_0x0605('0x33')](_0x5daef6[_0x0605('0x2f')],_0x5daef6[_0x0605('0x30')]);_0x34f25d[_0x0605('0x34')]=_[_0x0605('0x33')](_0x5daef6[_0x0605('0x2f')],qs[_0x0605('0x35')](_0x4554df[_0x0605('0x30')][_0x0605('0x35')]));_0x34f25d[_0x0605('0x34')]=_0x34f25d[_0x0605('0x34')][_0x0605('0x36')]?_0x34f25d[_0x0605('0x34')]:_0x5daef6[_0x0605('0x2f')];if(!_0x4554df[_0x0605('0x30')][_0x0605('0x37')](_0x0605('0x38'))){_0x34f25d[_0x0605('0x1f')]=qs['limit'](_0x4554df[_0x0605('0x30')][_0x0605('0x1f')]);_0x34f25d['offset']=qs[_0x0605('0x1d')](_0x4554df[_0x0605('0x30')]['offset']);}_0x34f25d[_0x0605('0x39')]=qs[_0x0605('0x3a')](_0x4554df[_0x0605('0x30')][_0x0605('0x3a')]);_0x34f25d[_0x0605('0x3b')]=qs[_0x0605('0x32')](_['pick'](_0x4554df['query'],_0x5daef6[_0x0605('0x32')]),_0x3640b9);if(_0x4554df[_0x0605('0x30')][_0x0605('0x3c')]){_0x34f25d['where']=_[_0x0605('0x3d')](_0x34f25d['where'],{'$or':_[_0x0605('0x2a')](_0x3640b9,function(_0x1e98f6){if(_0x1e98f6[_0x0605('0x2d')]!==_0x0605('0x3e')){var _0x42f7ce={};_0x42f7ce[_0x1e98f6[_0x0605('0x27')]]={'$like':'%'+_0x4554df[_0x0605('0x30')][_0x0605('0x3c')]+'%'};return _0x42f7ce;}})});}_0x34f25d=_[_0x0605('0x3d')]({},_0x34f25d,_0x4554df[_0x0605('0x3f')]);var _0x57aa15={'where':_0x34f25d[_0x0605('0x3b')]};return db['WhatsappApplication'][_0x0605('0x20')](_0x57aa15)[_0x0605('0x25')](function(_0x45787e){_0xa836f2['count']=_0x45787e;if(_0x4554df['query'][_0x0605('0x40')]){_0x34f25d['include']=[{'all':!![]}];}return db[_0x0605('0x2b')][_0x0605('0x41')](_0x34f25d);})[_0x0605('0x25')](function(_0x3de34a){_0xa836f2[_0x0605('0x42')]=_0x3de34a;return _0xa836f2;})[_0x0605('0x25')](respondWithFilteredResult(_0x4e32ef,_0x34f25d))[_0x0605('0x43')](handleError(_0x4e32ef,null));};exports[_0x0605('0x44')]=function(_0x3fa553,_0x10bb36){var _0x18d3ce={'raw':!![],'where':{'id':_0x3fa553[_0x0605('0x45')]['id']}},_0x3616a3={};_0x3616a3['model']=_['keys'](db[_0x0605('0x2b')]['rawAttributes']);_0x3616a3[_0x0605('0x30')]=_[_0x0605('0x31')](_0x3fa553['query']);_0x3616a3[_0x0605('0x32')]=_[_0x0605('0x33')](_0x3616a3['model'],_0x3616a3[_0x0605('0x30')]);_0x18d3ce[_0x0605('0x34')]=_['intersection'](_0x3616a3[_0x0605('0x2f')],qs[_0x0605('0x35')](_0x3fa553['query'][_0x0605('0x35')]));_0x18d3ce['attributes']=_0x18d3ce['attributes'][_0x0605('0x36')]?_0x18d3ce[_0x0605('0x34')]:_0x3616a3[_0x0605('0x2f')];if(_0x3fa553[_0x0605('0x30')][_0x0605('0x40')]){_0x18d3ce[_0x0605('0x46')]=[{'all':!![]}];}_0x18d3ce=_[_0x0605('0x3d')]({},_0x18d3ce,_0x3fa553[_0x0605('0x3f')]);return db['WhatsappApplication'][_0x0605('0x47')](_0x18d3ce)[_0x0605('0x25')](handleEntityNotFound(_0x10bb36,null))[_0x0605('0x25')](respondWithResult(_0x10bb36,null))['catch'](handleError(_0x10bb36,null));};exports[_0x0605('0x48')]=function(_0x1fb70b,_0x45cc1a){return db[_0x0605('0x2b')][_0x0605('0x48')](_0x1fb70b[_0x0605('0x49')],{})[_0x0605('0x25')](respondWithResult(_0x45cc1a,0xc9))[_0x0605('0x43')](handleError(_0x45cc1a,null));};exports[_0x0605('0x4a')]=function(_0x4bc55e,_0x3c597c){if(_0x4bc55e[_0x0605('0x49')]['id']){delete _0x4bc55e[_0x0605('0x49')]['id'];}return db[_0x0605('0x2b')][_0x0605('0x47')]({'where':{'id':_0x4bc55e[_0x0605('0x45')]['id']}})[_0x0605('0x25')](handleEntityNotFound(_0x3c597c,null))[_0x0605('0x25')](saveUpdates(_0x4bc55e[_0x0605('0x49')],null))[_0x0605('0x25')](respondWithResult(_0x3c597c,null))['catch'](handleError(_0x3c597c,null));};exports['destroy']=function(_0x4876c7,_0x2687a8){return db[_0x0605('0x2b')][_0x0605('0x47')]({'where':{'id':_0x4876c7[_0x0605('0x45')]['id']}})[_0x0605('0x25')](handleEntityNotFound(_0x2687a8,null))[_0x0605('0x25')](removeEntity(_0x2687a8,null))['catch'](handleError(_0x2687a8,null));};
\ No newline at end of file