Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / faxApplication / faxApplication.controller.js
index c8dfd2b..77d55f4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x900b=['destroy','stack','name','send','index','map','FaxApplication','rawAttributes','type','key','query','keys','intersection','model','fields','attributes','length','hasOwnProperty','order','sort','where','pick','filters','merge','VIRTUAL','filter','includeAll','include','findAll','catch','show','params','options','find','create','body','eml-format','rimraf','zip-dir','fast-json-patch','mustache','util','path','sox','to-csv','ejs','squel','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','apply','reject','save','update','then'];(function(_0x38f64f,_0x2ab0ad){var _0x4bcc4e=function(_0x16da82){while(--_0x16da82){_0x38f64f['push'](_0x38f64f['shift']());}};_0x4bcc4e(++_0x2ab0ad);}(_0x900b,0x144));var _0xb900=function(_0x305792,_0xe08055){_0x305792=_0x305792-0x0;var _0x449279=_0x900b[_0x305792];return _0x449279;};'use strict';var emlformat=require(_0xb900('0x0'));var rimraf=require(_0xb900('0x1'));var zipdir=require(_0xb900('0x2'));var jsonpatch=require(_0xb900('0x3'));var rp=require('request-promise');var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0xb900('0x4'));var util=require(_0xb900('0x5'));var path=require(_0xb900('0x6'));var sox=require(_0xb900('0x7'));var csv=require(_0xb900('0x8'));var ejs=require(_0xb900('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0xb900('0xa'));var crypto=require('crypto');var jsforce=require(_0xb900('0xb'));var deskjs=require('desk.js');var toCsv=require(_0xb900('0x8'));var querystring=require(_0xb900('0xc'));var Papa=require(_0xb900('0xd'));var Redis=require(_0xb900('0xe'));var authService=require(_0xb900('0xf'));var qs=require(_0xb900('0x10'));var as=require(_0xb900('0x11'));var hardwareService=require(_0xb900('0x12'));var logger=require(_0xb900('0x13'))(_0xb900('0x14'));var utils=require(_0xb900('0x15'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0xb900('0x16'))['db'];function respondWithStatusCode(_0x263b87,_0x43550b){_0x43550b=_0x43550b||0xcc;return function(_0x148253){if(_0x148253){return _0x263b87[_0xb900('0x17')](_0x43550b);}return _0x263b87[_0xb900('0x18')](_0x43550b)[_0xb900('0x19')]();};}function respondWithResult(_0x39ae32,_0x1e32a6){_0x1e32a6=_0x1e32a6||0xc8;return function(_0x5c2715){if(_0x5c2715){return _0x39ae32[_0xb900('0x18')](_0x1e32a6)[_0xb900('0x1a')](_0x5c2715);}};}function respondWithFilteredResult(_0x5f12a8,_0x173ef5){return function(_0x3ccfa2){if(_0x3ccfa2){var _0x4e83ee=typeof _0x173ef5[_0xb900('0x1b')]===_0xb900('0x1c')&&typeof _0x173ef5[_0xb900('0x1d')]===_0xb900('0x1c');var _0x58ce14=_0x3ccfa2[_0xb900('0x1e')];var _0x3260d0=_0x4e83ee?0x0:_0x173ef5[_0xb900('0x1b')];var _0x504aa6=_0x4e83ee?_0x3ccfa2[_0xb900('0x1e')]:_0x173ef5[_0xb900('0x1b')]+_0x173ef5[_0xb900('0x1d')];var _0x5bf1b9;if(_0x504aa6>=_0x58ce14){_0x504aa6=_0x58ce14;_0x5bf1b9=0xc8;}else{_0x5bf1b9=0xce;}_0x5f12a8[_0xb900('0x18')](_0x5bf1b9);return _0x5f12a8['set']('Content-Range',_0x3260d0+'-'+_0x504aa6+'/'+_0x58ce14)[_0xb900('0x1a')](_0x3ccfa2);}return null;};}function patchUpdates(_0x354972){return function(_0xed4246){try{jsonpatch[_0xb900('0x1f')](_0xed4246,_0x354972,!![]);}catch(_0x13fda0){return BPromise[_0xb900('0x20')](_0x13fda0);}return _0xed4246[_0xb900('0x21')]();};}function saveUpdates(_0x5a4d4f,_0xafbcaf){return function(_0x5d752e){if(_0x5d752e){return _0x5d752e[_0xb900('0x22')](_0x5a4d4f)[_0xb900('0x23')](function(_0x4fd2a8){return _0x4fd2a8;});}return null;};}function removeEntity(_0x425911,_0x50c230){return function(_0x42dee6){if(_0x42dee6){return _0x42dee6[_0xb900('0x24')]()['then'](function(){_0x425911[_0xb900('0x18')](0xcc)[_0xb900('0x19')]();});}};}function handleEntityNotFound(_0x47fe54,_0x2c5518){return function(_0x8368a){if(!_0x8368a){_0x47fe54[_0xb900('0x17')](0x194);}return _0x8368a;};}function handleError(_0x361665,_0xf08f25){_0xf08f25=_0xf08f25||0x1f4;return function(_0x53e603){logger['error'](_0x53e603[_0xb900('0x25')]);if(_0x53e603[_0xb900('0x26')]){delete _0x53e603[_0xb900('0x26')];}_0x361665[_0xb900('0x18')](_0xf08f25)[_0xb900('0x27')](_0x53e603);};}exports[_0xb900('0x28')]=function(_0x331b49,_0x131912){var _0x5b58da={},_0x18286d={},_0x15e6cf={'count':0x0,'rows':[]};var _0x4f3b53=_[_0xb900('0x29')](db[_0xb900('0x2a')][_0xb900('0x2b')],function(_0x1bc48a){return{'name':_0x1bc48a['fieldName'],'type':_0x1bc48a[_0xb900('0x2c')][_0xb900('0x2d')]};});_0x18286d['model']=_[_0xb900('0x29')](_0x4f3b53,_0xb900('0x26'));_0x18286d[_0xb900('0x2e')]=_[_0xb900('0x2f')](_0x331b49['query']);_0x18286d['filters']=_[_0xb900('0x30')](_0x18286d[_0xb900('0x31')],_0x18286d[_0xb900('0x2e')]);_0x5b58da['attributes']=_[_0xb900('0x30')](_0x18286d['model'],qs[_0xb900('0x32')](_0x331b49[_0xb900('0x2e')][_0xb900('0x32')]));_0x5b58da[_0xb900('0x33')]=_0x5b58da[_0xb900('0x33')][_0xb900('0x34')]?_0x5b58da[_0xb900('0x33')]:_0x18286d[_0xb900('0x31')];if(!_0x331b49[_0xb900('0x2e')][_0xb900('0x35')]('nolimit')){_0x5b58da['limit']=qs[_0xb900('0x1d')](_0x331b49[_0xb900('0x2e')]['limit']);_0x5b58da['offset']=qs[_0xb900('0x1b')](_0x331b49[_0xb900('0x2e')][_0xb900('0x1b')]);}_0x5b58da[_0xb900('0x36')]=qs[_0xb900('0x37')](_0x331b49[_0xb900('0x2e')]['sort']);_0x5b58da[_0xb900('0x38')]=qs['filters'](_[_0xb900('0x39')](_0x331b49[_0xb900('0x2e')],_0x18286d[_0xb900('0x3a')]),_0x4f3b53);if(_0x331b49[_0xb900('0x2e')]['filter']){_0x5b58da[_0xb900('0x38')]=_[_0xb900('0x3b')](_0x5b58da[_0xb900('0x38')],{'$or':_[_0xb900('0x29')](_0x4f3b53,function(_0x32b8bd){if(_0x32b8bd[_0xb900('0x2c')]!==_0xb900('0x3c')){var _0x557da1={};_0x557da1[_0x32b8bd[_0xb900('0x26')]]={'$like':'%'+_0x331b49['query'][_0xb900('0x3d')]+'%'};return _0x557da1;}})});}_0x5b58da=_[_0xb900('0x3b')]({},_0x5b58da,_0x331b49['options']);var _0xa9ad73={'where':_0x5b58da['where']};return db[_0xb900('0x2a')]['count'](_0xa9ad73)['then'](function(_0x5e28d7){_0x15e6cf[_0xb900('0x1e')]=_0x5e28d7;if(_0x331b49[_0xb900('0x2e')][_0xb900('0x3e')]){_0x5b58da[_0xb900('0x3f')]=[{'all':!![]}];}return db[_0xb900('0x2a')][_0xb900('0x40')](_0x5b58da);})[_0xb900('0x23')](function(_0x447c98){_0x15e6cf['rows']=_0x447c98;return _0x15e6cf;})[_0xb900('0x23')](respondWithFilteredResult(_0x131912,_0x5b58da))[_0xb900('0x41')](handleError(_0x131912,null));};exports[_0xb900('0x42')]=function(_0x3d240b,_0x347574){var _0x5b6a4e={'raw':!![],'where':{'id':_0x3d240b[_0xb900('0x43')]['id']}},_0x4f11a0={};_0x4f11a0[_0xb900('0x31')]=_[_0xb900('0x2f')](db[_0xb900('0x2a')]['rawAttributes']);_0x4f11a0[_0xb900('0x2e')]=_[_0xb900('0x2f')](_0x3d240b['query']);_0x4f11a0['filters']=_[_0xb900('0x30')](_0x4f11a0[_0xb900('0x31')],_0x4f11a0['query']);_0x5b6a4e[_0xb900('0x33')]=_[_0xb900('0x30')](_0x4f11a0[_0xb900('0x31')],qs[_0xb900('0x32')](_0x3d240b[_0xb900('0x2e')][_0xb900('0x32')]));_0x5b6a4e[_0xb900('0x33')]=_0x5b6a4e['attributes']['length']?_0x5b6a4e[_0xb900('0x33')]:_0x4f11a0[_0xb900('0x31')];if(_0x3d240b[_0xb900('0x2e')]['includeAll']){_0x5b6a4e[_0xb900('0x3f')]=[{'all':!![]}];}_0x5b6a4e=_[_0xb900('0x3b')]({},_0x5b6a4e,_0x3d240b[_0xb900('0x44')]);return db['FaxApplication'][_0xb900('0x45')](_0x5b6a4e)[_0xb900('0x23')](handleEntityNotFound(_0x347574,null))[_0xb900('0x23')](respondWithResult(_0x347574,null))[_0xb900('0x41')](handleError(_0x347574,null));};exports[_0xb900('0x46')]=function(_0x3e0211,_0x376afd){return db['FaxApplication'][_0xb900('0x46')](_0x3e0211[_0xb900('0x47')],{})[_0xb900('0x23')](respondWithResult(_0x376afd,0xc9))[_0xb900('0x41')](handleError(_0x376afd,null));};exports[_0xb900('0x22')]=function(_0x144295,_0x539fa2){if(_0x144295[_0xb900('0x47')]['id']){delete _0x144295[_0xb900('0x47')]['id'];}return db[_0xb900('0x2a')][_0xb900('0x45')]({'where':{'id':_0x144295[_0xb900('0x43')]['id']}})[_0xb900('0x23')](handleEntityNotFound(_0x539fa2,null))['then'](saveUpdates(_0x144295['body'],null))['then'](respondWithResult(_0x539fa2,null))[_0xb900('0x41')](handleError(_0x539fa2,null));};exports[_0xb900('0x24')]=function(_0x44f9dc,_0x95fb56){return db['FaxApplication']['find']({'where':{'id':_0x44f9dc[_0xb900('0x43')]['id']}})[_0xb900('0x23')](handleEntityNotFound(_0x95fb56,null))['then'](removeEntity(_0x95fb56,null))['catch'](handleError(_0x95fb56,null));};
\ No newline at end of file
+var _0xf7f3=['../../mysqldb','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','update','then','error','stack','name','index','map','FaxApplication','fieldName','type','model','keys','query','attributes','intersection','fields','length','hasOwnProperty','nolimit','order','sort','where','filters','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','rawAttributes','find','create','body','eml-format','rimraf','zip-dir','fast-json-patch','moment','mustache','util','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util'];(function(_0x26bba7,_0x5a59d9){var _0x4a50d9=function(_0x3c3a08){while(--_0x3c3a08){_0x26bba7['push'](_0x26bba7['shift']());}};_0x4a50d9(++_0x5a59d9);}(_0xf7f3,0x19e));var _0x3f7f=function(_0x30a722,_0x19e000){_0x30a722=_0x30a722-0x0;var _0x109700=_0xf7f3[_0x30a722];return _0x109700;};'use strict';var emlformat=require(_0x3f7f('0x0'));var rimraf=require(_0x3f7f('0x1'));var zipdir=require(_0x3f7f('0x2'));var jsonpatch=require(_0x3f7f('0x3'));var rp=require('request-promise');var moment=require(_0x3f7f('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x3f7f('0x5'));var util=require(_0x3f7f('0x6'));var path=require('path');var sox=require(_0x3f7f('0x7'));var csv=require(_0x3f7f('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x3f7f('0x9'));var _=require(_0x3f7f('0xa'));var squel=require(_0x3f7f('0xb'));var crypto=require(_0x3f7f('0xc'));var jsforce=require(_0x3f7f('0xd'));var deskjs=require(_0x3f7f('0xe'));var toCsv=require(_0x3f7f('0x8'));var querystring=require(_0x3f7f('0xf'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0x3f7f('0x10'));var qs=require(_0x3f7f('0x11'));var as=require(_0x3f7f('0x12'));var hardwareService=require(_0x3f7f('0x13'));var logger=require(_0x3f7f('0x14'))('api');var utils=require(_0x3f7f('0x15'));var config=require(_0x3f7f('0x16'));var licenseUtil=require(_0x3f7f('0x17'));var db=require(_0x3f7f('0x18'))['db'];function respondWithStatusCode(_0x306483,_0x552271){_0x552271=_0x552271||0xcc;return function(_0x41251a){if(_0x41251a){return _0x306483['sendStatus'](_0x552271);}return _0x306483[_0x3f7f('0x19')](_0x552271)[_0x3f7f('0x1a')]();};}function respondWithResult(_0x5ccf6a,_0x4d9796){_0x4d9796=_0x4d9796||0xc8;return function(_0x515893){if(_0x515893){return _0x5ccf6a[_0x3f7f('0x19')](_0x4d9796)[_0x3f7f('0x1b')](_0x515893);}};}function respondWithFilteredResult(_0x291746,_0x58f3b2){return function(_0x2e3a5a){if(_0x2e3a5a){var _0x508de7=typeof _0x58f3b2[_0x3f7f('0x1c')]===_0x3f7f('0x1d')&&typeof _0x58f3b2[_0x3f7f('0x1e')]===_0x3f7f('0x1d');var _0x57b7e3=_0x2e3a5a[_0x3f7f('0x1f')];var _0x1163b5=_0x508de7?0x0:_0x58f3b2[_0x3f7f('0x1c')];var _0xd9fd4a=_0x508de7?_0x2e3a5a[_0x3f7f('0x1f')]:_0x58f3b2[_0x3f7f('0x1c')]+_0x58f3b2[_0x3f7f('0x1e')];var _0x4bb124;if(_0xd9fd4a>=_0x57b7e3){_0xd9fd4a=_0x57b7e3;_0x4bb124=0xc8;}else{_0x4bb124=0xce;}_0x291746[_0x3f7f('0x19')](_0x4bb124);return _0x291746[_0x3f7f('0x20')](_0x3f7f('0x21'),_0x1163b5+'-'+_0xd9fd4a+'/'+_0x57b7e3)[_0x3f7f('0x1b')](_0x2e3a5a);}return null;};}function patchUpdates(_0x53fa85){return function(_0x3ccf61){try{jsonpatch[_0x3f7f('0x22')](_0x3ccf61,_0x53fa85,!![]);}catch(_0x23b610){return BPromise['reject'](_0x23b610);}return _0x3ccf61['save']();};}function saveUpdates(_0x55a18c,_0x3a58b2){return function(_0x2ebc38){if(_0x2ebc38){return _0x2ebc38[_0x3f7f('0x23')](_0x55a18c)[_0x3f7f('0x24')](function(_0xa66f39){return _0xa66f39;});}return null;};}function removeEntity(_0x5b2f0d,_0x8da2d){return function(_0x302636){if(_0x302636){return _0x302636['destroy']()[_0x3f7f('0x24')](function(){_0x5b2f0d[_0x3f7f('0x19')](0xcc)[_0x3f7f('0x1a')]();});}};}function handleEntityNotFound(_0x12ad27,_0x3cf7f2){return function(_0x1b1697){if(!_0x1b1697){_0x12ad27['sendStatus'](0x194);}return _0x1b1697;};}function handleError(_0x413c5b,_0x4ed5ab){_0x4ed5ab=_0x4ed5ab||0x1f4;return function(_0x182f71){logger[_0x3f7f('0x25')](_0x182f71[_0x3f7f('0x26')]);if(_0x182f71[_0x3f7f('0x27')]){delete _0x182f71[_0x3f7f('0x27')];}_0x413c5b['status'](_0x4ed5ab)['send'](_0x182f71);};}exports[_0x3f7f('0x28')]=function(_0x43b786,_0x18ab07){var _0xefecb7={},_0x3ad8f2={},_0x10acb7={'count':0x0,'rows':[]};var _0xb23c9b=_[_0x3f7f('0x29')](db[_0x3f7f('0x2a')]['rawAttributes'],function(_0x406ad3){return{'name':_0x406ad3[_0x3f7f('0x2b')],'type':_0x406ad3[_0x3f7f('0x2c')]['key']};});_0x3ad8f2[_0x3f7f('0x2d')]=_['map'](_0xb23c9b,_0x3f7f('0x27'));_0x3ad8f2['query']=_[_0x3f7f('0x2e')](_0x43b786[_0x3f7f('0x2f')]);_0x3ad8f2['filters']=_['intersection'](_0x3ad8f2[_0x3f7f('0x2d')],_0x3ad8f2[_0x3f7f('0x2f')]);_0xefecb7[_0x3f7f('0x30')]=_[_0x3f7f('0x31')](_0x3ad8f2[_0x3f7f('0x2d')],qs[_0x3f7f('0x32')](_0x43b786[_0x3f7f('0x2f')][_0x3f7f('0x32')]));_0xefecb7[_0x3f7f('0x30')]=_0xefecb7[_0x3f7f('0x30')][_0x3f7f('0x33')]?_0xefecb7[_0x3f7f('0x30')]:_0x3ad8f2[_0x3f7f('0x2d')];if(!_0x43b786[_0x3f7f('0x2f')][_0x3f7f('0x34')](_0x3f7f('0x35'))){_0xefecb7[_0x3f7f('0x1e')]=qs[_0x3f7f('0x1e')](_0x43b786[_0x3f7f('0x2f')]['limit']);_0xefecb7[_0x3f7f('0x1c')]=qs[_0x3f7f('0x1c')](_0x43b786[_0x3f7f('0x2f')][_0x3f7f('0x1c')]);}_0xefecb7[_0x3f7f('0x36')]=qs[_0x3f7f('0x37')](_0x43b786['query'][_0x3f7f('0x37')]);_0xefecb7[_0x3f7f('0x38')]=qs[_0x3f7f('0x39')](_[_0x3f7f('0x3a')](_0x43b786[_0x3f7f('0x2f')],_0x3ad8f2['filters']),_0xb23c9b);if(_0x43b786[_0x3f7f('0x2f')][_0x3f7f('0x3b')]){_0xefecb7[_0x3f7f('0x38')]=_[_0x3f7f('0x3c')](_0xefecb7['where'],{'$or':_[_0x3f7f('0x29')](_0xb23c9b,function(_0x41bb07){if(_0x41bb07[_0x3f7f('0x2c')]!==_0x3f7f('0x3d')){var _0x45fa7a={};_0x45fa7a[_0x41bb07[_0x3f7f('0x27')]]={'$like':'%'+_0x43b786[_0x3f7f('0x2f')][_0x3f7f('0x3b')]+'%'};return _0x45fa7a;}})});}_0xefecb7=_[_0x3f7f('0x3c')]({},_0xefecb7,_0x43b786[_0x3f7f('0x3e')]);var _0x3b53e6={'where':_0xefecb7[_0x3f7f('0x38')]};return db[_0x3f7f('0x2a')][_0x3f7f('0x1f')](_0x3b53e6)[_0x3f7f('0x24')](function(_0x3973c2){_0x10acb7['count']=_0x3973c2;if(_0x43b786[_0x3f7f('0x2f')][_0x3f7f('0x3f')]){_0xefecb7[_0x3f7f('0x40')]=[{'all':!![]}];}return db[_0x3f7f('0x2a')][_0x3f7f('0x41')](_0xefecb7);})['then'](function(_0x57b8ee){_0x10acb7[_0x3f7f('0x42')]=_0x57b8ee;return _0x10acb7;})[_0x3f7f('0x24')](respondWithFilteredResult(_0x18ab07,_0xefecb7))[_0x3f7f('0x43')](handleError(_0x18ab07,null));};exports[_0x3f7f('0x44')]=function(_0x5e1ad5,_0x1fc377){var _0x304804={'raw':!![],'where':{'id':_0x5e1ad5['params']['id']}},_0xcffa5a={};_0xcffa5a['model']=_[_0x3f7f('0x2e')](db[_0x3f7f('0x2a')][_0x3f7f('0x45')]);_0xcffa5a[_0x3f7f('0x2f')]=_[_0x3f7f('0x2e')](_0x5e1ad5[_0x3f7f('0x2f')]);_0xcffa5a[_0x3f7f('0x39')]=_[_0x3f7f('0x31')](_0xcffa5a[_0x3f7f('0x2d')],_0xcffa5a[_0x3f7f('0x2f')]);_0x304804[_0x3f7f('0x30')]=_['intersection'](_0xcffa5a[_0x3f7f('0x2d')],qs[_0x3f7f('0x32')](_0x5e1ad5['query'][_0x3f7f('0x32')]));_0x304804[_0x3f7f('0x30')]=_0x304804[_0x3f7f('0x30')][_0x3f7f('0x33')]?_0x304804[_0x3f7f('0x30')]:_0xcffa5a['model'];if(_0x5e1ad5[_0x3f7f('0x2f')]['includeAll']){_0x304804[_0x3f7f('0x40')]=[{'all':!![]}];}_0x304804=_[_0x3f7f('0x3c')]({},_0x304804,_0x5e1ad5[_0x3f7f('0x3e')]);return db['FaxApplication'][_0x3f7f('0x46')](_0x304804)[_0x3f7f('0x24')](handleEntityNotFound(_0x1fc377,null))['then'](respondWithResult(_0x1fc377,null))[_0x3f7f('0x43')](handleError(_0x1fc377,null));};exports['create']=function(_0x369aa7,_0x4f9df9){return db[_0x3f7f('0x2a')][_0x3f7f('0x47')](_0x369aa7[_0x3f7f('0x48')],{})[_0x3f7f('0x24')](respondWithResult(_0x4f9df9,0xc9))[_0x3f7f('0x43')](handleError(_0x4f9df9,null));};exports[_0x3f7f('0x23')]=function(_0x574956,_0x580356){if(_0x574956[_0x3f7f('0x48')]['id']){delete _0x574956[_0x3f7f('0x48')]['id'];}return db[_0x3f7f('0x2a')][_0x3f7f('0x46')]({'where':{'id':_0x574956['params']['id']}})[_0x3f7f('0x24')](handleEntityNotFound(_0x580356,null))[_0x3f7f('0x24')](saveUpdates(_0x574956[_0x3f7f('0x48')],null))[_0x3f7f('0x24')](respondWithResult(_0x580356,null))[_0x3f7f('0x43')](handleError(_0x580356,null));};exports['destroy']=function(_0x14fadd,_0x1e7378){return db[_0x3f7f('0x2a')][_0x3f7f('0x46')]({'where':{'id':_0x14fadd['params']['id']}})[_0x3f7f('0x24')](handleEntityNotFound(_0x1e7378,null))['then'](removeEntity(_0x1e7378,null))[_0x3f7f('0x43')](handleError(_0x1e7378,null));};
\ No newline at end of file