Built motion from commit (unavailable).|2.5.28
[motion2.git] / server / api / userProfileResource / userProfileResource.controller.js
index 6670d53..d2aedcc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf2ca=['util','sox','to-csv','ejs','lodash','crypto','jsforce','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','set','apply','reject','update','then','error','stack','name','send','index','map','rawAttributes','fieldName','key','model','keys','query','filters','intersection','fields','attributes','hasOwnProperty','nolimit','order','where','pick','merge','type','filter','options','UserProfileResource','count','includeAll','include','rows','catch','show','params','length','create','body','find','destroy','describe','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache'];(function(_0x40dd56,_0x726ca5){var _0x4f850f=function(_0x5f899e){while(--_0x5f899e){_0x40dd56['push'](_0x40dd56['shift']());}};_0x4f850f(++_0x726ca5);}(_0xf2ca,0x16a));var _0xaf2c=function(_0x3e27ba,_0x46b120){_0x3e27ba=_0x3e27ba-0x0;var _0x10b3f2=_0xf2ca[_0x3e27ba];return _0x10b3f2;};'use strict';var pdf=require(_0xaf2c('0x0'));var emlformat=require(_0xaf2c('0x1'));var rimraf=require(_0xaf2c('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0xaf2c('0x3'));var rp=require(_0xaf2c('0x4'));var moment=require(_0xaf2c('0x5'));var BPromise=require(_0xaf2c('0x6'));var Mustache=require(_0xaf2c('0x7'));var util=require(_0xaf2c('0x8'));var path=require('path');var sox=require(_0xaf2c('0x9'));var csv=require(_0xaf2c('0xa'));var ejs=require(_0xaf2c('0xb'));var fs=require('fs');var _=require(_0xaf2c('0xc'));var squel=require('squel');var crypto=require(_0xaf2c('0xd'));var jsforce=require(_0xaf2c('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xaf2c('0xa'));var querystring=require('querystring');var Papa=require(_0xaf2c('0xf'));var Redis=require('ioredis');var authService=require(_0xaf2c('0x10'));var qs=require(_0xaf2c('0x11'));var as=require(_0xaf2c('0x12'));var hardwareService=require(_0xaf2c('0x13'));var logger=require('../../config/logger')('api');var utils=require(_0xaf2c('0x14'));var config=require(_0xaf2c('0x15'));var licenseUtil=require(_0xaf2c('0x16'));var db=require(_0xaf2c('0x17'))['db'];function respondWithStatusCode(_0x285dac,_0x59a59b){_0x59a59b=_0x59a59b||0xcc;return function(_0x590126){if(_0x590126){return _0x285dac[_0xaf2c('0x18')](_0x59a59b);}return _0x285dac[_0xaf2c('0x19')](_0x59a59b)[_0xaf2c('0x1a')]();};}function respondWithResult(_0x18a8a5,_0x293ca6){_0x293ca6=_0x293ca6||0xc8;return function(_0x152c73){if(_0x152c73){return _0x18a8a5[_0xaf2c('0x19')](_0x293ca6)[_0xaf2c('0x1b')](_0x152c73);}};}function respondWithFilteredResult(_0x2119c8,_0x1d0633){return function(_0x6ac8e){if(_0x6ac8e){var _0x2b4d13=_0x6ac8e['count'],_0x26bf7b=_0x1d0633[_0xaf2c('0x1c')],_0x3432e4=_0x1d0633['offset']+_0x1d0633[_0xaf2c('0x1d')],_0x705d09;if(_0x3432e4>=_0x2b4d13){_0x3432e4=_0x2b4d13;_0x705d09=0xc8;}else{_0x705d09=0xce;}_0x2119c8[_0xaf2c('0x19')](_0x705d09);return _0x2119c8[_0xaf2c('0x1e')]('Content-Range',_0x26bf7b+'-'+_0x3432e4+'/'+_0x2b4d13)[_0xaf2c('0x1b')](_0x6ac8e);}return null;};}function patchUpdates(_0x297bcd){return function(_0x1fec4c){try{jsonpatch[_0xaf2c('0x1f')](_0x1fec4c,_0x297bcd,!![]);}catch(_0x3f977c){return BPromise[_0xaf2c('0x20')](_0x3f977c);}return _0x1fec4c['save']();};}function saveUpdates(_0x35e712,_0x164bcb){return function(_0x8ffe13){if(_0x8ffe13){return _0x8ffe13[_0xaf2c('0x21')](_0x35e712)[_0xaf2c('0x22')](function(_0x486de2){return _0x486de2;});}return null;};}function removeEntity(_0x396646,_0xbf6f62){return function(_0x18153c){if(_0x18153c){return _0x18153c['destroy']()['then'](function(){_0x396646[_0xaf2c('0x19')](0xcc)[_0xaf2c('0x1a')]();});}};}function handleEntityNotFound(_0x1cafad,_0x99f78d){return function(_0x591aff){if(!_0x591aff){_0x1cafad[_0xaf2c('0x18')](0x194);}return _0x591aff;};}function handleError(_0xf1a7cf,_0x3a0145){_0x3a0145=_0x3a0145||0x1f4;return function(_0x3c1ae6){logger[_0xaf2c('0x23')](_0x3c1ae6[_0xaf2c('0x24')]);if(_0x3c1ae6[_0xaf2c('0x25')]){delete _0x3c1ae6['name'];}_0xf1a7cf[_0xaf2c('0x19')](_0x3a0145)[_0xaf2c('0x26')](_0x3c1ae6);};}exports[_0xaf2c('0x27')]=function(_0x410536,_0x4b7cf2){var _0x3fb190={},_0x589d47={},_0x38db1b={'count':0x0,'rows':[]};var _0x42f980=_[_0xaf2c('0x28')](db['UserProfileResource'][_0xaf2c('0x29')],function(_0x2ea490){return{'name':_0x2ea490[_0xaf2c('0x2a')],'type':_0x2ea490['type'][_0xaf2c('0x2b')]};});_0x589d47[_0xaf2c('0x2c')]=_[_0xaf2c('0x28')](_0x42f980,_0xaf2c('0x25'));_0x589d47['query']=_[_0xaf2c('0x2d')](_0x410536[_0xaf2c('0x2e')]);_0x589d47[_0xaf2c('0x2f')]=_['intersection'](_0x589d47['model'],_0x589d47[_0xaf2c('0x2e')]);_0x3fb190['attributes']=_[_0xaf2c('0x30')](_0x589d47['model'],qs[_0xaf2c('0x31')](_0x410536[_0xaf2c('0x2e')]['fields']));_0x3fb190[_0xaf2c('0x32')]=_0x3fb190[_0xaf2c('0x32')]['length']?_0x3fb190[_0xaf2c('0x32')]:_0x589d47[_0xaf2c('0x2c')];if(!_0x410536[_0xaf2c('0x2e')][_0xaf2c('0x33')](_0xaf2c('0x34'))){_0x3fb190[_0xaf2c('0x1d')]=qs['limit'](_0x410536[_0xaf2c('0x2e')]['limit']);_0x3fb190[_0xaf2c('0x1c')]=qs['offset'](_0x410536[_0xaf2c('0x2e')]['offset']);}_0x3fb190[_0xaf2c('0x35')]=qs['sort'](_0x410536[_0xaf2c('0x2e')]['sort']);_0x3fb190[_0xaf2c('0x36')]=qs[_0xaf2c('0x2f')](_[_0xaf2c('0x37')](_0x410536[_0xaf2c('0x2e')],_0x589d47[_0xaf2c('0x2f')]),_0x42f980);if(_0x410536['query']['filter']){_0x3fb190[_0xaf2c('0x36')]=_[_0xaf2c('0x38')](_0x3fb190[_0xaf2c('0x36')],{'$or':_[_0xaf2c('0x28')](_0x42f980,function(_0x4eeecf){if(_0x4eeecf[_0xaf2c('0x39')]!=='VIRTUAL'){var _0xa1248e={};_0xa1248e[_0x4eeecf[_0xaf2c('0x25')]]={'$like':'%'+_0x410536['query'][_0xaf2c('0x3a')]+'%'};return _0xa1248e;}})});}_0x3fb190=_[_0xaf2c('0x38')]({},_0x3fb190,_0x410536[_0xaf2c('0x3b')]);var _0x71c597={'where':_0x3fb190[_0xaf2c('0x36')]};return db[_0xaf2c('0x3c')][_0xaf2c('0x3d')](_0x71c597)[_0xaf2c('0x22')](function(_0x296ca8){_0x38db1b[_0xaf2c('0x3d')]=_0x296ca8;if(_0x410536[_0xaf2c('0x2e')][_0xaf2c('0x3e')]){_0x3fb190[_0xaf2c('0x3f')]=[{'all':!![]}];}return db['UserProfileResource']['findAll'](_0x3fb190);})['then'](function(_0x189809){_0x38db1b[_0xaf2c('0x40')]=_0x189809;return _0x38db1b;})[_0xaf2c('0x22')](respondWithFilteredResult(_0x4b7cf2,_0x3fb190))[_0xaf2c('0x41')](handleError(_0x4b7cf2,null));};exports[_0xaf2c('0x42')]=function(_0x29460c,_0x51c441){var _0x1d58bd={'raw':![],'where':{'id':_0x29460c[_0xaf2c('0x43')]['id']}},_0x78632a={};_0x78632a['model']=_['keys'](db[_0xaf2c('0x3c')]['rawAttributes']);_0x78632a[_0xaf2c('0x2e')]=_[_0xaf2c('0x2d')](_0x29460c[_0xaf2c('0x2e')]);_0x78632a[_0xaf2c('0x2f')]=_['intersection'](_0x78632a[_0xaf2c('0x2c')],_0x78632a['query']);_0x1d58bd[_0xaf2c('0x32')]=_[_0xaf2c('0x30')](_0x78632a['model'],qs[_0xaf2c('0x31')](_0x29460c['query'][_0xaf2c('0x31')]));_0x1d58bd[_0xaf2c('0x32')]=_0x1d58bd[_0xaf2c('0x32')][_0xaf2c('0x44')]?_0x1d58bd[_0xaf2c('0x32')]:_0x78632a[_0xaf2c('0x2c')];if(_0x29460c[_0xaf2c('0x2e')][_0xaf2c('0x3e')]){_0x1d58bd[_0xaf2c('0x3f')]=[{'all':!![]}];}_0x1d58bd=_['merge']({},_0x1d58bd,_0x29460c['options']);return db[_0xaf2c('0x3c')]['find'](_0x1d58bd)['then'](handleEntityNotFound(_0x51c441,null))['then'](respondWithResult(_0x51c441,null))[_0xaf2c('0x41')](handleError(_0x51c441,null));};exports[_0xaf2c('0x45')]=function(_0x3cabd4,_0x35315e){return db['UserProfileResource'][_0xaf2c('0x45')](_0x3cabd4['body'],{})[_0xaf2c('0x22')](respondWithResult(_0x35315e,0xc9))['catch'](handleError(_0x35315e,null));};exports[_0xaf2c('0x21')]=function(_0x133e8c,_0x2d01b7){if(_0x133e8c[_0xaf2c('0x46')]['id']){delete _0x133e8c[_0xaf2c('0x46')]['id'];}return db['UserProfileResource'][_0xaf2c('0x47')]({'where':{'id':_0x133e8c[_0xaf2c('0x43')]['id']}})['then'](handleEntityNotFound(_0x2d01b7,null))['then'](saveUpdates(_0x133e8c[_0xaf2c('0x46')],null))['then'](respondWithResult(_0x2d01b7,null))[_0xaf2c('0x41')](handleError(_0x2d01b7,null));};exports[_0xaf2c('0x48')]=function(_0x17b9ec,_0x315b9f){return db[_0xaf2c('0x3c')][_0xaf2c('0x47')]({'where':{'id':_0x17b9ec[_0xaf2c('0x43')]['id']}})[_0xaf2c('0x22')](handleEntityNotFound(_0x315b9f,null))[_0xaf2c('0x22')](removeEntity(_0x315b9f,null))[_0xaf2c('0x41')](handleError(_0x315b9f,null));};exports[_0xaf2c('0x49')]=function(_0x5bf349,_0x22919a){return db[_0xaf2c('0x3c')]['describe']()['then'](respondWithResult(_0x22919a,null))['catch'](handleError(_0x22919a,null));};
\ No newline at end of file
+var _0xb5ce=['fields','length','hasOwnProperty','nolimit','order','sort','where','filters','filter','merge','options','includeAll','include','findAll','rows','show','params','find','catch','create','body','update','describe','eml-format','rimraf','fast-json-patch','moment','mustache','util','path','sox','to-csv','ejs','lodash','crypto','desk.js','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/environment','../../config/license/util','status','end','count','offset','limit','set','Content-Range','apply','reject','save','destroy','then','sendStatus','error','stack','name','send','index','map','UserProfileResource','rawAttributes','fieldName','type','key','query','keys','intersection','model','attributes'];(function(_0x2328b7,_0x468b08){var _0x855723=function(_0x5b1d21){while(--_0x5b1d21){_0x2328b7['push'](_0x2328b7['shift']());}};_0x855723(++_0x468b08);}(_0xb5ce,0x17f));var _0xeb5c=function(_0x1fd52e,_0x18738c){_0x1fd52e=_0x1fd52e-0x0;var _0x279b03=_0xb5ce[_0x1fd52e];return _0x279b03;};'use strict';var emlformat=require(_0xeb5c('0x0'));var rimraf=require(_0xeb5c('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xeb5c('0x2'));var rp=require('request-promise');var moment=require(_0xeb5c('0x3'));var BPromise=require('bluebird');var Mustache=require(_0xeb5c('0x4'));var util=require(_0xeb5c('0x5'));var path=require(_0xeb5c('0x6'));var sox=require(_0xeb5c('0x7'));var csv=require(_0xeb5c('0x8'));var ejs=require(_0xeb5c('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xeb5c('0xa'));var squel=require('squel');var crypto=require(_0xeb5c('0xb'));var jsforce=require('jsforce');var deskjs=require(_0xeb5c('0xc'));var toCsv=require(_0xeb5c('0x8'));var querystring=require('querystring');var Papa=require(_0xeb5c('0xd'));var Redis=require(_0xeb5c('0xe'));var authService=require('../../components/auth/service');var qs=require(_0xeb5c('0xf'));var as=require(_0xeb5c('0x10'));var hardwareService=require(_0xeb5c('0x11'));var logger=require('../../config/logger')('api');var utils=require('../../config/utils');var config=require(_0xeb5c('0x12'));var licenseUtil=require(_0xeb5c('0x13'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x5ee19d,_0x4b9079){_0x4b9079=_0x4b9079||0xcc;return function(_0x283a57){if(_0x283a57){return _0x5ee19d['sendStatus'](_0x4b9079);}return _0x5ee19d[_0xeb5c('0x14')](_0x4b9079)[_0xeb5c('0x15')]();};}function respondWithResult(_0x34bf71,_0x477ae9){_0x477ae9=_0x477ae9||0xc8;return function(_0x401757){if(_0x401757){return _0x34bf71[_0xeb5c('0x14')](_0x477ae9)['json'](_0x401757);}};}function respondWithFilteredResult(_0x29fda2,_0xc75f4b){return function(_0x10b53d){if(_0x10b53d){var _0x439607=_0x10b53d[_0xeb5c('0x16')],_0x2a0ce4=_0xc75f4b[_0xeb5c('0x17')],_0x1dd117=_0xc75f4b[_0xeb5c('0x17')]+_0xc75f4b[_0xeb5c('0x18')],_0x24107c;if(_0x1dd117>=_0x439607){_0x1dd117=_0x439607;_0x24107c=0xc8;}else{_0x24107c=0xce;}_0x29fda2[_0xeb5c('0x14')](_0x24107c);return _0x29fda2[_0xeb5c('0x19')](_0xeb5c('0x1a'),_0x2a0ce4+'-'+_0x1dd117+'/'+_0x439607)['json'](_0x10b53d);}return null;};}function patchUpdates(_0x39709a){return function(_0x5176d0){try{jsonpatch[_0xeb5c('0x1b')](_0x5176d0,_0x39709a,!![]);}catch(_0x8f604e){return BPromise[_0xeb5c('0x1c')](_0x8f604e);}return _0x5176d0[_0xeb5c('0x1d')]();};}function saveUpdates(_0x1440d0,_0x339824){return function(_0x1718b7){if(_0x1718b7){return _0x1718b7['update'](_0x1440d0)['then'](function(_0x484534){return _0x484534;});}return null;};}function removeEntity(_0x51267b,_0x2a9fb2){return function(_0xa8dedf){if(_0xa8dedf){return _0xa8dedf[_0xeb5c('0x1e')]()[_0xeb5c('0x1f')](function(){_0x51267b[_0xeb5c('0x14')](0xcc)[_0xeb5c('0x15')]();});}};}function handleEntityNotFound(_0x4b8ce9,_0x1c413e){return function(_0x3a2ace){if(!_0x3a2ace){_0x4b8ce9[_0xeb5c('0x20')](0x194);}return _0x3a2ace;};}function handleError(_0x90f35b,_0x4e41be){_0x4e41be=_0x4e41be||0x1f4;return function(_0x858fae){logger[_0xeb5c('0x21')](_0x858fae[_0xeb5c('0x22')]);if(_0x858fae[_0xeb5c('0x23')]){delete _0x858fae[_0xeb5c('0x23')];}_0x90f35b[_0xeb5c('0x14')](_0x4e41be)[_0xeb5c('0x24')](_0x858fae);};}exports[_0xeb5c('0x25')]=function(_0x3a9d68,_0x297f6){var _0xd0aa5a={},_0x117351={},_0x5e9903={'count':0x0,'rows':[]};var _0x21e899=_[_0xeb5c('0x26')](db[_0xeb5c('0x27')][_0xeb5c('0x28')],function(_0x5b9e6d){return{'name':_0x5b9e6d[_0xeb5c('0x29')],'type':_0x5b9e6d[_0xeb5c('0x2a')][_0xeb5c('0x2b')]};});_0x117351['model']=_[_0xeb5c('0x26')](_0x21e899,_0xeb5c('0x23'));_0x117351[_0xeb5c('0x2c')]=_[_0xeb5c('0x2d')](_0x3a9d68[_0xeb5c('0x2c')]);_0x117351['filters']=_[_0xeb5c('0x2e')](_0x117351[_0xeb5c('0x2f')],_0x117351['query']);_0xd0aa5a[_0xeb5c('0x30')]=_[_0xeb5c('0x2e')](_0x117351[_0xeb5c('0x2f')],qs['fields'](_0x3a9d68[_0xeb5c('0x2c')][_0xeb5c('0x31')]));_0xd0aa5a['attributes']=_0xd0aa5a[_0xeb5c('0x30')][_0xeb5c('0x32')]?_0xd0aa5a[_0xeb5c('0x30')]:_0x117351[_0xeb5c('0x2f')];if(!_0x3a9d68[_0xeb5c('0x2c')][_0xeb5c('0x33')](_0xeb5c('0x34'))){_0xd0aa5a[_0xeb5c('0x18')]=qs[_0xeb5c('0x18')](_0x3a9d68[_0xeb5c('0x2c')][_0xeb5c('0x18')]);_0xd0aa5a[_0xeb5c('0x17')]=qs[_0xeb5c('0x17')](_0x3a9d68[_0xeb5c('0x2c')][_0xeb5c('0x17')]);}_0xd0aa5a[_0xeb5c('0x35')]=qs[_0xeb5c('0x36')](_0x3a9d68[_0xeb5c('0x2c')][_0xeb5c('0x36')]);_0xd0aa5a[_0xeb5c('0x37')]=qs[_0xeb5c('0x38')](_['pick'](_0x3a9d68[_0xeb5c('0x2c')],_0x117351['filters']),_0x21e899);if(_0x3a9d68[_0xeb5c('0x2c')][_0xeb5c('0x39')]){_0xd0aa5a[_0xeb5c('0x37')]=_[_0xeb5c('0x3a')](_0xd0aa5a['where'],{'$or':_[_0xeb5c('0x26')](_0x21e899,function(_0x1c8720){if(_0x1c8720['type']!=='VIRTUAL'){var _0x22f763={};_0x22f763[_0x1c8720['name']]={'$like':'%'+_0x3a9d68[_0xeb5c('0x2c')][_0xeb5c('0x39')]+'%'};return _0x22f763;}})});}_0xd0aa5a=_['merge']({},_0xd0aa5a,_0x3a9d68[_0xeb5c('0x3b')]);var _0x2c584a={'where':_0xd0aa5a[_0xeb5c('0x37')]};return db['UserProfileResource']['count'](_0x2c584a)[_0xeb5c('0x1f')](function(_0x57dacf){_0x5e9903[_0xeb5c('0x16')]=_0x57dacf;if(_0x3a9d68[_0xeb5c('0x2c')][_0xeb5c('0x3c')]){_0xd0aa5a[_0xeb5c('0x3d')]=[{'all':!![]}];}return db[_0xeb5c('0x27')][_0xeb5c('0x3e')](_0xd0aa5a);})[_0xeb5c('0x1f')](function(_0x5c2c09){_0x5e9903[_0xeb5c('0x3f')]=_0x5c2c09;return _0x5e9903;})[_0xeb5c('0x1f')](respondWithFilteredResult(_0x297f6,_0xd0aa5a))['catch'](handleError(_0x297f6,null));};exports[_0xeb5c('0x40')]=function(_0x33c461,_0xc7ed51){var _0x2f5121={'raw':![],'where':{'id':_0x33c461[_0xeb5c('0x41')]['id']}},_0xc18112={};_0xc18112[_0xeb5c('0x2f')]=_[_0xeb5c('0x2d')](db[_0xeb5c('0x27')][_0xeb5c('0x28')]);_0xc18112[_0xeb5c('0x2c')]=_[_0xeb5c('0x2d')](_0x33c461[_0xeb5c('0x2c')]);_0xc18112[_0xeb5c('0x38')]=_['intersection'](_0xc18112[_0xeb5c('0x2f')],_0xc18112[_0xeb5c('0x2c')]);_0x2f5121[_0xeb5c('0x30')]=_[_0xeb5c('0x2e')](_0xc18112['model'],qs['fields'](_0x33c461[_0xeb5c('0x2c')][_0xeb5c('0x31')]));_0x2f5121[_0xeb5c('0x30')]=_0x2f5121['attributes']['length']?_0x2f5121[_0xeb5c('0x30')]:_0xc18112[_0xeb5c('0x2f')];if(_0x33c461[_0xeb5c('0x2c')][_0xeb5c('0x3c')]){_0x2f5121[_0xeb5c('0x3d')]=[{'all':!![]}];}_0x2f5121=_[_0xeb5c('0x3a')]({},_0x2f5121,_0x33c461[_0xeb5c('0x3b')]);return db[_0xeb5c('0x27')][_0xeb5c('0x42')](_0x2f5121)[_0xeb5c('0x1f')](handleEntityNotFound(_0xc7ed51,null))[_0xeb5c('0x1f')](respondWithResult(_0xc7ed51,null))[_0xeb5c('0x43')](handleError(_0xc7ed51,null));};exports[_0xeb5c('0x44')]=function(_0x20fa65,_0x1f5178){return db[_0xeb5c('0x27')][_0xeb5c('0x44')](_0x20fa65[_0xeb5c('0x45')],{})[_0xeb5c('0x1f')](respondWithResult(_0x1f5178,0xc9))[_0xeb5c('0x43')](handleError(_0x1f5178,null));};exports[_0xeb5c('0x46')]=function(_0x55510f,_0x45c3de){if(_0x55510f[_0xeb5c('0x45')]['id']){delete _0x55510f[_0xeb5c('0x45')]['id'];}return db[_0xeb5c('0x27')]['find']({'where':{'id':_0x55510f[_0xeb5c('0x41')]['id']}})['then'](handleEntityNotFound(_0x45c3de,null))[_0xeb5c('0x1f')](saveUpdates(_0x55510f[_0xeb5c('0x45')],null))['then'](respondWithResult(_0x45c3de,null))[_0xeb5c('0x43')](handleError(_0x45c3de,null));};exports['destroy']=function(_0x365fc7,_0x12c732){return db['UserProfileResource'][_0xeb5c('0x42')]({'where':{'id':_0x365fc7[_0xeb5c('0x41')]['id']}})['then'](handleEntityNotFound(_0x12c732,null))[_0xeb5c('0x1f')](removeEntity(_0x12c732,null))['catch'](handleError(_0x12c732,null));};exports['describe']=function(_0x4afb89,_0x5f3d87){return db[_0xeb5c('0x27')][_0xeb5c('0x47')]()[_0xeb5c('0x1f')](respondWithResult(_0x5f3d87,null))[_0xeb5c('0x43')](handleError(_0x5f3d87,null));};
\ No newline at end of file