Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / faxQueueReport / faxQueueReport.controller.js
index 07fc84e..ca7cd57 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd4bd=['limit','count','Content-Range','json','apply','reject','update','destroy','then','error','stack','name','send','index','map','FaxQueueReport','rawAttributes','fieldName','type','key','model','query','keys','filters','attributes','intersection','fields','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','rows','catch','length','find','create','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','fs-extra','squel','crypto','to-csv','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','offset','undefined'];(function(_0x1569bd,_0x1a1461){var _0x40e370=function(_0x2b68aa){while(--_0x2b68aa){_0x1569bd['push'](_0x1569bd['shift']());}};_0x40e370(++_0x1a1461);}(_0xd4bd,0x15f));var _0xdd4b=function(_0x479372,_0x1bb4d3){_0x479372=_0x479372-0x0;var _0x3a9b00=_0xd4bd[_0x479372];return _0x3a9b00;};'use strict';var emlformat=require(_0xdd4b('0x0'));var rimraf=require(_0xdd4b('0x1'));var zipdir=require(_0xdd4b('0x2'));var jsonpatch=require(_0xdd4b('0x3'));var rp=require(_0xdd4b('0x4'));var moment=require('moment');var BPromise=require(_0xdd4b('0x5'));var Mustache=require(_0xdd4b('0x6'));var util=require(_0xdd4b('0x7'));var path=require(_0xdd4b('0x8'));var sox=require(_0xdd4b('0x9'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xdd4b('0xa'));var _=require('lodash');var squel=require(_0xdd4b('0xb'));var crypto=require(_0xdd4b('0xc'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0xdd4b('0xd'));var querystring=require(_0xdd4b('0xe'));var Papa=require('papaparse');var Redis=require(_0xdd4b('0xf'));var authService=require(_0xdd4b('0x10'));var qs=require(_0xdd4b('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xdd4b('0x12'));var logger=require(_0xdd4b('0x13'))(_0xdd4b('0x14'));var utils=require(_0xdd4b('0x15'));var config=require(_0xdd4b('0x16'));var licenseUtil=require(_0xdd4b('0x17'));var db=require(_0xdd4b('0x18'))['db'];function respondWithStatusCode(_0x115e70,_0x594339){_0x594339=_0x594339||0xcc;return function(_0x2a88ab){if(_0x2a88ab){return _0x115e70['sendStatus'](_0x594339);}return _0x115e70[_0xdd4b('0x19')](_0x594339)[_0xdd4b('0x1a')]();};}function respondWithResult(_0x2dc062,_0x5dc694){_0x5dc694=_0x5dc694||0xc8;return function(_0x327f9e){if(_0x327f9e){return _0x2dc062[_0xdd4b('0x19')](_0x5dc694)['json'](_0x327f9e);}};}function respondWithFilteredResult(_0x5ccc78,_0x3a7f2a){return function(_0x368842){if(_0x368842){var _0x39f053=typeof _0x3a7f2a[_0xdd4b('0x1b')]===_0xdd4b('0x1c')&&typeof _0x3a7f2a[_0xdd4b('0x1d')]===_0xdd4b('0x1c');var _0x5817fa=_0x368842[_0xdd4b('0x1e')];var _0x423e39=_0x39f053?0x0:_0x3a7f2a[_0xdd4b('0x1b')];var _0x5331d7=_0x39f053?_0x368842[_0xdd4b('0x1e')]:_0x3a7f2a['offset']+_0x3a7f2a['limit'];var _0x3b0232;if(_0x5331d7>=_0x5817fa){_0x5331d7=_0x5817fa;_0x3b0232=0xc8;}else{_0x3b0232=0xce;}_0x5ccc78[_0xdd4b('0x19')](_0x3b0232);return _0x5ccc78['set'](_0xdd4b('0x1f'),_0x423e39+'-'+_0x5331d7+'/'+_0x5817fa)[_0xdd4b('0x20')](_0x368842);}return null;};}function patchUpdates(_0xf6eb51){return function(_0x1fbbe7){try{jsonpatch[_0xdd4b('0x21')](_0x1fbbe7,_0xf6eb51,!![]);}catch(_0x5a19ca){return BPromise[_0xdd4b('0x22')](_0x5a19ca);}return _0x1fbbe7['save']();};}function saveUpdates(_0x48e75e,_0x2325fe){return function(_0x26c32b){if(_0x26c32b){return _0x26c32b[_0xdd4b('0x23')](_0x48e75e)['then'](function(_0xa66301){return _0xa66301;});}return null;};}function removeEntity(_0x1ba012,_0x1b55b5){return function(_0x333a3f){if(_0x333a3f){return _0x333a3f[_0xdd4b('0x24')]()[_0xdd4b('0x25')](function(){_0x1ba012['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x4800de,_0xd6bfcb){return function(_0x304f46){if(!_0x304f46){_0x4800de['sendStatus'](0x194);}return _0x304f46;};}function handleError(_0x4d9896,_0x2d4f73){_0x2d4f73=_0x2d4f73||0x1f4;return function(_0x24fa06){logger[_0xdd4b('0x26')](_0x24fa06[_0xdd4b('0x27')]);if(_0x24fa06[_0xdd4b('0x28')]){delete _0x24fa06['name'];}_0x4d9896[_0xdd4b('0x19')](_0x2d4f73)[_0xdd4b('0x29')](_0x24fa06);};}exports[_0xdd4b('0x2a')]=function(_0x1f70b3,_0x32489f){var _0x14a40f={},_0x4de481={},_0x420597={'count':0x0,'rows':[]};var _0x3c841a=_[_0xdd4b('0x2b')](db[_0xdd4b('0x2c')][_0xdd4b('0x2d')],function(_0x132646){return{'name':_0x132646[_0xdd4b('0x2e')],'type':_0x132646[_0xdd4b('0x2f')][_0xdd4b('0x30')]};});_0x4de481[_0xdd4b('0x31')]=_[_0xdd4b('0x2b')](_0x3c841a,_0xdd4b('0x28'));_0x4de481[_0xdd4b('0x32')]=_[_0xdd4b('0x33')](_0x1f70b3[_0xdd4b('0x32')]);_0x4de481[_0xdd4b('0x34')]=_['intersection'](_0x4de481['model'],_0x4de481[_0xdd4b('0x32')]);_0x14a40f[_0xdd4b('0x35')]=_[_0xdd4b('0x36')](_0x4de481['model'],qs[_0xdd4b('0x37')](_0x1f70b3[_0xdd4b('0x32')]['fields']));_0x14a40f['attributes']=_0x14a40f[_0xdd4b('0x35')]['length']?_0x14a40f[_0xdd4b('0x35')]:_0x4de481['model'];if(!_0x1f70b3['query'][_0xdd4b('0x38')](_0xdd4b('0x39'))){_0x14a40f['limit']=qs[_0xdd4b('0x1d')](_0x1f70b3[_0xdd4b('0x32')][_0xdd4b('0x1d')]);_0x14a40f[_0xdd4b('0x1b')]=qs[_0xdd4b('0x1b')](_0x1f70b3[_0xdd4b('0x32')][_0xdd4b('0x1b')]);}_0x14a40f[_0xdd4b('0x3a')]=qs[_0xdd4b('0x3b')](_0x1f70b3[_0xdd4b('0x32')][_0xdd4b('0x3b')]);_0x14a40f[_0xdd4b('0x3c')]=qs[_0xdd4b('0x34')](_[_0xdd4b('0x3d')](_0x1f70b3[_0xdd4b('0x32')],_0x4de481['filters']),_0x3c841a);if(_0x1f70b3[_0xdd4b('0x32')][_0xdd4b('0x3e')]){_0x14a40f[_0xdd4b('0x3c')]=_[_0xdd4b('0x3f')](_0x14a40f[_0xdd4b('0x3c')],{'$or':_[_0xdd4b('0x2b')](_0x3c841a,function(_0x3af2d8){if(_0x3af2d8[_0xdd4b('0x2f')]!==_0xdd4b('0x40')){var _0x1bc914={};_0x1bc914[_0x3af2d8[_0xdd4b('0x28')]]={'$like':'%'+_0x1f70b3['query'][_0xdd4b('0x3e')]+'%'};return _0x1bc914;}})});}_0x14a40f=_[_0xdd4b('0x3f')]({},_0x14a40f,_0x1f70b3[_0xdd4b('0x41')]);var _0x566669={'where':_0x14a40f[_0xdd4b('0x3c')]};return db[_0xdd4b('0x2c')][_0xdd4b('0x1e')](_0x566669)[_0xdd4b('0x25')](function(_0x88002d){_0x420597[_0xdd4b('0x1e')]=_0x88002d;if(_0x1f70b3['query'][_0xdd4b('0x42')]){_0x14a40f[_0xdd4b('0x43')]=[{'all':!![]}];}return db[_0xdd4b('0x2c')]['findAll'](_0x14a40f);})[_0xdd4b('0x25')](function(_0x255e2b){_0x420597[_0xdd4b('0x44')]=_0x255e2b;return _0x420597;})[_0xdd4b('0x25')](respondWithFilteredResult(_0x32489f,_0x14a40f))[_0xdd4b('0x45')](handleError(_0x32489f,null));};exports['show']=function(_0x293878,_0x44bf64){var _0x53d98a={'raw':!![],'where':{'id':_0x293878['params']['id']}},_0x333bed={};_0x333bed[_0xdd4b('0x31')]=_['keys'](db['FaxQueueReport'][_0xdd4b('0x2d')]);_0x333bed[_0xdd4b('0x32')]=_[_0xdd4b('0x33')](_0x293878[_0xdd4b('0x32')]);_0x333bed['filters']=_[_0xdd4b('0x36')](_0x333bed[_0xdd4b('0x31')],_0x333bed[_0xdd4b('0x32')]);_0x53d98a[_0xdd4b('0x35')]=_[_0xdd4b('0x36')](_0x333bed[_0xdd4b('0x31')],qs[_0xdd4b('0x37')](_0x293878['query']['fields']));_0x53d98a[_0xdd4b('0x35')]=_0x53d98a['attributes'][_0xdd4b('0x46')]?_0x53d98a[_0xdd4b('0x35')]:_0x333bed[_0xdd4b('0x31')];if(_0x293878[_0xdd4b('0x32')][_0xdd4b('0x42')]){_0x53d98a['include']=[{'all':!![]}];}_0x53d98a=_[_0xdd4b('0x3f')]({},_0x53d98a,_0x293878[_0xdd4b('0x41')]);return db[_0xdd4b('0x2c')][_0xdd4b('0x47')](_0x53d98a)['then'](handleEntityNotFound(_0x44bf64,null))[_0xdd4b('0x25')](respondWithResult(_0x44bf64,null))[_0xdd4b('0x45')](handleError(_0x44bf64,null));};exports[_0xdd4b('0x48')]=function(_0x59edf7,_0x401152){return db[_0xdd4b('0x2c')]['create'](_0x59edf7[_0xdd4b('0x49')],{})['then'](respondWithResult(_0x401152,0xc9))[_0xdd4b('0x45')](handleError(_0x401152,null));};exports[_0xdd4b('0x23')]=function(_0xffa891,_0x3121ee){if(_0xffa891[_0xdd4b('0x49')]['id']){delete _0xffa891[_0xdd4b('0x49')]['id'];}return db[_0xdd4b('0x2c')][_0xdd4b('0x47')]({'where':{'id':_0xffa891[_0xdd4b('0x4a')]['id']}})['then'](handleEntityNotFound(_0x3121ee,null))[_0xdd4b('0x25')](saveUpdates(_0xffa891[_0xdd4b('0x49')],null))[_0xdd4b('0x25')](respondWithResult(_0x3121ee,null))['catch'](handleError(_0x3121ee,null));};exports[_0xdd4b('0x24')]=function(_0xd1bde8,_0x539f05){return db[_0xdd4b('0x2c')][_0xdd4b('0x47')]({'where':{'id':_0xd1bde8[_0xdd4b('0x4a')]['id']}})[_0xdd4b('0x25')](handleEntityNotFound(_0x539f05,null))[_0xdd4b('0x25')](removeEntity(_0x539f05,null))[_0xdd4b('0x45')](handleError(_0x539f05,null));};exports[_0xdd4b('0x4b')]=function(_0x43e6ca,_0xda3cc4){return db[_0xdd4b('0x2c')]['describe']()[_0xdd4b('0x25')](respondWithResult(_0xda3cc4,null))['catch'](handleError(_0xda3cc4,null));};
\ No newline at end of file
+var _0x867f=['catch','params','rawAttributes','keys','find','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','to-csv','ejs','fs-extra','lodash','squel','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../mysqldb','status','json','offset','undefined','limit','count','apply','reject','save','update','destroy','end','sendStatus','error','stack','name','send','index','map','FaxQueueReport','fieldName','type','key','model','query','intersection','attributes','fields','hasOwnProperty','order','sort','where','pick','filters','filter','merge','options','then','includeAll','include','rows'];(function(_0x1ba555,_0x28fc4){var _0x330b18=function(_0x5aa0df){while(--_0x5aa0df){_0x1ba555['push'](_0x1ba555['shift']());}};_0x330b18(++_0x28fc4);}(_0x867f,0xe6));var _0xf867=function(_0x47623f,_0x148f3a){_0x47623f=_0x47623f-0x0;var _0x282ce8=_0x867f[_0x47623f];return _0x282ce8;};'use strict';var emlformat=require(_0xf867('0x0'));var rimraf=require(_0xf867('0x1'));var zipdir=require(_0xf867('0x2'));var jsonpatch=require(_0xf867('0x3'));var rp=require(_0xf867('0x4'));var moment=require(_0xf867('0x5'));var BPromise=require(_0xf867('0x6'));var Mustache=require(_0xf867('0x7'));var util=require(_0xf867('0x8'));var path=require('path');var sox=require('sox');var csv=require(_0xf867('0x9'));var ejs=require(_0xf867('0xa'));var fs=require('fs');var fs_extra=require(_0xf867('0xb'));var _=require(_0xf867('0xc'));var squel=require(_0xf867('0xd'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xf867('0xe'));var toCsv=require('to-csv');var querystring=require(_0xf867('0xf'));var Papa=require(_0xf867('0x10'));var Redis=require(_0xf867('0x11'));var authService=require(_0xf867('0x12'));var qs=require(_0xf867('0x13'));var as=require(_0xf867('0x14'));var hardwareService=require(_0xf867('0x15'));var logger=require(_0xf867('0x16'))('api');var utils=require(_0xf867('0x17'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0xf867('0x18'))['db'];function respondWithStatusCode(_0x1792ae,_0x20fe34){_0x20fe34=_0x20fe34||0xcc;return function(_0x56740c){if(_0x56740c){return _0x1792ae['sendStatus'](_0x20fe34);}return _0x1792ae[_0xf867('0x19')](_0x20fe34)['end']();};}function respondWithResult(_0x352f0b,_0x49ff40){_0x49ff40=_0x49ff40||0xc8;return function(_0x48ff28){if(_0x48ff28){return _0x352f0b[_0xf867('0x19')](_0x49ff40)[_0xf867('0x1a')](_0x48ff28);}};}function respondWithFilteredResult(_0x7a143e,_0x13973b){return function(_0x38fed9){if(_0x38fed9){var _0x1e5161=typeof _0x13973b[_0xf867('0x1b')]===_0xf867('0x1c')&&typeof _0x13973b[_0xf867('0x1d')]==='undefined';var _0x44f6f1=_0x38fed9['count'];var _0x39f9e8=_0x1e5161?0x0:_0x13973b['offset'];var _0x51bdb3=_0x1e5161?_0x38fed9[_0xf867('0x1e')]:_0x13973b['offset']+_0x13973b['limit'];var _0x2092af;if(_0x51bdb3>=_0x44f6f1){_0x51bdb3=_0x44f6f1;_0x2092af=0xc8;}else{_0x2092af=0xce;}_0x7a143e[_0xf867('0x19')](_0x2092af);return _0x7a143e['set']('Content-Range',_0x39f9e8+'-'+_0x51bdb3+'/'+_0x44f6f1)[_0xf867('0x1a')](_0x38fed9);}return null;};}function patchUpdates(_0x23e7dd){return function(_0x1456ce){try{jsonpatch[_0xf867('0x1f')](_0x1456ce,_0x23e7dd,!![]);}catch(_0x419f75){return BPromise[_0xf867('0x20')](_0x419f75);}return _0x1456ce[_0xf867('0x21')]();};}function saveUpdates(_0x34db74,_0x586a25){return function(_0x568aba){if(_0x568aba){return _0x568aba[_0xf867('0x22')](_0x34db74)['then'](function(_0x3072b7){return _0x3072b7;});}return null;};}function removeEntity(_0x3fc971,_0x4da34b){return function(_0x419b6f){if(_0x419b6f){return _0x419b6f[_0xf867('0x23')]()['then'](function(){_0x3fc971[_0xf867('0x19')](0xcc)[_0xf867('0x24')]();});}};}function handleEntityNotFound(_0x167e70,_0x1bc6ca){return function(_0x58bded){if(!_0x58bded){_0x167e70[_0xf867('0x25')](0x194);}return _0x58bded;};}function handleError(_0x67e3a,_0x2efca3){_0x2efca3=_0x2efca3||0x1f4;return function(_0xd765c){logger[_0xf867('0x26')](_0xd765c[_0xf867('0x27')]);if(_0xd765c[_0xf867('0x28')]){delete _0xd765c[_0xf867('0x28')];}_0x67e3a[_0xf867('0x19')](_0x2efca3)[_0xf867('0x29')](_0xd765c);};}exports[_0xf867('0x2a')]=function(_0x57bf28,_0xb6d069){var _0x3981d0={},_0x39218a={},_0xb0dcdd={'count':0x0,'rows':[]};var _0x350d6d=_[_0xf867('0x2b')](db[_0xf867('0x2c')]['rawAttributes'],function(_0x44ddd4){return{'name':_0x44ddd4[_0xf867('0x2d')],'type':_0x44ddd4[_0xf867('0x2e')][_0xf867('0x2f')]};});_0x39218a[_0xf867('0x30')]=_[_0xf867('0x2b')](_0x350d6d,_0xf867('0x28'));_0x39218a[_0xf867('0x31')]=_['keys'](_0x57bf28[_0xf867('0x31')]);_0x39218a['filters']=_[_0xf867('0x32')](_0x39218a['model'],_0x39218a[_0xf867('0x31')]);_0x3981d0[_0xf867('0x33')]=_[_0xf867('0x32')](_0x39218a['model'],qs[_0xf867('0x34')](_0x57bf28[_0xf867('0x31')]['fields']));_0x3981d0['attributes']=_0x3981d0[_0xf867('0x33')]['length']?_0x3981d0[_0xf867('0x33')]:_0x39218a[_0xf867('0x30')];if(!_0x57bf28[_0xf867('0x31')][_0xf867('0x35')]('nolimit')){_0x3981d0['limit']=qs[_0xf867('0x1d')](_0x57bf28[_0xf867('0x31')][_0xf867('0x1d')]);_0x3981d0['offset']=qs[_0xf867('0x1b')](_0x57bf28[_0xf867('0x31')]['offset']);}_0x3981d0[_0xf867('0x36')]=qs['sort'](_0x57bf28[_0xf867('0x31')][_0xf867('0x37')]);_0x3981d0[_0xf867('0x38')]=qs['filters'](_[_0xf867('0x39')](_0x57bf28['query'],_0x39218a[_0xf867('0x3a')]),_0x350d6d);if(_0x57bf28[_0xf867('0x31')][_0xf867('0x3b')]){_0x3981d0[_0xf867('0x38')]=_[_0xf867('0x3c')](_0x3981d0[_0xf867('0x38')],{'$or':_[_0xf867('0x2b')](_0x350d6d,function(_0x2a2e81){if(_0x2a2e81['type']!=='VIRTUAL'){var _0x4a877={};_0x4a877[_0x2a2e81[_0xf867('0x28')]]={'$like':'%'+_0x57bf28[_0xf867('0x31')][_0xf867('0x3b')]+'%'};return _0x4a877;}})});}_0x3981d0=_[_0xf867('0x3c')]({},_0x3981d0,_0x57bf28[_0xf867('0x3d')]);var _0x36ccbe={'where':_0x3981d0['where']};return db[_0xf867('0x2c')][_0xf867('0x1e')](_0x36ccbe)[_0xf867('0x3e')](function(_0x352f8e){_0xb0dcdd[_0xf867('0x1e')]=_0x352f8e;if(_0x57bf28[_0xf867('0x31')][_0xf867('0x3f')]){_0x3981d0[_0xf867('0x40')]=[{'all':!![]}];}return db[_0xf867('0x2c')]['findAll'](_0x3981d0);})[_0xf867('0x3e')](function(_0x4e31d8){_0xb0dcdd[_0xf867('0x41')]=_0x4e31d8;return _0xb0dcdd;})[_0xf867('0x3e')](respondWithFilteredResult(_0xb6d069,_0x3981d0))[_0xf867('0x42')](handleError(_0xb6d069,null));};exports['show']=function(_0x16dfd3,_0x86d79c){var _0x27421a={'raw':!![],'where':{'id':_0x16dfd3[_0xf867('0x43')]['id']}},_0xed868d={};_0xed868d[_0xf867('0x30')]=_['keys'](db[_0xf867('0x2c')][_0xf867('0x44')]);_0xed868d[_0xf867('0x31')]=_[_0xf867('0x45')](_0x16dfd3[_0xf867('0x31')]);_0xed868d['filters']=_[_0xf867('0x32')](_0xed868d['model'],_0xed868d[_0xf867('0x31')]);_0x27421a[_0xf867('0x33')]=_['intersection'](_0xed868d[_0xf867('0x30')],qs[_0xf867('0x34')](_0x16dfd3[_0xf867('0x31')][_0xf867('0x34')]));_0x27421a[_0xf867('0x33')]=_0x27421a[_0xf867('0x33')]['length']?_0x27421a[_0xf867('0x33')]:_0xed868d['model'];if(_0x16dfd3[_0xf867('0x31')][_0xf867('0x3f')]){_0x27421a[_0xf867('0x40')]=[{'all':!![]}];}_0x27421a=_[_0xf867('0x3c')]({},_0x27421a,_0x16dfd3[_0xf867('0x3d')]);return db[_0xf867('0x2c')][_0xf867('0x46')](_0x27421a)['then'](handleEntityNotFound(_0x86d79c,null))['then'](respondWithResult(_0x86d79c,null))[_0xf867('0x42')](handleError(_0x86d79c,null));};exports[_0xf867('0x47')]=function(_0x38fd9b,_0x5ca8a7){return db[_0xf867('0x2c')][_0xf867('0x47')](_0x38fd9b[_0xf867('0x48')],{})['then'](respondWithResult(_0x5ca8a7,0xc9))[_0xf867('0x42')](handleError(_0x5ca8a7,null));};exports['update']=function(_0xc01c03,_0x2d56c0){if(_0xc01c03[_0xf867('0x48')]['id']){delete _0xc01c03[_0xf867('0x48')]['id'];}return db[_0xf867('0x2c')][_0xf867('0x46')]({'where':{'id':_0xc01c03[_0xf867('0x43')]['id']}})[_0xf867('0x3e')](handleEntityNotFound(_0x2d56c0,null))['then'](saveUpdates(_0xc01c03['body'],null))[_0xf867('0x3e')](respondWithResult(_0x2d56c0,null))[_0xf867('0x42')](handleError(_0x2d56c0,null));};exports[_0xf867('0x23')]=function(_0x199ce0,_0x2e9093){return db[_0xf867('0x2c')][_0xf867('0x46')]({'where':{'id':_0x199ce0['params']['id']}})[_0xf867('0x3e')](handleEntityNotFound(_0x2e9093,null))[_0xf867('0x3e')](removeEntity(_0x2e9093,null))[_0xf867('0x42')](handleError(_0x2e9093,null));};exports[_0xf867('0x49')]=function(_0x52d4bf,_0x32386e){return db[_0xf867('0x2c')]['describe']()['then'](respondWithResult(_0x32386e,null))['catch'](handleError(_0x32386e,null));};
\ No newline at end of file