Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / faxApplication / faxApplication.controller.js
index 904d40a..3812f05 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb3fe=['papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/license/util','status','end','count','offset','limit','set','json','apply','reject','save','then','destroy','sendStatus','error','stack','name','index','FaxApplication','rawAttributes','fieldName','type','key','model','map','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','where','pick','filter','VIRTUAL','merge','includeAll','include','findAll','rows','catch','params','options','create','body','update','find','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','to-csv','squel','jsforce','desk.js','querystring'];(function(_0x277cbd,_0x2cd973){var _0x2231ec=function(_0x2a19a8){while(--_0x2a19a8){_0x277cbd['push'](_0x277cbd['shift']());}};_0x2231ec(++_0x2cd973);}(_0xb3fe,0x84));var _0xeb3f=function(_0x37f1c5,_0x24bb5a){_0x37f1c5=_0x37f1c5-0x0;var _0x4488f6=_0xb3fe[_0x37f1c5];return _0x4488f6;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0xeb3f('0x0'));var zipdir=require(_0xeb3f('0x1'));var jsonpatch=require(_0xeb3f('0x2'));var rp=require(_0xeb3f('0x3'));var moment=require(_0xeb3f('0x4'));var BPromise=require(_0xeb3f('0x5'));var Mustache=require(_0xeb3f('0x6'));var util=require(_0xeb3f('0x7'));var path=require(_0xeb3f('0x8'));var sox=require('sox');var csv=require(_0xeb3f('0x9'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require(_0xeb3f('0xa'));var crypto=require('crypto');var jsforce=require(_0xeb3f('0xb'));var deskjs=require(_0xeb3f('0xc'));var toCsv=require(_0xeb3f('0x9'));var querystring=require(_0xeb3f('0xd'));var Papa=require(_0xeb3f('0xe'));var Redis=require(_0xeb3f('0xf'));var authService=require(_0xeb3f('0x10'));var qs=require(_0xeb3f('0x11'));var as=require(_0xeb3f('0x12'));var hardwareService=require(_0xeb3f('0x13'));var logger=require(_0xeb3f('0x14'))(_0xeb3f('0x15'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0xeb3f('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x51f654,_0x5eaf82){_0x5eaf82=_0x5eaf82||0xcc;return function(_0x41bb06){if(_0x41bb06){return _0x51f654['sendStatus'](_0x5eaf82);}return _0x51f654[_0xeb3f('0x17')](_0x5eaf82)[_0xeb3f('0x18')]();};}function respondWithResult(_0x2a2cc4,_0xe12570){_0xe12570=_0xe12570||0xc8;return function(_0x2bf6ae){if(_0x2bf6ae){return _0x2a2cc4[_0xeb3f('0x17')](_0xe12570)['json'](_0x2bf6ae);}};}function respondWithFilteredResult(_0x42a7e0,_0x2895d9){return function(_0x5bf8c8){if(_0x5bf8c8){var _0x4d434d=_0x5bf8c8[_0xeb3f('0x19')],_0x27138a=_0x2895d9[_0xeb3f('0x1a')],_0x4f0582=_0x2895d9['offset']+_0x2895d9[_0xeb3f('0x1b')],_0x3afbde;if(_0x4f0582>=_0x4d434d){_0x4f0582=_0x4d434d;_0x3afbde=0xc8;}else{_0x3afbde=0xce;}_0x42a7e0['status'](_0x3afbde);return _0x42a7e0[_0xeb3f('0x1c')]('Content-Range',_0x27138a+'-'+_0x4f0582+'/'+_0x4d434d)[_0xeb3f('0x1d')](_0x5bf8c8);}return null;};}function patchUpdates(_0x580164){return function(_0x4ba50b){try{jsonpatch[_0xeb3f('0x1e')](_0x4ba50b,_0x580164,!![]);}catch(_0x1a1519){return BPromise[_0xeb3f('0x1f')](_0x1a1519);}return _0x4ba50b[_0xeb3f('0x20')]();};}function saveUpdates(_0x5093d3,_0x5c4a73){return function(_0x572a84){if(_0x572a84){return _0x572a84['update'](_0x5093d3)[_0xeb3f('0x21')](function(_0x3f4931){return _0x3f4931;});}return null;};}function removeEntity(_0x317dcf,_0x5602a6){return function(_0x11bbce){if(_0x11bbce){return _0x11bbce[_0xeb3f('0x22')]()[_0xeb3f('0x21')](function(){_0x317dcf[_0xeb3f('0x17')](0xcc)[_0xeb3f('0x18')]();});}};}function handleEntityNotFound(_0x485c8e,_0x1d2b6f){return function(_0x1d9b61){if(!_0x1d9b61){_0x485c8e[_0xeb3f('0x23')](0x194);}return _0x1d9b61;};}function handleError(_0xa138ec,_0x4c543d){_0x4c543d=_0x4c543d||0x1f4;return function(_0x5b8fc1){logger[_0xeb3f('0x24')](_0x5b8fc1[_0xeb3f('0x25')]);if(_0x5b8fc1['name']){delete _0x5b8fc1[_0xeb3f('0x26')];}_0xa138ec[_0xeb3f('0x17')](_0x4c543d)['send'](_0x5b8fc1);};}exports[_0xeb3f('0x27')]=function(_0x183fe4,_0x3f177c){var _0x973837={},_0x1f8a30={},_0x4df96b={'count':0x0,'rows':[]};var _0x3b2853=_['map'](db[_0xeb3f('0x28')][_0xeb3f('0x29')],function(_0x2a2e40){return{'name':_0x2a2e40[_0xeb3f('0x2a')],'type':_0x2a2e40[_0xeb3f('0x2b')][_0xeb3f('0x2c')]};});_0x1f8a30[_0xeb3f('0x2d')]=_[_0xeb3f('0x2e')](_0x3b2853,_0xeb3f('0x26'));_0x1f8a30[_0xeb3f('0x2f')]=_[_0xeb3f('0x30')](_0x183fe4['query']);_0x1f8a30[_0xeb3f('0x31')]=_[_0xeb3f('0x32')](_0x1f8a30[_0xeb3f('0x2d')],_0x1f8a30['query']);_0x973837[_0xeb3f('0x33')]=_['intersection'](_0x1f8a30[_0xeb3f('0x2d')],qs[_0xeb3f('0x34')](_0x183fe4[_0xeb3f('0x2f')]['fields']));_0x973837[_0xeb3f('0x33')]=_0x973837['attributes'][_0xeb3f('0x35')]?_0x973837[_0xeb3f('0x33')]:_0x1f8a30[_0xeb3f('0x2d')];if(!_0x183fe4[_0xeb3f('0x2f')][_0xeb3f('0x36')](_0xeb3f('0x37'))){_0x973837['limit']=qs[_0xeb3f('0x1b')](_0x183fe4[_0xeb3f('0x2f')][_0xeb3f('0x1b')]);_0x973837['offset']=qs[_0xeb3f('0x1a')](_0x183fe4[_0xeb3f('0x2f')][_0xeb3f('0x1a')]);}_0x973837[_0xeb3f('0x38')]=qs['sort'](_0x183fe4[_0xeb3f('0x2f')]['sort']);_0x973837[_0xeb3f('0x39')]=qs[_0xeb3f('0x31')](_[_0xeb3f('0x3a')](_0x183fe4['query'],_0x1f8a30['filters']),_0x3b2853);if(_0x183fe4[_0xeb3f('0x2f')][_0xeb3f('0x3b')]){_0x973837[_0xeb3f('0x39')]=_['merge'](_0x973837[_0xeb3f('0x39')],{'$or':_[_0xeb3f('0x2e')](_0x3b2853,function(_0x3a8b93){if(_0x3a8b93[_0xeb3f('0x2b')]!==_0xeb3f('0x3c')){var _0x2c1e97={};_0x2c1e97[_0x3a8b93[_0xeb3f('0x26')]]={'$like':'%'+_0x183fe4[_0xeb3f('0x2f')][_0xeb3f('0x3b')]+'%'};return _0x2c1e97;}})});}_0x973837=_[_0xeb3f('0x3d')]({},_0x973837,_0x183fe4['options']);var _0x136981={'where':_0x973837[_0xeb3f('0x39')]};return db[_0xeb3f('0x28')][_0xeb3f('0x19')](_0x136981)[_0xeb3f('0x21')](function(_0x195228){_0x4df96b[_0xeb3f('0x19')]=_0x195228;if(_0x183fe4[_0xeb3f('0x2f')][_0xeb3f('0x3e')]){_0x973837[_0xeb3f('0x3f')]=[{'all':!![]}];}return db[_0xeb3f('0x28')][_0xeb3f('0x40')](_0x973837);})[_0xeb3f('0x21')](function(_0x33a2fc){_0x4df96b[_0xeb3f('0x41')]=_0x33a2fc;return _0x4df96b;})[_0xeb3f('0x21')](respondWithFilteredResult(_0x3f177c,_0x973837))[_0xeb3f('0x42')](handleError(_0x3f177c,null));};exports['show']=function(_0x3690c5,_0x549015){var _0x30d7d2={'raw':!![],'where':{'id':_0x3690c5[_0xeb3f('0x43')]['id']}},_0x27c4b0={};_0x27c4b0[_0xeb3f('0x2d')]=_[_0xeb3f('0x30')](db[_0xeb3f('0x28')][_0xeb3f('0x29')]);_0x27c4b0[_0xeb3f('0x2f')]=_['keys'](_0x3690c5[_0xeb3f('0x2f')]);_0x27c4b0[_0xeb3f('0x31')]=_['intersection'](_0x27c4b0[_0xeb3f('0x2d')],_0x27c4b0[_0xeb3f('0x2f')]);_0x30d7d2[_0xeb3f('0x33')]=_['intersection'](_0x27c4b0[_0xeb3f('0x2d')],qs[_0xeb3f('0x34')](_0x3690c5['query'][_0xeb3f('0x34')]));_0x30d7d2['attributes']=_0x30d7d2['attributes'][_0xeb3f('0x35')]?_0x30d7d2[_0xeb3f('0x33')]:_0x27c4b0['model'];if(_0x3690c5['query'][_0xeb3f('0x3e')]){_0x30d7d2['include']=[{'all':!![]}];}_0x30d7d2=_[_0xeb3f('0x3d')]({},_0x30d7d2,_0x3690c5[_0xeb3f('0x44')]);return db['FaxApplication']['find'](_0x30d7d2)['then'](handleEntityNotFound(_0x549015,null))[_0xeb3f('0x21')](respondWithResult(_0x549015,null))[_0xeb3f('0x42')](handleError(_0x549015,null));};exports[_0xeb3f('0x45')]=function(_0x4a0846,_0x537bae){return db[_0xeb3f('0x28')][_0xeb3f('0x45')](_0x4a0846[_0xeb3f('0x46')],{})['then'](respondWithResult(_0x537bae,0xc9))['catch'](handleError(_0x537bae,null));};exports[_0xeb3f('0x47')]=function(_0x3faacd,_0x3b24bf){if(_0x3faacd[_0xeb3f('0x46')]['id']){delete _0x3faacd[_0xeb3f('0x46')]['id'];}return db[_0xeb3f('0x28')][_0xeb3f('0x48')]({'where':{'id':_0x3faacd[_0xeb3f('0x43')]['id']}})[_0xeb3f('0x21')](handleEntityNotFound(_0x3b24bf,null))[_0xeb3f('0x21')](saveUpdates(_0x3faacd[_0xeb3f('0x46')],null))['then'](respondWithResult(_0x3b24bf,null))[_0xeb3f('0x42')](handleError(_0x3b24bf,null));};exports[_0xeb3f('0x22')]=function(_0x482edc,_0x527d64){return db[_0xeb3f('0x28')][_0xeb3f('0x48')]({'where':{'id':_0x482edc[_0xeb3f('0x43')]['id']}})['then'](handleEntityNotFound(_0x527d64,null))[_0xeb3f('0x21')](removeEntity(_0x527d64,null))['catch'](handleError(_0x527d64,null));};
\ No newline at end of file
+var _0xfd99=['keys','filters','intersection','model','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','type','VIRTUAL','merge','options','include','FaxApplication','findAll','catch','includeAll','find','create','body','params','html-pdf','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','sox','to-csv','ejs','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../config/license/hardware','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','count','offset','limit','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','send','map','rawAttributes','fieldName','key','query'];(function(_0x2d7546,_0x4dd557){var _0x4ad2aa=function(_0x2d6d25){while(--_0x2d6d25){_0x2d7546['push'](_0x2d7546['shift']());}};_0x4ad2aa(++_0x4dd557);}(_0xfd99,0xaf));var _0x9fd9=function(_0x1a23d5,_0x314e41){_0x1a23d5=_0x1a23d5-0x0;var _0x925156=_0xfd99[_0x1a23d5];return _0x925156;};'use strict';var pdf=require(_0x9fd9('0x0'));var emlformat=require('eml-format');var rimraf=require(_0x9fd9('0x1'));var zipdir=require(_0x9fd9('0x2'));var jsonpatch=require(_0x9fd9('0x3'));var rp=require('request-promise');var moment=require(_0x9fd9('0x4'));var BPromise=require(_0x9fd9('0x5'));var Mustache=require(_0x9fd9('0x6'));var util=require(_0x9fd9('0x7'));var path=require('path');var sox=require(_0x9fd9('0x8'));var csv=require(_0x9fd9('0x9'));var ejs=require(_0x9fd9('0xa'));var fs=require('fs');var _=require(_0x9fd9('0xb'));var squel=require(_0x9fd9('0xc'));var crypto=require('crypto');var jsforce=require(_0x9fd9('0xd'));var deskjs=require(_0x9fd9('0xe'));var toCsv=require(_0x9fd9('0x9'));var querystring=require(_0x9fd9('0xf'));var Papa=require(_0x9fd9('0x10'));var Redis=require(_0x9fd9('0x11'));var authService=require('../../components/auth/service');var qs=require(_0x9fd9('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x9fd9('0x13'));var logger=require('../../config/logger')('api');var utils=require(_0x9fd9('0x14'));var config=require(_0x9fd9('0x15'));var licenseUtil=require(_0x9fd9('0x16'));var db=require(_0x9fd9('0x17'))['db'];function respondWithStatusCode(_0x1b0495,_0xd4db8f){_0xd4db8f=_0xd4db8f||0xcc;return function(_0x3dacee){if(_0x3dacee){return _0x1b0495[_0x9fd9('0x18')](_0xd4db8f);}return _0x1b0495[_0x9fd9('0x19')](_0xd4db8f)[_0x9fd9('0x1a')]();};}function respondWithResult(_0x48bfc0,_0x53ccc9){_0x53ccc9=_0x53ccc9||0xc8;return function(_0x3f8a52){if(_0x3f8a52){return _0x48bfc0[_0x9fd9('0x19')](_0x53ccc9)['json'](_0x3f8a52);}};}function respondWithFilteredResult(_0xcb5f25,_0x3c2d73){return function(_0xfd119){if(_0xfd119){var _0x4e1f32=_0xfd119[_0x9fd9('0x1b')],_0x17a0f3=_0x3c2d73[_0x9fd9('0x1c')],_0x11411f=_0x3c2d73[_0x9fd9('0x1c')]+_0x3c2d73[_0x9fd9('0x1d')],_0x370524;if(_0x11411f>=_0x4e1f32){_0x11411f=_0x4e1f32;_0x370524=0xc8;}else{_0x370524=0xce;}_0xcb5f25[_0x9fd9('0x19')](_0x370524);return _0xcb5f25[_0x9fd9('0x1e')](_0x9fd9('0x1f'),_0x17a0f3+'-'+_0x11411f+'/'+_0x4e1f32)['json'](_0xfd119);}return null;};}function patchUpdates(_0xdf5f8a){return function(_0x20e0a5){try{jsonpatch[_0x9fd9('0x20')](_0x20e0a5,_0xdf5f8a,!![]);}catch(_0x5d62f9){return BPromise[_0x9fd9('0x21')](_0x5d62f9);}return _0x20e0a5[_0x9fd9('0x22')]();};}function saveUpdates(_0x56499a,_0x3f8797){return function(_0x39c897){if(_0x39c897){return _0x39c897[_0x9fd9('0x23')](_0x56499a)[_0x9fd9('0x24')](function(_0x56f848){return _0x56f848;});}return null;};}function removeEntity(_0xb240f4,_0x54efd0){return function(_0x75da3d){if(_0x75da3d){return _0x75da3d[_0x9fd9('0x25')]()[_0x9fd9('0x24')](function(){_0xb240f4[_0x9fd9('0x19')](0xcc)[_0x9fd9('0x1a')]();});}};}function handleEntityNotFound(_0x3d44dd,_0x136ba8){return function(_0x519989){if(!_0x519989){_0x3d44dd['sendStatus'](0x194);}return _0x519989;};}function handleError(_0x3e588b,_0x5a7132){_0x5a7132=_0x5a7132||0x1f4;return function(_0xeff99){logger[_0x9fd9('0x26')](_0xeff99[_0x9fd9('0x27')]);if(_0xeff99[_0x9fd9('0x28')]){delete _0xeff99[_0x9fd9('0x28')];}_0x3e588b['status'](_0x5a7132)[_0x9fd9('0x29')](_0xeff99);};}exports['index']=function(_0x79e826,_0x5c83bc){var _0x69e87={},_0x409070={},_0x56c5c9={'count':0x0,'rows':[]};var _0xd747f3=_[_0x9fd9('0x2a')](db['FaxApplication'][_0x9fd9('0x2b')],function(_0x2b07a9){return{'name':_0x2b07a9[_0x9fd9('0x2c')],'type':_0x2b07a9['type'][_0x9fd9('0x2d')]};});_0x409070['model']=_[_0x9fd9('0x2a')](_0xd747f3,_0x9fd9('0x28'));_0x409070[_0x9fd9('0x2e')]=_[_0x9fd9('0x2f')](_0x79e826['query']);_0x409070[_0x9fd9('0x30')]=_[_0x9fd9('0x31')](_0x409070[_0x9fd9('0x32')],_0x409070['query']);_0x69e87['attributes']=_[_0x9fd9('0x31')](_0x409070[_0x9fd9('0x32')],qs['fields'](_0x79e826['query'][_0x9fd9('0x33')]));_0x69e87['attributes']=_0x69e87[_0x9fd9('0x34')][_0x9fd9('0x35')]?_0x69e87[_0x9fd9('0x34')]:_0x409070[_0x9fd9('0x32')];if(!_0x79e826[_0x9fd9('0x2e')][_0x9fd9('0x36')](_0x9fd9('0x37'))){_0x69e87[_0x9fd9('0x1d')]=qs[_0x9fd9('0x1d')](_0x79e826['query']['limit']);_0x69e87[_0x9fd9('0x1c')]=qs[_0x9fd9('0x1c')](_0x79e826[_0x9fd9('0x2e')][_0x9fd9('0x1c')]);}_0x69e87[_0x9fd9('0x38')]=qs[_0x9fd9('0x39')](_0x79e826['query'][_0x9fd9('0x39')]);_0x69e87[_0x9fd9('0x3a')]=qs[_0x9fd9('0x30')](_[_0x9fd9('0x3b')](_0x79e826[_0x9fd9('0x2e')],_0x409070['filters']),_0xd747f3);if(_0x79e826['query'][_0x9fd9('0x3c')]){_0x69e87[_0x9fd9('0x3a')]=_['merge'](_0x69e87[_0x9fd9('0x3a')],{'$or':_[_0x9fd9('0x2a')](_0xd747f3,function(_0x230a58){if(_0x230a58[_0x9fd9('0x3d')]!==_0x9fd9('0x3e')){var _0x130adc={};_0x130adc[_0x230a58[_0x9fd9('0x28')]]={'$like':'%'+_0x79e826['query'][_0x9fd9('0x3c')]+'%'};return _0x130adc;}})});}_0x69e87=_[_0x9fd9('0x3f')]({},_0x69e87,_0x79e826[_0x9fd9('0x40')]);var _0x5c8600={'where':_0x69e87['where']};return db['FaxApplication']['count'](_0x5c8600)[_0x9fd9('0x24')](function(_0xa01924){_0x56c5c9[_0x9fd9('0x1b')]=_0xa01924;if(_0x79e826[_0x9fd9('0x2e')]['includeAll']){_0x69e87[_0x9fd9('0x41')]=[{'all':!![]}];}return db[_0x9fd9('0x42')][_0x9fd9('0x43')](_0x69e87);})[_0x9fd9('0x24')](function(_0x43e0d3){_0x56c5c9['rows']=_0x43e0d3;return _0x56c5c9;})[_0x9fd9('0x24')](respondWithFilteredResult(_0x5c83bc,_0x69e87))[_0x9fd9('0x44')](handleError(_0x5c83bc,null));};exports['show']=function(_0x294d7b,_0xd48382){var _0x3248ee={'raw':!![],'where':{'id':_0x294d7b['params']['id']}},_0x2f44c9={};_0x2f44c9[_0x9fd9('0x32')]=_['keys'](db[_0x9fd9('0x42')][_0x9fd9('0x2b')]);_0x2f44c9[_0x9fd9('0x2e')]=_[_0x9fd9('0x2f')](_0x294d7b[_0x9fd9('0x2e')]);_0x2f44c9[_0x9fd9('0x30')]=_[_0x9fd9('0x31')](_0x2f44c9[_0x9fd9('0x32')],_0x2f44c9[_0x9fd9('0x2e')]);_0x3248ee['attributes']=_[_0x9fd9('0x31')](_0x2f44c9[_0x9fd9('0x32')],qs[_0x9fd9('0x33')](_0x294d7b[_0x9fd9('0x2e')][_0x9fd9('0x33')]));_0x3248ee[_0x9fd9('0x34')]=_0x3248ee[_0x9fd9('0x34')][_0x9fd9('0x35')]?_0x3248ee[_0x9fd9('0x34')]:_0x2f44c9['model'];if(_0x294d7b[_0x9fd9('0x2e')][_0x9fd9('0x45')]){_0x3248ee[_0x9fd9('0x41')]=[{'all':!![]}];}_0x3248ee=_[_0x9fd9('0x3f')]({},_0x3248ee,_0x294d7b[_0x9fd9('0x40')]);return db[_0x9fd9('0x42')][_0x9fd9('0x46')](_0x3248ee)[_0x9fd9('0x24')](handleEntityNotFound(_0xd48382,null))[_0x9fd9('0x24')](respondWithResult(_0xd48382,null))[_0x9fd9('0x44')](handleError(_0xd48382,null));};exports['create']=function(_0x48c2f2,_0x2dfa03){return db[_0x9fd9('0x42')][_0x9fd9('0x47')](_0x48c2f2[_0x9fd9('0x48')],{})[_0x9fd9('0x24')](respondWithResult(_0x2dfa03,0xc9))[_0x9fd9('0x44')](handleError(_0x2dfa03,null));};exports[_0x9fd9('0x23')]=function(_0xd005fb,_0x9d6619){if(_0xd005fb[_0x9fd9('0x48')]['id']){delete _0xd005fb[_0x9fd9('0x48')]['id'];}return db[_0x9fd9('0x42')][_0x9fd9('0x46')]({'where':{'id':_0xd005fb[_0x9fd9('0x49')]['id']}})[_0x9fd9('0x24')](handleEntityNotFound(_0x9d6619,null))['then'](saveUpdates(_0xd005fb[_0x9fd9('0x48')],null))[_0x9fd9('0x24')](respondWithResult(_0x9d6619,null))[_0x9fd9('0x44')](handleError(_0x9d6619,null));};exports[_0x9fd9('0x25')]=function(_0x2efce4,_0xbf9d97){return db[_0x9fd9('0x42')][_0x9fd9('0x46')]({'where':{'id':_0x2efce4[_0x9fd9('0x49')]['id']}})[_0x9fd9('0x24')](handleEntityNotFound(_0xbf9d97,null))['then'](removeEntity(_0xbf9d97,null))[_0x9fd9('0x44')](handleError(_0xbf9d97,null));};
\ No newline at end of file