Built motion from commit 9d7072cc.|2.5.39
[motion2.git] / server / api / userProfileSection / userProfileSection.controller.js
index 7da7cc7..e5cb6b8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0cda=['../../config/logger','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','reject','save','then','destroy','error','stack','name','send','map','UserProfileSection','rawAttributes','type','key','model','query','keys','filters','attributes','intersection','fields','hasOwnProperty','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','rows','catch','show','params','length','find','create','body','update','describe','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','mustache','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware'];(function(_0x35f53a,_0x2b8b76){var _0x50ea70=function(_0x5b7d99){while(--_0x5b7d99){_0x35f53a['push'](_0x35f53a['shift']());}};_0x50ea70(++_0x2b8b76);}(_0x0cda,0x80));var _0xa0cd=function(_0x3881ef,_0x81a4ba){_0x3881ef=_0x3881ef-0x0;var _0x409e00=_0x0cda[_0x3881ef];return _0x409e00;};'use strict';var pdf=require(_0xa0cd('0x0'));var emlformat=require(_0xa0cd('0x1'));var rimraf=require(_0xa0cd('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0xa0cd('0x3'));var rp=require(_0xa0cd('0x4'));var moment=require(_0xa0cd('0x5'));var BPromise=require('bluebird');var Mustache=require(_0xa0cd('0x6'));var util=require('util');var path=require(_0xa0cd('0x7'));var sox=require(_0xa0cd('0x8'));var csv=require(_0xa0cd('0x9'));var ejs=require(_0xa0cd('0xa'));var fs=require('fs');var _=require(_0xa0cd('0xb'));var squel=require(_0xa0cd('0xc'));var crypto=require(_0xa0cd('0xd'));var jsforce=require(_0xa0cd('0xe'));var deskjs=require(_0xa0cd('0xf'));var toCsv=require(_0xa0cd('0x9'));var querystring=require(_0xa0cd('0x10'));var Papa=require(_0xa0cd('0x11'));var Redis=require('ioredis');var authService=require(_0xa0cd('0x12'));var qs=require(_0xa0cd('0x13'));var as=require(_0xa0cd('0x14'));var hardwareService=require(_0xa0cd('0x15'));var logger=require(_0xa0cd('0x16'))('api');var utils=require('../../config/utils');var config=require(_0xa0cd('0x17'));var db=require(_0xa0cd('0x18'))['db'];function respondWithStatusCode(_0x464e23,_0x223f50){_0x223f50=_0x223f50||0xcc;return function(_0x3510e8){if(_0x3510e8){return _0x464e23[_0xa0cd('0x19')](_0x223f50);}return _0x464e23[_0xa0cd('0x1a')](_0x223f50)[_0xa0cd('0x1b')]();};}function respondWithResult(_0x3bfe4a,_0x13c2e8){_0x13c2e8=_0x13c2e8||0xc8;return function(_0x3c0e43){if(_0x3c0e43){return _0x3bfe4a[_0xa0cd('0x1a')](_0x13c2e8)[_0xa0cd('0x1c')](_0x3c0e43);}};}function respondWithFilteredResult(_0x44714e,_0x269ba9){return function(_0x482a5b){if(_0x482a5b){var _0x21e155=_0x482a5b[_0xa0cd('0x1d')],_0x1efaa4=_0x269ba9[_0xa0cd('0x1e')],_0x39599e=_0x269ba9['offset']+_0x269ba9[_0xa0cd('0x1f')],_0x3a3e63;if(_0x39599e>=_0x21e155){_0x39599e=_0x21e155;_0x3a3e63=0xc8;}else{_0x3a3e63=0xce;}_0x44714e['status'](_0x3a3e63);return _0x44714e[_0xa0cd('0x20')](_0xa0cd('0x21'),_0x1efaa4+'-'+_0x39599e+'/'+_0x21e155)[_0xa0cd('0x1c')](_0x482a5b);}return null;};}function patchUpdates(_0x58e618){return function(_0x358952){try{jsonpatch[_0xa0cd('0x22')](_0x358952,_0x58e618,!![]);}catch(_0xb41622){return BPromise[_0xa0cd('0x23')](_0xb41622);}return _0x358952[_0xa0cd('0x24')]();};}function saveUpdates(_0x2f0e0f,_0x32ffc7){return function(_0x5db6eb){if(_0x5db6eb){return _0x5db6eb['update'](_0x2f0e0f)[_0xa0cd('0x25')](function(_0x3fbf69){return _0x3fbf69;});}return null;};}function removeEntity(_0x38c4ef,_0x979962){return function(_0x366c93){if(_0x366c93){return _0x366c93[_0xa0cd('0x26')]()[_0xa0cd('0x25')](function(){_0x38c4ef['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x474c75,_0x16bdd9){return function(_0x4803a0){if(!_0x4803a0){_0x474c75[_0xa0cd('0x19')](0x194);}return _0x4803a0;};}function handleError(_0x1d687f,_0x13357c){_0x13357c=_0x13357c||0x1f4;return function(_0x182f82){logger[_0xa0cd('0x27')](_0x182f82[_0xa0cd('0x28')]);if(_0x182f82[_0xa0cd('0x29')]){delete _0x182f82[_0xa0cd('0x29')];}_0x1d687f[_0xa0cd('0x1a')](_0x13357c)[_0xa0cd('0x2a')](_0x182f82);};}exports['index']=function(_0x4cb2b1,_0x591d9c){var _0xd5e675={},_0x323e1b={},_0x1eb3ec={'count':0x0,'rows':[]};var _0x2679ae=_[_0xa0cd('0x2b')](db[_0xa0cd('0x2c')][_0xa0cd('0x2d')],function(_0x1104c6){return{'name':_0x1104c6['fieldName'],'type':_0x1104c6[_0xa0cd('0x2e')][_0xa0cd('0x2f')]};});_0x323e1b[_0xa0cd('0x30')]=_[_0xa0cd('0x2b')](_0x2679ae,'name');_0x323e1b[_0xa0cd('0x31')]=_[_0xa0cd('0x32')](_0x4cb2b1['query']);_0x323e1b[_0xa0cd('0x33')]=_['intersection'](_0x323e1b['model'],_0x323e1b[_0xa0cd('0x31')]);_0xd5e675[_0xa0cd('0x34')]=_[_0xa0cd('0x35')](_0x323e1b[_0xa0cd('0x30')],qs[_0xa0cd('0x36')](_0x4cb2b1[_0xa0cd('0x31')][_0xa0cd('0x36')]));_0xd5e675['attributes']=_0xd5e675[_0xa0cd('0x34')]['length']?_0xd5e675[_0xa0cd('0x34')]:_0x323e1b[_0xa0cd('0x30')];if(!_0x4cb2b1[_0xa0cd('0x31')][_0xa0cd('0x37')]('nolimit')){_0xd5e675[_0xa0cd('0x1f')]=qs[_0xa0cd('0x1f')](_0x4cb2b1[_0xa0cd('0x31')]['limit']);_0xd5e675[_0xa0cd('0x1e')]=qs[_0xa0cd('0x1e')](_0x4cb2b1[_0xa0cd('0x31')][_0xa0cd('0x1e')]);}_0xd5e675[_0xa0cd('0x38')]=qs[_0xa0cd('0x39')](_0x4cb2b1['query'][_0xa0cd('0x39')]);_0xd5e675[_0xa0cd('0x3a')]=qs['filters'](_[_0xa0cd('0x3b')](_0x4cb2b1[_0xa0cd('0x31')],_0x323e1b[_0xa0cd('0x33')]));if(_0x4cb2b1[_0xa0cd('0x31')][_0xa0cd('0x3c')]){_0xd5e675[_0xa0cd('0x3a')]=_[_0xa0cd('0x3d')](_0xd5e675[_0xa0cd('0x3a')],{'$or':_[_0xa0cd('0x2b')](_0x2679ae,function(_0x1a1957){if(_0x1a1957[_0xa0cd('0x2e')]!==_0xa0cd('0x3e')){var _0x22b038={};_0x22b038[_0x1a1957[_0xa0cd('0x29')]]={'$like':'%'+_0x4cb2b1['query'][_0xa0cd('0x3c')]+'%'};return _0x22b038;}})});}_0xd5e675=_[_0xa0cd('0x3d')]({},_0xd5e675,_0x4cb2b1[_0xa0cd('0x3f')]);var _0x10d060={'where':_0xd5e675[_0xa0cd('0x3a')]};return db[_0xa0cd('0x2c')][_0xa0cd('0x1d')](_0x10d060)[_0xa0cd('0x25')](function(_0x5c3554){_0x1eb3ec[_0xa0cd('0x1d')]=_0x5c3554;if(_0x4cb2b1['query'][_0xa0cd('0x40')]){_0xd5e675['include']=[{'all':!![]}];}return db[_0xa0cd('0x2c')]['findAll'](_0xd5e675);})[_0xa0cd('0x25')](function(_0xe6bc52){_0x1eb3ec[_0xa0cd('0x41')]=_0xe6bc52;return _0x1eb3ec;})[_0xa0cd('0x25')](respondWithFilteredResult(_0x591d9c,_0xd5e675))[_0xa0cd('0x42')](handleError(_0x591d9c,null));};exports[_0xa0cd('0x43')]=function(_0x4497e7,_0x38a880){var _0x1de1db={'raw':![],'where':{'id':_0x4497e7[_0xa0cd('0x44')]['id']}},_0x2923ff={};_0x2923ff[_0xa0cd('0x30')]=_[_0xa0cd('0x32')](db[_0xa0cd('0x2c')][_0xa0cd('0x2d')]);_0x2923ff[_0xa0cd('0x31')]=_['keys'](_0x4497e7['query']);_0x2923ff[_0xa0cd('0x33')]=_[_0xa0cd('0x35')](_0x2923ff[_0xa0cd('0x30')],_0x2923ff[_0xa0cd('0x31')]);_0x1de1db['attributes']=_[_0xa0cd('0x35')](_0x2923ff[_0xa0cd('0x30')],qs['fields'](_0x4497e7[_0xa0cd('0x31')][_0xa0cd('0x36')]));_0x1de1db[_0xa0cd('0x34')]=_0x1de1db['attributes'][_0xa0cd('0x45')]?_0x1de1db['attributes']:_0x2923ff[_0xa0cd('0x30')];if(_0x4497e7[_0xa0cd('0x31')][_0xa0cd('0x40')]){_0x1de1db['include']=[{'all':!![]}];}_0x1de1db=_['merge']({},_0x1de1db,_0x4497e7['options']);return db[_0xa0cd('0x2c')][_0xa0cd('0x46')](_0x1de1db)[_0xa0cd('0x25')](handleEntityNotFound(_0x38a880,null))[_0xa0cd('0x25')](respondWithResult(_0x38a880,null))[_0xa0cd('0x42')](handleError(_0x38a880,null));};exports['create']=function(_0x1ae7ca,_0x3d4d3f){return db[_0xa0cd('0x2c')][_0xa0cd('0x47')](_0x1ae7ca[_0xa0cd('0x48')],{})[_0xa0cd('0x25')](respondWithResult(_0x3d4d3f,0xc9))['catch'](handleError(_0x3d4d3f,null));};exports[_0xa0cd('0x49')]=function(_0x3054e2,_0x38a28d){if(_0x3054e2[_0xa0cd('0x48')]['id']){delete _0x3054e2['body']['id'];}return db[_0xa0cd('0x2c')][_0xa0cd('0x46')]({'where':{'id':_0x3054e2[_0xa0cd('0x44')]['id']}})[_0xa0cd('0x25')](handleEntityNotFound(_0x38a28d,null))[_0xa0cd('0x25')](saveUpdates(_0x3054e2[_0xa0cd('0x48')],null))[_0xa0cd('0x25')](respondWithResult(_0x38a28d,null))['catch'](handleError(_0x38a28d,null));};exports[_0xa0cd('0x26')]=function(_0x4dc2f3,_0x396820){return db['UserProfileSection'][_0xa0cd('0x46')]({'where':{'id':_0x4dc2f3[_0xa0cd('0x44')]['id']}})[_0xa0cd('0x25')](handleEntityNotFound(_0x396820,null))[_0xa0cd('0x25')](removeEntity(_0x396820,null))[_0xa0cd('0x42')](handleError(_0x396820,null));};exports[_0xa0cd('0x4a')]=function(_0x158716,_0x50e639){return db[_0xa0cd('0x2c')][_0xa0cd('0x4a')]()[_0xa0cd('0x25')](respondWithResult(_0x50e639,null))['catch'](handleError(_0x50e639,null));};
\ No newline at end of file
+var _0xf593=['type','key','model','query','keys','filters','intersection','fields','attributes','hasOwnProperty','nolimit','order','pick','filter','where','map','VIRTUAL','merge','includeAll','include','UserProfileSection','findAll','rows','catch','show','length','options','create','body','find','params','describe','eml-format','rimraf','mustache','util','path','sox','ejs','fs-extra','lodash','crypto','jsforce','desk.js','to-csv','querystring','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','end','status','json','undefined','limit','count','offset','set','Content-Range','apply','reject','update','then','destroy','error','stack','name','index','rawAttributes'];(function(_0x39b759,_0x2187be){var _0x2d0893=function(_0x556953){while(--_0x556953){_0x39b759['push'](_0x39b759['shift']());}};_0x2d0893(++_0x2187be);}(_0xf593,0x154));var _0x3f59=function(_0x1ef008,_0x1b0994){_0x1ef008=_0x1ef008-0x0;var _0x3884c4=_0xf593[_0x1ef008];return _0x3884c4;};'use strict';var emlformat=require(_0x3f59('0x0'));var rimraf=require(_0x3f59('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0x3f59('0x2'));var util=require(_0x3f59('0x3'));var path=require(_0x3f59('0x4'));var sox=require(_0x3f59('0x5'));var csv=require('to-csv');var ejs=require(_0x3f59('0x6'));var fs=require('fs');var fs_extra=require(_0x3f59('0x7'));var _=require(_0x3f59('0x8'));var squel=require('squel');var crypto=require(_0x3f59('0x9'));var jsforce=require(_0x3f59('0xa'));var deskjs=require(_0x3f59('0xb'));var toCsv=require(_0x3f59('0xc'));var querystring=require(_0x3f59('0xd'));var Papa=require(_0x3f59('0xe'));var Redis=require('ioredis');var authService=require(_0x3f59('0xf'));var qs=require(_0x3f59('0x10'));var as=require(_0x3f59('0x11'));var hardwareService=require(_0x3f59('0x12'));var logger=require(_0x3f59('0x13'))(_0x3f59('0x14'));var utils=require(_0x3f59('0x15'));var config=require(_0x3f59('0x16'));var licenseUtil=require(_0x3f59('0x17'));var db=require(_0x3f59('0x18'))['db'];function respondWithStatusCode(_0x5626a9,_0x56e69f){_0x56e69f=_0x56e69f||0xcc;return function(_0x5f4b17){if(_0x5f4b17){return _0x5626a9[_0x3f59('0x19')](_0x56e69f);}return _0x5626a9['status'](_0x56e69f)[_0x3f59('0x1a')]();};}function respondWithResult(_0x9df588,_0x44bb94){_0x44bb94=_0x44bb94||0xc8;return function(_0x5658ab){if(_0x5658ab){return _0x9df588[_0x3f59('0x1b')](_0x44bb94)[_0x3f59('0x1c')](_0x5658ab);}};}function respondWithFilteredResult(_0x3f4f23,_0x272271){return function(_0x286f59){if(_0x286f59){var _0x58d419=typeof _0x272271['offset']===_0x3f59('0x1d')&&typeof _0x272271[_0x3f59('0x1e')]===_0x3f59('0x1d');var _0x228d71=_0x286f59[_0x3f59('0x1f')];var _0x274302=_0x58d419?0x0:_0x272271[_0x3f59('0x20')];var _0xf75e3d=_0x58d419?_0x286f59[_0x3f59('0x1f')]:_0x272271[_0x3f59('0x20')]+_0x272271['limit'];var _0x2fe3b9;if(_0xf75e3d>=_0x228d71){_0xf75e3d=_0x228d71;_0x2fe3b9=0xc8;}else{_0x2fe3b9=0xce;}_0x3f4f23[_0x3f59('0x1b')](_0x2fe3b9);return _0x3f4f23[_0x3f59('0x21')](_0x3f59('0x22'),_0x274302+'-'+_0xf75e3d+'/'+_0x228d71)[_0x3f59('0x1c')](_0x286f59);}return null;};}function patchUpdates(_0x1f60b5){return function(_0x1603fa){try{jsonpatch[_0x3f59('0x23')](_0x1603fa,_0x1f60b5,!![]);}catch(_0x3ccbcb){return BPromise[_0x3f59('0x24')](_0x3ccbcb);}return _0x1603fa['save']();};}function saveUpdates(_0x27f043,_0x4eb961){return function(_0x273be2){if(_0x273be2){return _0x273be2[_0x3f59('0x25')](_0x27f043)[_0x3f59('0x26')](function(_0x2f4b81){return _0x2f4b81;});}return null;};}function removeEntity(_0x307b56,_0x26a0d4){return function(_0x3aa59d){if(_0x3aa59d){return _0x3aa59d[_0x3f59('0x27')]()[_0x3f59('0x26')](function(){_0x307b56['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x13773c,_0x2cb36){return function(_0x21502f){if(!_0x21502f){_0x13773c[_0x3f59('0x19')](0x194);}return _0x21502f;};}function handleError(_0x552bdf,_0x3f1ed6){_0x3f1ed6=_0x3f1ed6||0x1f4;return function(_0x1a8430){logger[_0x3f59('0x28')](_0x1a8430[_0x3f59('0x29')]);if(_0x1a8430[_0x3f59('0x2a')]){delete _0x1a8430[_0x3f59('0x2a')];}_0x552bdf[_0x3f59('0x1b')](_0x3f1ed6)['send'](_0x1a8430);};}exports[_0x3f59('0x2b')]=function(_0x25f502,_0xeb1ab7){var _0x2d09b5={},_0xf65bb8={},_0x173155={'count':0x0,'rows':[]};var _0x11e75a=_['map'](db['UserProfileSection'][_0x3f59('0x2c')],function(_0x3b4d8b){return{'name':_0x3b4d8b['fieldName'],'type':_0x3b4d8b[_0x3f59('0x2d')][_0x3f59('0x2e')]};});_0xf65bb8[_0x3f59('0x2f')]=_['map'](_0x11e75a,_0x3f59('0x2a'));_0xf65bb8[_0x3f59('0x30')]=_[_0x3f59('0x31')](_0x25f502[_0x3f59('0x30')]);_0xf65bb8[_0x3f59('0x32')]=_[_0x3f59('0x33')](_0xf65bb8['model'],_0xf65bb8['query']);_0x2d09b5['attributes']=_[_0x3f59('0x33')](_0xf65bb8[_0x3f59('0x2f')],qs[_0x3f59('0x34')](_0x25f502['query']['fields']));_0x2d09b5[_0x3f59('0x35')]=_0x2d09b5[_0x3f59('0x35')]['length']?_0x2d09b5[_0x3f59('0x35')]:_0xf65bb8[_0x3f59('0x2f')];if(!_0x25f502[_0x3f59('0x30')][_0x3f59('0x36')](_0x3f59('0x37'))){_0x2d09b5[_0x3f59('0x1e')]=qs[_0x3f59('0x1e')](_0x25f502['query'][_0x3f59('0x1e')]);_0x2d09b5['offset']=qs[_0x3f59('0x20')](_0x25f502[_0x3f59('0x30')]['offset']);}_0x2d09b5[_0x3f59('0x38')]=qs['sort'](_0x25f502[_0x3f59('0x30')]['sort']);_0x2d09b5['where']=qs[_0x3f59('0x32')](_[_0x3f59('0x39')](_0x25f502[_0x3f59('0x30')],_0xf65bb8[_0x3f59('0x32')]),_0x11e75a);if(_0x25f502[_0x3f59('0x30')][_0x3f59('0x3a')]){_0x2d09b5['where']=_['merge'](_0x2d09b5[_0x3f59('0x3b')],{'$or':_[_0x3f59('0x3c')](_0x11e75a,function(_0x5ad494){if(_0x5ad494[_0x3f59('0x2d')]!==_0x3f59('0x3d')){var _0x59db3e={};_0x59db3e[_0x5ad494[_0x3f59('0x2a')]]={'$like':'%'+_0x25f502['query']['filter']+'%'};return _0x59db3e;}})});}_0x2d09b5=_[_0x3f59('0x3e')]({},_0x2d09b5,_0x25f502['options']);var _0x1f4249={'where':_0x2d09b5[_0x3f59('0x3b')]};return db['UserProfileSection']['count'](_0x1f4249)[_0x3f59('0x26')](function(_0x11deca){_0x173155[_0x3f59('0x1f')]=_0x11deca;if(_0x25f502[_0x3f59('0x30')][_0x3f59('0x3f')]){_0x2d09b5[_0x3f59('0x40')]=[{'all':!![]}];}return db[_0x3f59('0x41')][_0x3f59('0x42')](_0x2d09b5);})[_0x3f59('0x26')](function(_0x52dca2){_0x173155[_0x3f59('0x43')]=_0x52dca2;return _0x173155;})[_0x3f59('0x26')](respondWithFilteredResult(_0xeb1ab7,_0x2d09b5))[_0x3f59('0x44')](handleError(_0xeb1ab7,null));};exports[_0x3f59('0x45')]=function(_0x15139d,_0x102fe8){var _0x2f2d11={'raw':![],'where':{'id':_0x15139d['params']['id']}},_0x440b20={};_0x440b20[_0x3f59('0x2f')]=_[_0x3f59('0x31')](db[_0x3f59('0x41')][_0x3f59('0x2c')]);_0x440b20[_0x3f59('0x30')]=_[_0x3f59('0x31')](_0x15139d[_0x3f59('0x30')]);_0x440b20[_0x3f59('0x32')]=_['intersection'](_0x440b20[_0x3f59('0x2f')],_0x440b20[_0x3f59('0x30')]);_0x2f2d11[_0x3f59('0x35')]=_[_0x3f59('0x33')](_0x440b20['model'],qs[_0x3f59('0x34')](_0x15139d[_0x3f59('0x30')][_0x3f59('0x34')]));_0x2f2d11[_0x3f59('0x35')]=_0x2f2d11[_0x3f59('0x35')][_0x3f59('0x46')]?_0x2f2d11[_0x3f59('0x35')]:_0x440b20[_0x3f59('0x2f')];if(_0x15139d[_0x3f59('0x30')][_0x3f59('0x3f')]){_0x2f2d11[_0x3f59('0x40')]=[{'all':!![]}];}_0x2f2d11=_[_0x3f59('0x3e')]({},_0x2f2d11,_0x15139d[_0x3f59('0x47')]);return db[_0x3f59('0x41')]['find'](_0x2f2d11)[_0x3f59('0x26')](handleEntityNotFound(_0x102fe8,null))[_0x3f59('0x26')](respondWithResult(_0x102fe8,null))[_0x3f59('0x44')](handleError(_0x102fe8,null));};exports[_0x3f59('0x48')]=function(_0x20561e,_0x266fee){return db[_0x3f59('0x41')][_0x3f59('0x48')](_0x20561e[_0x3f59('0x49')],{})[_0x3f59('0x26')](respondWithResult(_0x266fee,0xc9))[_0x3f59('0x44')](handleError(_0x266fee,null));};exports[_0x3f59('0x25')]=function(_0x486a8f,_0x150ad6){if(_0x486a8f[_0x3f59('0x49')]['id']){delete _0x486a8f[_0x3f59('0x49')]['id'];}return db[_0x3f59('0x41')][_0x3f59('0x4a')]({'where':{'id':_0x486a8f[_0x3f59('0x4b')]['id']}})[_0x3f59('0x26')](handleEntityNotFound(_0x150ad6,null))[_0x3f59('0x26')](saveUpdates(_0x486a8f['body'],null))[_0x3f59('0x26')](respondWithResult(_0x150ad6,null))['catch'](handleError(_0x150ad6,null));};exports['destroy']=function(_0x4fb5c7,_0x11fe80){return db['UserProfileSection'][_0x3f59('0x4a')]({'where':{'id':_0x4fb5c7['params']['id']}})[_0x3f59('0x26')](handleEntityNotFound(_0x11fe80,null))[_0x3f59('0x26')](removeEntity(_0x11fe80,null))['catch'](handleError(_0x11fe80,null));};exports[_0x3f59('0x4c')]=function(_0x364fb7,_0x107a69){return db['UserProfileSection']['describe']()['then'](respondWithResult(_0x107a69,null))['catch'](handleError(_0x107a69,null));};
\ No newline at end of file