Built motion from commit (unavailable).|2.4.3
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.controller.js
index e73a4ae..c533883 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0d47=['eml-format','rimraf','fast-json-patch','moment','bluebird','mustache','util','path','ejs','lodash','squel','crypto','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/utils','../../mysqldb','status','end','count','offset','limit','Content-Range','json','reject','save','update','then','sendStatus','name','send','index','VoiceMailMessage','rawAttributes','differenceBy','query','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','sort','pick','filters','merge','where','type','VIRTUAL','field','filter','options','includeAll','include','findAll','rows','show','keys','find','create','body','params','catch','destroy','download','recording','Sequelize','ValidationError','VoiceMailMessage\x20not\x20found','audio/wav','attachment','Content-Disposition','attachment;\x20filename=\x22','msg_id','.wav\x22','set','html-pdf'];(function(_0x1c736b,_0x4606db){var _0x18f87d=function(_0x4a69e9){while(--_0x4a69e9){_0x1c736b['push'](_0x1c736b['shift']());}};_0x18f87d(++_0x4606db);}(_0x0d47,0x143));var _0x70d4=function(_0x2b43d4,_0xaea6f2){_0x2b43d4=_0x2b43d4-0x0;var _0x13c720=_0x0d47[_0x2b43d4];return _0x13c720;};'use strict';var pdf=require(_0x70d4('0x0'));var emlformat=require(_0x70d4('0x1'));var rimraf=require(_0x70d4('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x70d4('0x3'));var rp=require('request-promise');var moment=require(_0x70d4('0x4'));var BPromise=require(_0x70d4('0x5'));var Mustache=require(_0x70d4('0x6'));var util=require(_0x70d4('0x7'));var path=require(_0x70d4('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x70d4('0x9'));var fs=require('fs');var _=require(_0x70d4('0xa'));var squel=require(_0x70d4('0xb'));var crypto=require(_0x70d4('0xc'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0x70d4('0xd'));var querystring=require('querystring');var Papa=require(_0x70d4('0xe'));var Redis=require(_0x70d4('0xf'));var authService=require(_0x70d4('0x10'));var qs=require(_0x70d4('0x11'));var hardwareService=require(_0x70d4('0x12'));var logger=require('../../config/logger')('api');var utils=require(_0x70d4('0x13'));var config=require('../../config/environment');var db=require(_0x70d4('0x14'))['db'];function respondWithStatusCode(_0x34dd09,_0x1305f1){_0x1305f1=_0x1305f1||0xcc;return function(_0x253e0c){if(_0x253e0c){return _0x34dd09['sendStatus'](_0x1305f1);}return _0x34dd09[_0x70d4('0x15')](_0x1305f1)[_0x70d4('0x16')]();};}function respondWithResult(_0x492dd4,_0x27122a){_0x27122a=_0x27122a||0xc8;return function(_0x4d7cfc){if(_0x4d7cfc){return _0x492dd4['status'](_0x27122a)['json'](_0x4d7cfc);}};}function respondWithFilteredResult(_0x2d44c7,_0x53cce0){return function(_0xfeacea){if(_0xfeacea){var _0x129c30=_0xfeacea[_0x70d4('0x17')],_0xde09c9=_0x53cce0[_0x70d4('0x18')],_0x542f64=_0x53cce0['offset']+_0x53cce0[_0x70d4('0x19')],_0x5ed676;if(_0x542f64>=_0x129c30){_0x542f64=_0x129c30;_0x5ed676=0xc8;}else{_0x5ed676=0xce;}_0x2d44c7[_0x70d4('0x15')](_0x5ed676);return _0x2d44c7['set'](_0x70d4('0x1a'),_0xde09c9+'-'+_0x542f64+'/'+_0x129c30)[_0x70d4('0x1b')](_0xfeacea);}return null;};}function patchUpdates(_0x3a0e90){return function(_0x214e5b){try{jsonpatch['apply'](_0x214e5b,_0x3a0e90,!![]);}catch(_0x514223){return BPromise[_0x70d4('0x1c')](_0x514223);}return _0x214e5b[_0x70d4('0x1d')]();};}function saveUpdates(_0x2a9cb7,_0x11f13f){return function(_0x2aca91){if(_0x2aca91){return _0x2aca91[_0x70d4('0x1e')](_0x2a9cb7)[_0x70d4('0x1f')](function(_0x19e28d){return _0x19e28d;});}return null;};}function removeEntity(_0x453e14,_0x1cb54b){return function(_0x4ae458){if(_0x4ae458){return _0x4ae458['destroy']()[_0x70d4('0x1f')](function(){_0x453e14[_0x70d4('0x15')](0xcc)[_0x70d4('0x16')]();});}};}function handleEntityNotFound(_0x25e305,_0x20d954){return function(_0x3f4aa0){if(!_0x3f4aa0){_0x25e305[_0x70d4('0x20')](0x194);}return _0x3f4aa0;};}function handleError(_0x16d1a4,_0x421442){_0x421442=_0x421442||0x1f4;return function(_0x5f0049){logger['error'](_0x5f0049['stack']);if(_0x5f0049[_0x70d4('0x21')]){delete _0x5f0049['name'];}_0x16d1a4['status'](_0x421442)[_0x70d4('0x22')](_0x5f0049);};}exports[_0x70d4('0x23')]=function(_0x52a7dc,_0xde4069){var _0x5113e1={},_0x6b0546={},_0x5c1550={'count':0x0,'rows':[]};var _0x383f55=db[_0x70d4('0x24')][_0x70d4('0x25')];_0x6b0546['model']=_[_0x70d4('0x26')](_['keys'](_0x383f55),[_0x70d4('0x21')]);_0x6b0546[_0x70d4('0x27')]=_['keys'](_0x52a7dc[_0x70d4('0x27')]);_0x6b0546['filters']=_[_0x70d4('0x28')](_0x6b0546[_0x70d4('0x29')],_0x6b0546['query']);_0x5113e1[_0x70d4('0x2a')]=_[_0x70d4('0x28')](_0x6b0546[_0x70d4('0x29')],qs[_0x70d4('0x2b')](_0x52a7dc[_0x70d4('0x27')][_0x70d4('0x2b')]));_0x5113e1['attributes']=_0x5113e1[_0x70d4('0x2a')][_0x70d4('0x2c')]?_0x5113e1['attributes']:_0x6b0546[_0x70d4('0x29')];if(!_0x52a7dc[_0x70d4('0x27')][_0x70d4('0x2d')](_0x70d4('0x2e'))){_0x5113e1[_0x70d4('0x19')]=qs[_0x70d4('0x19')](_0x52a7dc[_0x70d4('0x27')]['limit']);_0x5113e1[_0x70d4('0x18')]=qs['offset'](_0x52a7dc[_0x70d4('0x27')]['offset']);}_0x5113e1['order']=qs[_0x70d4('0x2f')](_0x52a7dc[_0x70d4('0x27')][_0x70d4('0x2f')]);_0x5113e1['where']=qs['filters'](_[_0x70d4('0x30')](_0x52a7dc[_0x70d4('0x27')],_0x6b0546[_0x70d4('0x31')]));if(_0x52a7dc[_0x70d4('0x27')]['filter']){_0x5113e1['where']=_[_0x70d4('0x32')](_0x5113e1[_0x70d4('0x33')],{'$or':_['map'](_0x383f55,function(_0x2a29c8){if(_0x2a29c8[_0x70d4('0x34')]['key']!==_0x70d4('0x35')){var _0x507f72={};_0x507f72[_0x2a29c8[_0x70d4('0x36')]]={'$like':'%'+_0x52a7dc[_0x70d4('0x27')][_0x70d4('0x37')]+'%'};return _0x507f72;}})});}_0x5113e1=_[_0x70d4('0x32')]({},_0x5113e1,_0x52a7dc[_0x70d4('0x38')]);var _0x46580a={'where':_0x5113e1[_0x70d4('0x33')]};return db['VoiceMailMessage']['count'](_0x46580a)[_0x70d4('0x1f')](function(_0x415da3){_0x5c1550[_0x70d4('0x17')]=_0x415da3;if(_0x52a7dc['query'][_0x70d4('0x39')]){_0x5113e1[_0x70d4('0x3a')]=[{'all':!![]}];}return db[_0x70d4('0x24')][_0x70d4('0x3b')](_0x5113e1);})['then'](function(_0x5c8563){_0x5c1550[_0x70d4('0x3c')]=_0x5c8563;return _0x5c1550;})['then'](respondWithFilteredResult(_0xde4069,_0x5113e1))['catch'](handleError(_0xde4069,null));};exports[_0x70d4('0x3d')]=function(_0x50979a,_0x304d45){var _0x112c47={'raw':!![],'where':{'id':_0x50979a['params']['id']}},_0x423ae8={};_0x423ae8[_0x70d4('0x29')]=_[_0x70d4('0x3e')](db['VoiceMailMessage'][_0x70d4('0x25')]);_0x423ae8[_0x70d4('0x27')]=_[_0x70d4('0x3e')](_0x50979a[_0x70d4('0x27')]);_0x423ae8['filters']=_[_0x70d4('0x28')](_0x423ae8[_0x70d4('0x29')],_0x423ae8['query']);_0x112c47['attributes']=_[_0x70d4('0x28')](_0x423ae8[_0x70d4('0x29')],qs[_0x70d4('0x2b')](_0x50979a[_0x70d4('0x27')][_0x70d4('0x2b')]));_0x112c47[_0x70d4('0x2a')]=_0x112c47[_0x70d4('0x2a')]['length']?_0x112c47['attributes']:_0x423ae8[_0x70d4('0x29')];if(_0x50979a[_0x70d4('0x27')][_0x70d4('0x39')]){_0x112c47['include']=[{'all':!![]}];}_0x112c47=_[_0x70d4('0x32')]({},_0x112c47,_0x50979a[_0x70d4('0x38')]);return db['VoiceMailMessage'][_0x70d4('0x3f')](_0x112c47)[_0x70d4('0x1f')](handleEntityNotFound(_0x304d45,null))[_0x70d4('0x1f')](respondWithResult(_0x304d45,null))['catch'](handleError(_0x304d45,null));};exports[_0x70d4('0x40')]=function(_0x50fd70,_0xf000f5){return db[_0x70d4('0x24')][_0x70d4('0x40')](_0x50fd70[_0x70d4('0x41')],{})[_0x70d4('0x1f')](respondWithResult(_0xf000f5,0xc9))['catch'](handleError(_0xf000f5,null));};exports[_0x70d4('0x1e')]=function(_0xcd9beb,_0x3ea8cb){if(_0xcd9beb['body']['id']){delete _0xcd9beb[_0x70d4('0x41')]['id'];}return db['VoiceMailMessage'][_0x70d4('0x3f')]({'where':{'id':_0xcd9beb[_0x70d4('0x42')]['id']}})[_0x70d4('0x1f')](handleEntityNotFound(_0x3ea8cb,null))['then'](saveUpdates(_0xcd9beb[_0x70d4('0x41')],null))[_0x70d4('0x1f')](respondWithResult(_0x3ea8cb,null))[_0x70d4('0x43')](handleError(_0x3ea8cb,null));};exports[_0x70d4('0x44')]=function(_0x1ccdfb,_0x3575c4){return db[_0x70d4('0x24')]['find']({'where':{'id':_0x1ccdfb['params']['id']}})['then'](handleEntityNotFound(_0x3575c4,null))[_0x70d4('0x1f')](removeEntity(_0x3575c4,null))[_0x70d4('0x43')](handleError(_0x3575c4,null));};exports[_0x70d4('0x45')]=function(_0x2ba5c2,_0x3d8ba1,_0x482027){return db[_0x70d4('0x24')][_0x70d4('0x3f')]({'where':{'id':_0x2ba5c2['params']['id']},'attributes':['id',_0x70d4('0x46'),'msg_id']})['then'](handleEntityNotFound(_0x3d8ba1,null))[_0x70d4('0x1f')](function(_0x4fd913){if(_0x4fd913){if(!_0x4fd913[_0x70d4('0x46')]){throw new db[(_0x70d4('0x47'))][(_0x70d4('0x48'))](_0x70d4('0x49'));}var _0x58c514={'Content-Type':_0x70d4('0x4a'),'Content-Disposition':_0x70d4('0x4b')};if(_0x4fd913['msg_id']){_0x58c514[_0x70d4('0x4c')]=_0x70d4('0x4d')+_0x4fd913[_0x70d4('0x4e')]+_0x70d4('0x4f');}_0x3d8ba1[_0x70d4('0x50')](_0x58c514);return _0x3d8ba1[_0x70d4('0x22')](new Buffer(_0x4fd913[_0x70d4('0x46')]));}})['catch'](handleError(_0x3d8ba1,null));};
\ No newline at end of file
+var _0xc6bf=['fields','length','hasOwnProperty','nolimit','limit','sort','filters','pick','filter','where','merge','map','type','key','VIRTUAL','options','VoiceMailMessage','count','includeAll','findAll','catch','show','include','create','body','params','find','download','recording','msg_id','ValidationError','VoiceMailMessage\x20not\x20found','audio/wav','attachment','Content-Disposition','attachment;\x20filename=\x22','.wav\x22','send','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','path','sox','to-csv','ejs','lodash','desk.js','papaparse','ioredis','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','status','end','json','offset','set','Content-Range','reject','update','then','destroy','sendStatus','stack','name','index','rawAttributes','differenceBy','keys','query','intersection','model','attributes'];(function(_0x46c179,_0x2ba1de){var _0x531f9=function(_0x221a23){while(--_0x221a23){_0x46c179['push'](_0x46c179['shift']());}};_0x531f9(++_0x2ba1de);}(_0xc6bf,0xc4));var _0xfc6b=function(_0x273e2c,_0x2acc61){_0x273e2c=_0x273e2c-0x0;var _0x11928d=_0xc6bf[_0x273e2c];return _0x11928d;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0xfc6b('0x0'));var zipdir=require(_0xfc6b('0x1'));var jsonpatch=require(_0xfc6b('0x2'));var rp=require(_0xfc6b('0x3'));var moment=require(_0xfc6b('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xfc6b('0x5'));var util=require('util');var path=require(_0xfc6b('0x6'));var sox=require(_0xfc6b('0x7'));var csv=require(_0xfc6b('0x8'));var ejs=require(_0xfc6b('0x9'));var fs=require('fs');var _=require(_0xfc6b('0xa'));var squel=require('squel');var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xfc6b('0xb'));var toCsv=require(_0xfc6b('0x8'));var querystring=require('querystring');var Papa=require(_0xfc6b('0xc'));var Redis=require(_0xfc6b('0xd'));var authService=require('../../components/auth/service');var qs=require(_0xfc6b('0xe'));var hardwareService=require(_0xfc6b('0xf'));var logger=require(_0xfc6b('0x10'))(_0xfc6b('0x11'));var utils=require(_0xfc6b('0x12'));var config=require(_0xfc6b('0x13'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1390fc,_0x48821c){_0x48821c=_0x48821c||0xcc;return function(_0x3a771e){if(_0x3a771e){return _0x1390fc['sendStatus'](_0x48821c);}return _0x1390fc[_0xfc6b('0x14')](_0x48821c)[_0xfc6b('0x15')]();};}function respondWithResult(_0x6ff71e,_0x45540e){_0x45540e=_0x45540e||0xc8;return function(_0x440fe2){if(_0x440fe2){return _0x6ff71e[_0xfc6b('0x14')](_0x45540e)[_0xfc6b('0x16')](_0x440fe2);}};}function respondWithFilteredResult(_0x3de77f,_0x81ec8c){return function(_0xff2057){if(_0xff2057){var _0x25d726=_0xff2057['count'],_0x4871b2=_0x81ec8c[_0xfc6b('0x17')],_0x58db34=_0x81ec8c['offset']+_0x81ec8c['limit'],_0x562913;if(_0x58db34>=_0x25d726){_0x58db34=_0x25d726;_0x562913=0xc8;}else{_0x562913=0xce;}_0x3de77f[_0xfc6b('0x14')](_0x562913);return _0x3de77f[_0xfc6b('0x18')](_0xfc6b('0x19'),_0x4871b2+'-'+_0x58db34+'/'+_0x25d726)['json'](_0xff2057);}return null;};}function patchUpdates(_0x21ca50){return function(_0x7dba62){try{jsonpatch['apply'](_0x7dba62,_0x21ca50,!![]);}catch(_0x525dd4){return BPromise[_0xfc6b('0x1a')](_0x525dd4);}return _0x7dba62['save']();};}function saveUpdates(_0x2f8a1e,_0x879558){return function(_0x4f6c43){if(_0x4f6c43){return _0x4f6c43[_0xfc6b('0x1b')](_0x2f8a1e)[_0xfc6b('0x1c')](function(_0x3e14d9){return _0x3e14d9;});}return null;};}function removeEntity(_0x2de646,_0x54eebd){return function(_0x2c6814){if(_0x2c6814){return _0x2c6814[_0xfc6b('0x1d')]()[_0xfc6b('0x1c')](function(){_0x2de646[_0xfc6b('0x14')](0xcc)[_0xfc6b('0x15')]();});}};}function handleEntityNotFound(_0x423b77,_0xab56f1){return function(_0x53ede1){if(!_0x53ede1){_0x423b77[_0xfc6b('0x1e')](0x194);}return _0x53ede1;};}function handleError(_0xce1690,_0x5f2421){_0x5f2421=_0x5f2421||0x1f4;return function(_0x1423c7){logger['error'](_0x1423c7[_0xfc6b('0x1f')]);if(_0x1423c7['name']){delete _0x1423c7[_0xfc6b('0x20')];}_0xce1690[_0xfc6b('0x14')](_0x5f2421)['send'](_0x1423c7);};}exports[_0xfc6b('0x21')]=function(_0x57203c,_0x18da61){var _0x46302f={},_0x4c50a4={},_0x440ddc={'count':0x0,'rows':[]};var _0x309eca=db['VoiceMailMessage'][_0xfc6b('0x22')];_0x4c50a4['model']=_[_0xfc6b('0x23')](_[_0xfc6b('0x24')](_0x309eca),['name']);_0x4c50a4['query']=_[_0xfc6b('0x24')](_0x57203c[_0xfc6b('0x25')]);_0x4c50a4['filters']=_[_0xfc6b('0x26')](_0x4c50a4[_0xfc6b('0x27')],_0x4c50a4['query']);_0x46302f[_0xfc6b('0x28')]=_['intersection'](_0x4c50a4['model'],qs[_0xfc6b('0x29')](_0x57203c[_0xfc6b('0x25')][_0xfc6b('0x29')]));_0x46302f[_0xfc6b('0x28')]=_0x46302f[_0xfc6b('0x28')][_0xfc6b('0x2a')]?_0x46302f[_0xfc6b('0x28')]:_0x4c50a4['model'];if(!_0x57203c[_0xfc6b('0x25')][_0xfc6b('0x2b')](_0xfc6b('0x2c'))){_0x46302f['limit']=qs['limit'](_0x57203c[_0xfc6b('0x25')][_0xfc6b('0x2d')]);_0x46302f[_0xfc6b('0x17')]=qs[_0xfc6b('0x17')](_0x57203c[_0xfc6b('0x25')][_0xfc6b('0x17')]);}_0x46302f['order']=qs[_0xfc6b('0x2e')](_0x57203c[_0xfc6b('0x25')][_0xfc6b('0x2e')]);_0x46302f['where']=qs[_0xfc6b('0x2f')](_[_0xfc6b('0x30')](_0x57203c['query'],_0x4c50a4[_0xfc6b('0x2f')]));if(_0x57203c[_0xfc6b('0x25')][_0xfc6b('0x31')]){_0x46302f[_0xfc6b('0x32')]=_[_0xfc6b('0x33')](_0x46302f[_0xfc6b('0x32')],{'$or':_[_0xfc6b('0x34')](_0x309eca,function(_0x2cc929){if(_0x2cc929[_0xfc6b('0x35')][_0xfc6b('0x36')]!==_0xfc6b('0x37')){var _0xe59505={};_0xe59505[_0x2cc929['field']]={'$like':'%'+_0x57203c[_0xfc6b('0x25')][_0xfc6b('0x31')]+'%'};return _0xe59505;}})});}_0x46302f=_[_0xfc6b('0x33')]({},_0x46302f,_0x57203c[_0xfc6b('0x38')]);var _0x562213={'where':_0x46302f[_0xfc6b('0x32')]};return db[_0xfc6b('0x39')][_0xfc6b('0x3a')](_0x562213)[_0xfc6b('0x1c')](function(_0x429c8b){_0x440ddc[_0xfc6b('0x3a')]=_0x429c8b;if(_0x57203c[_0xfc6b('0x25')][_0xfc6b('0x3b')]){_0x46302f['include']=[{'all':!![]}];}return db[_0xfc6b('0x39')][_0xfc6b('0x3c')](_0x46302f);})[_0xfc6b('0x1c')](function(_0x6184d5){_0x440ddc['rows']=_0x6184d5;return _0x440ddc;})[_0xfc6b('0x1c')](respondWithFilteredResult(_0x18da61,_0x46302f))[_0xfc6b('0x3d')](handleError(_0x18da61,null));};exports[_0xfc6b('0x3e')]=function(_0x439640,_0x4b49ac){var _0x315939={'raw':!![],'where':{'id':_0x439640['params']['id']}},_0x479bcc={};_0x479bcc['model']=_[_0xfc6b('0x24')](db[_0xfc6b('0x39')][_0xfc6b('0x22')]);_0x479bcc[_0xfc6b('0x25')]=_[_0xfc6b('0x24')](_0x439640['query']);_0x479bcc['filters']=_[_0xfc6b('0x26')](_0x479bcc['model'],_0x479bcc[_0xfc6b('0x25')]);_0x315939[_0xfc6b('0x28')]=_[_0xfc6b('0x26')](_0x479bcc['model'],qs[_0xfc6b('0x29')](_0x439640[_0xfc6b('0x25')][_0xfc6b('0x29')]));_0x315939[_0xfc6b('0x28')]=_0x315939['attributes'][_0xfc6b('0x2a')]?_0x315939[_0xfc6b('0x28')]:_0x479bcc[_0xfc6b('0x27')];if(_0x439640[_0xfc6b('0x25')]['includeAll']){_0x315939[_0xfc6b('0x3f')]=[{'all':!![]}];}_0x315939=_['merge']({},_0x315939,_0x439640['options']);return db[_0xfc6b('0x39')]['find'](_0x315939)['then'](handleEntityNotFound(_0x4b49ac,null))[_0xfc6b('0x1c')](respondWithResult(_0x4b49ac,null))['catch'](handleError(_0x4b49ac,null));};exports['create']=function(_0x484847,_0x4303fc){return db[_0xfc6b('0x39')][_0xfc6b('0x40')](_0x484847[_0xfc6b('0x41')],{})[_0xfc6b('0x1c')](respondWithResult(_0x4303fc,0xc9))[_0xfc6b('0x3d')](handleError(_0x4303fc,null));};exports[_0xfc6b('0x1b')]=function(_0x16adda,_0x1091de){if(_0x16adda['body']['id']){delete _0x16adda[_0xfc6b('0x41')]['id'];}return db[_0xfc6b('0x39')]['find']({'where':{'id':_0x16adda[_0xfc6b('0x42')]['id']}})['then'](handleEntityNotFound(_0x1091de,null))['then'](saveUpdates(_0x16adda[_0xfc6b('0x41')],null))[_0xfc6b('0x1c')](respondWithResult(_0x1091de,null))[_0xfc6b('0x3d')](handleError(_0x1091de,null));};exports[_0xfc6b('0x1d')]=function(_0x561b0b,_0x1920d7){return db[_0xfc6b('0x39')][_0xfc6b('0x43')]({'where':{'id':_0x561b0b[_0xfc6b('0x42')]['id']}})[_0xfc6b('0x1c')](handleEntityNotFound(_0x1920d7,null))[_0xfc6b('0x1c')](removeEntity(_0x1920d7,null))['catch'](handleError(_0x1920d7,null));};exports[_0xfc6b('0x44')]=function(_0x4d56b0,_0x3ccfbc,_0x22cfc5){return db[_0xfc6b('0x39')]['find']({'where':{'id':_0x4d56b0[_0xfc6b('0x42')]['id']},'attributes':['id',_0xfc6b('0x45'),_0xfc6b('0x46')]})[_0xfc6b('0x1c')](handleEntityNotFound(_0x3ccfbc,null))[_0xfc6b('0x1c')](function(_0x246416){if(_0x246416){if(!_0x246416[_0xfc6b('0x45')]){throw new db['Sequelize'][(_0xfc6b('0x47'))](_0xfc6b('0x48'));}var _0x4fb011={'Content-Type':_0xfc6b('0x49'),'Content-Disposition':_0xfc6b('0x4a')};if(_0x246416['msg_id']){_0x4fb011[_0xfc6b('0x4b')]=_0xfc6b('0x4c')+_0x246416[_0xfc6b('0x46')]+_0xfc6b('0x4d');}_0x3ccfbc['set'](_0x4fb011);return _0x3ccfbc[_0xfc6b('0x4e')](new Buffer(_0x246416[_0xfc6b('0x45')]));}})[_0xfc6b('0x3d')](handleError(_0x3ccfbc,null));};
\ No newline at end of file