Built motion from commit (unavailable).|2.0.79
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.controller.js
index f813ceb..3e8e01d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3f11=['filters','day','add','filter','merge','options','VoiceQueuesLog','includeAll','include','findAll','rows','show','params','rawAttributes','find','create','body','catch','html-pdf','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js','../../components/parsers/qs','../../config/logger','api','../../config/environment','sendStatus','status','end','count','offset','set','Content-Range','json','reject','destroy','then','error','name','send','index','keys','query','dateStart','dateEnd','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','limit','order','sort','where','pick'];(function(_0x1c20a9,_0x1a7ab1){var _0x4bfa40=function(_0x4962a5){while(--_0x4962a5){_0x1c20a9['push'](_0x1c20a9['shift']());}};_0x4bfa40(++_0x1a7ab1);}(_0x3f11,0x16b));var _0x13f1=function(_0x12745e,_0x2d7507){_0x12745e=_0x12745e-0x0;var _0x156708=_0x3f11[_0x12745e];return _0x156708;};'use strict';var pdf=require(_0x13f1('0x0'));var emlformat=require(_0x13f1('0x1'));var rimraf=require('rimraf');var zipdir=require(_0x13f1('0x2'));var jsonpatch=require(_0x13f1('0x3'));var rp=require(_0x13f1('0x4'));var moment=require(_0x13f1('0x5'));var BPromise=require(_0x13f1('0x6'));var Mustache=require(_0x13f1('0x7'));var util=require('util');var path=require(_0x13f1('0x8'));var sox=require(_0x13f1('0x9'));var csv=require(_0x13f1('0xa'));var ejs=require(_0x13f1('0xb'));var fs=require('fs');var _=require(_0x13f1('0xc'));var squel=require(_0x13f1('0xd'));var crypto=require(_0x13f1('0xe'));var jsforce=require('jsforce');var deskjs=require(_0x13f1('0xf'));var toCsv=require(_0x13f1('0xa'));var querystring=require('querystring');var Papa=require('papaparse');var qs=require(_0x13f1('0x10'));var logger=require(_0x13f1('0x11'))(_0x13f1('0x12'));var utils=require('../../config/utils');var config=require(_0x13f1('0x13'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x840832,_0x4e799c){_0x4e799c=_0x4e799c||0xcc;return function(_0x10be04){if(_0x10be04){return _0x840832[_0x13f1('0x14')](_0x4e799c);}return _0x840832[_0x13f1('0x15')](_0x4e799c)[_0x13f1('0x16')]();};}function respondWithResult(_0x3974f6,_0x43ba1e){_0x43ba1e=_0x43ba1e||0xc8;return function(_0x2ef412){if(_0x2ef412){return _0x3974f6[_0x13f1('0x15')](_0x43ba1e)['json'](_0x2ef412);}};}function respondWithFilteredResult(_0x4bd0fb,_0x29b3d1){return function(_0x289d1e){if(_0x289d1e){var _0x3db955=_0x289d1e[_0x13f1('0x17')],_0x5640b0=_0x29b3d1[_0x13f1('0x18')],_0x294574=_0x29b3d1['offset']+_0x29b3d1['limit'],_0x3771f6;if(_0x294574>=_0x3db955){_0x294574=_0x3db955;_0x3771f6=0xc8;}else{_0x3771f6=0xce;}_0x4bd0fb[_0x13f1('0x15')](_0x3771f6);return _0x4bd0fb[_0x13f1('0x19')](_0x13f1('0x1a'),_0x5640b0+'-'+_0x294574+'/'+_0x3db955)[_0x13f1('0x1b')](_0x289d1e);}return null;};}function patchUpdates(_0x19292c){return function(_0x54fcdf){try{jsonpatch['apply'](_0x54fcdf,_0x19292c,!![]);}catch(_0x17171f){return BPromise[_0x13f1('0x1c')](_0x17171f);}return _0x54fcdf['save']();};}function saveUpdates(_0x11cf06,_0x2f2ff0){return function(_0x4e8bcc){if(_0x4e8bcc){return _0x4e8bcc['update'](_0x11cf06)['then'](function(_0x28b55e){return _0x28b55e;});}return null;};}function removeEntity(_0x2f1c22,_0x5993e6){return function(_0x3d8536){if(_0x3d8536){return _0x3d8536[_0x13f1('0x1d')]()[_0x13f1('0x1e')](function(){_0x2f1c22[_0x13f1('0x15')](0xcc)[_0x13f1('0x16')]();});}};}function handleEntityNotFound(_0x43ae3f,_0x44f380){return function(_0xc6f861){if(!_0xc6f861){_0x43ae3f[_0x13f1('0x14')](0x194);}return _0xc6f861;};}function handleError(_0x5c4d65,_0x83c5af){_0x83c5af=_0x83c5af||0x1f4;return function(_0x286261){logger[_0x13f1('0x1f')](_0x286261['stack']);if(_0x286261['name']){delete _0x286261[_0x13f1('0x20')];}_0x5c4d65[_0x13f1('0x15')](_0x83c5af)[_0x13f1('0x21')](_0x286261);};}exports[_0x13f1('0x22')]=function(_0x2a1986,_0x50d661){var _0xef9add={},_0x4e6c45={},_0x25f87f={'count':0x0,'rows':[]};var _0x461815=db['VoiceQueuesLog']['rawAttributes'];_0x4e6c45['model']=_[_0x13f1('0x23')](_0x461815);var _0x535531={'dateStart':_0x2a1986[_0x13f1('0x24')][_0x13f1('0x25')],'dateEnd':_0x2a1986[_0x13f1('0x24')][_0x13f1('0x26')]};delete _0x2a1986[_0x13f1('0x24')][_0x13f1('0x25')];delete _0x2a1986[_0x13f1('0x24')][_0x13f1('0x26')];_0x4e6c45[_0x13f1('0x24')]=_[_0x13f1('0x23')](_0x2a1986[_0x13f1('0x24')]);_0x4e6c45['filters']=_[_0x13f1('0x27')](_0x4e6c45[_0x13f1('0x28')],_0x4e6c45[_0x13f1('0x24')]);_0xef9add[_0x13f1('0x29')]=_['intersection'](_0x4e6c45[_0x13f1('0x28')],qs['fields'](_0x2a1986['query'][_0x13f1('0x2a')]));_0xef9add[_0x13f1('0x29')]=_0xef9add[_0x13f1('0x29')][_0x13f1('0x2b')]?_0xef9add[_0x13f1('0x29')]:_0x4e6c45['model'];if(!_0x2a1986[_0x13f1('0x24')][_0x13f1('0x2c')](_0x13f1('0x2d'))){_0xef9add[_0x13f1('0x2e')]=qs['limit'](_0x2a1986[_0x13f1('0x24')][_0x13f1('0x2e')]);_0xef9add[_0x13f1('0x18')]=qs['offset'](_0x2a1986[_0x13f1('0x24')][_0x13f1('0x18')]);}_0xef9add[_0x13f1('0x2f')]=qs[_0x13f1('0x30')](_0x2a1986[_0x13f1('0x24')][_0x13f1('0x30')]);_0xef9add[_0x13f1('0x31')]=qs['filters'](_[_0x13f1('0x32')](_0x2a1986[_0x13f1('0x24')],_0x4e6c45[_0x13f1('0x33')]));if(_0x535531['dateStart']){if(_0x535531['dateEnd']){_0x535531[_0x13f1('0x26')]=moment(_0x535531[_0x13f1('0x26')])['add'](0x1,_0x13f1('0x34'));}else{_0x535531['dateEnd']=moment(_0x535531[_0x13f1('0x25')])[_0x13f1('0x35')](0x1,'day');}_['merge'](_0xef9add['where'],{'createdAt':{'$gte':_0x535531[_0x13f1('0x25')],'$lte':_0x535531[_0x13f1('0x26')]}});}if(_0x2a1986[_0x13f1('0x24')][_0x13f1('0x36')]){_0xef9add[_0x13f1('0x31')]=_[_0x13f1('0x37')](_0xef9add[_0x13f1('0x31')],{'$or':_['map'](_0xef9add[_0x13f1('0x29')],function(_0x2cbe19){var _0x207de4={};_0x207de4[_0x2cbe19]={'$like':'%'+_0x2a1986[_0x13f1('0x24')][_0x13f1('0x36')]+'%'};return _0x207de4;})});}_0xef9add=_[_0x13f1('0x37')]({},_0xef9add,_0x2a1986[_0x13f1('0x38')]);var _0x6ebee3={'where':_0xef9add[_0x13f1('0x31')]};return db[_0x13f1('0x39')]['count'](_0x6ebee3)[_0x13f1('0x1e')](function(_0x57a018){_0x25f87f[_0x13f1('0x17')]=_0x57a018;if(_0x2a1986[_0x13f1('0x24')][_0x13f1('0x3a')]){_0xef9add[_0x13f1('0x3b')]=[{'all':!![]}];}return db[_0x13f1('0x39')][_0x13f1('0x3c')](_0xef9add);})[_0x13f1('0x1e')](function(_0x52d06e){_0x25f87f[_0x13f1('0x3d')]=_0x52d06e;return _0x25f87f;})[_0x13f1('0x1e')](respondWithFilteredResult(_0x50d661,_0xef9add))['catch'](handleError(_0x50d661,null));};exports[_0x13f1('0x3e')]=function(_0x221662,_0x5cb5bd){var _0x46906b={'raw':!![],'where':{'id':_0x221662[_0x13f1('0x3f')]['id']}},_0x47187f={};_0x47187f[_0x13f1('0x28')]=_[_0x13f1('0x23')](db[_0x13f1('0x39')][_0x13f1('0x40')]);_0x47187f[_0x13f1('0x24')]=_['keys'](_0x221662[_0x13f1('0x24')]);_0x47187f['filters']=_[_0x13f1('0x27')](_0x47187f[_0x13f1('0x28')],_0x47187f['query']);_0x46906b[_0x13f1('0x29')]=_['intersection'](_0x47187f['model'],qs['fields'](_0x221662[_0x13f1('0x24')][_0x13f1('0x2a')]));_0x46906b[_0x13f1('0x29')]=_0x46906b[_0x13f1('0x29')][_0x13f1('0x2b')]?_0x46906b[_0x13f1('0x29')]:_0x47187f[_0x13f1('0x28')];if(_0x221662[_0x13f1('0x24')][_0x13f1('0x3a')]){_0x46906b['include']=[{'all':!![]}];}_0x46906b=_['merge']({},_0x46906b,_0x221662['options']);return db[_0x13f1('0x39')][_0x13f1('0x41')](_0x46906b)[_0x13f1('0x1e')](handleEntityNotFound(_0x5cb5bd,null))[_0x13f1('0x1e')](respondWithResult(_0x5cb5bd,null))['catch'](handleError(_0x5cb5bd,null));};exports[_0x13f1('0x42')]=function(_0x7c819d,_0x131261){return db[_0x13f1('0x39')]['create'](_0x7c819d[_0x13f1('0x43')],{})[_0x13f1('0x1e')](respondWithResult(_0x131261,0xc9))[_0x13f1('0x44')](handleError(_0x131261,null));};exports['update']=function(_0x4bb309,_0x1d398c){if(_0x4bb309[_0x13f1('0x43')]['id']){delete _0x4bb309[_0x13f1('0x43')]['id'];}return db[_0x13f1('0x39')][_0x13f1('0x41')]({'where':{'id':_0x4bb309[_0x13f1('0x3f')]['id']}})[_0x13f1('0x1e')](handleEntityNotFound(_0x1d398c,null))[_0x13f1('0x1e')](saveUpdates(_0x4bb309[_0x13f1('0x43')],null))['then'](respondWithResult(_0x1d398c,null))[_0x13f1('0x44')](handleError(_0x1d398c,null));};exports[_0x13f1('0x1d')]=function(_0x24a45a,_0x542a80){return db[_0x13f1('0x39')][_0x13f1('0x41')]({'where':{'id':_0x24a45a[_0x13f1('0x3f')]['id']}})[_0x13f1('0x1e')](handleEntityNotFound(_0x542a80,null))[_0x13f1('0x1e')](removeEntity(_0x542a80,null))[_0x13f1('0x44')](handleError(_0x542a80,null));};
\ No newline at end of file
+var _0x4f53=['attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','add','day','merge','filter','map','options','count','include','findAll','rows','then','catch','show','params','create','body','find','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','sox','to-csv','ejs','lodash','crypto','desk.js','querystring','papaparse','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','offset','limit','set','Content-Range','json','apply','reject','save','update','error','stack','name','send','index','VoiceQueuesLog','rawAttributes','model','query','dateStart','dateEnd','keys','filters','intersection'];(function(_0x2d2c16,_0x4e88b6){var _0x53f2fb=function(_0x6b6dac){while(--_0x6b6dac){_0x2d2c16['push'](_0x2d2c16['shift']());}};_0x53f2fb(++_0x4e88b6);}(_0x4f53,0x1d5));var _0x34f5=function(_0x4e6d36,_0x238f69){_0x4e6d36=_0x4e6d36-0x0;var _0x4916bd=_0x4f53[_0x4e6d36];return _0x4916bd;};'use strict';var pdf=require(_0x34f5('0x0'));var emlformat=require(_0x34f5('0x1'));var rimraf=require(_0x34f5('0x2'));var zipdir=require(_0x34f5('0x3'));var jsonpatch=require(_0x34f5('0x4'));var rp=require('request-promise');var moment=require(_0x34f5('0x5'));var BPromise=require(_0x34f5('0x6'));var Mustache=require(_0x34f5('0x7'));var util=require(_0x34f5('0x8'));var path=require('path');var sox=require(_0x34f5('0x9'));var csv=require(_0x34f5('0xa'));var ejs=require(_0x34f5('0xb'));var fs=require('fs');var _=require(_0x34f5('0xc'));var squel=require('squel');var crypto=require(_0x34f5('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x34f5('0xe'));var toCsv=require(_0x34f5('0xa'));var querystring=require(_0x34f5('0xf'));var Papa=require(_0x34f5('0x10'));var qs=require(_0x34f5('0x11'));var logger=require(_0x34f5('0x12'))(_0x34f5('0x13'));var utils=require(_0x34f5('0x14'));var config=require(_0x34f5('0x15'));var db=require(_0x34f5('0x16'))['db'];function respondWithStatusCode(_0x54dc67,_0x3cf7d6){_0x3cf7d6=_0x3cf7d6||0xcc;return function(_0x3f0543){if(_0x3f0543){return _0x54dc67[_0x34f5('0x17')](_0x3cf7d6);}return _0x54dc67[_0x34f5('0x18')](_0x3cf7d6)[_0x34f5('0x19')]();};}function respondWithResult(_0x2f7846,_0x138e89){_0x138e89=_0x138e89||0xc8;return function(_0x39eab8){if(_0x39eab8){return _0x2f7846['status'](_0x138e89)['json'](_0x39eab8);}};}function respondWithFilteredResult(_0x1aee13,_0x3659f5){return function(_0x42e256){if(_0x42e256){var _0x33ca62=_0x42e256['count'],_0xaab336=_0x3659f5[_0x34f5('0x1a')],_0x6ff90=_0x3659f5[_0x34f5('0x1a')]+_0x3659f5[_0x34f5('0x1b')],_0x389782;if(_0x6ff90>=_0x33ca62){_0x6ff90=_0x33ca62;_0x389782=0xc8;}else{_0x389782=0xce;}_0x1aee13[_0x34f5('0x18')](_0x389782);return _0x1aee13[_0x34f5('0x1c')](_0x34f5('0x1d'),_0xaab336+'-'+_0x6ff90+'/'+_0x33ca62)[_0x34f5('0x1e')](_0x42e256);}return null;};}function patchUpdates(_0x2a2e23){return function(_0x206288){try{jsonpatch[_0x34f5('0x1f')](_0x206288,_0x2a2e23,!![]);}catch(_0x36f7ed){return BPromise[_0x34f5('0x20')](_0x36f7ed);}return _0x206288[_0x34f5('0x21')]();};}function saveUpdates(_0x2e9eba,_0x786f5a){return function(_0x4462a5){if(_0x4462a5){return _0x4462a5[_0x34f5('0x22')](_0x2e9eba)['then'](function(_0x6a67ba){return _0x6a67ba;});}return null;};}function removeEntity(_0x248302,_0x1bdb12){return function(_0x219281){if(_0x219281){return _0x219281['destroy']()['then'](function(){_0x248302[_0x34f5('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x2610c9,_0x38c55c){return function(_0x2b7ab6){if(!_0x2b7ab6){_0x2610c9[_0x34f5('0x17')](0x194);}return _0x2b7ab6;};}function handleError(_0x4fb39a,_0x582bbd){_0x582bbd=_0x582bbd||0x1f4;return function(_0x6b4e9a){logger[_0x34f5('0x23')](_0x6b4e9a[_0x34f5('0x24')]);if(_0x6b4e9a[_0x34f5('0x25')]){delete _0x6b4e9a[_0x34f5('0x25')];}_0x4fb39a['status'](_0x582bbd)[_0x34f5('0x26')](_0x6b4e9a);};}exports[_0x34f5('0x27')]=function(_0x3c3050,_0x234e5d){var _0xb54fc={},_0x5d40e1={},_0xb020bd={'count':0x0,'rows':[]};var _0x579faa=db[_0x34f5('0x28')][_0x34f5('0x29')];_0x5d40e1[_0x34f5('0x2a')]=_['keys'](_0x579faa);var _0x41d3e8={'dateStart':_0x3c3050[_0x34f5('0x2b')][_0x34f5('0x2c')],'dateEnd':_0x3c3050[_0x34f5('0x2b')][_0x34f5('0x2d')]};delete _0x3c3050['query']['dateStart'];delete _0x3c3050[_0x34f5('0x2b')][_0x34f5('0x2d')];_0x5d40e1[_0x34f5('0x2b')]=_[_0x34f5('0x2e')](_0x3c3050[_0x34f5('0x2b')]);_0x5d40e1[_0x34f5('0x2f')]=_[_0x34f5('0x30')](_0x5d40e1[_0x34f5('0x2a')],_0x5d40e1[_0x34f5('0x2b')]);_0xb54fc[_0x34f5('0x31')]=_[_0x34f5('0x30')](_0x5d40e1[_0x34f5('0x2a')],qs[_0x34f5('0x32')](_0x3c3050['query'][_0x34f5('0x32')]));_0xb54fc[_0x34f5('0x31')]=_0xb54fc['attributes'][_0x34f5('0x33')]?_0xb54fc[_0x34f5('0x31')]:_0x5d40e1[_0x34f5('0x2a')];if(!_0x3c3050[_0x34f5('0x2b')][_0x34f5('0x34')](_0x34f5('0x35'))){_0xb54fc['limit']=qs[_0x34f5('0x1b')](_0x3c3050[_0x34f5('0x2b')][_0x34f5('0x1b')]);_0xb54fc['offset']=qs['offset'](_0x3c3050[_0x34f5('0x2b')][_0x34f5('0x1a')]);}_0xb54fc[_0x34f5('0x36')]=qs['sort'](_0x3c3050[_0x34f5('0x2b')][_0x34f5('0x37')]);_0xb54fc[_0x34f5('0x38')]=qs[_0x34f5('0x2f')](_['pick'](_0x3c3050['query'],_0x5d40e1[_0x34f5('0x2f')]));if(_0x41d3e8['dateStart']){if(_0x41d3e8[_0x34f5('0x2d')]){_0x41d3e8[_0x34f5('0x2d')]=moment(_0x41d3e8[_0x34f5('0x2d')])[_0x34f5('0x39')](0x1,_0x34f5('0x3a'));}else{_0x41d3e8['dateEnd']=moment(_0x41d3e8[_0x34f5('0x2c')])['add'](0x1,_0x34f5('0x3a'));}_[_0x34f5('0x3b')](_0xb54fc['where'],{'createdAt':{'$gte':_0x41d3e8[_0x34f5('0x2c')],'$lte':_0x41d3e8[_0x34f5('0x2d')]}});}if(_0x3c3050[_0x34f5('0x2b')][_0x34f5('0x3c')]){_0xb54fc[_0x34f5('0x38')]=_[_0x34f5('0x3b')](_0xb54fc[_0x34f5('0x38')],{'$or':_[_0x34f5('0x3d')](_0xb54fc[_0x34f5('0x31')],function(_0x271b87){var _0x51dc57={};_0x51dc57[_0x271b87]={'$like':'%'+_0x3c3050['query']['filter']+'%'};return _0x51dc57;})});}_0xb54fc=_[_0x34f5('0x3b')]({},_0xb54fc,_0x3c3050[_0x34f5('0x3e')]);var _0x4fd76c={'where':_0xb54fc[_0x34f5('0x38')]};return db[_0x34f5('0x28')][_0x34f5('0x3f')](_0x4fd76c)['then'](function(_0x4a8f38){_0xb020bd[_0x34f5('0x3f')]=_0x4a8f38;if(_0x3c3050[_0x34f5('0x2b')]['includeAll']){_0xb54fc[_0x34f5('0x40')]=[{'all':!![]}];}return db['VoiceQueuesLog'][_0x34f5('0x41')](_0xb54fc);})['then'](function(_0x18b2d6){_0xb020bd[_0x34f5('0x42')]=_0x18b2d6;return _0xb020bd;})[_0x34f5('0x43')](respondWithFilteredResult(_0x234e5d,_0xb54fc))[_0x34f5('0x44')](handleError(_0x234e5d,null));};exports[_0x34f5('0x45')]=function(_0x22f51b,_0x253977){var _0x109ad3={'raw':!![],'where':{'id':_0x22f51b[_0x34f5('0x46')]['id']}},_0x18903a={};_0x18903a[_0x34f5('0x2a')]=_[_0x34f5('0x2e')](db['VoiceQueuesLog']['rawAttributes']);_0x18903a['query']=_[_0x34f5('0x2e')](_0x22f51b[_0x34f5('0x2b')]);_0x18903a[_0x34f5('0x2f')]=_[_0x34f5('0x30')](_0x18903a[_0x34f5('0x2a')],_0x18903a[_0x34f5('0x2b')]);_0x109ad3['attributes']=_[_0x34f5('0x30')](_0x18903a[_0x34f5('0x2a')],qs[_0x34f5('0x32')](_0x22f51b[_0x34f5('0x2b')][_0x34f5('0x32')]));_0x109ad3['attributes']=_0x109ad3[_0x34f5('0x31')][_0x34f5('0x33')]?_0x109ad3[_0x34f5('0x31')]:_0x18903a[_0x34f5('0x2a')];if(_0x22f51b[_0x34f5('0x2b')]['includeAll']){_0x109ad3[_0x34f5('0x40')]=[{'all':!![]}];}_0x109ad3=_['merge']({},_0x109ad3,_0x22f51b[_0x34f5('0x3e')]);return db['VoiceQueuesLog']['find'](_0x109ad3)[_0x34f5('0x43')](handleEntityNotFound(_0x253977,null))[_0x34f5('0x43')](respondWithResult(_0x253977,null))[_0x34f5('0x44')](handleError(_0x253977,null));};exports[_0x34f5('0x47')]=function(_0x3ee3b3,_0x2bb77f){return db[_0x34f5('0x28')][_0x34f5('0x47')](_0x3ee3b3['body'],{})['then'](respondWithResult(_0x2bb77f,0xc9))['catch'](handleError(_0x2bb77f,null));};exports[_0x34f5('0x22')]=function(_0xe6914a,_0x110f94){if(_0xe6914a[_0x34f5('0x48')]['id']){delete _0xe6914a[_0x34f5('0x48')]['id'];}return db[_0x34f5('0x28')][_0x34f5('0x49')]({'where':{'id':_0xe6914a[_0x34f5('0x46')]['id']}})[_0x34f5('0x43')](handleEntityNotFound(_0x110f94,null))['then'](saveUpdates(_0xe6914a[_0x34f5('0x48')],null))[_0x34f5('0x43')](respondWithResult(_0x110f94,null))[_0x34f5('0x44')](handleError(_0x110f94,null));};exports['destroy']=function(_0x1c12c5,_0x48a906){return db[_0x34f5('0x28')][_0x34f5('0x49')]({'where':{'id':_0x1c12c5['params']['id']}})[_0x34f5('0x43')](handleEntityNotFound(_0x48a906,null))[_0x34f5('0x43')](removeEntity(_0x48a906,null))['catch'](handleError(_0x48a906,null));};
\ No newline at end of file