Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / cdr / cdr.controller.js
index f103018..e5f1cb7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3a65=['filters','attributes','intersection','fields','length','hasOwnProperty','sort','where','filter','VIRTUAL','options','includeAll','include','findAll','catch','show','params','merge','Cdr','find','create','body','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','count','offset','limit','Content-Range','apply','reject','save','then','destroy','error','stack','name','send','index','map','fieldName','key','model','keys','query'];(function(_0x35ebbb,_0xe862ef){var _0x29d9b=function(_0x4fee98){while(--_0x4fee98){_0x35ebbb['push'](_0x35ebbb['shift']());}};_0x29d9b(++_0xe862ef);}(_0x3a65,0x1cd));var _0x53a6=function(_0x2586f0,_0x32a3b3){_0x2586f0=_0x2586f0-0x0;var _0x4343ca=_0x3a65[_0x2586f0];return _0x4343ca;};'use strict';var pdf=require(_0x53a6('0x0'));var emlformat=require(_0x53a6('0x1'));var rimraf=require(_0x53a6('0x2'));var zipdir=require(_0x53a6('0x3'));var jsonpatch=require(_0x53a6('0x4'));var rp=require('request-promise');var moment=require(_0x53a6('0x5'));var BPromise=require(_0x53a6('0x6'));var Mustache=require('mustache');var util=require('util');var path=require(_0x53a6('0x7'));var sox=require(_0x53a6('0x8'));var csv=require(_0x53a6('0x9'));var ejs=require(_0x53a6('0xa'));var fs=require('fs');var _=require(_0x53a6('0xb'));var squel=require(_0x53a6('0xc'));var crypto=require(_0x53a6('0xd'));var jsforce=require(_0x53a6('0xe'));var deskjs=require(_0x53a6('0xf'));var toCsv=require(_0x53a6('0x9'));var querystring=require(_0x53a6('0x10'));var Papa=require('papaparse');var Redis=require(_0x53a6('0x11'));var authService=require(_0x53a6('0x12'));var qs=require(_0x53a6('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x53a6('0x14'));var logger=require(_0x53a6('0x15'))(_0x53a6('0x16'));var utils=require('../../config/utils');var config=require(_0x53a6('0x17'));var licenseUtil=require(_0x53a6('0x18'));var db=require(_0x53a6('0x19'))['db'];function respondWithStatusCode(_0x4a35d3,_0x12ed27){_0x12ed27=_0x12ed27||0xcc;return function(_0x547ab5){if(_0x547ab5){return _0x4a35d3[_0x53a6('0x1a')](_0x12ed27);}return _0x4a35d3[_0x53a6('0x1b')](_0x12ed27)[_0x53a6('0x1c')]();};}function respondWithResult(_0x7369b,_0x452036){_0x452036=_0x452036||0xc8;return function(_0x348a09){if(_0x348a09){return _0x7369b[_0x53a6('0x1b')](_0x452036)[_0x53a6('0x1d')](_0x348a09);}};}function respondWithFilteredResult(_0x5ac1d1,_0x341491){return function(_0x1b3262){if(_0x1b3262){var _0x26e4ef=_0x1b3262[_0x53a6('0x1e')],_0x597e51=_0x341491[_0x53a6('0x1f')],_0x3b9270=_0x341491[_0x53a6('0x1f')]+_0x341491[_0x53a6('0x20')],_0x561735;if(_0x3b9270>=_0x26e4ef){_0x3b9270=_0x26e4ef;_0x561735=0xc8;}else{_0x561735=0xce;}_0x5ac1d1['status'](_0x561735);return _0x5ac1d1['set'](_0x53a6('0x21'),_0x597e51+'-'+_0x3b9270+'/'+_0x26e4ef)['json'](_0x1b3262);}return null;};}function patchUpdates(_0x274061){return function(_0x17d94e){try{jsonpatch[_0x53a6('0x22')](_0x17d94e,_0x274061,!![]);}catch(_0x353d17){return BPromise[_0x53a6('0x23')](_0x353d17);}return _0x17d94e[_0x53a6('0x24')]();};}function saveUpdates(_0x4b2e21,_0x3a4f02){return function(_0x612ca4){if(_0x612ca4){return _0x612ca4['update'](_0x4b2e21)[_0x53a6('0x25')](function(_0x187331){return _0x187331;});}return null;};}function removeEntity(_0x586d89,_0x65cd6d){return function(_0x84ad2a){if(_0x84ad2a){return _0x84ad2a[_0x53a6('0x26')]()['then'](function(){_0x586d89[_0x53a6('0x1b')](0xcc)[_0x53a6('0x1c')]();});}};}function handleEntityNotFound(_0x7f485b,_0x2b76b8){return function(_0x248130){if(!_0x248130){_0x7f485b['sendStatus'](0x194);}return _0x248130;};}function handleError(_0x5013ce,_0x95f3a){_0x95f3a=_0x95f3a||0x1f4;return function(_0x3094c8){logger[_0x53a6('0x27')](_0x3094c8[_0x53a6('0x28')]);if(_0x3094c8[_0x53a6('0x29')]){delete _0x3094c8[_0x53a6('0x29')];}_0x5013ce[_0x53a6('0x1b')](_0x95f3a)[_0x53a6('0x2a')](_0x3094c8);};}exports[_0x53a6('0x2b')]=function(_0x1aa850,_0x1ddc7d){var _0x4cdce5={},_0x1b8bd2={},_0x1dd9d1={'count':0x0,'rows':[]};var _0x54db61=_[_0x53a6('0x2c')](db['Cdr']['rawAttributes'],function(_0x5af00e){return{'name':_0x5af00e[_0x53a6('0x2d')],'type':_0x5af00e['type'][_0x53a6('0x2e')]};});_0x1b8bd2[_0x53a6('0x2f')]=_['map'](_0x54db61,_0x53a6('0x29'));_0x1b8bd2['query']=_[_0x53a6('0x30')](_0x1aa850[_0x53a6('0x31')]);_0x1b8bd2[_0x53a6('0x32')]=_['intersection'](_0x1b8bd2[_0x53a6('0x2f')],_0x1b8bd2[_0x53a6('0x31')]);_0x4cdce5[_0x53a6('0x33')]=_[_0x53a6('0x34')](_0x1b8bd2[_0x53a6('0x2f')],qs[_0x53a6('0x35')](_0x1aa850['query'][_0x53a6('0x35')]));_0x4cdce5[_0x53a6('0x33')]=_0x4cdce5[_0x53a6('0x33')][_0x53a6('0x36')]?_0x4cdce5[_0x53a6('0x33')]:_0x1b8bd2[_0x53a6('0x2f')];if(!_0x1aa850[_0x53a6('0x31')][_0x53a6('0x37')]('nolimit')){_0x4cdce5[_0x53a6('0x20')]=qs[_0x53a6('0x20')](_0x1aa850['query'][_0x53a6('0x20')]);_0x4cdce5[_0x53a6('0x1f')]=qs[_0x53a6('0x1f')](_0x1aa850[_0x53a6('0x31')][_0x53a6('0x1f')]);}_0x4cdce5['order']=qs[_0x53a6('0x38')](_0x1aa850['query']['sort']);_0x4cdce5[_0x53a6('0x39')]=qs[_0x53a6('0x32')](_['pick'](_0x1aa850['query'],_0x1b8bd2[_0x53a6('0x32')]),_0x54db61);if(_0x1aa850[_0x53a6('0x31')][_0x53a6('0x3a')]){_0x4cdce5[_0x53a6('0x39')]=_['merge'](_0x4cdce5['where'],{'$or':_[_0x53a6('0x2c')](_0x54db61,function(_0x255054){if(_0x255054['type']!==_0x53a6('0x3b')){var _0x70f64={};_0x70f64[_0x255054[_0x53a6('0x29')]]={'$like':'%'+_0x1aa850[_0x53a6('0x31')]['filter']+'%'};return _0x70f64;}})});}_0x4cdce5=_['merge']({},_0x4cdce5,_0x1aa850[_0x53a6('0x3c')]);var _0x858462={'where':_0x4cdce5[_0x53a6('0x39')]};return db['Cdr'][_0x53a6('0x1e')](_0x858462)['then'](function(_0xb2d362){_0x1dd9d1[_0x53a6('0x1e')]=_0xb2d362;if(_0x1aa850['query'][_0x53a6('0x3d')]){_0x4cdce5[_0x53a6('0x3e')]=[{'all':!![]}];}return db['Cdr'][_0x53a6('0x3f')](_0x4cdce5);})['then'](function(_0x463d05){_0x1dd9d1['rows']=_0x463d05;return _0x1dd9d1;})[_0x53a6('0x25')](respondWithFilteredResult(_0x1ddc7d,_0x4cdce5))[_0x53a6('0x40')](handleError(_0x1ddc7d,null));};exports[_0x53a6('0x41')]=function(_0xfaa467,_0xd38752){var _0x6f3e42={'raw':!![],'where':{'id':_0xfaa467[_0x53a6('0x42')]['id']}},_0x23ee15={};_0x23ee15[_0x53a6('0x2f')]=_['keys'](db['Cdr']['rawAttributes']);_0x23ee15[_0x53a6('0x31')]=_[_0x53a6('0x30')](_0xfaa467[_0x53a6('0x31')]);_0x23ee15[_0x53a6('0x32')]=_['intersection'](_0x23ee15['model'],_0x23ee15[_0x53a6('0x31')]);_0x6f3e42[_0x53a6('0x33')]=_['intersection'](_0x23ee15[_0x53a6('0x2f')],qs[_0x53a6('0x35')](_0xfaa467['query'][_0x53a6('0x35')]));_0x6f3e42[_0x53a6('0x33')]=_0x6f3e42[_0x53a6('0x33')]['length']?_0x6f3e42['attributes']:_0x23ee15[_0x53a6('0x2f')];if(_0xfaa467[_0x53a6('0x31')][_0x53a6('0x3d')]){_0x6f3e42['include']=[{'all':!![]}];}_0x6f3e42=_[_0x53a6('0x43')]({},_0x6f3e42,_0xfaa467[_0x53a6('0x3c')]);return db[_0x53a6('0x44')][_0x53a6('0x45')](_0x6f3e42)[_0x53a6('0x25')](handleEntityNotFound(_0xd38752,null))[_0x53a6('0x25')](respondWithResult(_0xd38752,null))[_0x53a6('0x40')](handleError(_0xd38752,null));};exports[_0x53a6('0x46')]=function(_0x25ce1d,_0x1a12ae){return db['Cdr'][_0x53a6('0x46')](_0x25ce1d['body'],{})[_0x53a6('0x25')](respondWithResult(_0x1a12ae,0xc9))[_0x53a6('0x40')](handleError(_0x1a12ae,null));};exports['update']=function(_0x1532b2,_0x2fd9d9){if(_0x1532b2['body']['id']){delete _0x1532b2[_0x53a6('0x47')]['id'];}return db['Cdr'][_0x53a6('0x45')]({'where':{'id':_0x1532b2['params']['id']}})['then'](handleEntityNotFound(_0x2fd9d9,null))[_0x53a6('0x25')](saveUpdates(_0x1532b2['body'],null))['then'](respondWithResult(_0x2fd9d9,null))[_0x53a6('0x40')](handleError(_0x2fd9d9,null));};exports[_0x53a6('0x26')]=function(_0x402d4c,_0xa32008){return db[_0x53a6('0x44')][_0x53a6('0x45')]({'where':{'id':_0x402d4c[_0x53a6('0x42')]['id']}})[_0x53a6('0x25')](handleEntityNotFound(_0xa32008,null))[_0x53a6('0x25')](removeEntity(_0xa32008,null))[_0x53a6('0x40')](handleError(_0xa32008,null));};exports[_0x53a6('0x48')]=function(_0x509e66,_0x515529){return db[_0x53a6('0x44')]['describe']()[_0x53a6('0x25')](respondWithResult(_0x515529,null))[_0x53a6('0x40')](handleError(_0x515529,null));};
\ No newline at end of file
+var _0xcb81=['save','then','destroy','error','stack','name','send','index','Cdr','rawAttributes','type','key','model','map','keys','query','filters','intersection','attributes','fields','hasOwnProperty','nolimit','order','sort','where','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','find','create','body','update','params','describe','eml-format','rimraf','fast-json-patch','mustache','util','path','sox','to-csv','fs-extra','lodash','crypto','jsforce','desk.js','querystring','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','end','status','json','undefined','limit','count','offset','set','Content-Range','apply','reject'];(function(_0x7281b,_0x15b501){var _0x15e6e3=function(_0x46477e){while(--_0x46477e){_0x7281b['push'](_0x7281b['shift']());}};_0x15e6e3(++_0x15b501);}(_0xcb81,0x154));var _0x1cb8=function(_0x2f5a22,_0x5e9f03){_0x2f5a22=_0x2f5a22-0x0;var _0x326b70=_0xcb81[_0x2f5a22];return _0x326b70;};'use strict';var emlformat=require(_0x1cb8('0x0'));var rimraf=require(_0x1cb8('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x1cb8('0x2'));var rp=require('request-promise');var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0x1cb8('0x3'));var util=require(_0x1cb8('0x4'));var path=require(_0x1cb8('0x5'));var sox=require(_0x1cb8('0x6'));var csv=require(_0x1cb8('0x7'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x1cb8('0x8'));var _=require(_0x1cb8('0x9'));var squel=require('squel');var crypto=require(_0x1cb8('0xa'));var jsforce=require(_0x1cb8('0xb'));var deskjs=require(_0x1cb8('0xc'));var toCsv=require('to-csv');var querystring=require(_0x1cb8('0xd'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0x1cb8('0xe'));var qs=require(_0x1cb8('0xf'));var as=require(_0x1cb8('0x10'));var hardwareService=require(_0x1cb8('0x11'));var logger=require(_0x1cb8('0x12'))(_0x1cb8('0x13'));var utils=require(_0x1cb8('0x14'));var config=require(_0x1cb8('0x15'));var licenseUtil=require('../../config/license/util');var db=require(_0x1cb8('0x16'))['db'];function respondWithStatusCode(_0x1ffe94,_0x1938ee){_0x1938ee=_0x1938ee||0xcc;return function(_0x299eea){if(_0x299eea){return _0x1ffe94[_0x1cb8('0x17')](_0x1938ee);}return _0x1ffe94['status'](_0x1938ee)[_0x1cb8('0x18')]();};}function respondWithResult(_0x2c600,_0xcb6ad1){_0xcb6ad1=_0xcb6ad1||0xc8;return function(_0x14d84d){if(_0x14d84d){return _0x2c600[_0x1cb8('0x19')](_0xcb6ad1)[_0x1cb8('0x1a')](_0x14d84d);}};}function respondWithFilteredResult(_0x339ad0,_0x243930){return function(_0x5af4a3){if(_0x5af4a3){var _0x17a95d=typeof _0x243930['offset']===_0x1cb8('0x1b')&&typeof _0x243930[_0x1cb8('0x1c')]===_0x1cb8('0x1b');var _0x46abd0=_0x5af4a3[_0x1cb8('0x1d')];var _0x308088=_0x17a95d?0x0:_0x243930[_0x1cb8('0x1e')];var _0x9f0adb=_0x17a95d?_0x5af4a3[_0x1cb8('0x1d')]:_0x243930[_0x1cb8('0x1e')]+_0x243930[_0x1cb8('0x1c')];var _0x3cda27;if(_0x9f0adb>=_0x46abd0){_0x9f0adb=_0x46abd0;_0x3cda27=0xc8;}else{_0x3cda27=0xce;}_0x339ad0['status'](_0x3cda27);return _0x339ad0[_0x1cb8('0x1f')](_0x1cb8('0x20'),_0x308088+'-'+_0x9f0adb+'/'+_0x46abd0)[_0x1cb8('0x1a')](_0x5af4a3);}return null;};}function patchUpdates(_0x3d1682){return function(_0x4abf3a){try{jsonpatch[_0x1cb8('0x21')](_0x4abf3a,_0x3d1682,!![]);}catch(_0x4f9220){return BPromise[_0x1cb8('0x22')](_0x4f9220);}return _0x4abf3a[_0x1cb8('0x23')]();};}function saveUpdates(_0x40b914,_0x38ff3a){return function(_0x559916){if(_0x559916){return _0x559916['update'](_0x40b914)[_0x1cb8('0x24')](function(_0x4040be){return _0x4040be;});}return null;};}function removeEntity(_0x22dafe,_0x44a00d){return function(_0x2473b8){if(_0x2473b8){return _0x2473b8[_0x1cb8('0x25')]()[_0x1cb8('0x24')](function(){_0x22dafe['status'](0xcc)[_0x1cb8('0x18')]();});}};}function handleEntityNotFound(_0x4554d5,_0x35c890){return function(_0xeeb21d){if(!_0xeeb21d){_0x4554d5[_0x1cb8('0x17')](0x194);}return _0xeeb21d;};}function handleError(_0x41ab56,_0x4ca3be){_0x4ca3be=_0x4ca3be||0x1f4;return function(_0x1ec995){logger[_0x1cb8('0x26')](_0x1ec995[_0x1cb8('0x27')]);if(_0x1ec995[_0x1cb8('0x28')]){delete _0x1ec995[_0x1cb8('0x28')];}_0x41ab56['status'](_0x4ca3be)[_0x1cb8('0x29')](_0x1ec995);};}exports[_0x1cb8('0x2a')]=function(_0x3a8b53,_0x21c17a){var _0x4fda96={},_0x2a79e0={},_0x2ba8c8={'count':0x0,'rows':[]};var _0x3a6a67=_['map'](db[_0x1cb8('0x2b')][_0x1cb8('0x2c')],function(_0x17abe1){return{'name':_0x17abe1['fieldName'],'type':_0x17abe1[_0x1cb8('0x2d')][_0x1cb8('0x2e')]};});_0x2a79e0[_0x1cb8('0x2f')]=_[_0x1cb8('0x30')](_0x3a6a67,_0x1cb8('0x28'));_0x2a79e0['query']=_[_0x1cb8('0x31')](_0x3a8b53[_0x1cb8('0x32')]);_0x2a79e0[_0x1cb8('0x33')]=_[_0x1cb8('0x34')](_0x2a79e0[_0x1cb8('0x2f')],_0x2a79e0[_0x1cb8('0x32')]);_0x4fda96[_0x1cb8('0x35')]=_[_0x1cb8('0x34')](_0x2a79e0[_0x1cb8('0x2f')],qs['fields'](_0x3a8b53['query'][_0x1cb8('0x36')]));_0x4fda96[_0x1cb8('0x35')]=_0x4fda96[_0x1cb8('0x35')]['length']?_0x4fda96['attributes']:_0x2a79e0[_0x1cb8('0x2f')];if(!_0x3a8b53[_0x1cb8('0x32')][_0x1cb8('0x37')](_0x1cb8('0x38'))){_0x4fda96[_0x1cb8('0x1c')]=qs[_0x1cb8('0x1c')](_0x3a8b53[_0x1cb8('0x32')][_0x1cb8('0x1c')]);_0x4fda96['offset']=qs[_0x1cb8('0x1e')](_0x3a8b53[_0x1cb8('0x32')][_0x1cb8('0x1e')]);}_0x4fda96[_0x1cb8('0x39')]=qs[_0x1cb8('0x3a')](_0x3a8b53[_0x1cb8('0x32')][_0x1cb8('0x3a')]);_0x4fda96[_0x1cb8('0x3b')]=qs[_0x1cb8('0x33')](_['pick'](_0x3a8b53[_0x1cb8('0x32')],_0x2a79e0[_0x1cb8('0x33')]),_0x3a6a67);if(_0x3a8b53['query'][_0x1cb8('0x3c')]){_0x4fda96[_0x1cb8('0x3b')]=_[_0x1cb8('0x3d')](_0x4fda96[_0x1cb8('0x3b')],{'$or':_[_0x1cb8('0x30')](_0x3a6a67,function(_0x5dc4c0){if(_0x5dc4c0[_0x1cb8('0x2d')]!==_0x1cb8('0x3e')){var _0x2989c6={};_0x2989c6[_0x5dc4c0['name']]={'$like':'%'+_0x3a8b53['query']['filter']+'%'};return _0x2989c6;}})});}_0x4fda96=_[_0x1cb8('0x3d')]({},_0x4fda96,_0x3a8b53[_0x1cb8('0x3f')]);var _0x328f7e={'where':_0x4fda96[_0x1cb8('0x3b')]};return db['Cdr']['count'](_0x328f7e)[_0x1cb8('0x24')](function(_0x25f0a3){_0x2ba8c8[_0x1cb8('0x1d')]=_0x25f0a3;if(_0x3a8b53[_0x1cb8('0x32')][_0x1cb8('0x40')]){_0x4fda96[_0x1cb8('0x41')]=[{'all':!![]}];}return db[_0x1cb8('0x2b')][_0x1cb8('0x42')](_0x4fda96);})['then'](function(_0x2044d1){_0x2ba8c8[_0x1cb8('0x43')]=_0x2044d1;return _0x2ba8c8;})[_0x1cb8('0x24')](respondWithFilteredResult(_0x21c17a,_0x4fda96))[_0x1cb8('0x44')](handleError(_0x21c17a,null));};exports['show']=function(_0x156298,_0x47c18a){var _0x2060a6={'raw':!![],'where':{'id':_0x156298['params']['id']}},_0x37230e={};_0x37230e[_0x1cb8('0x2f')]=_[_0x1cb8('0x31')](db[_0x1cb8('0x2b')]['rawAttributes']);_0x37230e['query']=_[_0x1cb8('0x31')](_0x156298['query']);_0x37230e[_0x1cb8('0x33')]=_[_0x1cb8('0x34')](_0x37230e[_0x1cb8('0x2f')],_0x37230e[_0x1cb8('0x32')]);_0x2060a6[_0x1cb8('0x35')]=_[_0x1cb8('0x34')](_0x37230e[_0x1cb8('0x2f')],qs['fields'](_0x156298[_0x1cb8('0x32')][_0x1cb8('0x36')]));_0x2060a6[_0x1cb8('0x35')]=_0x2060a6[_0x1cb8('0x35')]['length']?_0x2060a6[_0x1cb8('0x35')]:_0x37230e[_0x1cb8('0x2f')];if(_0x156298[_0x1cb8('0x32')][_0x1cb8('0x40')]){_0x2060a6[_0x1cb8('0x41')]=[{'all':!![]}];}_0x2060a6=_['merge']({},_0x2060a6,_0x156298[_0x1cb8('0x3f')]);return db[_0x1cb8('0x2b')][_0x1cb8('0x45')](_0x2060a6)[_0x1cb8('0x24')](handleEntityNotFound(_0x47c18a,null))[_0x1cb8('0x24')](respondWithResult(_0x47c18a,null))['catch'](handleError(_0x47c18a,null));};exports[_0x1cb8('0x46')]=function(_0x3a4ec4,_0x5598b1){return db[_0x1cb8('0x2b')][_0x1cb8('0x46')](_0x3a4ec4[_0x1cb8('0x47')],{})[_0x1cb8('0x24')](respondWithResult(_0x5598b1,0xc9))[_0x1cb8('0x44')](handleError(_0x5598b1,null));};exports[_0x1cb8('0x48')]=function(_0x3b063c,_0x219541){if(_0x3b063c[_0x1cb8('0x47')]['id']){delete _0x3b063c[_0x1cb8('0x47')]['id'];}return db[_0x1cb8('0x2b')][_0x1cb8('0x45')]({'where':{'id':_0x3b063c[_0x1cb8('0x49')]['id']}})[_0x1cb8('0x24')](handleEntityNotFound(_0x219541,null))['then'](saveUpdates(_0x3b063c[_0x1cb8('0x47')],null))[_0x1cb8('0x24')](respondWithResult(_0x219541,null))[_0x1cb8('0x44')](handleError(_0x219541,null));};exports[_0x1cb8('0x25')]=function(_0x21aba7,_0x15f0ba){return db[_0x1cb8('0x2b')]['find']({'where':{'id':_0x21aba7[_0x1cb8('0x49')]['id']}})[_0x1cb8('0x24')](handleEntityNotFound(_0x15f0ba,null))[_0x1cb8('0x24')](removeEntity(_0x15f0ba,null))['catch'](handleError(_0x15f0ba,null));};exports['describe']=function(_0x1c12aa,_0x42cc81){return db[_0x1cb8('0x2b')][_0x1cb8('0x4a')]()[_0x1cb8('0x24')](respondWithResult(_0x42cc81,null))['catch'](handleError(_0x42cc81,null));};
\ No newline at end of file