// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0cd6=['save','update','then','error','stack','name','send','index','map','rawAttributes','fieldName','key','query','filters','intersection','attributes','model','fields','length','hasOwnProperty','order','sort','where','pick','filter','merge','type','VIRTUAL','options','VoiceCallReport','include','fullname','alias','User','findAll','catch','show','keys','find','create','destroy','params','uniqueid','body','html-pdf','eml-format','zip-dir','fast-json-patch','moment','bluebird','path','sox','to-csv','lodash','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','end','json','count','offset','limit','status','set','Content-Range','apply'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0x0cd6,0x113));var _0x60cd=function(_0x49e584,_0x2886f8){_0x49e584=_0x49e584-0x0;var _0x58b1be=_0x0cd6[_0x49e584];return _0x58b1be;};'use strict';var pdf=require(_0x60cd('0x0'));var emlformat=require(_0x60cd('0x1'));var rimraf=require('rimraf');var zipdir=require(_0x60cd('0x2'));var jsonpatch=require(_0x60cd('0x3'));var rp=require('request-promise');var moment=require(_0x60cd('0x4'));var BPromise=require(_0x60cd('0x5'));var Mustache=require('mustache');var util=require('util');var path=require(_0x60cd('0x6'));var sox=require(_0x60cd('0x7'));var csv=require(_0x60cd('0x8'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x60cd('0x9'));var squel=require('squel');var crypto=require(_0x60cd('0xa'));var jsforce=require(_0x60cd('0xb'));var deskjs=require(_0x60cd('0xc'));var toCsv=require(_0x60cd('0x8'));var querystring=require(_0x60cd('0xd'));var Papa=require(_0x60cd('0xe'));var Redis=require(_0x60cd('0xf'));var authService=require(_0x60cd('0x10'));var qs=require(_0x60cd('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x60cd('0x12'));var logger=require(_0x60cd('0x13'))('api');var utils=require(_0x60cd('0x14'));var config=require('../../config/environment');var licenseUtil=require(_0x60cd('0x15'));var db=require(_0x60cd('0x16'))['db'];function respondWithStatusCode(_0x526b5b,_0x89aed4){_0x89aed4=_0x89aed4||0xcc;return function(_0x295f32){if(_0x295f32){return _0x526b5b[_0x60cd('0x17')](_0x89aed4);}return _0x526b5b['status'](_0x89aed4)[_0x60cd('0x18')]();};}function respondWithResult(_0x23db86,_0x53e158){_0x53e158=_0x53e158||0xc8;return function(_0x42e723){if(_0x42e723){return _0x23db86['status'](_0x53e158)[_0x60cd('0x19')](_0x42e723);}};}function respondWithFilteredResult(_0x41cc6b,_0x4b4aad){return function(_0x501940){if(_0x501940){var _0x3c4446=_0x501940[_0x60cd('0x1a')],_0x209dde=_0x4b4aad[_0x60cd('0x1b')],_0x1ca4fb=_0x4b4aad[_0x60cd('0x1b')]+_0x4b4aad[_0x60cd('0x1c')],_0x5d0125;if(_0x1ca4fb>=_0x3c4446){_0x1ca4fb=_0x3c4446;_0x5d0125=0xc8;}else{_0x5d0125=0xce;}_0x41cc6b[_0x60cd('0x1d')](_0x5d0125);return _0x41cc6b[_0x60cd('0x1e')](_0x60cd('0x1f'),_0x209dde+'-'+_0x1ca4fb+'/'+_0x3c4446)[_0x60cd('0x19')](_0x501940);}return null;};}function patchUpdates(_0x3677b2){return function(_0x585ad8){try{jsonpatch[_0x60cd('0x20')](_0x585ad8,_0x3677b2,!![]);}catch(_0x557814){return BPromise['reject'](_0x557814);}return _0x585ad8[_0x60cd('0x21')]();};}function saveUpdates(_0x3d9434,_0x5b757c){return function(_0x45e390){if(_0x45e390){return _0x45e390[_0x60cd('0x22')](_0x3d9434)['then'](function(_0x41642b){return _0x41642b;});}return null;};}function removeEntity(_0x4b0f8a,_0x323459){return function(_0x41c290){if(_0x41c290){return _0x41c290['destroy']()[_0x60cd('0x23')](function(){_0x4b0f8a['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x267c8c,_0x5354d1){return function(_0x204ddb){if(!_0x204ddb){_0x267c8c[_0x60cd('0x17')](0x194);}return _0x204ddb;};}function handleError(_0x5f49dc,_0x4e3025){_0x4e3025=_0x4e3025||0x1f4;return function(_0x3fee65){logger[_0x60cd('0x24')](_0x3fee65[_0x60cd('0x25')]);if(_0x3fee65['name']){delete _0x3fee65[_0x60cd('0x26')];}_0x5f49dc[_0x60cd('0x1d')](_0x4e3025)[_0x60cd('0x27')](_0x3fee65);};}exports[_0x60cd('0x28')]=function(_0x547932,_0x31be62){var _0xbe52e0={},_0xd8051a={},_0x16f93f={'count':0x0,'rows':[]};var _0x446673=_[_0x60cd('0x29')](db['VoiceCallReport'][_0x60cd('0x2a')],function(_0x215b8d){return{'name':_0x215b8d[_0x60cd('0x2b')],'type':_0x215b8d['type'][_0x60cd('0x2c')]};});_0xd8051a['model']=_[_0x60cd('0x29')](_0x446673,_0x60cd('0x26'));_0xd8051a['query']=_['keys'](_0x547932[_0x60cd('0x2d')]);_0xd8051a[_0x60cd('0x2e')]=_[_0x60cd('0x2f')](_0xd8051a['model'],_0xd8051a[_0x60cd('0x2d')]);_0xbe52e0[_0x60cd('0x30')]=_[_0x60cd('0x2f')](_0xd8051a[_0x60cd('0x31')],qs[_0x60cd('0x32')](_0x547932[_0x60cd('0x2d')][_0x60cd('0x32')]));_0xbe52e0['attributes']=_0xbe52e0[_0x60cd('0x30')][_0x60cd('0x33')]?_0xbe52e0[_0x60cd('0x30')]:_0xd8051a[_0x60cd('0x31')];if(!_0x547932[_0x60cd('0x2d')][_0x60cd('0x34')]('nolimit')){_0xbe52e0['limit']=qs['limit'](_0x547932[_0x60cd('0x2d')][_0x60cd('0x1c')]);_0xbe52e0[_0x60cd('0x1b')]=qs[_0x60cd('0x1b')](_0x547932[_0x60cd('0x2d')][_0x60cd('0x1b')]);}_0xbe52e0[_0x60cd('0x35')]=qs['sort'](_0x547932[_0x60cd('0x2d')][_0x60cd('0x36')]);_0xbe52e0[_0x60cd('0x37')]=qs[_0x60cd('0x2e')](_[_0x60cd('0x38')](_0x547932[_0x60cd('0x2d')],_0xd8051a[_0x60cd('0x2e')]),_0x446673);if(_0x547932[_0x60cd('0x2d')][_0x60cd('0x39')]){_0xbe52e0['where']=_[_0x60cd('0x3a')](_0xbe52e0[_0x60cd('0x37')],{'$or':_['map'](_0x446673,function(_0x5e505a){if(_0x5e505a[_0x60cd('0x3b')]!==_0x60cd('0x3c')){var _0x31352e={};_0x31352e[_0x5e505a[_0x60cd('0x26')]]={'$like':'%'+_0x547932[_0x60cd('0x2d')]['filter']+'%'};return _0x31352e;}})});}_0xbe52e0=_[_0x60cd('0x3a')]({},_0xbe52e0,_0x547932[_0x60cd('0x3d')]);var _0x59442e={'where':_0xbe52e0['where']};return db[_0x60cd('0x3e')][_0x60cd('0x1a')](_0x59442e)[_0x60cd('0x23')](function(_0x1a419f){_0x16f93f[_0x60cd('0x1a')]=_0x1a419f;if(_0x547932[_0x60cd('0x2d')]['includeAll']){_0xbe52e0[_0x60cd('0x3f')]=[{'attributes':['id',_0x60cd('0x26'),_0x60cd('0x40'),_0x60cd('0x41')],'model':db[_0x60cd('0x42')],'as':_0x60cd('0x42')}];}return db[_0x60cd('0x3e')][_0x60cd('0x43')](_0xbe52e0);})[_0x60cd('0x23')](function(_0x5dcec5){_0x16f93f['rows']=_0x5dcec5;return _0x16f93f;})['then'](respondWithFilteredResult(_0x31be62,_0xbe52e0))[_0x60cd('0x44')](handleError(_0x31be62,null));};exports[_0x60cd('0x45')]=function(_0x42fd24,_0x5b0292){var _0x4f832b={'raw':!![],'where':{'id':_0x42fd24['params']['id']}},_0x4792b9={};_0x4792b9[_0x60cd('0x31')]=_[_0x60cd('0x46')](db['VoiceCallReport']['rawAttributes']);_0x4792b9['query']=_[_0x60cd('0x46')](_0x42fd24[_0x60cd('0x2d')]);_0x4792b9[_0x60cd('0x2e')]=_[_0x60cd('0x2f')](_0x4792b9['model'],_0x4792b9[_0x60cd('0x2d')]);_0x4f832b[_0x60cd('0x30')]=_['intersection'](_0x4792b9[_0x60cd('0x31')],qs[_0x60cd('0x32')](_0x42fd24[_0x60cd('0x2d')][_0x60cd('0x32')]));_0x4f832b[_0x60cd('0x30')]=_0x4f832b['attributes'][_0x60cd('0x33')]?_0x4f832b['attributes']:_0x4792b9[_0x60cd('0x31')];if(_0x42fd24[_0x60cd('0x2d')]['includeAll']){_0x4f832b['include']=[{'all':!![]}];}_0x4f832b=_[_0x60cd('0x3a')]({},_0x4f832b,_0x42fd24[_0x60cd('0x3d')]);return db[_0x60cd('0x3e')][_0x60cd('0x47')](_0x4f832b)[_0x60cd('0x23')](handleEntityNotFound(_0x5b0292,null))[_0x60cd('0x23')](respondWithResult(_0x5b0292,null))[_0x60cd('0x44')](handleError(_0x5b0292,null));};exports[_0x60cd('0x48')]=function(_0x42894f,_0x2249c6){return db[_0x60cd('0x3e')]['create'](_0x42894f['body'],{})['then'](respondWithResult(_0x2249c6,0xc9))[_0x60cd('0x44')](handleError(_0x2249c6,null));};exports[_0x60cd('0x49')]=function(_0x268597,_0x36489b){return db[_0x60cd('0x3e')][_0x60cd('0x47')]({'where':{'id':_0x268597[_0x60cd('0x4a')]['id']}})[_0x60cd('0x23')](handleEntityNotFound(_0x36489b,null))[_0x60cd('0x23')](removeEntity(_0x36489b,null))[_0x60cd('0x44')](handleError(_0x36489b,null));};exports['describe']=function(_0x439b8a,_0x3db1e5){return db[_0x60cd('0x3e')]['describe']()[_0x60cd('0x23')](respondWithResult(_0x3db1e5,null))[_0x60cd('0x44')](handleError(_0x3db1e5,null));};exports[_0x60cd('0x22')]=function(_0x3e37c2,_0xf474bc){if(_0x3e37c2['body']['uniqueid']){delete _0x3e37c2['body'][_0x60cd('0x4b')];}return db['VoiceCallReport']['find']({'where':{'uniqueid':_0x3e37c2[_0x60cd('0x4a')]['id'],'UserId':{'$or':[null,_0x3e37c2['user']['id']]}}})[_0x60cd('0x23')](handleEntityNotFound(_0xf474bc,null))[_0x60cd('0x23')](saveUpdates(_0x3e37c2[_0x60cd('0x4c')],null))[_0x60cd('0x23')](respondWithResult(_0xf474bc,null))[_0x60cd('0x44')](handleError(_0xf474bc,null));};
\ No newline at end of file
+var _0xa9e0=['eml-format','rimraf','request-promise','bluebird','mustache','util','path','sox','ejs','lodash','squel','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/license/util','../../mysqldb','sendStatus','end','status','json','offset','limit','set','Content-Range','apply','reject','save','update','destroy','then','name','send','map','VoiceCallReport','rawAttributes','fieldName','type','model','query','filters','intersection','attributes','fields','length','nolimit','order','sort','where','filter','VIRTUAL','merge','count','includeAll','include','fullname','User','rows','catch','show','params','keys','options','find','create','describe','body','uniqueid','user','html-pdf'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0xa9e0,0x123));var _0x0a9e=function(_0x3c4737,_0x2329ec){_0x3c4737=_0x3c4737-0x0;var _0x2bb926=_0xa9e0[_0x3c4737];return _0x2bb926;};'use strict';var pdf=require(_0x0a9e('0x0'));var emlformat=require(_0x0a9e('0x1'));var rimraf=require(_0x0a9e('0x2'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x0a9e('0x3'));var moment=require('moment');var BPromise=require(_0x0a9e('0x4'));var Mustache=require(_0x0a9e('0x5'));var util=require(_0x0a9e('0x6'));var path=require(_0x0a9e('0x7'));var sox=require(_0x0a9e('0x8'));var csv=require('to-csv');var ejs=require(_0x0a9e('0x9'));var fs=require('fs');var _=require(_0x0a9e('0xa'));var squel=require(_0x0a9e('0xb'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x0a9e('0xc'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x0a9e('0xd'));var Redis=require(_0x0a9e('0xe'));var authService=require(_0x0a9e('0xf'));var qs=require(_0x0a9e('0x10'));var as=require(_0x0a9e('0x11'));var hardwareService=require(_0x0a9e('0x12'));var logger=require('../../config/logger')('api');var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0x0a9e('0x13'));var db=require(_0x0a9e('0x14'))['db'];function respondWithStatusCode(_0xd5b662,_0x26d672){_0x26d672=_0x26d672||0xcc;return function(_0x32d742){if(_0x32d742){return _0xd5b662[_0x0a9e('0x15')](_0x26d672);}return _0xd5b662['status'](_0x26d672)[_0x0a9e('0x16')]();};}function respondWithResult(_0x239b12,_0x2b4227){_0x2b4227=_0x2b4227||0xc8;return function(_0x281129){if(_0x281129){return _0x239b12[_0x0a9e('0x17')](_0x2b4227)[_0x0a9e('0x18')](_0x281129);}};}function respondWithFilteredResult(_0x52a03d,_0x22dccb){return function(_0x5d0880){if(_0x5d0880){var _0x1985b6=_0x5d0880['count'],_0x519dfd=_0x22dccb[_0x0a9e('0x19')],_0x16033c=_0x22dccb['offset']+_0x22dccb[_0x0a9e('0x1a')],_0x12066b;if(_0x16033c>=_0x1985b6){_0x16033c=_0x1985b6;_0x12066b=0xc8;}else{_0x12066b=0xce;}_0x52a03d[_0x0a9e('0x17')](_0x12066b);return _0x52a03d[_0x0a9e('0x1b')](_0x0a9e('0x1c'),_0x519dfd+'-'+_0x16033c+'/'+_0x1985b6)[_0x0a9e('0x18')](_0x5d0880);}return null;};}function patchUpdates(_0x2eb11f){return function(_0x530eb7){try{jsonpatch[_0x0a9e('0x1d')](_0x530eb7,_0x2eb11f,!![]);}catch(_0x1314ae){return BPromise[_0x0a9e('0x1e')](_0x1314ae);}return _0x530eb7[_0x0a9e('0x1f')]();};}function saveUpdates(_0x105080,_0x4bb1e3){return function(_0x2c3407){if(_0x2c3407){return _0x2c3407[_0x0a9e('0x20')](_0x105080)['then'](function(_0x20f109){return _0x20f109;});}return null;};}function removeEntity(_0x5a09ef,_0x588269){return function(_0x3a02e1){if(_0x3a02e1){return _0x3a02e1[_0x0a9e('0x21')]()[_0x0a9e('0x22')](function(){_0x5a09ef[_0x0a9e('0x17')](0xcc)['end']();});}};}function handleEntityNotFound(_0xfb6e48,_0x2fb0e4){return function(_0x3b45bc){if(!_0x3b45bc){_0xfb6e48[_0x0a9e('0x15')](0x194);}return _0x3b45bc;};}function handleError(_0x370d86,_0x42ac8f){_0x42ac8f=_0x42ac8f||0x1f4;return function(_0x16b1ca){logger['error'](_0x16b1ca['stack']);if(_0x16b1ca[_0x0a9e('0x23')]){delete _0x16b1ca[_0x0a9e('0x23')];}_0x370d86[_0x0a9e('0x17')](_0x42ac8f)[_0x0a9e('0x24')](_0x16b1ca);};}exports['index']=function(_0x384319,_0x479bc4){var _0x45a1e7={},_0x5bfb33={},_0x1dc186={'count':0x0,'rows':[]};var _0x34dc65=_[_0x0a9e('0x25')](db[_0x0a9e('0x26')][_0x0a9e('0x27')],function(_0x1538a4){return{'name':_0x1538a4[_0x0a9e('0x28')],'type':_0x1538a4[_0x0a9e('0x29')]['key']};});_0x5bfb33[_0x0a9e('0x2a')]=_[_0x0a9e('0x25')](_0x34dc65,_0x0a9e('0x23'));_0x5bfb33[_0x0a9e('0x2b')]=_['keys'](_0x384319[_0x0a9e('0x2b')]);_0x5bfb33[_0x0a9e('0x2c')]=_[_0x0a9e('0x2d')](_0x5bfb33[_0x0a9e('0x2a')],_0x5bfb33[_0x0a9e('0x2b')]);_0x45a1e7[_0x0a9e('0x2e')]=_[_0x0a9e('0x2d')](_0x5bfb33[_0x0a9e('0x2a')],qs[_0x0a9e('0x2f')](_0x384319['query'][_0x0a9e('0x2f')]));_0x45a1e7['attributes']=_0x45a1e7[_0x0a9e('0x2e')][_0x0a9e('0x30')]?_0x45a1e7[_0x0a9e('0x2e')]:_0x5bfb33[_0x0a9e('0x2a')];if(!_0x384319[_0x0a9e('0x2b')]['hasOwnProperty'](_0x0a9e('0x31'))){_0x45a1e7[_0x0a9e('0x1a')]=qs[_0x0a9e('0x1a')](_0x384319[_0x0a9e('0x2b')][_0x0a9e('0x1a')]);_0x45a1e7[_0x0a9e('0x19')]=qs[_0x0a9e('0x19')](_0x384319[_0x0a9e('0x2b')]['offset']);}_0x45a1e7[_0x0a9e('0x32')]=qs['sort'](_0x384319[_0x0a9e('0x2b')][_0x0a9e('0x33')]);_0x45a1e7[_0x0a9e('0x34')]=qs[_0x0a9e('0x2c')](_['pick'](_0x384319[_0x0a9e('0x2b')],_0x5bfb33[_0x0a9e('0x2c')]),_0x34dc65);if(_0x384319[_0x0a9e('0x2b')][_0x0a9e('0x35')]){_0x45a1e7['where']=_['merge'](_0x45a1e7[_0x0a9e('0x34')],{'$or':_['map'](_0x34dc65,function(_0x24936a){if(_0x24936a[_0x0a9e('0x29')]!==_0x0a9e('0x36')){var _0x1ef87a={};_0x1ef87a[_0x24936a['name']]={'$like':'%'+_0x384319[_0x0a9e('0x2b')][_0x0a9e('0x35')]+'%'};return _0x1ef87a;}})});}_0x45a1e7=_[_0x0a9e('0x37')]({},_0x45a1e7,_0x384319['options']);var _0x1dbf74={'where':_0x45a1e7[_0x0a9e('0x34')]};return db[_0x0a9e('0x26')]['count'](_0x1dbf74)['then'](function(_0x11b61d){_0x1dc186[_0x0a9e('0x38')]=_0x11b61d;if(_0x384319['query'][_0x0a9e('0x39')]){_0x45a1e7[_0x0a9e('0x3a')]=[{'attributes':['id',_0x0a9e('0x23'),_0x0a9e('0x3b'),'alias'],'model':db['User'],'as':_0x0a9e('0x3c')}];}return db[_0x0a9e('0x26')]['findAll'](_0x45a1e7);})[_0x0a9e('0x22')](function(_0x1dec2e){_0x1dc186[_0x0a9e('0x3d')]=_0x1dec2e;return _0x1dc186;})['then'](respondWithFilteredResult(_0x479bc4,_0x45a1e7))[_0x0a9e('0x3e')](handleError(_0x479bc4,null));};exports[_0x0a9e('0x3f')]=function(_0x274e8e,_0x43dd5b){var _0x13cb1f={'raw':!![],'where':{'id':_0x274e8e[_0x0a9e('0x40')]['id']}},_0xeaa5e5={};_0xeaa5e5[_0x0a9e('0x2a')]=_[_0x0a9e('0x41')](db[_0x0a9e('0x26')][_0x0a9e('0x27')]);_0xeaa5e5[_0x0a9e('0x2b')]=_[_0x0a9e('0x41')](_0x274e8e[_0x0a9e('0x2b')]);_0xeaa5e5[_0x0a9e('0x2c')]=_['intersection'](_0xeaa5e5['model'],_0xeaa5e5[_0x0a9e('0x2b')]);_0x13cb1f[_0x0a9e('0x2e')]=_[_0x0a9e('0x2d')](_0xeaa5e5[_0x0a9e('0x2a')],qs[_0x0a9e('0x2f')](_0x274e8e[_0x0a9e('0x2b')][_0x0a9e('0x2f')]));_0x13cb1f[_0x0a9e('0x2e')]=_0x13cb1f[_0x0a9e('0x2e')][_0x0a9e('0x30')]?_0x13cb1f[_0x0a9e('0x2e')]:_0xeaa5e5[_0x0a9e('0x2a')];if(_0x274e8e['query'][_0x0a9e('0x39')]){_0x13cb1f[_0x0a9e('0x3a')]=[{'all':!![]}];}_0x13cb1f=_[_0x0a9e('0x37')]({},_0x13cb1f,_0x274e8e[_0x0a9e('0x42')]);return db[_0x0a9e('0x26')][_0x0a9e('0x43')](_0x13cb1f)[_0x0a9e('0x22')](handleEntityNotFound(_0x43dd5b,null))[_0x0a9e('0x22')](respondWithResult(_0x43dd5b,null))['catch'](handleError(_0x43dd5b,null));};exports[_0x0a9e('0x44')]=function(_0x48fd45,_0x473dc8){return db[_0x0a9e('0x26')][_0x0a9e('0x44')](_0x48fd45['body'],{})[_0x0a9e('0x22')](respondWithResult(_0x473dc8,0xc9))[_0x0a9e('0x3e')](handleError(_0x473dc8,null));};exports[_0x0a9e('0x21')]=function(_0x34aa5a,_0x45c845){return db[_0x0a9e('0x26')][_0x0a9e('0x43')]({'where':{'id':_0x34aa5a['params']['id']}})[_0x0a9e('0x22')](handleEntityNotFound(_0x45c845,null))[_0x0a9e('0x22')](removeEntity(_0x45c845,null))[_0x0a9e('0x3e')](handleError(_0x45c845,null));};exports[_0x0a9e('0x45')]=function(_0x409789,_0x992c77){return db[_0x0a9e('0x26')][_0x0a9e('0x45')]()[_0x0a9e('0x22')](respondWithResult(_0x992c77,null))['catch'](handleError(_0x992c77,null));};exports[_0x0a9e('0x20')]=function(_0x3fe430,_0x4f7240){if(_0x3fe430['body']['uniqueid']){delete _0x3fe430[_0x0a9e('0x46')][_0x0a9e('0x47')];}return db[_0x0a9e('0x26')][_0x0a9e('0x43')]({'where':{'uniqueid':_0x3fe430[_0x0a9e('0x40')]['id'],'UserId':{'$or':[null,_0x3fe430[_0x0a9e('0x48')]['id']]}}})[_0x0a9e('0x22')](handleEntityNotFound(_0x4f7240,null))[_0x0a9e('0x22')](saveUpdates(_0x3fe430['body'],null))['then'](respondWithResult(_0x4f7240,null))['catch'](handleError(_0x4f7240,null));};
\ No newline at end of file