Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / api / faxApplication / faxApplication.controller.js
index a1b9152..2a37917 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3a2a=['set','apply','save','update','then','destroy','error','stack','name','send','index','map','FaxApplication','rawAttributes','type','key','model','query','keys','filters','intersection','attributes','fields','hasOwnProperty','nolimit','limit','offset','order','sort','filter','where','merge','VIRTUAL','options','includeAll','include','findAll','catch','show','params','length','find','create','body','rimraf','request-promise','moment','bluebird','mustache','util','path','sox','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','count'];(function(_0x980062,_0x12e0d0){var _0x28b643=function(_0x3e517b){while(--_0x3e517b){_0x980062['push'](_0x980062['shift']());}};_0x28b643(++_0x12e0d0);}(_0x3a2a,0xc0));var _0xa3a2=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x3a2a[_0x19e35c];return _0x3e1fe8;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0xa3a2('0x0'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0xa3a2('0x1'));var moment=require(_0xa3a2('0x2'));var BPromise=require(_0xa3a2('0x3'));var Mustache=require(_0xa3a2('0x4'));var util=require(_0xa3a2('0x5'));var path=require(_0xa3a2('0x6'));var sox=require(_0xa3a2('0x7'));var csv=require('to-csv');var ejs=require(_0xa3a2('0x8'));var fs=require('fs');var _=require(_0xa3a2('0x9'));var squel=require(_0xa3a2('0xa'));var crypto=require(_0xa3a2('0xb'));var jsforce=require(_0xa3a2('0xc'));var deskjs=require(_0xa3a2('0xd'));var toCsv=require('to-csv');var querystring=require(_0xa3a2('0xe'));var Papa=require(_0xa3a2('0xf'));var Redis=require('ioredis');var authService=require(_0xa3a2('0x10'));var qs=require(_0xa3a2('0x11'));var as=require(_0xa3a2('0x12'));var hardwareService=require(_0xa3a2('0x13'));var logger=require(_0xa3a2('0x14'))(_0xa3a2('0x15'));var utils=require(_0xa3a2('0x16'));var config=require(_0xa3a2('0x17'));var licenseUtil=require(_0xa3a2('0x18'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1f2bbf,_0x1ebce4){_0x1ebce4=_0x1ebce4||0xcc;return function(_0x2c1b3e){if(_0x2c1b3e){return _0x1f2bbf[_0xa3a2('0x19')](_0x1ebce4);}return _0x1f2bbf[_0xa3a2('0x1a')](_0x1ebce4)[_0xa3a2('0x1b')]();};}function respondWithResult(_0x845a82,_0x31e708){_0x31e708=_0x31e708||0xc8;return function(_0x574385){if(_0x574385){return _0x845a82[_0xa3a2('0x1a')](_0x31e708)[_0xa3a2('0x1c')](_0x574385);}};}function respondWithFilteredResult(_0x18435e,_0x406572){return function(_0x4a12ad){if(_0x4a12ad){var _0x4936ca=_0x4a12ad[_0xa3a2('0x1d')],_0x412c9d=_0x406572['offset'],_0x510516=_0x406572['offset']+_0x406572['limit'],_0x16a862;if(_0x510516>=_0x4936ca){_0x510516=_0x4936ca;_0x16a862=0xc8;}else{_0x16a862=0xce;}_0x18435e[_0xa3a2('0x1a')](_0x16a862);return _0x18435e[_0xa3a2('0x1e')]('Content-Range',_0x412c9d+'-'+_0x510516+'/'+_0x4936ca)[_0xa3a2('0x1c')](_0x4a12ad);}return null;};}function patchUpdates(_0x42b709){return function(_0xe64440){try{jsonpatch[_0xa3a2('0x1f')](_0xe64440,_0x42b709,!![]);}catch(_0x28eeb2){return BPromise['reject'](_0x28eeb2);}return _0xe64440[_0xa3a2('0x20')]();};}function saveUpdates(_0x1c09dd,_0x3027e8){return function(_0x54b292){if(_0x54b292){return _0x54b292[_0xa3a2('0x21')](_0x1c09dd)[_0xa3a2('0x22')](function(_0x173063){return _0x173063;});}return null;};}function removeEntity(_0x1875db,_0x2ace5c){return function(_0x4f1488){if(_0x4f1488){return _0x4f1488[_0xa3a2('0x23')]()['then'](function(){_0x1875db[_0xa3a2('0x1a')](0xcc)[_0xa3a2('0x1b')]();});}};}function handleEntityNotFound(_0x73e9a9,_0x3d5fb3){return function(_0x2fc7ec){if(!_0x2fc7ec){_0x73e9a9['sendStatus'](0x194);}return _0x2fc7ec;};}function handleError(_0x5bf16e,_0x1161b7){_0x1161b7=_0x1161b7||0x1f4;return function(_0x18e0c1){logger[_0xa3a2('0x24')](_0x18e0c1[_0xa3a2('0x25')]);if(_0x18e0c1[_0xa3a2('0x26')]){delete _0x18e0c1[_0xa3a2('0x26')];}_0x5bf16e[_0xa3a2('0x1a')](_0x1161b7)[_0xa3a2('0x27')](_0x18e0c1);};}exports[_0xa3a2('0x28')]=function(_0x22c637,_0x20f0b8){var _0x163004={},_0x4ececd={},_0x551ab4={'count':0x0,'rows':[]};var _0x31a800=_[_0xa3a2('0x29')](db[_0xa3a2('0x2a')][_0xa3a2('0x2b')],function(_0x4dd5c0){return{'name':_0x4dd5c0['fieldName'],'type':_0x4dd5c0[_0xa3a2('0x2c')][_0xa3a2('0x2d')]};});_0x4ececd[_0xa3a2('0x2e')]=_[_0xa3a2('0x29')](_0x31a800,_0xa3a2('0x26'));_0x4ececd[_0xa3a2('0x2f')]=_[_0xa3a2('0x30')](_0x22c637[_0xa3a2('0x2f')]);_0x4ececd[_0xa3a2('0x31')]=_[_0xa3a2('0x32')](_0x4ececd['model'],_0x4ececd['query']);_0x163004[_0xa3a2('0x33')]=_[_0xa3a2('0x32')](_0x4ececd[_0xa3a2('0x2e')],qs[_0xa3a2('0x34')](_0x22c637[_0xa3a2('0x2f')][_0xa3a2('0x34')]));_0x163004[_0xa3a2('0x33')]=_0x163004[_0xa3a2('0x33')]['length']?_0x163004[_0xa3a2('0x33')]:_0x4ececd[_0xa3a2('0x2e')];if(!_0x22c637[_0xa3a2('0x2f')][_0xa3a2('0x35')](_0xa3a2('0x36'))){_0x163004[_0xa3a2('0x37')]=qs[_0xa3a2('0x37')](_0x22c637[_0xa3a2('0x2f')][_0xa3a2('0x37')]);_0x163004[_0xa3a2('0x38')]=qs['offset'](_0x22c637['query'][_0xa3a2('0x38')]);}_0x163004[_0xa3a2('0x39')]=qs[_0xa3a2('0x3a')](_0x22c637['query'][_0xa3a2('0x3a')]);_0x163004['where']=qs[_0xa3a2('0x31')](_['pick'](_0x22c637[_0xa3a2('0x2f')],_0x4ececd[_0xa3a2('0x31')]),_0x31a800);if(_0x22c637[_0xa3a2('0x2f')][_0xa3a2('0x3b')]){_0x163004[_0xa3a2('0x3c')]=_[_0xa3a2('0x3d')](_0x163004[_0xa3a2('0x3c')],{'$or':_[_0xa3a2('0x29')](_0x31a800,function(_0x3f95e3){if(_0x3f95e3[_0xa3a2('0x2c')]!==_0xa3a2('0x3e')){var _0x2b899c={};_0x2b899c[_0x3f95e3[_0xa3a2('0x26')]]={'$like':'%'+_0x22c637[_0xa3a2('0x2f')]['filter']+'%'};return _0x2b899c;}})});}_0x163004=_['merge']({},_0x163004,_0x22c637[_0xa3a2('0x3f')]);var _0x46c5ed={'where':_0x163004[_0xa3a2('0x3c')]};return db['FaxApplication'][_0xa3a2('0x1d')](_0x46c5ed)[_0xa3a2('0x22')](function(_0x4bd36e){_0x551ab4[_0xa3a2('0x1d')]=_0x4bd36e;if(_0x22c637[_0xa3a2('0x2f')][_0xa3a2('0x40')]){_0x163004[_0xa3a2('0x41')]=[{'all':!![]}];}return db['FaxApplication'][_0xa3a2('0x42')](_0x163004);})[_0xa3a2('0x22')](function(_0x2f4f5c){_0x551ab4['rows']=_0x2f4f5c;return _0x551ab4;})[_0xa3a2('0x22')](respondWithFilteredResult(_0x20f0b8,_0x163004))[_0xa3a2('0x43')](handleError(_0x20f0b8,null));};exports[_0xa3a2('0x44')]=function(_0xe6bf3d,_0x2d5005){var _0x491260={'raw':!![],'where':{'id':_0xe6bf3d[_0xa3a2('0x45')]['id']}},_0x4f7483={};_0x4f7483['model']=_[_0xa3a2('0x30')](db[_0xa3a2('0x2a')][_0xa3a2('0x2b')]);_0x4f7483[_0xa3a2('0x2f')]=_['keys'](_0xe6bf3d['query']);_0x4f7483[_0xa3a2('0x31')]=_['intersection'](_0x4f7483[_0xa3a2('0x2e')],_0x4f7483[_0xa3a2('0x2f')]);_0x491260[_0xa3a2('0x33')]=_[_0xa3a2('0x32')](_0x4f7483[_0xa3a2('0x2e')],qs[_0xa3a2('0x34')](_0xe6bf3d['query']['fields']));_0x491260[_0xa3a2('0x33')]=_0x491260[_0xa3a2('0x33')][_0xa3a2('0x46')]?_0x491260['attributes']:_0x4f7483[_0xa3a2('0x2e')];if(_0xe6bf3d['query'][_0xa3a2('0x40')]){_0x491260[_0xa3a2('0x41')]=[{'all':!![]}];}_0x491260=_[_0xa3a2('0x3d')]({},_0x491260,_0xe6bf3d['options']);return db['FaxApplication'][_0xa3a2('0x47')](_0x491260)[_0xa3a2('0x22')](handleEntityNotFound(_0x2d5005,null))['then'](respondWithResult(_0x2d5005,null))['catch'](handleError(_0x2d5005,null));};exports[_0xa3a2('0x48')]=function(_0x667665,_0x3e2efa){return db['FaxApplication'][_0xa3a2('0x48')](_0x667665[_0xa3a2('0x49')],{})[_0xa3a2('0x22')](respondWithResult(_0x3e2efa,0xc9))[_0xa3a2('0x43')](handleError(_0x3e2efa,null));};exports[_0xa3a2('0x21')]=function(_0x449ff6,_0x1eea87){if(_0x449ff6[_0xa3a2('0x49')]['id']){delete _0x449ff6[_0xa3a2('0x49')]['id'];}return db[_0xa3a2('0x2a')][_0xa3a2('0x47')]({'where':{'id':_0x449ff6[_0xa3a2('0x45')]['id']}})[_0xa3a2('0x22')](handleEntityNotFound(_0x1eea87,null))[_0xa3a2('0x22')](saveUpdates(_0x449ff6[_0xa3a2('0x49')],null))[_0xa3a2('0x22')](respondWithResult(_0x1eea87,null))[_0xa3a2('0x43')](handleError(_0x1eea87,null));};exports[_0xa3a2('0x23')]=function(_0x358947,_0x135f2a){return db[_0xa3a2('0x2a')][_0xa3a2('0x47')]({'where':{'id':_0x358947[_0xa3a2('0x45')]['id']}})[_0xa3a2('0x22')](handleEntityNotFound(_0x135f2a,null))[_0xa3a2('0x22')](removeEntity(_0x135f2a,null))[_0xa3a2('0x43')](handleError(_0x135f2a,null));};
\ No newline at end of file
+var _0xbce9=['order','sort','where','pick','merge','VIRTUAL','options','FaxApplication','includeAll','rows','catch','show','params','include','find','create','body','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','util','sox','ejs','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','limit','undefined','count','offset','set','apply','save','update','then','destroy','stack','name','send','map','rawAttributes','type','model','keys','query','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit'];(function(_0x3c3a89,_0x3683a7){var _0x191cea=function(_0x2d1aa2){while(--_0x2d1aa2){_0x3c3a89['push'](_0x3c3a89['shift']());}};_0x191cea(++_0x3683a7);}(_0xbce9,0x139));var _0x9bce=function(_0x2e8e7b,_0x5e4613){_0x2e8e7b=_0x2e8e7b-0x0;var _0x15fdab=_0xbce9[_0x2e8e7b];return _0x15fdab;};'use strict';var emlformat=require(_0x9bce('0x0'));var rimraf=require(_0x9bce('0x1'));var zipdir=require(_0x9bce('0x2'));var jsonpatch=require(_0x9bce('0x3'));var rp=require('request-promise');var moment=require(_0x9bce('0x4'));var BPromise=require(_0x9bce('0x5'));var Mustache=require('mustache');var util=require(_0x9bce('0x6'));var path=require('path');var sox=require(_0x9bce('0x7'));var csv=require('to-csv');var ejs=require(_0x9bce('0x8'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x9bce('0x9'));var squel=require(_0x9bce('0xa'));var crypto=require(_0x9bce('0xb'));var jsforce=require(_0x9bce('0xc'));var deskjs=require(_0x9bce('0xd'));var toCsv=require(_0x9bce('0xe'));var querystring=require(_0x9bce('0xf'));var Papa=require(_0x9bce('0x10'));var Redis=require(_0x9bce('0x11'));var authService=require(_0x9bce('0x12'));var qs=require(_0x9bce('0x13'));var as=require(_0x9bce('0x14'));var hardwareService=require(_0x9bce('0x15'));var logger=require(_0x9bce('0x16'))(_0x9bce('0x17'));var utils=require(_0x9bce('0x18'));var config=require(_0x9bce('0x19'));var licenseUtil=require(_0x9bce('0x1a'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x5c74e1,_0x5705df){_0x5705df=_0x5705df||0xcc;return function(_0x177e03){if(_0x177e03){return _0x5c74e1[_0x9bce('0x1b')](_0x5705df);}return _0x5c74e1[_0x9bce('0x1c')](_0x5705df)[_0x9bce('0x1d')]();};}function respondWithResult(_0x4e771e,_0x11979){_0x11979=_0x11979||0xc8;return function(_0x3f7906){if(_0x3f7906){return _0x4e771e[_0x9bce('0x1c')](_0x11979)[_0x9bce('0x1e')](_0x3f7906);}};}function respondWithFilteredResult(_0x1e14b4,_0x584a3c){return function(_0x197d56){if(_0x197d56){var _0x46533e=typeof _0x584a3c['offset']==='undefined'&&typeof _0x584a3c[_0x9bce('0x1f')]===_0x9bce('0x20');var _0x4f9024=_0x197d56[_0x9bce('0x21')];var _0x3d3487=_0x46533e?0x0:_0x584a3c[_0x9bce('0x22')];var _0x294fab=_0x46533e?_0x197d56[_0x9bce('0x21')]:_0x584a3c[_0x9bce('0x22')]+_0x584a3c['limit'];var _0x438d31;if(_0x294fab>=_0x4f9024){_0x294fab=_0x4f9024;_0x438d31=0xc8;}else{_0x438d31=0xce;}_0x1e14b4[_0x9bce('0x1c')](_0x438d31);return _0x1e14b4[_0x9bce('0x23')]('Content-Range',_0x3d3487+'-'+_0x294fab+'/'+_0x4f9024)[_0x9bce('0x1e')](_0x197d56);}return null;};}function patchUpdates(_0x47b354){return function(_0x1afa7e){try{jsonpatch[_0x9bce('0x24')](_0x1afa7e,_0x47b354,!![]);}catch(_0x2bce72){return BPromise['reject'](_0x2bce72);}return _0x1afa7e[_0x9bce('0x25')]();};}function saveUpdates(_0x24b7f0,_0x5d7121){return function(_0x1b84a8){if(_0x1b84a8){return _0x1b84a8[_0x9bce('0x26')](_0x24b7f0)[_0x9bce('0x27')](function(_0x3e6e40){return _0x3e6e40;});}return null;};}function removeEntity(_0x181658,_0xb6b1){return function(_0x18648a){if(_0x18648a){return _0x18648a[_0x9bce('0x28')]()[_0x9bce('0x27')](function(){_0x181658[_0x9bce('0x1c')](0xcc)[_0x9bce('0x1d')]();});}};}function handleEntityNotFound(_0x41b6b2,_0x21b773){return function(_0x4dbaed){if(!_0x4dbaed){_0x41b6b2[_0x9bce('0x1b')](0x194);}return _0x4dbaed;};}function handleError(_0x12d08d,_0x307ff4){_0x307ff4=_0x307ff4||0x1f4;return function(_0x143dd4){logger['error'](_0x143dd4[_0x9bce('0x29')]);if(_0x143dd4[_0x9bce('0x2a')]){delete _0x143dd4[_0x9bce('0x2a')];}_0x12d08d[_0x9bce('0x1c')](_0x307ff4)[_0x9bce('0x2b')](_0x143dd4);};}exports['index']=function(_0x79072f,_0x3e45c7){var _0x9335c8={},_0x48e3a7={},_0x4b4131={'count':0x0,'rows':[]};var _0x45a08a=_[_0x9bce('0x2c')](db['FaxApplication'][_0x9bce('0x2d')],function(_0x574bb6){return{'name':_0x574bb6['fieldName'],'type':_0x574bb6[_0x9bce('0x2e')]['key']};});_0x48e3a7[_0x9bce('0x2f')]=_[_0x9bce('0x2c')](_0x45a08a,_0x9bce('0x2a'));_0x48e3a7['query']=_[_0x9bce('0x30')](_0x79072f[_0x9bce('0x31')]);_0x48e3a7[_0x9bce('0x32')]=_[_0x9bce('0x33')](_0x48e3a7[_0x9bce('0x2f')],_0x48e3a7[_0x9bce('0x31')]);_0x9335c8['attributes']=_['intersection'](_0x48e3a7[_0x9bce('0x2f')],qs[_0x9bce('0x34')](_0x79072f[_0x9bce('0x31')][_0x9bce('0x34')]));_0x9335c8[_0x9bce('0x35')]=_0x9335c8['attributes'][_0x9bce('0x36')]?_0x9335c8[_0x9bce('0x35')]:_0x48e3a7[_0x9bce('0x2f')];if(!_0x79072f[_0x9bce('0x31')][_0x9bce('0x37')](_0x9bce('0x38'))){_0x9335c8[_0x9bce('0x1f')]=qs[_0x9bce('0x1f')](_0x79072f[_0x9bce('0x31')][_0x9bce('0x1f')]);_0x9335c8[_0x9bce('0x22')]=qs[_0x9bce('0x22')](_0x79072f[_0x9bce('0x31')][_0x9bce('0x22')]);}_0x9335c8[_0x9bce('0x39')]=qs[_0x9bce('0x3a')](_0x79072f[_0x9bce('0x31')][_0x9bce('0x3a')]);_0x9335c8[_0x9bce('0x3b')]=qs['filters'](_[_0x9bce('0x3c')](_0x79072f['query'],_0x48e3a7[_0x9bce('0x32')]),_0x45a08a);if(_0x79072f[_0x9bce('0x31')]['filter']){_0x9335c8[_0x9bce('0x3b')]=_[_0x9bce('0x3d')](_0x9335c8[_0x9bce('0x3b')],{'$or':_['map'](_0x45a08a,function(_0x4c343c){if(_0x4c343c[_0x9bce('0x2e')]!==_0x9bce('0x3e')){var _0x19f715={};_0x19f715[_0x4c343c[_0x9bce('0x2a')]]={'$like':'%'+_0x79072f[_0x9bce('0x31')]['filter']+'%'};return _0x19f715;}})});}_0x9335c8=_[_0x9bce('0x3d')]({},_0x9335c8,_0x79072f[_0x9bce('0x3f')]);var _0x1a567c={'where':_0x9335c8[_0x9bce('0x3b')]};return db[_0x9bce('0x40')][_0x9bce('0x21')](_0x1a567c)[_0x9bce('0x27')](function(_0x2e7ef3){_0x4b4131[_0x9bce('0x21')]=_0x2e7ef3;if(_0x79072f[_0x9bce('0x31')][_0x9bce('0x41')]){_0x9335c8['include']=[{'all':!![]}];}return db['FaxApplication']['findAll'](_0x9335c8);})[_0x9bce('0x27')](function(_0x5922c9){_0x4b4131[_0x9bce('0x42')]=_0x5922c9;return _0x4b4131;})[_0x9bce('0x27')](respondWithFilteredResult(_0x3e45c7,_0x9335c8))[_0x9bce('0x43')](handleError(_0x3e45c7,null));};exports[_0x9bce('0x44')]=function(_0x56bff8,_0x314360){var _0x571ffb={'raw':!![],'where':{'id':_0x56bff8[_0x9bce('0x45')]['id']}},_0x40794e={};_0x40794e[_0x9bce('0x2f')]=_[_0x9bce('0x30')](db[_0x9bce('0x40')]['rawAttributes']);_0x40794e[_0x9bce('0x31')]=_[_0x9bce('0x30')](_0x56bff8[_0x9bce('0x31')]);_0x40794e['filters']=_[_0x9bce('0x33')](_0x40794e[_0x9bce('0x2f')],_0x40794e[_0x9bce('0x31')]);_0x571ffb[_0x9bce('0x35')]=_[_0x9bce('0x33')](_0x40794e['model'],qs[_0x9bce('0x34')](_0x56bff8[_0x9bce('0x31')][_0x9bce('0x34')]));_0x571ffb['attributes']=_0x571ffb[_0x9bce('0x35')][_0x9bce('0x36')]?_0x571ffb[_0x9bce('0x35')]:_0x40794e[_0x9bce('0x2f')];if(_0x56bff8[_0x9bce('0x31')][_0x9bce('0x41')]){_0x571ffb[_0x9bce('0x46')]=[{'all':!![]}];}_0x571ffb=_['merge']({},_0x571ffb,_0x56bff8[_0x9bce('0x3f')]);return db['FaxApplication'][_0x9bce('0x47')](_0x571ffb)[_0x9bce('0x27')](handleEntityNotFound(_0x314360,null))[_0x9bce('0x27')](respondWithResult(_0x314360,null))[_0x9bce('0x43')](handleError(_0x314360,null));};exports[_0x9bce('0x48')]=function(_0x41773d,_0x39d814){return db[_0x9bce('0x40')][_0x9bce('0x48')](_0x41773d[_0x9bce('0x49')],{})[_0x9bce('0x27')](respondWithResult(_0x39d814,0xc9))[_0x9bce('0x43')](handleError(_0x39d814,null));};exports[_0x9bce('0x26')]=function(_0x4c0bd4,_0xa8555b){if(_0x4c0bd4['body']['id']){delete _0x4c0bd4[_0x9bce('0x49')]['id'];}return db['FaxApplication'][_0x9bce('0x47')]({'where':{'id':_0x4c0bd4[_0x9bce('0x45')]['id']}})[_0x9bce('0x27')](handleEntityNotFound(_0xa8555b,null))[_0x9bce('0x27')](saveUpdates(_0x4c0bd4['body'],null))[_0x9bce('0x27')](respondWithResult(_0xa8555b,null))['catch'](handleError(_0xa8555b,null));};exports[_0x9bce('0x28')]=function(_0x2bb7aa,_0x203dc0){return db['FaxApplication'][_0x9bce('0x47')]({'where':{'id':_0x2bb7aa[_0x9bce('0x45')]['id']}})['then'](handleEntityNotFound(_0x203dc0,null))[_0x9bce('0x27')](removeEntity(_0x203dc0,null))[_0x9bce('0x43')](handleError(_0x203dc0,null));};
\ No newline at end of file