Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / userProfileSection / userProfileSection.controller.js
index a7752ef..812a835 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb0f6=['attributes','fields','length','hasOwnProperty','nolimit','sort','where','pick','filters','filter','merge','VIRTUAL','options','UserProfileSection','includeAll','include','show','find','catch','create','body','params','describe','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','path','sox','ejs','lodash','squel','desk.js','to-csv','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/license/util','../../mysqldb','sendStatus','status','end','offset','undefined','count','limit','set','Content-Range','json','apply','save','update','then','destroy','error','stack','name','send','index','map','rawAttributes','type','key','query','keys','intersection','model'];(function(_0x2bd4ae,_0x1feddb){var _0x28682a=function(_0x3ee8d0){while(--_0x3ee8d0){_0x2bd4ae['push'](_0x2bd4ae['shift']());}};_0x28682a(++_0x1feddb);}(_0xb0f6,0xfb));var _0x6b0f=function(_0x2310d4,_0x325aca){_0x2310d4=_0x2310d4-0x0;var _0x1c5194=_0xb0f6[_0x2310d4];return _0x1c5194;};'use strict';var emlformat=require(_0x6b0f('0x0'));var rimraf=require(_0x6b0f('0x1'));var zipdir=require(_0x6b0f('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x6b0f('0x3'));var moment=require(_0x6b0f('0x4'));var BPromise=require(_0x6b0f('0x5'));var Mustache=require(_0x6b0f('0x6'));var util=require(_0x6b0f('0x7'));var path=require(_0x6b0f('0x8'));var sox=require(_0x6b0f('0x9'));var csv=require('to-csv');var ejs=require(_0x6b0f('0xa'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x6b0f('0xb'));var squel=require(_0x6b0f('0xc'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x6b0f('0xd'));var toCsv=require(_0x6b0f('0xe'));var querystring=require(_0x6b0f('0xf'));var Papa=require('papaparse');var Redis=require(_0x6b0f('0x10'));var authService=require(_0x6b0f('0x11'));var qs=require(_0x6b0f('0x12'));var as=require(_0x6b0f('0x13'));var hardwareService=require(_0x6b0f('0x14'));var logger=require(_0x6b0f('0x15'))(_0x6b0f('0x16'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0x6b0f('0x17'));var db=require(_0x6b0f('0x18'))['db'];function respondWithStatusCode(_0x3bba24,_0x28b4a7){_0x28b4a7=_0x28b4a7||0xcc;return function(_0xa01999){if(_0xa01999){return _0x3bba24[_0x6b0f('0x19')](_0x28b4a7);}return _0x3bba24[_0x6b0f('0x1a')](_0x28b4a7)[_0x6b0f('0x1b')]();};}function respondWithResult(_0x5aa82e,_0x4f47b7){_0x4f47b7=_0x4f47b7||0xc8;return function(_0x3a6893){if(_0x3a6893){return _0x5aa82e[_0x6b0f('0x1a')](_0x4f47b7)['json'](_0x3a6893);}};}function respondWithFilteredResult(_0x52fcaf,_0x1a69a1){return function(_0x3df093){if(_0x3df093){var _0x475842=typeof _0x1a69a1[_0x6b0f('0x1c')]==='undefined'&&typeof _0x1a69a1['limit']===_0x6b0f('0x1d');var _0x5b1e0f=_0x3df093['count'];var _0x5bd2fc=_0x475842?0x0:_0x1a69a1[_0x6b0f('0x1c')];var _0x250436=_0x475842?_0x3df093[_0x6b0f('0x1e')]:_0x1a69a1[_0x6b0f('0x1c')]+_0x1a69a1[_0x6b0f('0x1f')];var _0x480598;if(_0x250436>=_0x5b1e0f){_0x250436=_0x5b1e0f;_0x480598=0xc8;}else{_0x480598=0xce;}_0x52fcaf[_0x6b0f('0x1a')](_0x480598);return _0x52fcaf[_0x6b0f('0x20')](_0x6b0f('0x21'),_0x5bd2fc+'-'+_0x250436+'/'+_0x5b1e0f)[_0x6b0f('0x22')](_0x3df093);}return null;};}function patchUpdates(_0x32f627){return function(_0x4b7ed6){try{jsonpatch[_0x6b0f('0x23')](_0x4b7ed6,_0x32f627,!![]);}catch(_0x45b3be){return BPromise['reject'](_0x45b3be);}return _0x4b7ed6[_0x6b0f('0x24')]();};}function saveUpdates(_0x48f407,_0x1a8313){return function(_0x2316c4){if(_0x2316c4){return _0x2316c4[_0x6b0f('0x25')](_0x48f407)[_0x6b0f('0x26')](function(_0x1e10a2){return _0x1e10a2;});}return null;};}function removeEntity(_0x4677fb,_0x56b87a){return function(_0xc69617){if(_0xc69617){return _0xc69617[_0x6b0f('0x27')]()[_0x6b0f('0x26')](function(){_0x4677fb[_0x6b0f('0x1a')](0xcc)[_0x6b0f('0x1b')]();});}};}function handleEntityNotFound(_0x17f0aa,_0x115118){return function(_0xec2a43){if(!_0xec2a43){_0x17f0aa[_0x6b0f('0x19')](0x194);}return _0xec2a43;};}function handleError(_0x3d0891,_0x4597fb){_0x4597fb=_0x4597fb||0x1f4;return function(_0xbac9ae){logger[_0x6b0f('0x28')](_0xbac9ae[_0x6b0f('0x29')]);if(_0xbac9ae[_0x6b0f('0x2a')]){delete _0xbac9ae[_0x6b0f('0x2a')];}_0x3d0891[_0x6b0f('0x1a')](_0x4597fb)[_0x6b0f('0x2b')](_0xbac9ae);};}exports[_0x6b0f('0x2c')]=function(_0x16827b,_0x2c19cc){var _0x2a5a94={},_0x4e3ca3={},_0x18b6a5={'count':0x0,'rows':[]};var _0x1466c9=_[_0x6b0f('0x2d')](db['UserProfileSection'][_0x6b0f('0x2e')],function(_0x3049e4){return{'name':_0x3049e4['fieldName'],'type':_0x3049e4[_0x6b0f('0x2f')][_0x6b0f('0x30')]};});_0x4e3ca3['model']=_[_0x6b0f('0x2d')](_0x1466c9,'name');_0x4e3ca3[_0x6b0f('0x31')]=_[_0x6b0f('0x32')](_0x16827b[_0x6b0f('0x31')]);_0x4e3ca3['filters']=_[_0x6b0f('0x33')](_0x4e3ca3[_0x6b0f('0x34')],_0x4e3ca3[_0x6b0f('0x31')]);_0x2a5a94[_0x6b0f('0x35')]=_[_0x6b0f('0x33')](_0x4e3ca3['model'],qs[_0x6b0f('0x36')](_0x16827b['query'][_0x6b0f('0x36')]));_0x2a5a94[_0x6b0f('0x35')]=_0x2a5a94[_0x6b0f('0x35')][_0x6b0f('0x37')]?_0x2a5a94[_0x6b0f('0x35')]:_0x4e3ca3[_0x6b0f('0x34')];if(!_0x16827b[_0x6b0f('0x31')][_0x6b0f('0x38')](_0x6b0f('0x39'))){_0x2a5a94['limit']=qs[_0x6b0f('0x1f')](_0x16827b[_0x6b0f('0x31')]['limit']);_0x2a5a94['offset']=qs['offset'](_0x16827b[_0x6b0f('0x31')][_0x6b0f('0x1c')]);}_0x2a5a94['order']=qs[_0x6b0f('0x3a')](_0x16827b['query'][_0x6b0f('0x3a')]);_0x2a5a94[_0x6b0f('0x3b')]=qs['filters'](_[_0x6b0f('0x3c')](_0x16827b[_0x6b0f('0x31')],_0x4e3ca3[_0x6b0f('0x3d')]),_0x1466c9);if(_0x16827b['query'][_0x6b0f('0x3e')]){_0x2a5a94['where']=_[_0x6b0f('0x3f')](_0x2a5a94[_0x6b0f('0x3b')],{'$or':_[_0x6b0f('0x2d')](_0x1466c9,function(_0x4be65b){if(_0x4be65b[_0x6b0f('0x2f')]!==_0x6b0f('0x40')){var _0x2ef5ce={};_0x2ef5ce[_0x4be65b['name']]={'$like':'%'+_0x16827b['query'][_0x6b0f('0x3e')]+'%'};return _0x2ef5ce;}})});}_0x2a5a94=_[_0x6b0f('0x3f')]({},_0x2a5a94,_0x16827b[_0x6b0f('0x41')]);var _0x41442e={'where':_0x2a5a94[_0x6b0f('0x3b')]};return db[_0x6b0f('0x42')][_0x6b0f('0x1e')](_0x41442e)[_0x6b0f('0x26')](function(_0x304f52){_0x18b6a5[_0x6b0f('0x1e')]=_0x304f52;if(_0x16827b[_0x6b0f('0x31')][_0x6b0f('0x43')]){_0x2a5a94[_0x6b0f('0x44')]=[{'all':!![]}];}return db[_0x6b0f('0x42')]['findAll'](_0x2a5a94);})[_0x6b0f('0x26')](function(_0x144502){_0x18b6a5['rows']=_0x144502;return _0x18b6a5;})[_0x6b0f('0x26')](respondWithFilteredResult(_0x2c19cc,_0x2a5a94))['catch'](handleError(_0x2c19cc,null));};exports[_0x6b0f('0x45')]=function(_0x148591,_0x23f175){var _0x3dce35={'raw':![],'where':{'id':_0x148591['params']['id']}},_0x9ace86={};_0x9ace86[_0x6b0f('0x34')]=_[_0x6b0f('0x32')](db[_0x6b0f('0x42')][_0x6b0f('0x2e')]);_0x9ace86['query']=_[_0x6b0f('0x32')](_0x148591['query']);_0x9ace86['filters']=_['intersection'](_0x9ace86[_0x6b0f('0x34')],_0x9ace86[_0x6b0f('0x31')]);_0x3dce35[_0x6b0f('0x35')]=_[_0x6b0f('0x33')](_0x9ace86[_0x6b0f('0x34')],qs['fields'](_0x148591['query'][_0x6b0f('0x36')]));_0x3dce35['attributes']=_0x3dce35[_0x6b0f('0x35')]['length']?_0x3dce35['attributes']:_0x9ace86[_0x6b0f('0x34')];if(_0x148591[_0x6b0f('0x31')][_0x6b0f('0x43')]){_0x3dce35[_0x6b0f('0x44')]=[{'all':!![]}];}_0x3dce35=_['merge']({},_0x3dce35,_0x148591[_0x6b0f('0x41')]);return db['UserProfileSection'][_0x6b0f('0x46')](_0x3dce35)[_0x6b0f('0x26')](handleEntityNotFound(_0x23f175,null))[_0x6b0f('0x26')](respondWithResult(_0x23f175,null))[_0x6b0f('0x47')](handleError(_0x23f175,null));};exports[_0x6b0f('0x48')]=function(_0x533a9f,_0x2bef33){return db[_0x6b0f('0x42')][_0x6b0f('0x48')](_0x533a9f[_0x6b0f('0x49')],{})[_0x6b0f('0x26')](respondWithResult(_0x2bef33,0xc9))[_0x6b0f('0x47')](handleError(_0x2bef33,null));};exports[_0x6b0f('0x25')]=function(_0x218eb9,_0x9e9ec3){if(_0x218eb9[_0x6b0f('0x49')]['id']){delete _0x218eb9[_0x6b0f('0x49')]['id'];}return db[_0x6b0f('0x42')][_0x6b0f('0x46')]({'where':{'id':_0x218eb9[_0x6b0f('0x4a')]['id']}})[_0x6b0f('0x26')](handleEntityNotFound(_0x9e9ec3,null))[_0x6b0f('0x26')](saveUpdates(_0x218eb9['body'],null))['then'](respondWithResult(_0x9e9ec3,null))[_0x6b0f('0x47')](handleError(_0x9e9ec3,null));};exports[_0x6b0f('0x27')]=function(_0x3b4321,_0x4c6a26){return db[_0x6b0f('0x42')][_0x6b0f('0x46')]({'where':{'id':_0x3b4321[_0x6b0f('0x4a')]['id']}})[_0x6b0f('0x26')](handleEntityNotFound(_0x4c6a26,null))['then'](removeEntity(_0x4c6a26,null))[_0x6b0f('0x47')](handleError(_0x4c6a26,null));};exports[_0x6b0f('0x4b')]=function(_0x32a762,_0x3eec7d){return db[_0x6b0f('0x42')][_0x6b0f('0x4b')]()[_0x6b0f('0x26')](respondWithResult(_0x3eec7d,null))[_0x6b0f('0x47')](handleError(_0x3eec7d,null));};
\ No newline at end of file
+var _0x3370=['create','body','describe','eml-format','fast-json-patch','request-promise','mustache','path','sox','to-csv','fs-extra','squel','crypto','desk.js','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','undefined','limit','offset','count','set','Content-Range','apply','save','update','then','destroy','error','name','index','map','UserProfileSection','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','nolimit','order','sort','where','pick','filter','VIRTUAL','merge','options','includeAll','rows','catch','params','include','find'];(function(_0x554be5,_0x177df1){var _0x2ec936=function(_0x5a2071){while(--_0x5a2071){_0x554be5['push'](_0x554be5['shift']());}};_0x2ec936(++_0x177df1);}(_0x3370,0x1f4));var _0x0337=function(_0x842cd8,_0x25c060){_0x842cd8=_0x842cd8-0x0;var _0x48515e=_0x3370[_0x842cd8];return _0x48515e;};'use strict';var emlformat=require(_0x0337('0x0'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0x0337('0x1'));var rp=require(_0x0337('0x2'));var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0x0337('0x3'));var util=require('util');var path=require(_0x0337('0x4'));var sox=require(_0x0337('0x5'));var csv=require(_0x0337('0x6'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x0337('0x7'));var _=require('lodash');var squel=require(_0x0337('0x8'));var crypto=require(_0x0337('0x9'));var jsforce=require('jsforce');var deskjs=require(_0x0337('0xa'));var toCsv=require(_0x0337('0x6'));var querystring=require('querystring');var Papa=require(_0x0337('0xb'));var Redis=require('ioredis');var authService=require(_0x0337('0xc'));var qs=require(_0x0337('0xd'));var as=require(_0x0337('0xe'));var hardwareService=require(_0x0337('0xf'));var logger=require(_0x0337('0x10'))(_0x0337('0x11'));var utils=require(_0x0337('0x12'));var config=require(_0x0337('0x13'));var licenseUtil=require(_0x0337('0x14'));var db=require(_0x0337('0x15'))['db'];function respondWithStatusCode(_0x2788a7,_0x7b112d){_0x7b112d=_0x7b112d||0xcc;return function(_0x717f13){if(_0x717f13){return _0x2788a7[_0x0337('0x16')](_0x7b112d);}return _0x2788a7[_0x0337('0x17')](_0x7b112d)[_0x0337('0x18')]();};}function respondWithResult(_0x4ed95b,_0x28c308){_0x28c308=_0x28c308||0xc8;return function(_0x1f85bf){if(_0x1f85bf){return _0x4ed95b[_0x0337('0x17')](_0x28c308)['json'](_0x1f85bf);}};}function respondWithFilteredResult(_0x594543,_0x56d1a4){return function(_0x4e5353){if(_0x4e5353){var _0x2ba1e9=typeof _0x56d1a4['offset']===_0x0337('0x19')&&typeof _0x56d1a4[_0x0337('0x1a')]==='undefined';var _0x255270=_0x4e5353['count'];var _0x591a3a=_0x2ba1e9?0x0:_0x56d1a4[_0x0337('0x1b')];var _0x54e147=_0x2ba1e9?_0x4e5353[_0x0337('0x1c')]:_0x56d1a4[_0x0337('0x1b')]+_0x56d1a4[_0x0337('0x1a')];var _0x1280f1;if(_0x54e147>=_0x255270){_0x54e147=_0x255270;_0x1280f1=0xc8;}else{_0x1280f1=0xce;}_0x594543[_0x0337('0x17')](_0x1280f1);return _0x594543[_0x0337('0x1d')](_0x0337('0x1e'),_0x591a3a+'-'+_0x54e147+'/'+_0x255270)['json'](_0x4e5353);}return null;};}function patchUpdates(_0x578364){return function(_0x2672cf){try{jsonpatch[_0x0337('0x1f')](_0x2672cf,_0x578364,!![]);}catch(_0x2ce72d){return BPromise['reject'](_0x2ce72d);}return _0x2672cf[_0x0337('0x20')]();};}function saveUpdates(_0x429f2a,_0x38edcc){return function(_0x587465){if(_0x587465){return _0x587465[_0x0337('0x21')](_0x429f2a)[_0x0337('0x22')](function(_0x16c991){return _0x16c991;});}return null;};}function removeEntity(_0x1d5ef6,_0x6a1a31){return function(_0x558afc){if(_0x558afc){return _0x558afc[_0x0337('0x23')]()[_0x0337('0x22')](function(){_0x1d5ef6[_0x0337('0x17')](0xcc)['end']();});}};}function handleEntityNotFound(_0x15e0eb,_0x4b1c73){return function(_0x5c5930){if(!_0x5c5930){_0x15e0eb['sendStatus'](0x194);}return _0x5c5930;};}function handleError(_0x56ea60,_0xe8e271){_0xe8e271=_0xe8e271||0x1f4;return function(_0x105e80){logger[_0x0337('0x24')](_0x105e80['stack']);if(_0x105e80['name']){delete _0x105e80[_0x0337('0x25')];}_0x56ea60[_0x0337('0x17')](_0xe8e271)['send'](_0x105e80);};}exports[_0x0337('0x26')]=function(_0x255c82,_0x326dc2){var _0xaf3ccf={},_0x2449cd={},_0x2c57f7={'count':0x0,'rows':[]};var _0x3f5a20=_[_0x0337('0x27')](db[_0x0337('0x28')][_0x0337('0x29')],function(_0xc47682){return{'name':_0xc47682[_0x0337('0x2a')],'type':_0xc47682[_0x0337('0x2b')][_0x0337('0x2c')]};});_0x2449cd[_0x0337('0x2d')]=_[_0x0337('0x27')](_0x3f5a20,_0x0337('0x25'));_0x2449cd[_0x0337('0x2e')]=_[_0x0337('0x2f')](_0x255c82[_0x0337('0x2e')]);_0x2449cd[_0x0337('0x30')]=_[_0x0337('0x31')](_0x2449cd['model'],_0x2449cd[_0x0337('0x2e')]);_0xaf3ccf[_0x0337('0x32')]=_[_0x0337('0x31')](_0x2449cd['model'],qs['fields'](_0x255c82[_0x0337('0x2e')][_0x0337('0x33')]));_0xaf3ccf[_0x0337('0x32')]=_0xaf3ccf[_0x0337('0x32')][_0x0337('0x34')]?_0xaf3ccf[_0x0337('0x32')]:_0x2449cd[_0x0337('0x2d')];if(!_0x255c82[_0x0337('0x2e')]['hasOwnProperty'](_0x0337('0x35'))){_0xaf3ccf['limit']=qs['limit'](_0x255c82[_0x0337('0x2e')][_0x0337('0x1a')]);_0xaf3ccf[_0x0337('0x1b')]=qs[_0x0337('0x1b')](_0x255c82[_0x0337('0x2e')]['offset']);}_0xaf3ccf[_0x0337('0x36')]=qs[_0x0337('0x37')](_0x255c82[_0x0337('0x2e')][_0x0337('0x37')]);_0xaf3ccf[_0x0337('0x38')]=qs[_0x0337('0x30')](_[_0x0337('0x39')](_0x255c82[_0x0337('0x2e')],_0x2449cd[_0x0337('0x30')]),_0x3f5a20);if(_0x255c82[_0x0337('0x2e')][_0x0337('0x3a')]){_0xaf3ccf[_0x0337('0x38')]=_['merge'](_0xaf3ccf[_0x0337('0x38')],{'$or':_[_0x0337('0x27')](_0x3f5a20,function(_0x24a637){if(_0x24a637['type']!==_0x0337('0x3b')){var _0x2f89df={};_0x2f89df[_0x24a637[_0x0337('0x25')]]={'$like':'%'+_0x255c82[_0x0337('0x2e')][_0x0337('0x3a')]+'%'};return _0x2f89df;}})});}_0xaf3ccf=_[_0x0337('0x3c')]({},_0xaf3ccf,_0x255c82[_0x0337('0x3d')]);var _0x13fc9a={'where':_0xaf3ccf[_0x0337('0x38')]};return db[_0x0337('0x28')]['count'](_0x13fc9a)[_0x0337('0x22')](function(_0x5565e4){_0x2c57f7[_0x0337('0x1c')]=_0x5565e4;if(_0x255c82['query'][_0x0337('0x3e')]){_0xaf3ccf['include']=[{'all':!![]}];}return db['UserProfileSection']['findAll'](_0xaf3ccf);})[_0x0337('0x22')](function(_0x3d3fd6){_0x2c57f7[_0x0337('0x3f')]=_0x3d3fd6;return _0x2c57f7;})[_0x0337('0x22')](respondWithFilteredResult(_0x326dc2,_0xaf3ccf))[_0x0337('0x40')](handleError(_0x326dc2,null));};exports['show']=function(_0x2ecd3c,_0x16ac7e){var _0x3f6c0c={'raw':![],'where':{'id':_0x2ecd3c[_0x0337('0x41')]['id']}},_0x277748={};_0x277748[_0x0337('0x2d')]=_['keys'](db[_0x0337('0x28')]['rawAttributes']);_0x277748[_0x0337('0x2e')]=_[_0x0337('0x2f')](_0x2ecd3c[_0x0337('0x2e')]);_0x277748['filters']=_[_0x0337('0x31')](_0x277748[_0x0337('0x2d')],_0x277748[_0x0337('0x2e')]);_0x3f6c0c[_0x0337('0x32')]=_[_0x0337('0x31')](_0x277748[_0x0337('0x2d')],qs['fields'](_0x2ecd3c['query'][_0x0337('0x33')]));_0x3f6c0c[_0x0337('0x32')]=_0x3f6c0c['attributes']['length']?_0x3f6c0c[_0x0337('0x32')]:_0x277748[_0x0337('0x2d')];if(_0x2ecd3c[_0x0337('0x2e')]['includeAll']){_0x3f6c0c[_0x0337('0x42')]=[{'all':!![]}];}_0x3f6c0c=_[_0x0337('0x3c')]({},_0x3f6c0c,_0x2ecd3c[_0x0337('0x3d')]);return db['UserProfileSection'][_0x0337('0x43')](_0x3f6c0c)[_0x0337('0x22')](handleEntityNotFound(_0x16ac7e,null))[_0x0337('0x22')](respondWithResult(_0x16ac7e,null))[_0x0337('0x40')](handleError(_0x16ac7e,null));};exports['create']=function(_0x2df0cd,_0x12ba92){return db[_0x0337('0x28')][_0x0337('0x44')](_0x2df0cd[_0x0337('0x45')],{})[_0x0337('0x22')](respondWithResult(_0x12ba92,0xc9))[_0x0337('0x40')](handleError(_0x12ba92,null));};exports[_0x0337('0x21')]=function(_0x2b676a,_0x5a86b1){if(_0x2b676a['body']['id']){delete _0x2b676a[_0x0337('0x45')]['id'];}return db[_0x0337('0x28')][_0x0337('0x43')]({'where':{'id':_0x2b676a['params']['id']}})[_0x0337('0x22')](handleEntityNotFound(_0x5a86b1,null))[_0x0337('0x22')](saveUpdates(_0x2b676a['body'],null))['then'](respondWithResult(_0x5a86b1,null))[_0x0337('0x40')](handleError(_0x5a86b1,null));};exports[_0x0337('0x23')]=function(_0x1f63e4,_0x1c5df6){return db['UserProfileSection'][_0x0337('0x43')]({'where':{'id':_0x1f63e4['params']['id']}})[_0x0337('0x22')](handleEntityNotFound(_0x1c5df6,null))[_0x0337('0x22')](removeEntity(_0x1c5df6,null))[_0x0337('0x40')](handleError(_0x1c5df6,null));};exports[_0x0337('0x46')]=function(_0x3b5b9b,_0x338fea){return db[_0x0337('0x28')]['describe']()[_0x0337('0x22')](respondWithResult(_0x338fea,null))[_0x0337('0x40')](handleError(_0x338fea,null));};
\ No newline at end of file