Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / faxApplication / faxApplication.controller.js
index b94932e..c2c64fb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0e34=['fieldName','type','key','model','map','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','count','includeAll','include','findAll','catch','show','params','keys','create','body','find','html-pdf','rimraf','zip-dir','fast-json-patch','request-promise','moment','util','path','sox','to-csv','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/license/util','status','json','offset','limit','set','Content-Range','apply','reject','update','then','destroy','end','sendStatus','stack','name','send','index','FaxApplication','rawAttributes'];(function(_0x5d74f9,_0x5952f3){var _0x43dab8=function(_0x2fee8c){while(--_0x2fee8c){_0x5d74f9['push'](_0x5d74f9['shift']());}};_0x43dab8(++_0x5952f3);}(_0x0e34,0xb6));var _0x40e3=function(_0xe69fb3,_0x4b9d6e){_0xe69fb3=_0xe69fb3-0x0;var _0x5cf39b=_0x0e34[_0xe69fb3];return _0x5cf39b;};'use strict';var pdf=require(_0x40e3('0x0'));var emlformat=require('eml-format');var rimraf=require(_0x40e3('0x1'));var zipdir=require(_0x40e3('0x2'));var jsonpatch=require(_0x40e3('0x3'));var rp=require(_0x40e3('0x4'));var moment=require(_0x40e3('0x5'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0x40e3('0x6'));var path=require(_0x40e3('0x7'));var sox=require(_0x40e3('0x8'));var csv=require(_0x40e3('0x9'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x40e3('0xa'));var squel=require(_0x40e3('0xb'));var crypto=require(_0x40e3('0xc'));var jsforce=require(_0x40e3('0xd'));var deskjs=require(_0x40e3('0xe'));var toCsv=require(_0x40e3('0x9'));var querystring=require(_0x40e3('0xf'));var Papa=require('papaparse');var Redis=require(_0x40e3('0x10'));var authService=require(_0x40e3('0x11'));var qs=require(_0x40e3('0x12'));var as=require(_0x40e3('0x13'));var hardwareService=require(_0x40e3('0x14'));var logger=require(_0x40e3('0x15'))(_0x40e3('0x16'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0x40e3('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x27bdb4,_0x4b1e5b){_0x4b1e5b=_0x4b1e5b||0xcc;return function(_0xdafcaf){if(_0xdafcaf){return _0x27bdb4['sendStatus'](_0x4b1e5b);}return _0x27bdb4[_0x40e3('0x18')](_0x4b1e5b)['end']();};}function respondWithResult(_0x261432,_0x25c272){_0x25c272=_0x25c272||0xc8;return function(_0xb01557){if(_0xb01557){return _0x261432[_0x40e3('0x18')](_0x25c272)[_0x40e3('0x19')](_0xb01557);}};}function respondWithFilteredResult(_0x2bc819,_0x2893c6){return function(_0x2b93a3){if(_0x2b93a3){var _0x3255a2=_0x2b93a3['count'],_0x1a484c=_0x2893c6['offset'],_0x521c20=_0x2893c6[_0x40e3('0x1a')]+_0x2893c6[_0x40e3('0x1b')],_0x2e43d2;if(_0x521c20>=_0x3255a2){_0x521c20=_0x3255a2;_0x2e43d2=0xc8;}else{_0x2e43d2=0xce;}_0x2bc819['status'](_0x2e43d2);return _0x2bc819[_0x40e3('0x1c')](_0x40e3('0x1d'),_0x1a484c+'-'+_0x521c20+'/'+_0x3255a2)[_0x40e3('0x19')](_0x2b93a3);}return null;};}function patchUpdates(_0xe7dc18){return function(_0x596362){try{jsonpatch[_0x40e3('0x1e')](_0x596362,_0xe7dc18,!![]);}catch(_0x4b7d57){return BPromise[_0x40e3('0x1f')](_0x4b7d57);}return _0x596362['save']();};}function saveUpdates(_0x53e1f8,_0x4bf0a6){return function(_0x1da13d){if(_0x1da13d){return _0x1da13d[_0x40e3('0x20')](_0x53e1f8)[_0x40e3('0x21')](function(_0x26ff2d){return _0x26ff2d;});}return null;};}function removeEntity(_0xd50f07,_0x5c57e3){return function(_0x174d0d){if(_0x174d0d){return _0x174d0d[_0x40e3('0x22')]()[_0x40e3('0x21')](function(){_0xd50f07[_0x40e3('0x18')](0xcc)[_0x40e3('0x23')]();});}};}function handleEntityNotFound(_0x176782,_0x404087){return function(_0xb7cfd1){if(!_0xb7cfd1){_0x176782[_0x40e3('0x24')](0x194);}return _0xb7cfd1;};}function handleError(_0xe5421c,_0x4650c5){_0x4650c5=_0x4650c5||0x1f4;return function(_0x649ab9){logger['error'](_0x649ab9[_0x40e3('0x25')]);if(_0x649ab9[_0x40e3('0x26')]){delete _0x649ab9[_0x40e3('0x26')];}_0xe5421c[_0x40e3('0x18')](_0x4650c5)[_0x40e3('0x27')](_0x649ab9);};}exports[_0x40e3('0x28')]=function(_0x2c2ac7,_0x228a51){var _0xc95050={},_0x534377={},_0x3fb322={'count':0x0,'rows':[]};var _0x46796a=_['map'](db[_0x40e3('0x29')][_0x40e3('0x2a')],function(_0x3c48e4){return{'name':_0x3c48e4[_0x40e3('0x2b')],'type':_0x3c48e4[_0x40e3('0x2c')][_0x40e3('0x2d')]};});_0x534377[_0x40e3('0x2e')]=_[_0x40e3('0x2f')](_0x46796a,_0x40e3('0x26'));_0x534377[_0x40e3('0x30')]=_['keys'](_0x2c2ac7[_0x40e3('0x30')]);_0x534377[_0x40e3('0x31')]=_[_0x40e3('0x32')](_0x534377[_0x40e3('0x2e')],_0x534377[_0x40e3('0x30')]);_0xc95050[_0x40e3('0x33')]=_[_0x40e3('0x32')](_0x534377[_0x40e3('0x2e')],qs[_0x40e3('0x34')](_0x2c2ac7[_0x40e3('0x30')][_0x40e3('0x34')]));_0xc95050['attributes']=_0xc95050[_0x40e3('0x33')][_0x40e3('0x35')]?_0xc95050[_0x40e3('0x33')]:_0x534377[_0x40e3('0x2e')];if(!_0x2c2ac7[_0x40e3('0x30')][_0x40e3('0x36')](_0x40e3('0x37'))){_0xc95050[_0x40e3('0x1b')]=qs[_0x40e3('0x1b')](_0x2c2ac7['query'][_0x40e3('0x1b')]);_0xc95050[_0x40e3('0x1a')]=qs[_0x40e3('0x1a')](_0x2c2ac7[_0x40e3('0x30')][_0x40e3('0x1a')]);}_0xc95050[_0x40e3('0x38')]=qs[_0x40e3('0x39')](_0x2c2ac7[_0x40e3('0x30')][_0x40e3('0x39')]);_0xc95050[_0x40e3('0x3a')]=qs[_0x40e3('0x31')](_[_0x40e3('0x3b')](_0x2c2ac7[_0x40e3('0x30')],_0x534377[_0x40e3('0x31')]),_0x46796a);if(_0x2c2ac7['query'][_0x40e3('0x3c')]){_0xc95050['where']=_[_0x40e3('0x3d')](_0xc95050[_0x40e3('0x3a')],{'$or':_['map'](_0x46796a,function(_0x350ec5){if(_0x350ec5[_0x40e3('0x2c')]!==_0x40e3('0x3e')){var _0x1d2a24={};_0x1d2a24[_0x350ec5[_0x40e3('0x26')]]={'$like':'%'+_0x2c2ac7[_0x40e3('0x30')][_0x40e3('0x3c')]+'%'};return _0x1d2a24;}})});}_0xc95050=_[_0x40e3('0x3d')]({},_0xc95050,_0x2c2ac7[_0x40e3('0x3f')]);var _0x407999={'where':_0xc95050['where']};return db[_0x40e3('0x29')]['count'](_0x407999)[_0x40e3('0x21')](function(_0x35dbc7){_0x3fb322[_0x40e3('0x40')]=_0x35dbc7;if(_0x2c2ac7[_0x40e3('0x30')][_0x40e3('0x41')]){_0xc95050[_0x40e3('0x42')]=[{'all':!![]}];}return db[_0x40e3('0x29')][_0x40e3('0x43')](_0xc95050);})['then'](function(_0x50a420){_0x3fb322['rows']=_0x50a420;return _0x3fb322;})[_0x40e3('0x21')](respondWithFilteredResult(_0x228a51,_0xc95050))[_0x40e3('0x44')](handleError(_0x228a51,null));};exports[_0x40e3('0x45')]=function(_0x274a92,_0x45f328){var _0x3f03b2={'raw':!![],'where':{'id':_0x274a92[_0x40e3('0x46')]['id']}},_0x24c5ba={};_0x24c5ba[_0x40e3('0x2e')]=_[_0x40e3('0x47')](db[_0x40e3('0x29')][_0x40e3('0x2a')]);_0x24c5ba[_0x40e3('0x30')]=_['keys'](_0x274a92[_0x40e3('0x30')]);_0x24c5ba[_0x40e3('0x31')]=_[_0x40e3('0x32')](_0x24c5ba[_0x40e3('0x2e')],_0x24c5ba[_0x40e3('0x30')]);_0x3f03b2[_0x40e3('0x33')]=_['intersection'](_0x24c5ba[_0x40e3('0x2e')],qs[_0x40e3('0x34')](_0x274a92[_0x40e3('0x30')][_0x40e3('0x34')]));_0x3f03b2[_0x40e3('0x33')]=_0x3f03b2['attributes'][_0x40e3('0x35')]?_0x3f03b2[_0x40e3('0x33')]:_0x24c5ba['model'];if(_0x274a92[_0x40e3('0x30')][_0x40e3('0x41')]){_0x3f03b2[_0x40e3('0x42')]=[{'all':!![]}];}_0x3f03b2=_[_0x40e3('0x3d')]({},_0x3f03b2,_0x274a92[_0x40e3('0x3f')]);return db[_0x40e3('0x29')]['find'](_0x3f03b2)[_0x40e3('0x21')](handleEntityNotFound(_0x45f328,null))['then'](respondWithResult(_0x45f328,null))[_0x40e3('0x44')](handleError(_0x45f328,null));};exports[_0x40e3('0x48')]=function(_0x4c1633,_0x261673){return db[_0x40e3('0x29')][_0x40e3('0x48')](_0x4c1633[_0x40e3('0x49')],{})[_0x40e3('0x21')](respondWithResult(_0x261673,0xc9))[_0x40e3('0x44')](handleError(_0x261673,null));};exports[_0x40e3('0x20')]=function(_0x28ac63,_0x11eda1){if(_0x28ac63[_0x40e3('0x49')]['id']){delete _0x28ac63[_0x40e3('0x49')]['id'];}return db['FaxApplication'][_0x40e3('0x4a')]({'where':{'id':_0x28ac63[_0x40e3('0x46')]['id']}})[_0x40e3('0x21')](handleEntityNotFound(_0x11eda1,null))['then'](saveUpdates(_0x28ac63[_0x40e3('0x49')],null))[_0x40e3('0x21')](respondWithResult(_0x11eda1,null))['catch'](handleError(_0x11eda1,null));};exports[_0x40e3('0x22')]=function(_0x4571a2,_0x2437a1){return db[_0x40e3('0x29')][_0x40e3('0x4a')]({'where':{'id':_0x4571a2['params']['id']}})[_0x40e3('0x21')](handleEntityNotFound(_0x2437a1,null))[_0x40e3('0x21')](removeEntity(_0x2437a1,null))[_0x40e3('0x44')](handleError(_0x2437a1,null));};
\ No newline at end of file
+var _0x7cae=['destroy','error','stack','name','send','map','FaxApplication','rawAttributes','fieldName','key','model','keys','query','filters','fields','attributes','hasOwnProperty','order','sort','where','pick','filter','merge','type','options','count','include','findAll','rows','catch','params','intersection','length','includeAll','find','create','body','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','ejs','fs-extra','lodash','squel','crypto','desk.js','querystring','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','end','json','offset','undefined','limit','status','set','Content-Range','apply','reject','save','update','then'];(function(_0x329664,_0x130748){var _0x4e346e=function(_0x172b0d){while(--_0x172b0d){_0x329664['push'](_0x329664['shift']());}};_0x4e346e(++_0x130748);}(_0x7cae,0x151));var _0xe7ca=function(_0x3de8a7,_0x57b636){_0x3de8a7=_0x3de8a7-0x0;var _0x370464=_0x7cae[_0x3de8a7];return _0x370464;};'use strict';var emlformat=require(_0xe7ca('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xe7ca('0x1'));var jsonpatch=require(_0xe7ca('0x2'));var rp=require(_0xe7ca('0x3'));var moment=require(_0xe7ca('0x4'));var BPromise=require(_0xe7ca('0x5'));var Mustache=require(_0xe7ca('0x6'));var util=require('util');var path=require(_0xe7ca('0x7'));var sox=require(_0xe7ca('0x8'));var csv=require('to-csv');var ejs=require(_0xe7ca('0x9'));var fs=require('fs');var fs_extra=require(_0xe7ca('0xa'));var _=require(_0xe7ca('0xb'));var squel=require(_0xe7ca('0xc'));var crypto=require(_0xe7ca('0xd'));var jsforce=require('jsforce');var deskjs=require(_0xe7ca('0xe'));var toCsv=require('to-csv');var querystring=require(_0xe7ca('0xf'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0xe7ca('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0xe7ca('0x11'));var hardwareService=require(_0xe7ca('0x12'));var logger=require(_0xe7ca('0x13'))(_0xe7ca('0x14'));var utils=require(_0xe7ca('0x15'));var config=require(_0xe7ca('0x16'));var licenseUtil=require('../../config/license/util');var db=require(_0xe7ca('0x17'))['db'];function respondWithStatusCode(_0x1d162b,_0x527720){_0x527720=_0x527720||0xcc;return function(_0xed4820){if(_0xed4820){return _0x1d162b[_0xe7ca('0x18')](_0x527720);}return _0x1d162b['status'](_0x527720)[_0xe7ca('0x19')]();};}function respondWithResult(_0x55c1bf,_0x33b7c8){_0x33b7c8=_0x33b7c8||0xc8;return function(_0x4a8173){if(_0x4a8173){return _0x55c1bf['status'](_0x33b7c8)[_0xe7ca('0x1a')](_0x4a8173);}};}function respondWithFilteredResult(_0x289e14,_0x335f54){return function(_0x1c952c){if(_0x1c952c){var _0x1c4f20=typeof _0x335f54[_0xe7ca('0x1b')]===_0xe7ca('0x1c')&&typeof _0x335f54[_0xe7ca('0x1d')]==='undefined';var _0x3b67d8=_0x1c952c['count'];var _0xe49a0a=_0x1c4f20?0x0:_0x335f54['offset'];var _0x5a3d3c=_0x1c4f20?_0x1c952c['count']:_0x335f54[_0xe7ca('0x1b')]+_0x335f54[_0xe7ca('0x1d')];var _0x2512a1;if(_0x5a3d3c>=_0x3b67d8){_0x5a3d3c=_0x3b67d8;_0x2512a1=0xc8;}else{_0x2512a1=0xce;}_0x289e14[_0xe7ca('0x1e')](_0x2512a1);return _0x289e14[_0xe7ca('0x1f')](_0xe7ca('0x20'),_0xe49a0a+'-'+_0x5a3d3c+'/'+_0x3b67d8)[_0xe7ca('0x1a')](_0x1c952c);}return null;};}function patchUpdates(_0x4f91a1){return function(_0x143033){try{jsonpatch[_0xe7ca('0x21')](_0x143033,_0x4f91a1,!![]);}catch(_0x41aa3c){return BPromise[_0xe7ca('0x22')](_0x41aa3c);}return _0x143033[_0xe7ca('0x23')]();};}function saveUpdates(_0xdd4fb8,_0x5c9c9b){return function(_0x4c55b5){if(_0x4c55b5){return _0x4c55b5[_0xe7ca('0x24')](_0xdd4fb8)[_0xe7ca('0x25')](function(_0x3b1118){return _0x3b1118;});}return null;};}function removeEntity(_0x374865,_0x32435a){return function(_0x466628){if(_0x466628){return _0x466628[_0xe7ca('0x26')]()[_0xe7ca('0x25')](function(){_0x374865[_0xe7ca('0x1e')](0xcc)[_0xe7ca('0x19')]();});}};}function handleEntityNotFound(_0x588f5e,_0x2c2c9a){return function(_0x42117a){if(!_0x42117a){_0x588f5e[_0xe7ca('0x18')](0x194);}return _0x42117a;};}function handleError(_0x1a7be8,_0x4ca6ed){_0x4ca6ed=_0x4ca6ed||0x1f4;return function(_0x39e5e5){logger[_0xe7ca('0x27')](_0x39e5e5[_0xe7ca('0x28')]);if(_0x39e5e5['name']){delete _0x39e5e5[_0xe7ca('0x29')];}_0x1a7be8['status'](_0x4ca6ed)[_0xe7ca('0x2a')](_0x39e5e5);};}exports['index']=function(_0x50942b,_0x571c3){var _0x45b3bf={},_0x4e6b23={},_0x3ac989={'count':0x0,'rows':[]};var _0x5eac65=_[_0xe7ca('0x2b')](db[_0xe7ca('0x2c')][_0xe7ca('0x2d')],function(_0x37c900){return{'name':_0x37c900[_0xe7ca('0x2e')],'type':_0x37c900['type'][_0xe7ca('0x2f')]};});_0x4e6b23[_0xe7ca('0x30')]=_[_0xe7ca('0x2b')](_0x5eac65,_0xe7ca('0x29'));_0x4e6b23['query']=_[_0xe7ca('0x31')](_0x50942b[_0xe7ca('0x32')]);_0x4e6b23[_0xe7ca('0x33')]=_['intersection'](_0x4e6b23[_0xe7ca('0x30')],_0x4e6b23[_0xe7ca('0x32')]);_0x45b3bf['attributes']=_['intersection'](_0x4e6b23[_0xe7ca('0x30')],qs['fields'](_0x50942b[_0xe7ca('0x32')][_0xe7ca('0x34')]));_0x45b3bf[_0xe7ca('0x35')]=_0x45b3bf[_0xe7ca('0x35')]['length']?_0x45b3bf[_0xe7ca('0x35')]:_0x4e6b23[_0xe7ca('0x30')];if(!_0x50942b['query'][_0xe7ca('0x36')]('nolimit')){_0x45b3bf[_0xe7ca('0x1d')]=qs[_0xe7ca('0x1d')](_0x50942b[_0xe7ca('0x32')][_0xe7ca('0x1d')]);_0x45b3bf['offset']=qs[_0xe7ca('0x1b')](_0x50942b[_0xe7ca('0x32')][_0xe7ca('0x1b')]);}_0x45b3bf[_0xe7ca('0x37')]=qs[_0xe7ca('0x38')](_0x50942b[_0xe7ca('0x32')][_0xe7ca('0x38')]);_0x45b3bf[_0xe7ca('0x39')]=qs[_0xe7ca('0x33')](_[_0xe7ca('0x3a')](_0x50942b[_0xe7ca('0x32')],_0x4e6b23[_0xe7ca('0x33')]),_0x5eac65);if(_0x50942b['query'][_0xe7ca('0x3b')]){_0x45b3bf[_0xe7ca('0x39')]=_[_0xe7ca('0x3c')](_0x45b3bf[_0xe7ca('0x39')],{'$or':_[_0xe7ca('0x2b')](_0x5eac65,function(_0x5066df){if(_0x5066df[_0xe7ca('0x3d')]!=='VIRTUAL'){var _0x45a661={};_0x45a661[_0x5066df[_0xe7ca('0x29')]]={'$like':'%'+_0x50942b[_0xe7ca('0x32')][_0xe7ca('0x3b')]+'%'};return _0x45a661;}})});}_0x45b3bf=_['merge']({},_0x45b3bf,_0x50942b[_0xe7ca('0x3e')]);var _0x3f9dd4={'where':_0x45b3bf[_0xe7ca('0x39')]};return db['FaxApplication'][_0xe7ca('0x3f')](_0x3f9dd4)[_0xe7ca('0x25')](function(_0x5ef401){_0x3ac989[_0xe7ca('0x3f')]=_0x5ef401;if(_0x50942b['query']['includeAll']){_0x45b3bf[_0xe7ca('0x40')]=[{'all':!![]}];}return db['FaxApplication'][_0xe7ca('0x41')](_0x45b3bf);})['then'](function(_0x362b50){_0x3ac989[_0xe7ca('0x42')]=_0x362b50;return _0x3ac989;})[_0xe7ca('0x25')](respondWithFilteredResult(_0x571c3,_0x45b3bf))[_0xe7ca('0x43')](handleError(_0x571c3,null));};exports['show']=function(_0x46c481,_0x43c9c3){var _0x1ae8b6={'raw':!![],'where':{'id':_0x46c481[_0xe7ca('0x44')]['id']}},_0x5b3a13={};_0x5b3a13[_0xe7ca('0x30')]=_[_0xe7ca('0x31')](db[_0xe7ca('0x2c')]['rawAttributes']);_0x5b3a13[_0xe7ca('0x32')]=_[_0xe7ca('0x31')](_0x46c481[_0xe7ca('0x32')]);_0x5b3a13[_0xe7ca('0x33')]=_['intersection'](_0x5b3a13[_0xe7ca('0x30')],_0x5b3a13[_0xe7ca('0x32')]);_0x1ae8b6[_0xe7ca('0x35')]=_[_0xe7ca('0x45')](_0x5b3a13['model'],qs[_0xe7ca('0x34')](_0x46c481[_0xe7ca('0x32')][_0xe7ca('0x34')]));_0x1ae8b6[_0xe7ca('0x35')]=_0x1ae8b6[_0xe7ca('0x35')][_0xe7ca('0x46')]?_0x1ae8b6[_0xe7ca('0x35')]:_0x5b3a13[_0xe7ca('0x30')];if(_0x46c481['query'][_0xe7ca('0x47')]){_0x1ae8b6[_0xe7ca('0x40')]=[{'all':!![]}];}_0x1ae8b6=_[_0xe7ca('0x3c')]({},_0x1ae8b6,_0x46c481[_0xe7ca('0x3e')]);return db[_0xe7ca('0x2c')][_0xe7ca('0x48')](_0x1ae8b6)[_0xe7ca('0x25')](handleEntityNotFound(_0x43c9c3,null))[_0xe7ca('0x25')](respondWithResult(_0x43c9c3,null))[_0xe7ca('0x43')](handleError(_0x43c9c3,null));};exports[_0xe7ca('0x49')]=function(_0x472f64,_0x25eeff){return db[_0xe7ca('0x2c')]['create'](_0x472f64['body'],{})['then'](respondWithResult(_0x25eeff,0xc9))[_0xe7ca('0x43')](handleError(_0x25eeff,null));};exports[_0xe7ca('0x24')]=function(_0x404d65,_0x11fade){if(_0x404d65[_0xe7ca('0x4a')]['id']){delete _0x404d65[_0xe7ca('0x4a')]['id'];}return db[_0xe7ca('0x2c')]['find']({'where':{'id':_0x404d65[_0xe7ca('0x44')]['id']}})['then'](handleEntityNotFound(_0x11fade,null))[_0xe7ca('0x25')](saveUpdates(_0x404d65[_0xe7ca('0x4a')],null))[_0xe7ca('0x25')](respondWithResult(_0x11fade,null))[_0xe7ca('0x43')](handleError(_0x11fade,null));};exports['destroy']=function(_0x170004,_0x150d3e){return db['FaxApplication'][_0xe7ca('0x48')]({'where':{'id':_0x170004[_0xe7ca('0x44')]['id']}})[_0xe7ca('0x25')](handleEntityNotFound(_0x150d3e,null))[_0xe7ca('0x25')](removeEntity(_0x150d3e,null))[_0xe7ca('0x43')](handleError(_0x150d3e,null));};
\ No newline at end of file