Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / api / faxTransferReport / faxTransferReport.controller.js
index 55966db..95eafda 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x10b8=['count','set','Content-Range','apply','update','then','stack','name','map','rawAttributes','fieldName','type','key','model','keys','filters','intersection','query','fields','attributes','hasOwnProperty','nolimit','order','sort','where','pick','merge','VIRTUAL','filter','options','FaxTransferReport','include','findAll','rows','catch','show','params','length','includeAll','find','create','body','destroy','describe','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','desk.js','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit'];(function(_0x1780f8,_0x11ba93){var _0x33a410=function(_0x2a015f){while(--_0x2a015f){_0x1780f8['push'](_0x1780f8['shift']());}};_0x33a410(++_0x11ba93);}(_0x10b8,0x10d));var _0x810b=function(_0x26f702,_0x3919bf){_0x26f702=_0x26f702-0x0;var _0x11417d=_0x10b8[_0x26f702];return _0x11417d;};'use strict';var emlformat=require(_0x810b('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x810b('0x1'));var jsonpatch=require(_0x810b('0x2'));var rp=require(_0x810b('0x3'));var moment=require(_0x810b('0x4'));var BPromise=require(_0x810b('0x5'));var Mustache=require(_0x810b('0x6'));var util=require(_0x810b('0x7'));var path=require(_0x810b('0x8'));var sox=require(_0x810b('0x9'));var csv=require(_0x810b('0xa'));var ejs=require(_0x810b('0xb'));var fs=require('fs');var fs_extra=require(_0x810b('0xc'));var _=require(_0x810b('0xd'));var squel=require(_0x810b('0xe'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x810b('0xf'));var toCsv=require(_0x810b('0xa'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0x810b('0x10'));var qs=require(_0x810b('0x11'));var as=require(_0x810b('0x12'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x810b('0x13'))(_0x810b('0x14'));var utils=require('../../config/utils');var config=require(_0x810b('0x15'));var licenseUtil=require(_0x810b('0x16'));var db=require(_0x810b('0x17'))['db'];function respondWithStatusCode(_0x1214bc,_0x5ca33f){_0x5ca33f=_0x5ca33f||0xcc;return function(_0x1baa7a){if(_0x1baa7a){return _0x1214bc[_0x810b('0x18')](_0x5ca33f);}return _0x1214bc[_0x810b('0x19')](_0x5ca33f)[_0x810b('0x1a')]();};}function respondWithResult(_0x4c5715,_0x4f6e8f){_0x4f6e8f=_0x4f6e8f||0xc8;return function(_0x3b87fa){if(_0x3b87fa){return _0x4c5715[_0x810b('0x19')](_0x4f6e8f)[_0x810b('0x1b')](_0x3b87fa);}};}function respondWithFilteredResult(_0xac2aab,_0x5ac7ee){return function(_0x34b994){if(_0x34b994){var _0x389cf3=typeof _0x5ac7ee[_0x810b('0x1c')]===_0x810b('0x1d')&&typeof _0x5ac7ee[_0x810b('0x1e')]===_0x810b('0x1d');var _0x3a7015=_0x34b994[_0x810b('0x1f')];var _0xaaa22a=_0x389cf3?0x0:_0x5ac7ee[_0x810b('0x1c')];var _0x2f64de=_0x389cf3?_0x34b994[_0x810b('0x1f')]:_0x5ac7ee[_0x810b('0x1c')]+_0x5ac7ee[_0x810b('0x1e')];var _0xc8e81;if(_0x2f64de>=_0x3a7015){_0x2f64de=_0x3a7015;_0xc8e81=0xc8;}else{_0xc8e81=0xce;}_0xac2aab['status'](_0xc8e81);return _0xac2aab[_0x810b('0x20')](_0x810b('0x21'),_0xaaa22a+'-'+_0x2f64de+'/'+_0x3a7015)[_0x810b('0x1b')](_0x34b994);}return null;};}function patchUpdates(_0x4745f9){return function(_0xa7b1d7){try{jsonpatch[_0x810b('0x22')](_0xa7b1d7,_0x4745f9,!![]);}catch(_0x499ae0){return BPromise['reject'](_0x499ae0);}return _0xa7b1d7['save']();};}function saveUpdates(_0x398ffb,_0x402f0a){return function(_0x2d1e8f){if(_0x2d1e8f){return _0x2d1e8f[_0x810b('0x23')](_0x398ffb)[_0x810b('0x24')](function(_0x7b9fa7){return _0x7b9fa7;});}return null;};}function removeEntity(_0x3093bd,_0x581213){return function(_0x477fc7){if(_0x477fc7){return _0x477fc7['destroy']()[_0x810b('0x24')](function(){_0x3093bd['status'](0xcc)[_0x810b('0x1a')]();});}};}function handleEntityNotFound(_0x4518ba,_0x4783a1){return function(_0x127055){if(!_0x127055){_0x4518ba['sendStatus'](0x194);}return _0x127055;};}function handleError(_0x579e5e,_0x4501b4){_0x4501b4=_0x4501b4||0x1f4;return function(_0x3c3af1){logger['error'](_0x3c3af1[_0x810b('0x25')]);if(_0x3c3af1[_0x810b('0x26')]){delete _0x3c3af1['name'];}_0x579e5e['status'](_0x4501b4)['send'](_0x3c3af1);};}exports['index']=function(_0x1c5bab,_0x557238){var _0x117392={},_0x358409={},_0x5dbf91={'count':0x0,'rows':[]};var _0xe30e5e=_[_0x810b('0x27')](db['FaxTransferReport'][_0x810b('0x28')],function(_0x5ecbd8){return{'name':_0x5ecbd8[_0x810b('0x29')],'type':_0x5ecbd8[_0x810b('0x2a')][_0x810b('0x2b')]};});_0x358409[_0x810b('0x2c')]=_[_0x810b('0x27')](_0xe30e5e,_0x810b('0x26'));_0x358409['query']=_[_0x810b('0x2d')](_0x1c5bab['query']);_0x358409[_0x810b('0x2e')]=_[_0x810b('0x2f')](_0x358409[_0x810b('0x2c')],_0x358409[_0x810b('0x30')]);_0x117392['attributes']=_[_0x810b('0x2f')](_0x358409[_0x810b('0x2c')],qs[_0x810b('0x31')](_0x1c5bab['query'][_0x810b('0x31')]));_0x117392[_0x810b('0x32')]=_0x117392[_0x810b('0x32')]['length']?_0x117392[_0x810b('0x32')]:_0x358409[_0x810b('0x2c')];if(!_0x1c5bab[_0x810b('0x30')][_0x810b('0x33')](_0x810b('0x34'))){_0x117392[_0x810b('0x1e')]=qs[_0x810b('0x1e')](_0x1c5bab[_0x810b('0x30')][_0x810b('0x1e')]);_0x117392[_0x810b('0x1c')]=qs[_0x810b('0x1c')](_0x1c5bab[_0x810b('0x30')][_0x810b('0x1c')]);}_0x117392[_0x810b('0x35')]=qs[_0x810b('0x36')](_0x1c5bab['query'][_0x810b('0x36')]);_0x117392[_0x810b('0x37')]=qs[_0x810b('0x2e')](_[_0x810b('0x38')](_0x1c5bab[_0x810b('0x30')],_0x358409['filters']),_0xe30e5e);if(_0x1c5bab['query']['filter']){_0x117392['where']=_[_0x810b('0x39')](_0x117392[_0x810b('0x37')],{'$or':_['map'](_0xe30e5e,function(_0x4bfb02){if(_0x4bfb02[_0x810b('0x2a')]!==_0x810b('0x3a')){var _0x4b7828={};_0x4b7828[_0x4bfb02['name']]={'$like':'%'+_0x1c5bab[_0x810b('0x30')][_0x810b('0x3b')]+'%'};return _0x4b7828;}})});}_0x117392=_[_0x810b('0x39')]({},_0x117392,_0x1c5bab[_0x810b('0x3c')]);var _0x17e8e6={'where':_0x117392['where']};return db[_0x810b('0x3d')][_0x810b('0x1f')](_0x17e8e6)[_0x810b('0x24')](function(_0x5413c2){_0x5dbf91[_0x810b('0x1f')]=_0x5413c2;if(_0x1c5bab['query']['includeAll']){_0x117392[_0x810b('0x3e')]=[{'all':!![]}];}return db[_0x810b('0x3d')][_0x810b('0x3f')](_0x117392);})[_0x810b('0x24')](function(_0x20a35e){_0x5dbf91[_0x810b('0x40')]=_0x20a35e;return _0x5dbf91;})[_0x810b('0x24')](respondWithFilteredResult(_0x557238,_0x117392))[_0x810b('0x41')](handleError(_0x557238,null));};exports[_0x810b('0x42')]=function(_0x9968ca,_0x1d1bfe){var _0x55d95a={'raw':!![],'where':{'id':_0x9968ca[_0x810b('0x43')]['id']}},_0x13e666={};_0x13e666[_0x810b('0x2c')]=_[_0x810b('0x2d')](db['FaxTransferReport'][_0x810b('0x28')]);_0x13e666[_0x810b('0x30')]=_[_0x810b('0x2d')](_0x9968ca[_0x810b('0x30')]);_0x13e666[_0x810b('0x2e')]=_[_0x810b('0x2f')](_0x13e666[_0x810b('0x2c')],_0x13e666[_0x810b('0x30')]);_0x55d95a['attributes']=_['intersection'](_0x13e666[_0x810b('0x2c')],qs['fields'](_0x9968ca[_0x810b('0x30')]['fields']));_0x55d95a[_0x810b('0x32')]=_0x55d95a[_0x810b('0x32')][_0x810b('0x44')]?_0x55d95a['attributes']:_0x13e666[_0x810b('0x2c')];if(_0x9968ca[_0x810b('0x30')][_0x810b('0x45')]){_0x55d95a[_0x810b('0x3e')]=[{'all':!![]}];}_0x55d95a=_[_0x810b('0x39')]({},_0x55d95a,_0x9968ca[_0x810b('0x3c')]);return db['FaxTransferReport'][_0x810b('0x46')](_0x55d95a)[_0x810b('0x24')](handleEntityNotFound(_0x1d1bfe,null))[_0x810b('0x24')](respondWithResult(_0x1d1bfe,null))[_0x810b('0x41')](handleError(_0x1d1bfe,null));};exports[_0x810b('0x47')]=function(_0x29110c,_0x7604a9){return db[_0x810b('0x3d')]['create'](_0x29110c[_0x810b('0x48')],{})[_0x810b('0x24')](respondWithResult(_0x7604a9,0xc9))['catch'](handleError(_0x7604a9,null));};exports[_0x810b('0x23')]=function(_0x376ba2,_0x3caccb){if(_0x376ba2[_0x810b('0x48')]['id']){delete _0x376ba2[_0x810b('0x48')]['id'];}return db[_0x810b('0x3d')][_0x810b('0x46')]({'where':{'id':_0x376ba2[_0x810b('0x43')]['id']}})['then'](handleEntityNotFound(_0x3caccb,null))['then'](saveUpdates(_0x376ba2[_0x810b('0x48')],null))[_0x810b('0x24')](respondWithResult(_0x3caccb,null))[_0x810b('0x41')](handleError(_0x3caccb,null));};exports[_0x810b('0x49')]=function(_0x1daf92,_0x5b8f4d){return db[_0x810b('0x3d')][_0x810b('0x46')]({'where':{'id':_0x1daf92[_0x810b('0x43')]['id']}})['then'](handleEntityNotFound(_0x5b8f4d,null))[_0x810b('0x24')](removeEntity(_0x5b8f4d,null))[_0x810b('0x41')](handleError(_0x5b8f4d,null));};exports[_0x810b('0x4a')]=function(_0x199cbf,_0x4b8f47){return db[_0x810b('0x3d')][_0x810b('0x4a')]()[_0x810b('0x24')](respondWithResult(_0x4b8f47,null))[_0x810b('0x41')](handleError(_0x4b8f47,null));};
\ No newline at end of file
+var _0x5893=['body','describe','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','sendStatus','end','status','json','undefined','limit','count','offset','set','Content-Range','apply','reject','save','update','then','destroy','name','index','map','FaxTransferReport','rawAttributes','fieldName','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','order','sort','where','filter','merge','type','VIRTUAL','options','includeAll','findAll','catch','show','params','include','find','create'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5893,0x1b8));var _0x3589=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x5893[_0x122ef9];return _0x42fba0;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x3589('0x0'));var zipdir=require(_0x3589('0x1'));var jsonpatch=require(_0x3589('0x2'));var rp=require(_0x3589('0x3'));var moment=require('moment');var BPromise=require(_0x3589('0x4'));var Mustache=require(_0x3589('0x5'));var util=require(_0x3589('0x6'));var path=require(_0x3589('0x7'));var sox=require(_0x3589('0x8'));var csv=require(_0x3589('0x9'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x3589('0xa'));var _=require(_0x3589('0xb'));var squel=require(_0x3589('0xc'));var crypto=require(_0x3589('0xd'));var jsforce=require(_0x3589('0xe'));var deskjs=require(_0x3589('0xf'));var toCsv=require('to-csv');var querystring=require(_0x3589('0x10'));var Papa=require(_0x3589('0x11'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x3589('0x12'));var as=require(_0x3589('0x13'));var hardwareService=require(_0x3589('0x14'));var logger=require('../../config/logger')(_0x3589('0x15'));var utils=require(_0x3589('0x16'));var config=require(_0x3589('0x17'));var licenseUtil=require('../../config/license/util');var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x20cd2,_0x1ddaa3){_0x1ddaa3=_0x1ddaa3||0xcc;return function(_0x4f5eac){if(_0x4f5eac){return _0x20cd2[_0x3589('0x18')](_0x1ddaa3);}return _0x20cd2['status'](_0x1ddaa3)[_0x3589('0x19')]();};}function respondWithResult(_0xa6986f,_0x4a2cc7){_0x4a2cc7=_0x4a2cc7||0xc8;return function(_0xa9ec26){if(_0xa9ec26){return _0xa6986f[_0x3589('0x1a')](_0x4a2cc7)[_0x3589('0x1b')](_0xa9ec26);}};}function respondWithFilteredResult(_0x1afdb3,_0x3b0dd0){return function(_0x54d963){if(_0x54d963){var _0x232fa3=typeof _0x3b0dd0['offset']===_0x3589('0x1c')&&typeof _0x3b0dd0[_0x3589('0x1d')]==='undefined';var _0x48dfa5=_0x54d963['count'];var _0x472795=_0x232fa3?0x0:_0x3b0dd0['offset'];var _0x40f4ca=_0x232fa3?_0x54d963[_0x3589('0x1e')]:_0x3b0dd0[_0x3589('0x1f')]+_0x3b0dd0[_0x3589('0x1d')];var _0x4388b0;if(_0x40f4ca>=_0x48dfa5){_0x40f4ca=_0x48dfa5;_0x4388b0=0xc8;}else{_0x4388b0=0xce;}_0x1afdb3[_0x3589('0x1a')](_0x4388b0);return _0x1afdb3[_0x3589('0x20')](_0x3589('0x21'),_0x472795+'-'+_0x40f4ca+'/'+_0x48dfa5)[_0x3589('0x1b')](_0x54d963);}return null;};}function patchUpdates(_0x3a4963){return function(_0x391256){try{jsonpatch[_0x3589('0x22')](_0x391256,_0x3a4963,!![]);}catch(_0x18406a){return BPromise[_0x3589('0x23')](_0x18406a);}return _0x391256[_0x3589('0x24')]();};}function saveUpdates(_0x176cbc,_0x2cf678){return function(_0x36cf63){if(_0x36cf63){return _0x36cf63[_0x3589('0x25')](_0x176cbc)[_0x3589('0x26')](function(_0xe5dffa){return _0xe5dffa;});}return null;};}function removeEntity(_0x45e1c5,_0x2356bb){return function(_0x3349a0){if(_0x3349a0){return _0x3349a0[_0x3589('0x27')]()[_0x3589('0x26')](function(){_0x45e1c5['status'](0xcc)[_0x3589('0x19')]();});}};}function handleEntityNotFound(_0x2c1112,_0xe12b10){return function(_0x4ebd6e){if(!_0x4ebd6e){_0x2c1112[_0x3589('0x18')](0x194);}return _0x4ebd6e;};}function handleError(_0x896909,_0x8556ba){_0x8556ba=_0x8556ba||0x1f4;return function(_0x2482c2){logger['error'](_0x2482c2['stack']);if(_0x2482c2[_0x3589('0x28')]){delete _0x2482c2[_0x3589('0x28')];}_0x896909[_0x3589('0x1a')](_0x8556ba)['send'](_0x2482c2);};}exports[_0x3589('0x29')]=function(_0x41ef1,_0x5b133a){var _0x58f2e2={},_0x437def={},_0x88f37d={'count':0x0,'rows':[]};var _0x496a27=_[_0x3589('0x2a')](db[_0x3589('0x2b')][_0x3589('0x2c')],function(_0x116e7f){return{'name':_0x116e7f[_0x3589('0x2d')],'type':_0x116e7f['type']['key']};});_0x437def[_0x3589('0x2e')]=_[_0x3589('0x2a')](_0x496a27,_0x3589('0x28'));_0x437def[_0x3589('0x2f')]=_[_0x3589('0x30')](_0x41ef1[_0x3589('0x2f')]);_0x437def[_0x3589('0x31')]=_[_0x3589('0x32')](_0x437def[_0x3589('0x2e')],_0x437def[_0x3589('0x2f')]);_0x58f2e2['attributes']=_[_0x3589('0x32')](_0x437def[_0x3589('0x2e')],qs[_0x3589('0x33')](_0x41ef1[_0x3589('0x2f')][_0x3589('0x33')]));_0x58f2e2[_0x3589('0x34')]=_0x58f2e2[_0x3589('0x34')][_0x3589('0x35')]?_0x58f2e2[_0x3589('0x34')]:_0x437def[_0x3589('0x2e')];if(!_0x41ef1['query'][_0x3589('0x36')]('nolimit')){_0x58f2e2[_0x3589('0x1d')]=qs[_0x3589('0x1d')](_0x41ef1['query'][_0x3589('0x1d')]);_0x58f2e2[_0x3589('0x1f')]=qs[_0x3589('0x1f')](_0x41ef1[_0x3589('0x2f')]['offset']);}_0x58f2e2[_0x3589('0x37')]=qs[_0x3589('0x38')](_0x41ef1[_0x3589('0x2f')]['sort']);_0x58f2e2[_0x3589('0x39')]=qs[_0x3589('0x31')](_['pick'](_0x41ef1[_0x3589('0x2f')],_0x437def[_0x3589('0x31')]),_0x496a27);if(_0x41ef1['query'][_0x3589('0x3a')]){_0x58f2e2[_0x3589('0x39')]=_[_0x3589('0x3b')](_0x58f2e2['where'],{'$or':_['map'](_0x496a27,function(_0x5c9f3b){if(_0x5c9f3b[_0x3589('0x3c')]!==_0x3589('0x3d')){var _0x290ae4={};_0x290ae4[_0x5c9f3b[_0x3589('0x28')]]={'$like':'%'+_0x41ef1[_0x3589('0x2f')][_0x3589('0x3a')]+'%'};return _0x290ae4;}})});}_0x58f2e2=_[_0x3589('0x3b')]({},_0x58f2e2,_0x41ef1[_0x3589('0x3e')]);var _0x9332f7={'where':_0x58f2e2[_0x3589('0x39')]};return db[_0x3589('0x2b')]['count'](_0x9332f7)[_0x3589('0x26')](function(_0x3a7419){_0x88f37d[_0x3589('0x1e')]=_0x3a7419;if(_0x41ef1[_0x3589('0x2f')][_0x3589('0x3f')]){_0x58f2e2['include']=[{'all':!![]}];}return db[_0x3589('0x2b')][_0x3589('0x40')](_0x58f2e2);})[_0x3589('0x26')](function(_0x27dc44){_0x88f37d['rows']=_0x27dc44;return _0x88f37d;})[_0x3589('0x26')](respondWithFilteredResult(_0x5b133a,_0x58f2e2))[_0x3589('0x41')](handleError(_0x5b133a,null));};exports[_0x3589('0x42')]=function(_0x51fd2a,_0x4ddbfb){var _0x294ad7={'raw':!![],'where':{'id':_0x51fd2a[_0x3589('0x43')]['id']}},_0x5ea3a={};_0x5ea3a[_0x3589('0x2e')]=_[_0x3589('0x30')](db[_0x3589('0x2b')][_0x3589('0x2c')]);_0x5ea3a[_0x3589('0x2f')]=_[_0x3589('0x30')](_0x51fd2a[_0x3589('0x2f')]);_0x5ea3a[_0x3589('0x31')]=_[_0x3589('0x32')](_0x5ea3a[_0x3589('0x2e')],_0x5ea3a['query']);_0x294ad7[_0x3589('0x34')]=_[_0x3589('0x32')](_0x5ea3a[_0x3589('0x2e')],qs['fields'](_0x51fd2a[_0x3589('0x2f')][_0x3589('0x33')]));_0x294ad7[_0x3589('0x34')]=_0x294ad7[_0x3589('0x34')][_0x3589('0x35')]?_0x294ad7[_0x3589('0x34')]:_0x5ea3a[_0x3589('0x2e')];if(_0x51fd2a[_0x3589('0x2f')][_0x3589('0x3f')]){_0x294ad7[_0x3589('0x44')]=[{'all':!![]}];}_0x294ad7=_[_0x3589('0x3b')]({},_0x294ad7,_0x51fd2a[_0x3589('0x3e')]);return db[_0x3589('0x2b')][_0x3589('0x45')](_0x294ad7)['then'](handleEntityNotFound(_0x4ddbfb,null))[_0x3589('0x26')](respondWithResult(_0x4ddbfb,null))['catch'](handleError(_0x4ddbfb,null));};exports[_0x3589('0x46')]=function(_0x4ada06,_0x217b7c){return db[_0x3589('0x2b')][_0x3589('0x46')](_0x4ada06['body'],{})[_0x3589('0x26')](respondWithResult(_0x217b7c,0xc9))[_0x3589('0x41')](handleError(_0x217b7c,null));};exports[_0x3589('0x25')]=function(_0x5b8102,_0x576a7c){if(_0x5b8102['body']['id']){delete _0x5b8102[_0x3589('0x47')]['id'];}return db[_0x3589('0x2b')][_0x3589('0x45')]({'where':{'id':_0x5b8102[_0x3589('0x43')]['id']}})[_0x3589('0x26')](handleEntityNotFound(_0x576a7c,null))['then'](saveUpdates(_0x5b8102['body'],null))['then'](respondWithResult(_0x576a7c,null))[_0x3589('0x41')](handleError(_0x576a7c,null));};exports[_0x3589('0x27')]=function(_0x430ea9,_0x13a10a){return db[_0x3589('0x2b')][_0x3589('0x45')]({'where':{'id':_0x430ea9[_0x3589('0x43')]['id']}})[_0x3589('0x26')](handleEntityNotFound(_0x13a10a,null))['then'](removeEntity(_0x13a10a,null))[_0x3589('0x41')](handleError(_0x13a10a,null));};exports['describe']=function(_0x4432c4,_0x43a8ae){return db[_0x3589('0x2b')][_0x3589('0x48')]()[_0x3589('0x26')](respondWithResult(_0x43a8ae,null))['catch'](handleError(_0x43a8ae,null));};
\ No newline at end of file