Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / chatTransferReport / chatTransferReport.controller.js
index 3d0d203..d339374 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb5ae=['crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','count','set','Content-Range','json','apply','reject','update','then','error','stack','name','send','index','map','ChatTransferReport','rawAttributes','type','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','limit','offset','order','sort','where','pick','filter','VIRTUAL','includeAll','include','rows','catch','params','merge','options','find','create','body','destroy','describe','html-pdf','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel'];(function(_0x3d0084,_0x35667e){var _0x257515=function(_0x23ad31){while(--_0x23ad31){_0x3d0084['push'](_0x3d0084['shift']());}};_0x257515(++_0x35667e);}(_0xb5ae,0x125));var _0xeb5a=function(_0x4a1918,_0x20e55e){_0x4a1918=_0x4a1918-0x0;var _0x47974e=_0xb5ae[_0x4a1918];return _0x47974e;};'use strict';var pdf=require(_0xeb5a('0x0'));var emlformat=require('eml-format');var rimraf=require(_0xeb5a('0x1'));var zipdir=require(_0xeb5a('0x2'));var jsonpatch=require(_0xeb5a('0x3'));var rp=require(_0xeb5a('0x4'));var moment=require(_0xeb5a('0x5'));var BPromise=require(_0xeb5a('0x6'));var Mustache=require(_0xeb5a('0x7'));var util=require(_0xeb5a('0x8'));var path=require(_0xeb5a('0x9'));var sox=require(_0xeb5a('0xa'));var csv=require(_0xeb5a('0xb'));var ejs=require(_0xeb5a('0xc'));var fs=require('fs');var _=require(_0xeb5a('0xd'));var squel=require(_0xeb5a('0xe'));var crypto=require(_0xeb5a('0xf'));var jsforce=require('jsforce');var deskjs=require(_0xeb5a('0x10'));var toCsv=require(_0xeb5a('0xb'));var querystring=require(_0xeb5a('0x11'));var Papa=require(_0xeb5a('0x12'));var Redis=require(_0xeb5a('0x13'));var authService=require(_0xeb5a('0x14'));var qs=require('../../components/parsers/qs');var as=require(_0xeb5a('0x15'));var hardwareService=require(_0xeb5a('0x16'));var logger=require(_0xeb5a('0x17'))(_0xeb5a('0x18'));var utils=require('../../config/utils');var config=require(_0xeb5a('0x19'));var licenseUtil=require(_0xeb5a('0x1a'));var db=require(_0xeb5a('0x1b'))['db'];function respondWithStatusCode(_0x33535c,_0x55b5f4){_0x55b5f4=_0x55b5f4||0xcc;return function(_0x563a74){if(_0x563a74){return _0x33535c[_0xeb5a('0x1c')](_0x55b5f4);}return _0x33535c[_0xeb5a('0x1d')](_0x55b5f4)[_0xeb5a('0x1e')]();};}function respondWithResult(_0x41db21,_0x4a8438){_0x4a8438=_0x4a8438||0xc8;return function(_0x592b63){if(_0x592b63){return _0x41db21[_0xeb5a('0x1d')](_0x4a8438)['json'](_0x592b63);}};}function respondWithFilteredResult(_0x42def8,_0x58577f){return function(_0x358389){if(_0x358389){var _0x7bd83b=_0x358389[_0xeb5a('0x1f')],_0x49dc17=_0x58577f['offset'],_0x57701c=_0x58577f['offset']+_0x58577f['limit'],_0x57dcb9;if(_0x57701c>=_0x7bd83b){_0x57701c=_0x7bd83b;_0x57dcb9=0xc8;}else{_0x57dcb9=0xce;}_0x42def8[_0xeb5a('0x1d')](_0x57dcb9);return _0x42def8[_0xeb5a('0x20')](_0xeb5a('0x21'),_0x49dc17+'-'+_0x57701c+'/'+_0x7bd83b)[_0xeb5a('0x22')](_0x358389);}return null;};}function patchUpdates(_0xd5ab95){return function(_0x1caf14){try{jsonpatch[_0xeb5a('0x23')](_0x1caf14,_0xd5ab95,!![]);}catch(_0x15ea79){return BPromise[_0xeb5a('0x24')](_0x15ea79);}return _0x1caf14['save']();};}function saveUpdates(_0x4264ec,_0x5d73af){return function(_0xfb1478){if(_0xfb1478){return _0xfb1478[_0xeb5a('0x25')](_0x4264ec)['then'](function(_0x7be296){return _0x7be296;});}return null;};}function removeEntity(_0x3495e4,_0x38ed17){return function(_0x3b62b1){if(_0x3b62b1){return _0x3b62b1['destroy']()[_0xeb5a('0x26')](function(){_0x3495e4[_0xeb5a('0x1d')](0xcc)[_0xeb5a('0x1e')]();});}};}function handleEntityNotFound(_0x33054f,_0x3bc1d2){return function(_0x581da3){if(!_0x581da3){_0x33054f[_0xeb5a('0x1c')](0x194);}return _0x581da3;};}function handleError(_0x3f5e3f,_0x3e74e7){_0x3e74e7=_0x3e74e7||0x1f4;return function(_0x23f419){logger[_0xeb5a('0x27')](_0x23f419[_0xeb5a('0x28')]);if(_0x23f419['name']){delete _0x23f419[_0xeb5a('0x29')];}_0x3f5e3f[_0xeb5a('0x1d')](_0x3e74e7)[_0xeb5a('0x2a')](_0x23f419);};}exports[_0xeb5a('0x2b')]=function(_0x1be400,_0x34e63f){var _0x3e0b66={},_0xe3b347={},_0x25b8ab={'count':0x0,'rows':[]};var _0x4c0063=_[_0xeb5a('0x2c')](db[_0xeb5a('0x2d')][_0xeb5a('0x2e')],function(_0x589847){return{'name':_0x589847['fieldName'],'type':_0x589847[_0xeb5a('0x2f')]['key']};});_0xe3b347[_0xeb5a('0x30')]=_['map'](_0x4c0063,'name');_0xe3b347[_0xeb5a('0x31')]=_[_0xeb5a('0x32')](_0x1be400[_0xeb5a('0x31')]);_0xe3b347[_0xeb5a('0x33')]=_[_0xeb5a('0x34')](_0xe3b347[_0xeb5a('0x30')],_0xe3b347[_0xeb5a('0x31')]);_0x3e0b66['attributes']=_[_0xeb5a('0x34')](_0xe3b347[_0xeb5a('0x30')],qs[_0xeb5a('0x35')](_0x1be400[_0xeb5a('0x31')][_0xeb5a('0x35')]));_0x3e0b66[_0xeb5a('0x36')]=_0x3e0b66[_0xeb5a('0x36')][_0xeb5a('0x37')]?_0x3e0b66[_0xeb5a('0x36')]:_0xe3b347[_0xeb5a('0x30')];if(!_0x1be400[_0xeb5a('0x31')][_0xeb5a('0x38')]('nolimit')){_0x3e0b66['limit']=qs[_0xeb5a('0x39')](_0x1be400[_0xeb5a('0x31')][_0xeb5a('0x39')]);_0x3e0b66[_0xeb5a('0x3a')]=qs[_0xeb5a('0x3a')](_0x1be400['query'][_0xeb5a('0x3a')]);}_0x3e0b66[_0xeb5a('0x3b')]=qs[_0xeb5a('0x3c')](_0x1be400[_0xeb5a('0x31')][_0xeb5a('0x3c')]);_0x3e0b66[_0xeb5a('0x3d')]=qs[_0xeb5a('0x33')](_[_0xeb5a('0x3e')](_0x1be400['query'],_0xe3b347[_0xeb5a('0x33')]),_0x4c0063);if(_0x1be400[_0xeb5a('0x31')][_0xeb5a('0x3f')]){_0x3e0b66[_0xeb5a('0x3d')]=_['merge'](_0x3e0b66[_0xeb5a('0x3d')],{'$or':_[_0xeb5a('0x2c')](_0x4c0063,function(_0xa1297e){if(_0xa1297e[_0xeb5a('0x2f')]!==_0xeb5a('0x40')){var _0x12851d={};_0x12851d[_0xa1297e[_0xeb5a('0x29')]]={'$like':'%'+_0x1be400[_0xeb5a('0x31')]['filter']+'%'};return _0x12851d;}})});}_0x3e0b66=_['merge']({},_0x3e0b66,_0x1be400['options']);var _0x1dccac={'where':_0x3e0b66['where']};return db[_0xeb5a('0x2d')]['count'](_0x1dccac)[_0xeb5a('0x26')](function(_0x4806e2){_0x25b8ab['count']=_0x4806e2;if(_0x1be400['query'][_0xeb5a('0x41')]){_0x3e0b66[_0xeb5a('0x42')]=[{'all':!![]}];}return db['ChatTransferReport']['findAll'](_0x3e0b66);})[_0xeb5a('0x26')](function(_0x1465f9){_0x25b8ab[_0xeb5a('0x43')]=_0x1465f9;return _0x25b8ab;})[_0xeb5a('0x26')](respondWithFilteredResult(_0x34e63f,_0x3e0b66))[_0xeb5a('0x44')](handleError(_0x34e63f,null));};exports['show']=function(_0x175742,_0x2d22a1){var _0x48f532={'raw':!![],'where':{'id':_0x175742[_0xeb5a('0x45')]['id']}},_0x124fbc={};_0x124fbc[_0xeb5a('0x30')]=_['keys'](db[_0xeb5a('0x2d')][_0xeb5a('0x2e')]);_0x124fbc[_0xeb5a('0x31')]=_['keys'](_0x175742[_0xeb5a('0x31')]);_0x124fbc[_0xeb5a('0x33')]=_['intersection'](_0x124fbc['model'],_0x124fbc['query']);_0x48f532[_0xeb5a('0x36')]=_['intersection'](_0x124fbc[_0xeb5a('0x30')],qs[_0xeb5a('0x35')](_0x175742[_0xeb5a('0x31')][_0xeb5a('0x35')]));_0x48f532[_0xeb5a('0x36')]=_0x48f532['attributes']['length']?_0x48f532['attributes']:_0x124fbc['model'];if(_0x175742[_0xeb5a('0x31')][_0xeb5a('0x41')]){_0x48f532['include']=[{'all':!![]}];}_0x48f532=_[_0xeb5a('0x46')]({},_0x48f532,_0x175742[_0xeb5a('0x47')]);return db[_0xeb5a('0x2d')][_0xeb5a('0x48')](_0x48f532)[_0xeb5a('0x26')](handleEntityNotFound(_0x2d22a1,null))[_0xeb5a('0x26')](respondWithResult(_0x2d22a1,null))[_0xeb5a('0x44')](handleError(_0x2d22a1,null));};exports[_0xeb5a('0x49')]=function(_0x56ac8a,_0x349be8){return db['ChatTransferReport']['create'](_0x56ac8a[_0xeb5a('0x4a')],{})[_0xeb5a('0x26')](respondWithResult(_0x349be8,0xc9))[_0xeb5a('0x44')](handleError(_0x349be8,null));};exports[_0xeb5a('0x25')]=function(_0x273dba,_0xee5d5e){if(_0x273dba[_0xeb5a('0x4a')]['id']){delete _0x273dba['body']['id'];}return db[_0xeb5a('0x2d')][_0xeb5a('0x48')]({'where':{'id':_0x273dba[_0xeb5a('0x45')]['id']}})[_0xeb5a('0x26')](handleEntityNotFound(_0xee5d5e,null))['then'](saveUpdates(_0x273dba[_0xeb5a('0x4a')],null))['then'](respondWithResult(_0xee5d5e,null))['catch'](handleError(_0xee5d5e,null));};exports[_0xeb5a('0x4b')]=function(_0x4c8ec6,_0xc23746){return db[_0xeb5a('0x2d')]['find']({'where':{'id':_0x4c8ec6['params']['id']}})[_0xeb5a('0x26')](handleEntityNotFound(_0xc23746,null))[_0xeb5a('0x26')](removeEntity(_0xc23746,null))['catch'](handleError(_0xc23746,null));};exports[_0xeb5a('0x4c')]=function(_0x37fb9a,_0x52b679){return db[_0xeb5a('0x2d')]['describe']()[_0xeb5a('0x26')](respondWithResult(_0x52b679,null))['catch'](handleError(_0x52b679,null));};
\ No newline at end of file
+var _0x0dd4=['lodash','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','end','status','json','offset','limit','set','apply','reject','then','error','stack','name','send','index','map','ChatTransferReport','fieldName','type','key','query','keys','filters','model','attributes','intersection','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','count','includeAll','findAll','rawAttributes','include','options','catch','create','body','find','destroy','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','path','to-csv','ejs','fs-extra'];(function(_0x4862de,_0x3ea85f){var _0x59c5b0=function(_0x51d28e){while(--_0x51d28e){_0x4862de['push'](_0x4862de['shift']());}};_0x59c5b0(++_0x3ea85f);}(_0x0dd4,0x1b6));var _0x40dd=function(_0x4e9719,_0x315b9b){_0x4e9719=_0x4e9719-0x0;var _0x32673c=_0x0dd4[_0x4e9719];return _0x32673c;};'use strict';var emlformat=require(_0x40dd('0x0'));var rimraf=require(_0x40dd('0x1'));var zipdir=require(_0x40dd('0x2'));var jsonpatch=require(_0x40dd('0x3'));var rp=require('request-promise');var moment=require(_0x40dd('0x4'));var BPromise=require(_0x40dd('0x5'));var Mustache=require(_0x40dd('0x6'));var util=require(_0x40dd('0x7'));var path=require(_0x40dd('0x8'));var sox=require('sox');var csv=require(_0x40dd('0x9'));var ejs=require(_0x40dd('0xa'));var fs=require('fs');var fs_extra=require(_0x40dd('0xb'));var _=require(_0x40dd('0xc'));var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0x40dd('0xd'));var deskjs=require(_0x40dd('0xe'));var toCsv=require('to-csv');var querystring=require(_0x40dd('0xf'));var Papa=require(_0x40dd('0x10'));var Redis=require('ioredis');var authService=require(_0x40dd('0x11'));var qs=require(_0x40dd('0x12'));var as=require(_0x40dd('0x13'));var hardwareService=require(_0x40dd('0x14'));var logger=require(_0x40dd('0x15'))('api');var utils=require(_0x40dd('0x16'));var config=require('../../config/environment');var licenseUtil=require(_0x40dd('0x17'));var db=require(_0x40dd('0x18'))['db'];function respondWithStatusCode(_0x3d0886,_0x3b4e39){_0x3b4e39=_0x3b4e39||0xcc;return function(_0x2fbd57){if(_0x2fbd57){return _0x3d0886[_0x40dd('0x19')](_0x3b4e39);}return _0x3d0886['status'](_0x3b4e39)[_0x40dd('0x1a')]();};}function respondWithResult(_0x5c4d18,_0x2657d3){_0x2657d3=_0x2657d3||0xc8;return function(_0x852a75){if(_0x852a75){return _0x5c4d18[_0x40dd('0x1b')](_0x2657d3)[_0x40dd('0x1c')](_0x852a75);}};}function respondWithFilteredResult(_0x3a3737,_0x24d1ee){return function(_0x55130f){if(_0x55130f){var _0x4ea56b=typeof _0x24d1ee[_0x40dd('0x1d')]==='undefined'&&typeof _0x24d1ee[_0x40dd('0x1e')]==='undefined';var _0x4f5998=_0x55130f['count'];var _0x4aad8e=_0x4ea56b?0x0:_0x24d1ee[_0x40dd('0x1d')];var _0x326350=_0x4ea56b?_0x55130f['count']:_0x24d1ee['offset']+_0x24d1ee[_0x40dd('0x1e')];var _0xefd335;if(_0x326350>=_0x4f5998){_0x326350=_0x4f5998;_0xefd335=0xc8;}else{_0xefd335=0xce;}_0x3a3737[_0x40dd('0x1b')](_0xefd335);return _0x3a3737[_0x40dd('0x1f')]('Content-Range',_0x4aad8e+'-'+_0x326350+'/'+_0x4f5998)[_0x40dd('0x1c')](_0x55130f);}return null;};}function patchUpdates(_0x540b74){return function(_0x27e2ba){try{jsonpatch[_0x40dd('0x20')](_0x27e2ba,_0x540b74,!![]);}catch(_0x31b2f6){return BPromise[_0x40dd('0x21')](_0x31b2f6);}return _0x27e2ba['save']();};}function saveUpdates(_0x28ecd4,_0x5fa5b4){return function(_0x48c409){if(_0x48c409){return _0x48c409['update'](_0x28ecd4)[_0x40dd('0x22')](function(_0x14eb1c){return _0x14eb1c;});}return null;};}function removeEntity(_0x90eeca,_0x54206c){return function(_0x4a2ff2){if(_0x4a2ff2){return _0x4a2ff2['destroy']()[_0x40dd('0x22')](function(){_0x90eeca[_0x40dd('0x1b')](0xcc)[_0x40dd('0x1a')]();});}};}function handleEntityNotFound(_0x2e23fb,_0x49a688){return function(_0x140965){if(!_0x140965){_0x2e23fb[_0x40dd('0x19')](0x194);}return _0x140965;};}function handleError(_0x468f08,_0x163227){_0x163227=_0x163227||0x1f4;return function(_0x40eb34){logger[_0x40dd('0x23')](_0x40eb34[_0x40dd('0x24')]);if(_0x40eb34['name']){delete _0x40eb34[_0x40dd('0x25')];}_0x468f08[_0x40dd('0x1b')](_0x163227)[_0x40dd('0x26')](_0x40eb34);};}exports[_0x40dd('0x27')]=function(_0xb46a9c,_0x124940){var _0x24fe6c={},_0x23424d={},_0x22d92b={'count':0x0,'rows':[]};var _0x37f11d=_[_0x40dd('0x28')](db[_0x40dd('0x29')]['rawAttributes'],function(_0x1102eb){return{'name':_0x1102eb[_0x40dd('0x2a')],'type':_0x1102eb[_0x40dd('0x2b')][_0x40dd('0x2c')]};});_0x23424d['model']=_[_0x40dd('0x28')](_0x37f11d,_0x40dd('0x25'));_0x23424d[_0x40dd('0x2d')]=_[_0x40dd('0x2e')](_0xb46a9c[_0x40dd('0x2d')]);_0x23424d[_0x40dd('0x2f')]=_['intersection'](_0x23424d[_0x40dd('0x30')],_0x23424d[_0x40dd('0x2d')]);_0x24fe6c[_0x40dd('0x31')]=_[_0x40dd('0x32')](_0x23424d['model'],qs[_0x40dd('0x33')](_0xb46a9c[_0x40dd('0x2d')][_0x40dd('0x33')]));_0x24fe6c['attributes']=_0x24fe6c[_0x40dd('0x31')][_0x40dd('0x34')]?_0x24fe6c[_0x40dd('0x31')]:_0x23424d[_0x40dd('0x30')];if(!_0xb46a9c[_0x40dd('0x2d')][_0x40dd('0x35')](_0x40dd('0x36'))){_0x24fe6c[_0x40dd('0x1e')]=qs['limit'](_0xb46a9c[_0x40dd('0x2d')]['limit']);_0x24fe6c[_0x40dd('0x1d')]=qs[_0x40dd('0x1d')](_0xb46a9c['query'][_0x40dd('0x1d')]);}_0x24fe6c[_0x40dd('0x37')]=qs[_0x40dd('0x38')](_0xb46a9c[_0x40dd('0x2d')][_0x40dd('0x38')]);_0x24fe6c[_0x40dd('0x39')]=qs[_0x40dd('0x2f')](_[_0x40dd('0x3a')](_0xb46a9c['query'],_0x23424d['filters']),_0x37f11d);if(_0xb46a9c[_0x40dd('0x2d')][_0x40dd('0x3b')]){_0x24fe6c[_0x40dd('0x39')]=_[_0x40dd('0x3c')](_0x24fe6c[_0x40dd('0x39')],{'$or':_[_0x40dd('0x28')](_0x37f11d,function(_0x30f46c){if(_0x30f46c[_0x40dd('0x2b')]!==_0x40dd('0x3d')){var _0xfc5568={};_0xfc5568[_0x30f46c['name']]={'$like':'%'+_0xb46a9c[_0x40dd('0x2d')][_0x40dd('0x3b')]+'%'};return _0xfc5568;}})});}_0x24fe6c=_[_0x40dd('0x3c')]({},_0x24fe6c,_0xb46a9c['options']);var _0x17ad74={'where':_0x24fe6c['where']};return db[_0x40dd('0x29')][_0x40dd('0x3e')](_0x17ad74)['then'](function(_0x109090){_0x22d92b[_0x40dd('0x3e')]=_0x109090;if(_0xb46a9c[_0x40dd('0x2d')][_0x40dd('0x3f')]){_0x24fe6c['include']=[{'all':!![]}];}return db['ChatTransferReport'][_0x40dd('0x40')](_0x24fe6c);})[_0x40dd('0x22')](function(_0x475af8){_0x22d92b['rows']=_0x475af8;return _0x22d92b;})[_0x40dd('0x22')](respondWithFilteredResult(_0x124940,_0x24fe6c))['catch'](handleError(_0x124940,null));};exports['show']=function(_0x2e8135,_0x276b15){var _0x2b75a7={'raw':!![],'where':{'id':_0x2e8135['params']['id']}},_0x19065b={};_0x19065b['model']=_[_0x40dd('0x2e')](db[_0x40dd('0x29')][_0x40dd('0x41')]);_0x19065b[_0x40dd('0x2d')]=_[_0x40dd('0x2e')](_0x2e8135[_0x40dd('0x2d')]);_0x19065b[_0x40dd('0x2f')]=_[_0x40dd('0x32')](_0x19065b[_0x40dd('0x30')],_0x19065b[_0x40dd('0x2d')]);_0x2b75a7[_0x40dd('0x31')]=_[_0x40dd('0x32')](_0x19065b[_0x40dd('0x30')],qs[_0x40dd('0x33')](_0x2e8135[_0x40dd('0x2d')]['fields']));_0x2b75a7[_0x40dd('0x31')]=_0x2b75a7[_0x40dd('0x31')][_0x40dd('0x34')]?_0x2b75a7[_0x40dd('0x31')]:_0x19065b[_0x40dd('0x30')];if(_0x2e8135[_0x40dd('0x2d')][_0x40dd('0x3f')]){_0x2b75a7[_0x40dd('0x42')]=[{'all':!![]}];}_0x2b75a7=_[_0x40dd('0x3c')]({},_0x2b75a7,_0x2e8135[_0x40dd('0x43')]);return db['ChatTransferReport']['find'](_0x2b75a7)[_0x40dd('0x22')](handleEntityNotFound(_0x276b15,null))[_0x40dd('0x22')](respondWithResult(_0x276b15,null))[_0x40dd('0x44')](handleError(_0x276b15,null));};exports[_0x40dd('0x45')]=function(_0x26c6ed,_0x28f2b4){return db[_0x40dd('0x29')]['create'](_0x26c6ed['body'],{})['then'](respondWithResult(_0x28f2b4,0xc9))[_0x40dd('0x44')](handleError(_0x28f2b4,null));};exports['update']=function(_0x99bfd3,_0x4b450f){if(_0x99bfd3[_0x40dd('0x46')]['id']){delete _0x99bfd3[_0x40dd('0x46')]['id'];}return db[_0x40dd('0x29')][_0x40dd('0x47')]({'where':{'id':_0x99bfd3['params']['id']}})[_0x40dd('0x22')](handleEntityNotFound(_0x4b450f,null))['then'](saveUpdates(_0x99bfd3[_0x40dd('0x46')],null))[_0x40dd('0x22')](respondWithResult(_0x4b450f,null))[_0x40dd('0x44')](handleError(_0x4b450f,null));};exports[_0x40dd('0x48')]=function(_0x23c012,_0x4e9959){return db['ChatTransferReport'][_0x40dd('0x47')]({'where':{'id':_0x23c012[_0x40dd('0x49')]['id']}})['then'](handleEntityNotFound(_0x4e9959,null))['then'](removeEntity(_0x4e9959,null))[_0x40dd('0x44')](handleError(_0x4e9959,null));};exports[_0x40dd('0x4a')]=function(_0x2488b6,_0xc80f33){return db[_0x40dd('0x29')][_0x40dd('0x4a')]()[_0x40dd('0x22')](respondWithResult(_0xc80f33,null))['catch'](handleError(_0xc80f33,null));};
\ No newline at end of file