Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / squareReportDetail / squareReportDetail.controller.js
index 541e7cb..6e7e3ee 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xebfe=['../../config/license/util','../../mysqldb','sendStatus','status','json','undefined','offset','count','limit','set','Content-Range','apply','save','update','destroy','then','end','error','stack','name','send','SquareDetailsReport','fieldName','type','key','model','map','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','rows','catch','show','params','keys','rawAttributes','find','create','body','describe','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','ejs','fs-extra','lodash','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment'];(function(_0x4f9b18,_0x2cb5ca){var _0x29f20c=function(_0x268b3d){while(--_0x268b3d){_0x4f9b18['push'](_0x4f9b18['shift']());}};_0x29f20c(++_0x2cb5ca);}(_0xebfe,0x11a));var _0xeebf=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xebfe[_0x3dd15e];return _0x231fd0;};'use strict';var emlformat=require(_0xeebf('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xeebf('0x1'));var jsonpatch=require(_0xeebf('0x2'));var rp=require(_0xeebf('0x3'));var moment=require('moment');var BPromise=require(_0xeebf('0x4'));var Mustache=require(_0xeebf('0x5'));var util=require(_0xeebf('0x6'));var path=require(_0xeebf('0x7'));var sox=require(_0xeebf('0x8'));var csv=require('to-csv');var ejs=require(_0xeebf('0x9'));var fs=require('fs');var fs_extra=require(_0xeebf('0xa'));var _=require(_0xeebf('0xb'));var squel=require('squel');var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xeebf('0xc'));var toCsv=require('to-csv');var querystring=require(_0xeebf('0xd'));var Papa=require(_0xeebf('0xe'));var Redis=require(_0xeebf('0xf'));var authService=require('../../components/auth/service');var qs=require(_0xeebf('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xeebf('0x11'));var logger=require(_0xeebf('0x12'))(_0xeebf('0x13'));var utils=require(_0xeebf('0x14'));var config=require(_0xeebf('0x15'));var licenseUtil=require(_0xeebf('0x16'));var db=require(_0xeebf('0x17'))['db'];function respondWithStatusCode(_0x1f9943,_0x2a7929){_0x2a7929=_0x2a7929||0xcc;return function(_0x43fcb3){if(_0x43fcb3){return _0x1f9943[_0xeebf('0x18')](_0x2a7929);}return _0x1f9943[_0xeebf('0x19')](_0x2a7929)['end']();};}function respondWithResult(_0x4a1ab6,_0x3a0ec7){_0x3a0ec7=_0x3a0ec7||0xc8;return function(_0xf4d086){if(_0xf4d086){return _0x4a1ab6[_0xeebf('0x19')](_0x3a0ec7)[_0xeebf('0x1a')](_0xf4d086);}};}function respondWithFilteredResult(_0x414236,_0x541aeb){return function(_0x18173c){if(_0x18173c){var _0x1bf78e=typeof _0x541aeb['offset']===_0xeebf('0x1b')&&typeof _0x541aeb['limit']==='undefined';var _0x5cfaad=_0x18173c['count'];var _0x196f1c=_0x1bf78e?0x0:_0x541aeb[_0xeebf('0x1c')];var _0x22ae2f=_0x1bf78e?_0x18173c[_0xeebf('0x1d')]:_0x541aeb[_0xeebf('0x1c')]+_0x541aeb[_0xeebf('0x1e')];var _0x2b6b0f;if(_0x22ae2f>=_0x5cfaad){_0x22ae2f=_0x5cfaad;_0x2b6b0f=0xc8;}else{_0x2b6b0f=0xce;}_0x414236[_0xeebf('0x19')](_0x2b6b0f);return _0x414236[_0xeebf('0x1f')](_0xeebf('0x20'),_0x196f1c+'-'+_0x22ae2f+'/'+_0x5cfaad)[_0xeebf('0x1a')](_0x18173c);}return null;};}function patchUpdates(_0x4d782e){return function(_0x10e7c1){try{jsonpatch[_0xeebf('0x21')](_0x10e7c1,_0x4d782e,!![]);}catch(_0x11b6b4){return BPromise['reject'](_0x11b6b4);}return _0x10e7c1[_0xeebf('0x22')]();};}function saveUpdates(_0x445f75,_0x3df57e){return function(_0x1e25cb){if(_0x1e25cb){return _0x1e25cb[_0xeebf('0x23')](_0x445f75)['then'](function(_0x27296c){return _0x27296c;});}return null;};}function removeEntity(_0x444543,_0x452179){return function(_0x2f59d4){if(_0x2f59d4){return _0x2f59d4[_0xeebf('0x24')]()[_0xeebf('0x25')](function(){_0x444543[_0xeebf('0x19')](0xcc)[_0xeebf('0x26')]();});}};}function handleEntityNotFound(_0x2c94f8,_0x3e3bd4){return function(_0x48b67b){if(!_0x48b67b){_0x2c94f8[_0xeebf('0x18')](0x194);}return _0x48b67b;};}function handleError(_0x526ffe,_0x1bad6b){_0x1bad6b=_0x1bad6b||0x1f4;return function(_0x4a1974){logger[_0xeebf('0x27')](_0x4a1974[_0xeebf('0x28')]);if(_0x4a1974['name']){delete _0x4a1974[_0xeebf('0x29')];}_0x526ffe[_0xeebf('0x19')](_0x1bad6b)[_0xeebf('0x2a')](_0x4a1974);};}exports['index']=function(_0x376a83,_0x3ec093){var _0x2265cf={},_0x11f814={},_0x25c390={'count':0x0,'rows':[]};var _0x3b1028=_['map'](db[_0xeebf('0x2b')]['rawAttributes'],function(_0x3fa5fc){return{'name':_0x3fa5fc[_0xeebf('0x2c')],'type':_0x3fa5fc[_0xeebf('0x2d')][_0xeebf('0x2e')]};});_0x11f814[_0xeebf('0x2f')]=_[_0xeebf('0x30')](_0x3b1028,_0xeebf('0x29'));_0x11f814['query']=_['keys'](_0x376a83[_0xeebf('0x31')]);_0x11f814[_0xeebf('0x32')]=_[_0xeebf('0x33')](_0x11f814[_0xeebf('0x2f')],_0x11f814[_0xeebf('0x31')]);_0x2265cf[_0xeebf('0x34')]=_['intersection'](_0x11f814[_0xeebf('0x2f')],qs[_0xeebf('0x35')](_0x376a83[_0xeebf('0x31')]['fields']));_0x2265cf[_0xeebf('0x34')]=_0x2265cf[_0xeebf('0x34')][_0xeebf('0x36')]?_0x2265cf[_0xeebf('0x34')]:_0x11f814['model'];if(!_0x376a83[_0xeebf('0x31')][_0xeebf('0x37')](_0xeebf('0x38'))){_0x2265cf['limit']=qs[_0xeebf('0x1e')](_0x376a83[_0xeebf('0x31')][_0xeebf('0x1e')]);_0x2265cf[_0xeebf('0x1c')]=qs[_0xeebf('0x1c')](_0x376a83['query'][_0xeebf('0x1c')]);}_0x2265cf[_0xeebf('0x39')]=qs[_0xeebf('0x3a')](_0x376a83[_0xeebf('0x31')][_0xeebf('0x3a')]);_0x2265cf[_0xeebf('0x3b')]=qs[_0xeebf('0x32')](_[_0xeebf('0x3c')](_0x376a83['query'],_0x11f814[_0xeebf('0x32')]),_0x3b1028);if(_0x376a83[_0xeebf('0x31')][_0xeebf('0x3d')]){_0x2265cf[_0xeebf('0x3b')]=_[_0xeebf('0x3e')](_0x2265cf[_0xeebf('0x3b')],{'$or':_[_0xeebf('0x30')](_0x3b1028,function(_0x48aa4b){if(_0x48aa4b[_0xeebf('0x2d')]!==_0xeebf('0x3f')){var _0x3d35b5={};_0x3d35b5[_0x48aa4b[_0xeebf('0x29')]]={'$like':'%'+_0x376a83['query']['filter']+'%'};return _0x3d35b5;}})});}_0x2265cf=_[_0xeebf('0x3e')]({},_0x2265cf,_0x376a83[_0xeebf('0x40')]);var _0x5a9bab={'where':_0x2265cf[_0xeebf('0x3b')]};return db[_0xeebf('0x2b')][_0xeebf('0x1d')](_0x5a9bab)[_0xeebf('0x25')](function(_0x508c45){_0x25c390[_0xeebf('0x1d')]=_0x508c45;if(_0x376a83[_0xeebf('0x31')][_0xeebf('0x41')]){_0x2265cf['include']=[{'all':!![]}];}return db[_0xeebf('0x2b')]['findAll'](_0x2265cf);})[_0xeebf('0x25')](function(_0x469ec1){_0x25c390[_0xeebf('0x42')]=_0x469ec1;return _0x25c390;})[_0xeebf('0x25')](respondWithFilteredResult(_0x3ec093,_0x2265cf))[_0xeebf('0x43')](handleError(_0x3ec093,null));};exports[_0xeebf('0x44')]=function(_0x5db4a1,_0x41b2c0){var _0x4739a2={'raw':!![],'where':{'id':_0x5db4a1[_0xeebf('0x45')]['id']}},_0x1d85db={};_0x1d85db[_0xeebf('0x2f')]=_[_0xeebf('0x46')](db[_0xeebf('0x2b')][_0xeebf('0x47')]);_0x1d85db['query']=_[_0xeebf('0x46')](_0x5db4a1[_0xeebf('0x31')]);_0x1d85db['filters']=_[_0xeebf('0x33')](_0x1d85db[_0xeebf('0x2f')],_0x1d85db[_0xeebf('0x31')]);_0x4739a2[_0xeebf('0x34')]=_[_0xeebf('0x33')](_0x1d85db['model'],qs['fields'](_0x5db4a1[_0xeebf('0x31')][_0xeebf('0x35')]));_0x4739a2[_0xeebf('0x34')]=_0x4739a2['attributes'][_0xeebf('0x36')]?_0x4739a2[_0xeebf('0x34')]:_0x1d85db[_0xeebf('0x2f')];if(_0x5db4a1[_0xeebf('0x31')][_0xeebf('0x41')]){_0x4739a2['include']=[{'all':!![]}];}_0x4739a2=_['merge']({},_0x4739a2,_0x5db4a1[_0xeebf('0x40')]);return db[_0xeebf('0x2b')][_0xeebf('0x48')](_0x4739a2)[_0xeebf('0x25')](handleEntityNotFound(_0x41b2c0,null))['then'](respondWithResult(_0x41b2c0,null))[_0xeebf('0x43')](handleError(_0x41b2c0,null));};exports[_0xeebf('0x49')]=function(_0xc507e1,_0x28afd9){return db['SquareDetailsReport'][_0xeebf('0x49')](_0xc507e1[_0xeebf('0x4a')],{})[_0xeebf('0x25')](respondWithResult(_0x28afd9,0xc9))[_0xeebf('0x43')](handleError(_0x28afd9,null));};exports[_0xeebf('0x23')]=function(_0x5b8edf,_0x1eae11){if(_0x5b8edf[_0xeebf('0x4a')]['id']){delete _0x5b8edf[_0xeebf('0x4a')]['id'];}return db[_0xeebf('0x2b')][_0xeebf('0x48')]({'where':{'id':_0x5b8edf[_0xeebf('0x45')]['id']}})[_0xeebf('0x25')](handleEntityNotFound(_0x1eae11,null))[_0xeebf('0x25')](saveUpdates(_0x5b8edf[_0xeebf('0x4a')],null))[_0xeebf('0x25')](respondWithResult(_0x1eae11,null))['catch'](handleError(_0x1eae11,null));};exports[_0xeebf('0x24')]=function(_0x3ac5d0,_0x441a46){return db[_0xeebf('0x2b')]['find']({'where':{'id':_0x3ac5d0[_0xeebf('0x45')]['id']}})[_0xeebf('0x25')](handleEntityNotFound(_0x441a46,null))[_0xeebf('0x25')](removeEntity(_0x441a46,null))['catch'](handleError(_0x441a46,null));};exports[_0xeebf('0x4b')]=function(_0x52ceb6,_0x506584){return db['SquareDetailsReport']['describe']()[_0xeebf('0x25')](respondWithResult(_0x506584,null))[_0xeebf('0x43')](handleError(_0x506584,null));};
\ No newline at end of file
+var _0xc74d=['end','error','stack','name','send','index','map','SquareDetailsReport','fieldName','type','key','keys','filters','intersection','model','query','attributes','fields','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','options','findAll','rows','catch','params','rawAttributes','includeAll','include','find','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','mustache','util','sox','to-csv','ejs','fs-extra','crypto','jsforce','desk.js','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','offset','undefined','limit','count','apply','save','then','destroy'];(function(_0x2a6596,_0x8eb727){var _0x5778bb=function(_0x3a99bb){while(--_0x3a99bb){_0x2a6596['push'](_0x2a6596['shift']());}};_0x5778bb(++_0x8eb727);}(_0xc74d,0xba));var _0xdc74=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0xc74d[_0x2c91e9];return _0x13f0ff;};'use strict';var emlformat=require(_0xdc74('0x0'));var rimraf=require(_0xdc74('0x1'));var zipdir=require(_0xdc74('0x2'));var jsonpatch=require(_0xdc74('0x3'));var rp=require(_0xdc74('0x4'));var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0xdc74('0x5'));var util=require(_0xdc74('0x6'));var path=require('path');var sox=require(_0xdc74('0x7'));var csv=require(_0xdc74('0x8'));var ejs=require(_0xdc74('0x9'));var fs=require('fs');var fs_extra=require(_0xdc74('0xa'));var _=require('lodash');var squel=require('squel');var crypto=require(_0xdc74('0xb'));var jsforce=require(_0xdc74('0xc'));var deskjs=require(_0xdc74('0xd'));var toCsv=require(_0xdc74('0x8'));var querystring=require(_0xdc74('0xe'));var Papa=require(_0xdc74('0xf'));var Redis=require(_0xdc74('0x10'));var authService=require(_0xdc74('0x11'));var qs=require(_0xdc74('0x12'));var as=require(_0xdc74('0x13'));var hardwareService=require(_0xdc74('0x14'));var logger=require(_0xdc74('0x15'))(_0xdc74('0x16'));var utils=require(_0xdc74('0x17'));var config=require(_0xdc74('0x18'));var licenseUtil=require(_0xdc74('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x25e78c,_0x1f4a59){_0x1f4a59=_0x1f4a59||0xcc;return function(_0x590144){if(_0x590144){return _0x25e78c[_0xdc74('0x1a')](_0x1f4a59);}return _0x25e78c[_0xdc74('0x1b')](_0x1f4a59)['end']();};}function respondWithResult(_0x56095e,_0x44c77d){_0x44c77d=_0x44c77d||0xc8;return function(_0x1a5dc8){if(_0x1a5dc8){return _0x56095e[_0xdc74('0x1b')](_0x44c77d)['json'](_0x1a5dc8);}};}function respondWithFilteredResult(_0x49a2e7,_0x109030){return function(_0x4425ec){if(_0x4425ec){var _0x19cea7=typeof _0x109030[_0xdc74('0x1c')]===_0xdc74('0x1d')&&typeof _0x109030[_0xdc74('0x1e')]==='undefined';var _0x145f0a=_0x4425ec[_0xdc74('0x1f')];var _0x591ba3=_0x19cea7?0x0:_0x109030['offset'];var _0x29e543=_0x19cea7?_0x4425ec[_0xdc74('0x1f')]:_0x109030[_0xdc74('0x1c')]+_0x109030[_0xdc74('0x1e')];var _0x2fd1e9;if(_0x29e543>=_0x145f0a){_0x29e543=_0x145f0a;_0x2fd1e9=0xc8;}else{_0x2fd1e9=0xce;}_0x49a2e7[_0xdc74('0x1b')](_0x2fd1e9);return _0x49a2e7['set']('Content-Range',_0x591ba3+'-'+_0x29e543+'/'+_0x145f0a)['json'](_0x4425ec);}return null;};}function patchUpdates(_0x589f0c){return function(_0x40b09b){try{jsonpatch[_0xdc74('0x20')](_0x40b09b,_0x589f0c,!![]);}catch(_0x5b7a75){return BPromise['reject'](_0x5b7a75);}return _0x40b09b[_0xdc74('0x21')]();};}function saveUpdates(_0x4a1eb5,_0x424f10){return function(_0x28d33d){if(_0x28d33d){return _0x28d33d['update'](_0x4a1eb5)[_0xdc74('0x22')](function(_0x1b4d79){return _0x1b4d79;});}return null;};}function removeEntity(_0x986202,_0x21410b){return function(_0x444673){if(_0x444673){return _0x444673[_0xdc74('0x23')]()[_0xdc74('0x22')](function(){_0x986202['status'](0xcc)[_0xdc74('0x24')]();});}};}function handleEntityNotFound(_0x30c2f3,_0x57ca90){return function(_0x232b00){if(!_0x232b00){_0x30c2f3['sendStatus'](0x194);}return _0x232b00;};}function handleError(_0x5d432e,_0x55560e){_0x55560e=_0x55560e||0x1f4;return function(_0x1abf23){logger[_0xdc74('0x25')](_0x1abf23[_0xdc74('0x26')]);if(_0x1abf23[_0xdc74('0x27')]){delete _0x1abf23[_0xdc74('0x27')];}_0x5d432e[_0xdc74('0x1b')](_0x55560e)[_0xdc74('0x28')](_0x1abf23);};}exports[_0xdc74('0x29')]=function(_0x54e321,_0x63217f){var _0xc906e6={},_0x526bea={},_0x25be8b={'count':0x0,'rows':[]};var _0x1c0ff=_[_0xdc74('0x2a')](db[_0xdc74('0x2b')]['rawAttributes'],function(_0x335059){return{'name':_0x335059[_0xdc74('0x2c')],'type':_0x335059[_0xdc74('0x2d')][_0xdc74('0x2e')]};});_0x526bea['model']=_[_0xdc74('0x2a')](_0x1c0ff,_0xdc74('0x27'));_0x526bea['query']=_[_0xdc74('0x2f')](_0x54e321['query']);_0x526bea[_0xdc74('0x30')]=_[_0xdc74('0x31')](_0x526bea[_0xdc74('0x32')],_0x526bea[_0xdc74('0x33')]);_0xc906e6[_0xdc74('0x34')]=_['intersection'](_0x526bea[_0xdc74('0x32')],qs[_0xdc74('0x35')](_0x54e321[_0xdc74('0x33')][_0xdc74('0x35')]));_0xc906e6[_0xdc74('0x34')]=_0xc906e6[_0xdc74('0x34')][_0xdc74('0x36')]?_0xc906e6['attributes']:_0x526bea['model'];if(!_0x54e321[_0xdc74('0x33')][_0xdc74('0x37')](_0xdc74('0x38'))){_0xc906e6[_0xdc74('0x1e')]=qs['limit'](_0x54e321['query']['limit']);_0xc906e6['offset']=qs['offset'](_0x54e321['query'][_0xdc74('0x1c')]);}_0xc906e6['order']=qs['sort'](_0x54e321[_0xdc74('0x33')][_0xdc74('0x39')]);_0xc906e6[_0xdc74('0x3a')]=qs[_0xdc74('0x30')](_[_0xdc74('0x3b')](_0x54e321[_0xdc74('0x33')],_0x526bea[_0xdc74('0x30')]),_0x1c0ff);if(_0x54e321[_0xdc74('0x33')][_0xdc74('0x3c')]){_0xc906e6[_0xdc74('0x3a')]=_[_0xdc74('0x3d')](_0xc906e6[_0xdc74('0x3a')],{'$or':_[_0xdc74('0x2a')](_0x1c0ff,function(_0x4f2448){if(_0x4f2448[_0xdc74('0x2d')]!=='VIRTUAL'){var _0x5595ed={};_0x5595ed[_0x4f2448[_0xdc74('0x27')]]={'$like':'%'+_0x54e321[_0xdc74('0x33')][_0xdc74('0x3c')]+'%'};return _0x5595ed;}})});}_0xc906e6=_[_0xdc74('0x3d')]({},_0xc906e6,_0x54e321[_0xdc74('0x3e')]);var _0xf17cb={'where':_0xc906e6[_0xdc74('0x3a')]};return db[_0xdc74('0x2b')]['count'](_0xf17cb)['then'](function(_0x1ac3c1){_0x25be8b[_0xdc74('0x1f')]=_0x1ac3c1;if(_0x54e321[_0xdc74('0x33')]['includeAll']){_0xc906e6['include']=[{'all':!![]}];}return db['SquareDetailsReport'][_0xdc74('0x3f')](_0xc906e6);})[_0xdc74('0x22')](function(_0xdf38de){_0x25be8b[_0xdc74('0x40')]=_0xdf38de;return _0x25be8b;})[_0xdc74('0x22')](respondWithFilteredResult(_0x63217f,_0xc906e6))[_0xdc74('0x41')](handleError(_0x63217f,null));};exports['show']=function(_0x139440,_0x5823c3){var _0x47b91b={'raw':!![],'where':{'id':_0x139440[_0xdc74('0x42')]['id']}},_0x125dd0={};_0x125dd0['model']=_['keys'](db[_0xdc74('0x2b')][_0xdc74('0x43')]);_0x125dd0[_0xdc74('0x33')]=_['keys'](_0x139440[_0xdc74('0x33')]);_0x125dd0[_0xdc74('0x30')]=_[_0xdc74('0x31')](_0x125dd0['model'],_0x125dd0['query']);_0x47b91b['attributes']=_[_0xdc74('0x31')](_0x125dd0['model'],qs['fields'](_0x139440['query'][_0xdc74('0x35')]));_0x47b91b['attributes']=_0x47b91b[_0xdc74('0x34')][_0xdc74('0x36')]?_0x47b91b[_0xdc74('0x34')]:_0x125dd0[_0xdc74('0x32')];if(_0x139440['query'][_0xdc74('0x44')]){_0x47b91b[_0xdc74('0x45')]=[{'all':!![]}];}_0x47b91b=_[_0xdc74('0x3d')]({},_0x47b91b,_0x139440[_0xdc74('0x3e')]);return db['SquareDetailsReport'][_0xdc74('0x46')](_0x47b91b)['then'](handleEntityNotFound(_0x5823c3,null))[_0xdc74('0x22')](respondWithResult(_0x5823c3,null))[_0xdc74('0x41')](handleError(_0x5823c3,null));};exports[_0xdc74('0x47')]=function(_0x305447,_0x1ecb61){return db['SquareDetailsReport'][_0xdc74('0x47')](_0x305447['body'],{})[_0xdc74('0x22')](respondWithResult(_0x1ecb61,0xc9))[_0xdc74('0x41')](handleError(_0x1ecb61,null));};exports['update']=function(_0x5c44bf,_0x4f1946){if(_0x5c44bf[_0xdc74('0x48')]['id']){delete _0x5c44bf[_0xdc74('0x48')]['id'];}return db[_0xdc74('0x2b')]['find']({'where':{'id':_0x5c44bf[_0xdc74('0x42')]['id']}})['then'](handleEntityNotFound(_0x4f1946,null))[_0xdc74('0x22')](saveUpdates(_0x5c44bf[_0xdc74('0x48')],null))['then'](respondWithResult(_0x4f1946,null))[_0xdc74('0x41')](handleError(_0x4f1946,null));};exports['destroy']=function(_0x3b14f4,_0x5473b8){return db[_0xdc74('0x2b')][_0xdc74('0x46')]({'where':{'id':_0x3b14f4[_0xdc74('0x42')]['id']}})['then'](handleEntityNotFound(_0x5473b8,null))[_0xdc74('0x22')](removeEntity(_0x5473b8,null))['catch'](handleError(_0x5473b8,null));};exports['describe']=function(_0x2f1292,_0x5582dd){return db[_0xdc74('0x2b')][_0xdc74('0x49')]()[_0xdc74('0x22')](respondWithResult(_0x5582dd,null))[_0xdc74('0x41')](handleError(_0x5582dd,null));};
\ No newline at end of file