Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.controller.js
index fd4882c..b3e6fc3 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xab42=['model','query','attributes','intersection','fields','length','order','sort','where','pick','VIRTUAL','filter','merge','options','count','includeAll','include','findAll','catch','show','params','keys','find','create','body','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','ejs','lodash','crypto','desk.js','papaparse','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','offset','limit','apply','reject','save','then','destroy','error','name','send','index','map','FreshsalesField','rawAttributes','fieldName','type','key','filters'];(function(_0x280f4a,_0x2ed8d6){var _0x1bb157=function(_0x37de94){while(--_0x37de94){_0x280f4a['push'](_0x280f4a['shift']());}};_0x1bb157(++_0x2ed8d6);}(_0xab42,0x16d));var _0x2ab4=function(_0x34d60c,_0x649f67){_0x34d60c=_0x34d60c-0x0;var _0x239816=_0xab42[_0x34d60c];return _0x239816;};'use strict';var pdf=require(_0x2ab4('0x0'));var emlformat=require(_0x2ab4('0x1'));var rimraf=require(_0x2ab4('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x2ab4('0x3'));var rp=require(_0x2ab4('0x4'));var moment=require(_0x2ab4('0x5'));var BPromise=require(_0x2ab4('0x6'));var Mustache=require(_0x2ab4('0x7'));var util=require(_0x2ab4('0x8'));var path=require(_0x2ab4('0x9'));var sox=require(_0x2ab4('0xa'));var csv=require('to-csv');var ejs=require(_0x2ab4('0xb'));var fs=require('fs');var _=require(_0x2ab4('0xc'));var squel=require('squel');var crypto=require(_0x2ab4('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x2ab4('0xe'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x2ab4('0xf'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x2ab4('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x2ab4('0x11'));var logger=require(_0x2ab4('0x12'))('api');var utils=require(_0x2ab4('0x13'));var config=require(_0x2ab4('0x14'));var db=require(_0x2ab4('0x15'))['db'];function respondWithStatusCode(_0x99acc0,_0x4c5d00){_0x4c5d00=_0x4c5d00||0xcc;return function(_0x5d0234){if(_0x5d0234){return _0x99acc0[_0x2ab4('0x16')](_0x4c5d00);}return _0x99acc0[_0x2ab4('0x17')](_0x4c5d00)[_0x2ab4('0x18')]();};}function respondWithResult(_0x5cbc96,_0x395808){_0x395808=_0x395808||0xc8;return function(_0x269dd1){if(_0x269dd1){return _0x5cbc96[_0x2ab4('0x17')](_0x395808)['json'](_0x269dd1);}};}function respondWithFilteredResult(_0x26fd09,_0xcf779a){return function(_0xf27ba4){if(_0xf27ba4){var _0x34e22a=_0xf27ba4['count'],_0x106494=_0xcf779a[_0x2ab4('0x19')],_0x24e0a9=_0xcf779a[_0x2ab4('0x19')]+_0xcf779a[_0x2ab4('0x1a')],_0x5ca189;if(_0x24e0a9>=_0x34e22a){_0x24e0a9=_0x34e22a;_0x5ca189=0xc8;}else{_0x5ca189=0xce;}_0x26fd09[_0x2ab4('0x17')](_0x5ca189);return _0x26fd09['set']('Content-Range',_0x106494+'-'+_0x24e0a9+'/'+_0x34e22a)['json'](_0xf27ba4);}return null;};}function patchUpdates(_0x294e74){return function(_0x4fa784){try{jsonpatch[_0x2ab4('0x1b')](_0x4fa784,_0x294e74,!![]);}catch(_0x4161a2){return BPromise[_0x2ab4('0x1c')](_0x4161a2);}return _0x4fa784[_0x2ab4('0x1d')]();};}function saveUpdates(_0xd4553b,_0x15516f){return function(_0x22a763){if(_0x22a763){return _0x22a763['update'](_0xd4553b)[_0x2ab4('0x1e')](function(_0x4f15f7){return _0x4f15f7;});}return null;};}function removeEntity(_0x2b0c6a,_0x13b94b){return function(_0x158457){if(_0x158457){return _0x158457[_0x2ab4('0x1f')]()[_0x2ab4('0x1e')](function(){_0x2b0c6a['status'](0xcc)[_0x2ab4('0x18')]();});}};}function handleEntityNotFound(_0x22d96c,_0x5d04e1){return function(_0x4d86e0){if(!_0x4d86e0){_0x22d96c[_0x2ab4('0x16')](0x194);}return _0x4d86e0;};}function handleError(_0x53c0d3,_0x5558c6){_0x5558c6=_0x5558c6||0x1f4;return function(_0x4fde3b){logger[_0x2ab4('0x20')](_0x4fde3b['stack']);if(_0x4fde3b[_0x2ab4('0x21')]){delete _0x4fde3b['name'];}_0x53c0d3[_0x2ab4('0x17')](_0x5558c6)[_0x2ab4('0x22')](_0x4fde3b);};}exports[_0x2ab4('0x23')]=function(_0x1bafff,_0x159152){var _0x65dc8d={},_0x4a9366={},_0x404797={'count':0x0,'rows':[]};var _0x4d7c84=_[_0x2ab4('0x24')](db[_0x2ab4('0x25')][_0x2ab4('0x26')],function(_0x22d719){return{'name':_0x22d719[_0x2ab4('0x27')],'type':_0x22d719[_0x2ab4('0x28')][_0x2ab4('0x29')]};});_0x4a9366['model']=_['map'](_0x4d7c84,_0x2ab4('0x21'));_0x4a9366['query']=_['keys'](_0x1bafff['query']);_0x4a9366[_0x2ab4('0x2a')]=_['intersection'](_0x4a9366[_0x2ab4('0x2b')],_0x4a9366[_0x2ab4('0x2c')]);_0x65dc8d[_0x2ab4('0x2d')]=_[_0x2ab4('0x2e')](_0x4a9366[_0x2ab4('0x2b')],qs[_0x2ab4('0x2f')](_0x1bafff[_0x2ab4('0x2c')]['fields']));_0x65dc8d[_0x2ab4('0x2d')]=_0x65dc8d[_0x2ab4('0x2d')][_0x2ab4('0x30')]?_0x65dc8d[_0x2ab4('0x2d')]:_0x4a9366[_0x2ab4('0x2b')];if(!_0x1bafff[_0x2ab4('0x2c')]['hasOwnProperty']('nolimit')){_0x65dc8d[_0x2ab4('0x1a')]=qs[_0x2ab4('0x1a')](_0x1bafff['query'][_0x2ab4('0x1a')]);_0x65dc8d[_0x2ab4('0x19')]=qs[_0x2ab4('0x19')](_0x1bafff[_0x2ab4('0x2c')]['offset']);}_0x65dc8d[_0x2ab4('0x31')]=qs[_0x2ab4('0x32')](_0x1bafff['query'][_0x2ab4('0x32')]);_0x65dc8d[_0x2ab4('0x33')]=qs[_0x2ab4('0x2a')](_[_0x2ab4('0x34')](_0x1bafff['query'],_0x4a9366[_0x2ab4('0x2a')]),_0x4d7c84);if(_0x1bafff[_0x2ab4('0x2c')]['filter']){_0x65dc8d[_0x2ab4('0x33')]=_['merge'](_0x65dc8d[_0x2ab4('0x33')],{'$or':_[_0x2ab4('0x24')](_0x4d7c84,function(_0x2f183a){if(_0x2f183a[_0x2ab4('0x28')]!==_0x2ab4('0x35')){var _0x188a60={};_0x188a60[_0x2f183a[_0x2ab4('0x21')]]={'$like':'%'+_0x1bafff[_0x2ab4('0x2c')][_0x2ab4('0x36')]+'%'};return _0x188a60;}})});}_0x65dc8d=_[_0x2ab4('0x37')]({},_0x65dc8d,_0x1bafff[_0x2ab4('0x38')]);var _0xc720f1={'where':_0x65dc8d[_0x2ab4('0x33')]};return db[_0x2ab4('0x25')][_0x2ab4('0x39')](_0xc720f1)[_0x2ab4('0x1e')](function(_0x526fcc){_0x404797['count']=_0x526fcc;if(_0x1bafff['query'][_0x2ab4('0x3a')]){_0x65dc8d[_0x2ab4('0x3b')]=[{'all':!![]}];}return db[_0x2ab4('0x25')][_0x2ab4('0x3c')](_0x65dc8d);})[_0x2ab4('0x1e')](function(_0x14005b){_0x404797['rows']=_0x14005b;return _0x404797;})[_0x2ab4('0x1e')](respondWithFilteredResult(_0x159152,_0x65dc8d))[_0x2ab4('0x3d')](handleError(_0x159152,null));};exports[_0x2ab4('0x3e')]=function(_0x1f3286,_0x415cf4){var _0xa7b811={'raw':!![],'where':{'id':_0x1f3286[_0x2ab4('0x3f')]['id']}},_0x203b80={};_0x203b80[_0x2ab4('0x2b')]=_[_0x2ab4('0x40')](db['FreshsalesField'][_0x2ab4('0x26')]);_0x203b80['query']=_[_0x2ab4('0x40')](_0x1f3286[_0x2ab4('0x2c')]);_0x203b80[_0x2ab4('0x2a')]=_[_0x2ab4('0x2e')](_0x203b80['model'],_0x203b80[_0x2ab4('0x2c')]);_0xa7b811[_0x2ab4('0x2d')]=_['intersection'](_0x203b80[_0x2ab4('0x2b')],qs['fields'](_0x1f3286['query']['fields']));_0xa7b811['attributes']=_0xa7b811[_0x2ab4('0x2d')][_0x2ab4('0x30')]?_0xa7b811['attributes']:_0x203b80[_0x2ab4('0x2b')];if(_0x1f3286[_0x2ab4('0x2c')][_0x2ab4('0x3a')]){_0xa7b811[_0x2ab4('0x3b')]=[{'all':!![]}];}_0xa7b811=_[_0x2ab4('0x37')]({},_0xa7b811,_0x1f3286[_0x2ab4('0x38')]);return db[_0x2ab4('0x25')][_0x2ab4('0x41')](_0xa7b811)['then'](handleEntityNotFound(_0x415cf4,null))['then'](respondWithResult(_0x415cf4,null))[_0x2ab4('0x3d')](handleError(_0x415cf4,null));};exports[_0x2ab4('0x42')]=function(_0x3331e5,_0x222a24){return db[_0x2ab4('0x25')][_0x2ab4('0x42')](_0x3331e5['body'],{})[_0x2ab4('0x1e')](respondWithResult(_0x222a24,0xc9))['catch'](handleError(_0x222a24,null));};exports['update']=function(_0x222140,_0x302095){if(_0x222140['body']['id']){delete _0x222140[_0x2ab4('0x43')]['id'];}return db[_0x2ab4('0x25')]['find']({'where':{'id':_0x222140['params']['id']}})['then'](handleEntityNotFound(_0x302095,null))['then'](saveUpdates(_0x222140[_0x2ab4('0x43')],null))[_0x2ab4('0x1e')](respondWithResult(_0x302095,null))[_0x2ab4('0x3d')](handleError(_0x302095,null));};exports[_0x2ab4('0x1f')]=function(_0xdc3c45,_0x1755b9){return db[_0x2ab4('0x25')][_0x2ab4('0x41')]({'where':{'id':_0xdc3c45[_0x2ab4('0x3f')]['id']}})['then'](handleEntityNotFound(_0x1755b9,null))[_0x2ab4('0x1e')](removeEntity(_0x1755b9,null))[_0x2ab4('0x3d')](handleError(_0x1755b9,null));};
\ No newline at end of file
+var _0xe3b3=['../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','undefined','count','limit','apply','reject','save','then','destroy','error','stack','name','send','index','FreshsalesField','rawAttributes','type','map','query','keys','filters','model','attributes','fields','length','nolimit','sort','where','pick','filter','merge','options','includeAll','include','rows','catch','show','intersection','find','create','body','params','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service'];(function(_0x507d62,_0x1f83cb){var _0xed22f2=function(_0x183714){while(--_0x183714){_0x507d62['push'](_0x507d62['shift']());}};_0xed22f2(++_0x1f83cb);}(_0xe3b3,0x110));var _0x3e3b=function(_0x10ec26,_0x2d1ab3){_0x10ec26=_0x10ec26-0x0;var _0x5b5775=_0xe3b3[_0x10ec26];return _0x5b5775;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x3e3b('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0x3e3b('0x1'));var rp=require(_0x3e3b('0x2'));var moment=require(_0x3e3b('0x3'));var BPromise=require(_0x3e3b('0x4'));var Mustache=require(_0x3e3b('0x5'));var util=require(_0x3e3b('0x6'));var path=require(_0x3e3b('0x7'));var sox=require(_0x3e3b('0x8'));var csv=require(_0x3e3b('0x9'));var ejs=require(_0x3e3b('0xa'));var fs=require('fs');var fs_extra=require(_0x3e3b('0xb'));var _=require(_0x3e3b('0xc'));var squel=require(_0x3e3b('0xd'));var crypto=require(_0x3e3b('0xe'));var jsforce=require(_0x3e3b('0xf'));var deskjs=require(_0x3e3b('0x10'));var toCsv=require(_0x3e3b('0x9'));var querystring=require(_0x3e3b('0x11'));var Papa=require(_0x3e3b('0x12'));var Redis=require('ioredis');var authService=require(_0x3e3b('0x13'));var qs=require(_0x3e3b('0x14'));var as=require(_0x3e3b('0x15'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x3e3b('0x16'))(_0x3e3b('0x17'));var utils=require(_0x3e3b('0x18'));var config=require(_0x3e3b('0x19'));var licenseUtil=require(_0x3e3b('0x1a'));var db=require(_0x3e3b('0x1b'))['db'];function respondWithStatusCode(_0x24481e,_0x35d4a1){_0x35d4a1=_0x35d4a1||0xcc;return function(_0xa25fb9){if(_0xa25fb9){return _0x24481e[_0x3e3b('0x1c')](_0x35d4a1);}return _0x24481e[_0x3e3b('0x1d')](_0x35d4a1)['end']();};}function respondWithResult(_0x1c35a5,_0x278cd1){_0x278cd1=_0x278cd1||0xc8;return function(_0x3ccbd0){if(_0x3ccbd0){return _0x1c35a5[_0x3e3b('0x1d')](_0x278cd1)[_0x3e3b('0x1e')](_0x3ccbd0);}};}function respondWithFilteredResult(_0x1a7a33,_0x25c043){return function(_0x39d758){if(_0x39d758){var _0xca48ac=typeof _0x25c043[_0x3e3b('0x1f')]===_0x3e3b('0x20')&&typeof _0x25c043['limit']===_0x3e3b('0x20');var _0x51cf37=_0x39d758[_0x3e3b('0x21')];var _0x2fd121=_0xca48ac?0x0:_0x25c043['offset'];var _0x11dd0d=_0xca48ac?_0x39d758[_0x3e3b('0x21')]:_0x25c043[_0x3e3b('0x1f')]+_0x25c043[_0x3e3b('0x22')];var _0x40f483;if(_0x11dd0d>=_0x51cf37){_0x11dd0d=_0x51cf37;_0x40f483=0xc8;}else{_0x40f483=0xce;}_0x1a7a33[_0x3e3b('0x1d')](_0x40f483);return _0x1a7a33['set']('Content-Range',_0x2fd121+'-'+_0x11dd0d+'/'+_0x51cf37)[_0x3e3b('0x1e')](_0x39d758);}return null;};}function patchUpdates(_0x3e0e67){return function(_0x523584){try{jsonpatch[_0x3e3b('0x23')](_0x523584,_0x3e0e67,!![]);}catch(_0x3afc45){return BPromise[_0x3e3b('0x24')](_0x3afc45);}return _0x523584[_0x3e3b('0x25')]();};}function saveUpdates(_0x27aa0d,_0x36e3c0){return function(_0x55f05e){if(_0x55f05e){return _0x55f05e['update'](_0x27aa0d)[_0x3e3b('0x26')](function(_0x1d5a00){return _0x1d5a00;});}return null;};}function removeEntity(_0x2503bc,_0x175ec1){return function(_0x3a1c1d){if(_0x3a1c1d){return _0x3a1c1d[_0x3e3b('0x27')]()['then'](function(){_0x2503bc[_0x3e3b('0x1d')](0xcc)['end']();});}};}function handleEntityNotFound(_0x579492,_0x21f9e7){return function(_0x4fae13){if(!_0x4fae13){_0x579492[_0x3e3b('0x1c')](0x194);}return _0x4fae13;};}function handleError(_0xacf943,_0x13461e){_0x13461e=_0x13461e||0x1f4;return function(_0x276f6c){logger[_0x3e3b('0x28')](_0x276f6c[_0x3e3b('0x29')]);if(_0x276f6c['name']){delete _0x276f6c[_0x3e3b('0x2a')];}_0xacf943['status'](_0x13461e)[_0x3e3b('0x2b')](_0x276f6c);};}exports[_0x3e3b('0x2c')]=function(_0x4d299e,_0x18ab11){var _0x11c341={},_0x5abae3={},_0x3688c5={'count':0x0,'rows':[]};var _0x5e3755=_['map'](db[_0x3e3b('0x2d')][_0x3e3b('0x2e')],function(_0x39e5de){return{'name':_0x39e5de['fieldName'],'type':_0x39e5de[_0x3e3b('0x2f')]['key']};});_0x5abae3['model']=_[_0x3e3b('0x30')](_0x5e3755,'name');_0x5abae3[_0x3e3b('0x31')]=_[_0x3e3b('0x32')](_0x4d299e[_0x3e3b('0x31')]);_0x5abae3[_0x3e3b('0x33')]=_['intersection'](_0x5abae3[_0x3e3b('0x34')],_0x5abae3[_0x3e3b('0x31')]);_0x11c341[_0x3e3b('0x35')]=_['intersection'](_0x5abae3[_0x3e3b('0x34')],qs['fields'](_0x4d299e[_0x3e3b('0x31')][_0x3e3b('0x36')]));_0x11c341[_0x3e3b('0x35')]=_0x11c341['attributes'][_0x3e3b('0x37')]?_0x11c341['attributes']:_0x5abae3[_0x3e3b('0x34')];if(!_0x4d299e[_0x3e3b('0x31')]['hasOwnProperty'](_0x3e3b('0x38'))){_0x11c341[_0x3e3b('0x22')]=qs[_0x3e3b('0x22')](_0x4d299e[_0x3e3b('0x31')][_0x3e3b('0x22')]);_0x11c341[_0x3e3b('0x1f')]=qs[_0x3e3b('0x1f')](_0x4d299e['query'][_0x3e3b('0x1f')]);}_0x11c341['order']=qs['sort'](_0x4d299e[_0x3e3b('0x31')][_0x3e3b('0x39')]);_0x11c341[_0x3e3b('0x3a')]=qs[_0x3e3b('0x33')](_[_0x3e3b('0x3b')](_0x4d299e[_0x3e3b('0x31')],_0x5abae3[_0x3e3b('0x33')]),_0x5e3755);if(_0x4d299e[_0x3e3b('0x31')][_0x3e3b('0x3c')]){_0x11c341[_0x3e3b('0x3a')]=_[_0x3e3b('0x3d')](_0x11c341[_0x3e3b('0x3a')],{'$or':_[_0x3e3b('0x30')](_0x5e3755,function(_0x215205){if(_0x215205[_0x3e3b('0x2f')]!=='VIRTUAL'){var _0x3b808b={};_0x3b808b[_0x215205['name']]={'$like':'%'+_0x4d299e[_0x3e3b('0x31')][_0x3e3b('0x3c')]+'%'};return _0x3b808b;}})});}_0x11c341=_[_0x3e3b('0x3d')]({},_0x11c341,_0x4d299e[_0x3e3b('0x3e')]);var _0x2c05b9={'where':_0x11c341[_0x3e3b('0x3a')]};return db[_0x3e3b('0x2d')][_0x3e3b('0x21')](_0x2c05b9)[_0x3e3b('0x26')](function(_0xeff81b){_0x3688c5['count']=_0xeff81b;if(_0x4d299e[_0x3e3b('0x31')][_0x3e3b('0x3f')]){_0x11c341[_0x3e3b('0x40')]=[{'all':!![]}];}return db[_0x3e3b('0x2d')]['findAll'](_0x11c341);})[_0x3e3b('0x26')](function(_0x4bec71){_0x3688c5[_0x3e3b('0x41')]=_0x4bec71;return _0x3688c5;})[_0x3e3b('0x26')](respondWithFilteredResult(_0x18ab11,_0x11c341))[_0x3e3b('0x42')](handleError(_0x18ab11,null));};exports[_0x3e3b('0x43')]=function(_0x4bee8f,_0x3786cf){var _0x2bc115={'raw':!![],'where':{'id':_0x4bee8f['params']['id']}},_0xb33e6a={};_0xb33e6a[_0x3e3b('0x34')]=_[_0x3e3b('0x32')](db[_0x3e3b('0x2d')]['rawAttributes']);_0xb33e6a[_0x3e3b('0x31')]=_[_0x3e3b('0x32')](_0x4bee8f['query']);_0xb33e6a[_0x3e3b('0x33')]=_[_0x3e3b('0x44')](_0xb33e6a['model'],_0xb33e6a[_0x3e3b('0x31')]);_0x2bc115['attributes']=_[_0x3e3b('0x44')](_0xb33e6a[_0x3e3b('0x34')],qs[_0x3e3b('0x36')](_0x4bee8f[_0x3e3b('0x31')][_0x3e3b('0x36')]));_0x2bc115[_0x3e3b('0x35')]=_0x2bc115[_0x3e3b('0x35')]['length']?_0x2bc115[_0x3e3b('0x35')]:_0xb33e6a[_0x3e3b('0x34')];if(_0x4bee8f[_0x3e3b('0x31')]['includeAll']){_0x2bc115[_0x3e3b('0x40')]=[{'all':!![]}];}_0x2bc115=_[_0x3e3b('0x3d')]({},_0x2bc115,_0x4bee8f['options']);return db['FreshsalesField'][_0x3e3b('0x45')](_0x2bc115)[_0x3e3b('0x26')](handleEntityNotFound(_0x3786cf,null))[_0x3e3b('0x26')](respondWithResult(_0x3786cf,null))['catch'](handleError(_0x3786cf,null));};exports[_0x3e3b('0x46')]=function(_0x3895ea,_0x5b572a){return db[_0x3e3b('0x2d')][_0x3e3b('0x46')](_0x3895ea[_0x3e3b('0x47')],{})[_0x3e3b('0x26')](respondWithResult(_0x5b572a,0xc9))['catch'](handleError(_0x5b572a,null));};exports['update']=function(_0x3c51d8,_0x5840ad){if(_0x3c51d8[_0x3e3b('0x47')]['id']){delete _0x3c51d8[_0x3e3b('0x47')]['id'];}return db[_0x3e3b('0x2d')][_0x3e3b('0x45')]({'where':{'id':_0x3c51d8['params']['id']}})[_0x3e3b('0x26')](handleEntityNotFound(_0x5840ad,null))[_0x3e3b('0x26')](saveUpdates(_0x3c51d8[_0x3e3b('0x47')],null))['then'](respondWithResult(_0x5840ad,null))['catch'](handleError(_0x5840ad,null));};exports[_0x3e3b('0x27')]=function(_0x1d1645,_0x17f29f){return db['FreshsalesField']['find']({'where':{'id':_0x1d1645[_0x3e3b('0x48')]['id']}})['then'](handleEntityNotFound(_0x17f29f,null))[_0x3e3b('0x26')](removeEntity(_0x17f29f,null))[_0x3e3b('0x42')](handleError(_0x17f29f,null));};
\ No newline at end of file