Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / chatTransferReport / chatTransferReport.controller.js
index d4d9089..93884dc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8f99=['bluebird','mustache','path','to-csv','ejs','lodash','jsforce','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','api','../../config/utils','../../mysqldb','sendStatus','status','end','count','offset','limit','set','Content-Range','json','apply','update','then','error','name','send','map','rawAttributes','fieldName','type','key','model','query','keys','intersection','attributes','fields','hasOwnProperty','sort','pick','filters','where','merge','filter','options','ChatTransferReport','include','rows','length','includeAll','find','catch','create','body','params','describe','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment'];(function(_0x339e1d,_0x4a81cb){var _0x33616a=function(_0x1e98ac){while(--_0x1e98ac){_0x339e1d['push'](_0x339e1d['shift']());}};_0x33616a(++_0x4a81cb);}(_0x8f99,0x7e));var _0x98f9=function(_0x46db09,_0x629145){_0x46db09=_0x46db09-0x0;var _0x2bf57c=_0x8f99[_0x46db09];return _0x2bf57c;};'use strict';var pdf=require(_0x98f9('0x0'));var emlformat=require(_0x98f9('0x1'));var rimraf=require(_0x98f9('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x98f9('0x3'));var rp=require(_0x98f9('0x4'));var moment=require(_0x98f9('0x5'));var BPromise=require(_0x98f9('0x6'));var Mustache=require(_0x98f9('0x7'));var util=require('util');var path=require(_0x98f9('0x8'));var sox=require('sox');var csv=require(_0x98f9('0x9'));var ejs=require(_0x98f9('0xa'));var fs=require('fs');var _=require(_0x98f9('0xb'));var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0x98f9('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x98f9('0x9'));var querystring=require(_0x98f9('0xd'));var Papa=require(_0x98f9('0xe'));var Redis=require('ioredis');var authService=require(_0x98f9('0xf'));var qs=require(_0x98f9('0x10'));var as=require(_0x98f9('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x98f9('0x12'));var utils=require(_0x98f9('0x13'));var config=require('../../config/environment');var db=require(_0x98f9('0x14'))['db'];function respondWithStatusCode(_0x17030b,_0x1f5803){_0x1f5803=_0x1f5803||0xcc;return function(_0x2546f8){if(_0x2546f8){return _0x17030b[_0x98f9('0x15')](_0x1f5803);}return _0x17030b[_0x98f9('0x16')](_0x1f5803)[_0x98f9('0x17')]();};}function respondWithResult(_0x19c470,_0x5d3717){_0x5d3717=_0x5d3717||0xc8;return function(_0x23eeae){if(_0x23eeae){return _0x19c470[_0x98f9('0x16')](_0x5d3717)['json'](_0x23eeae);}};}function respondWithFilteredResult(_0x112717,_0x530373){return function(_0xa8aa68){if(_0xa8aa68){var _0x2f42f3=_0xa8aa68[_0x98f9('0x18')],_0x3ff136=_0x530373[_0x98f9('0x19')],_0x1e8524=_0x530373['offset']+_0x530373[_0x98f9('0x1a')],_0x41d8a9;if(_0x1e8524>=_0x2f42f3){_0x1e8524=_0x2f42f3;_0x41d8a9=0xc8;}else{_0x41d8a9=0xce;}_0x112717[_0x98f9('0x16')](_0x41d8a9);return _0x112717[_0x98f9('0x1b')](_0x98f9('0x1c'),_0x3ff136+'-'+_0x1e8524+'/'+_0x2f42f3)[_0x98f9('0x1d')](_0xa8aa68);}return null;};}function patchUpdates(_0x114dd3){return function(_0x5603d9){try{jsonpatch[_0x98f9('0x1e')](_0x5603d9,_0x114dd3,!![]);}catch(_0x243710){return BPromise['reject'](_0x243710);}return _0x5603d9['save']();};}function saveUpdates(_0x461922,_0x4b6731){return function(_0x2fba1f){if(_0x2fba1f){return _0x2fba1f[_0x98f9('0x1f')](_0x461922)[_0x98f9('0x20')](function(_0x2c89b2){return _0x2c89b2;});}return null;};}function removeEntity(_0x18527e,_0x345fbd){return function(_0x492d04){if(_0x492d04){return _0x492d04['destroy']()[_0x98f9('0x20')](function(){_0x18527e[_0x98f9('0x16')](0xcc)[_0x98f9('0x17')]();});}};}function handleEntityNotFound(_0x3d94e4,_0x5ce932){return function(_0x5bc53b){if(!_0x5bc53b){_0x3d94e4[_0x98f9('0x15')](0x194);}return _0x5bc53b;};}function handleError(_0x47543d,_0x39ae1c){_0x39ae1c=_0x39ae1c||0x1f4;return function(_0x2c0281){logger[_0x98f9('0x21')](_0x2c0281['stack']);if(_0x2c0281[_0x98f9('0x22')]){delete _0x2c0281[_0x98f9('0x22')];}_0x47543d['status'](_0x39ae1c)[_0x98f9('0x23')](_0x2c0281);};}exports['index']=function(_0x139c3c,_0x4979bc){var _0x2d50c9={},_0x1274f5={},_0x6e151b={'count':0x0,'rows':[]};var _0x50e644=_[_0x98f9('0x24')](db['ChatTransferReport'][_0x98f9('0x25')],function(_0x209650){return{'name':_0x209650[_0x98f9('0x26')],'type':_0x209650[_0x98f9('0x27')][_0x98f9('0x28')]};});_0x1274f5[_0x98f9('0x29')]=_['map'](_0x50e644,_0x98f9('0x22'));_0x1274f5[_0x98f9('0x2a')]=_[_0x98f9('0x2b')](_0x139c3c[_0x98f9('0x2a')]);_0x1274f5['filters']=_[_0x98f9('0x2c')](_0x1274f5[_0x98f9('0x29')],_0x1274f5[_0x98f9('0x2a')]);_0x2d50c9[_0x98f9('0x2d')]=_[_0x98f9('0x2c')](_0x1274f5[_0x98f9('0x29')],qs[_0x98f9('0x2e')](_0x139c3c[_0x98f9('0x2a')]['fields']));_0x2d50c9[_0x98f9('0x2d')]=_0x2d50c9[_0x98f9('0x2d')]['length']?_0x2d50c9[_0x98f9('0x2d')]:_0x1274f5[_0x98f9('0x29')];if(!_0x139c3c[_0x98f9('0x2a')][_0x98f9('0x2f')]('nolimit')){_0x2d50c9[_0x98f9('0x1a')]=qs[_0x98f9('0x1a')](_0x139c3c['query'][_0x98f9('0x1a')]);_0x2d50c9[_0x98f9('0x19')]=qs[_0x98f9('0x19')](_0x139c3c[_0x98f9('0x2a')][_0x98f9('0x19')]);}_0x2d50c9['order']=qs[_0x98f9('0x30')](_0x139c3c[_0x98f9('0x2a')][_0x98f9('0x30')]);_0x2d50c9['where']=qs['filters'](_[_0x98f9('0x31')](_0x139c3c['query'],_0x1274f5[_0x98f9('0x32')]));if(_0x139c3c[_0x98f9('0x2a')]['filter']){_0x2d50c9[_0x98f9('0x33')]=_[_0x98f9('0x34')](_0x2d50c9[_0x98f9('0x33')],{'$or':_[_0x98f9('0x24')](_0x50e644,function(_0x69024c){if(_0x69024c[_0x98f9('0x27')]!=='VIRTUAL'){var _0x974ce={};_0x974ce[_0x69024c[_0x98f9('0x22')]]={'$like':'%'+_0x139c3c[_0x98f9('0x2a')][_0x98f9('0x35')]+'%'};return _0x974ce;}})});}_0x2d50c9=_[_0x98f9('0x34')]({},_0x2d50c9,_0x139c3c[_0x98f9('0x36')]);var _0x402528={'where':_0x2d50c9[_0x98f9('0x33')]};return db[_0x98f9('0x37')][_0x98f9('0x18')](_0x402528)[_0x98f9('0x20')](function(_0x2157bd){_0x6e151b['count']=_0x2157bd;if(_0x139c3c[_0x98f9('0x2a')]['includeAll']){_0x2d50c9[_0x98f9('0x38')]=[{'all':!![]}];}return db[_0x98f9('0x37')]['findAll'](_0x2d50c9);})[_0x98f9('0x20')](function(_0x11f2e1){_0x6e151b[_0x98f9('0x39')]=_0x11f2e1;return _0x6e151b;})[_0x98f9('0x20')](respondWithFilteredResult(_0x4979bc,_0x2d50c9))['catch'](handleError(_0x4979bc,null));};exports['show']=function(_0x5683e0,_0x255eb4){var _0x2fc746={'raw':!![],'where':{'id':_0x5683e0['params']['id']}},_0x44585f={};_0x44585f[_0x98f9('0x29')]=_[_0x98f9('0x2b')](db[_0x98f9('0x37')][_0x98f9('0x25')]);_0x44585f['query']=_[_0x98f9('0x2b')](_0x5683e0[_0x98f9('0x2a')]);_0x44585f[_0x98f9('0x32')]=_[_0x98f9('0x2c')](_0x44585f[_0x98f9('0x29')],_0x44585f['query']);_0x2fc746[_0x98f9('0x2d')]=_[_0x98f9('0x2c')](_0x44585f['model'],qs[_0x98f9('0x2e')](_0x5683e0[_0x98f9('0x2a')][_0x98f9('0x2e')]));_0x2fc746[_0x98f9('0x2d')]=_0x2fc746['attributes'][_0x98f9('0x3a')]?_0x2fc746[_0x98f9('0x2d')]:_0x44585f[_0x98f9('0x29')];if(_0x5683e0[_0x98f9('0x2a')][_0x98f9('0x3b')]){_0x2fc746[_0x98f9('0x38')]=[{'all':!![]}];}_0x2fc746=_[_0x98f9('0x34')]({},_0x2fc746,_0x5683e0[_0x98f9('0x36')]);return db[_0x98f9('0x37')][_0x98f9('0x3c')](_0x2fc746)['then'](handleEntityNotFound(_0x255eb4,null))[_0x98f9('0x20')](respondWithResult(_0x255eb4,null))[_0x98f9('0x3d')](handleError(_0x255eb4,null));};exports[_0x98f9('0x3e')]=function(_0x190458,_0x4cda9f){return db[_0x98f9('0x37')][_0x98f9('0x3e')](_0x190458[_0x98f9('0x3f')],{})['then'](respondWithResult(_0x4cda9f,0xc9))[_0x98f9('0x3d')](handleError(_0x4cda9f,null));};exports[_0x98f9('0x1f')]=function(_0x1d6690,_0x20919d){if(_0x1d6690[_0x98f9('0x3f')]['id']){delete _0x1d6690['body']['id'];}return db['ChatTransferReport']['find']({'where':{'id':_0x1d6690['params']['id']}})[_0x98f9('0x20')](handleEntityNotFound(_0x20919d,null))[_0x98f9('0x20')](saveUpdates(_0x1d6690[_0x98f9('0x3f')],null))[_0x98f9('0x20')](respondWithResult(_0x20919d,null))['catch'](handleError(_0x20919d,null));};exports['destroy']=function(_0x14ee07,_0x380121){return db[_0x98f9('0x37')][_0x98f9('0x3c')]({'where':{'id':_0x14ee07[_0x98f9('0x40')]['id']}})[_0x98f9('0x20')](handleEntityNotFound(_0x380121,null))[_0x98f9('0x20')](removeEntity(_0x380121,null))[_0x98f9('0x3d')](handleError(_0x380121,null));};exports[_0x98f9('0x41')]=function(_0x3acb66,_0x507703){return db[_0x98f9('0x37')][_0x98f9('0x41')]()[_0x98f9('0x20')](respondWithResult(_0x507703,null))[_0x98f9('0x3d')](handleError(_0x507703,null));};
\ No newline at end of file
+var _0xc1d7=['end','json','offset','undefined','limit','count','set','apply','save','update','destroy','then','error','stack','name','send','index','rawAttributes','fieldName','type','key','model','map','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','sort','where','filter','merge','VIRTUAL','options','includeAll','include','ChatTransferReport','rows','catch','show','params','find','create','body','describe','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','sox','to-csv','ejs','squel','crypto','jsforce','desk.js','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status'];(function(_0x3b8a24,_0x54b12f){var _0x2bbac1=function(_0x5f0714){while(--_0x5f0714){_0x3b8a24['push'](_0x3b8a24['shift']());}};_0x2bbac1(++_0x54b12f);}(_0xc1d7,0x78));var _0x7c1d=function(_0xb875ee,_0x583042){_0xb875ee=_0xb875ee-0x0;var _0x4c7f3a=_0xc1d7[_0xb875ee];return _0x4c7f3a;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x7c1d('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0x7c1d('0x1'));var rp=require(_0x7c1d('0x2'));var moment=require(_0x7c1d('0x3'));var BPromise=require(_0x7c1d('0x4'));var Mustache=require(_0x7c1d('0x5'));var util=require('util');var path=require('path');var sox=require(_0x7c1d('0x6'));var csv=require(_0x7c1d('0x7'));var ejs=require(_0x7c1d('0x8'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x7c1d('0x9'));var crypto=require(_0x7c1d('0xa'));var jsforce=require(_0x7c1d('0xb'));var deskjs=require(_0x7c1d('0xc'));var toCsv=require(_0x7c1d('0x7'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x7c1d('0xd'));var as=require(_0x7c1d('0xe'));var hardwareService=require(_0x7c1d('0xf'));var logger=require(_0x7c1d('0x10'))(_0x7c1d('0x11'));var utils=require(_0x7c1d('0x12'));var config=require(_0x7c1d('0x13'));var licenseUtil=require(_0x7c1d('0x14'));var db=require(_0x7c1d('0x15'))['db'];function respondWithStatusCode(_0x2ac758,_0x1bb5dd){_0x1bb5dd=_0x1bb5dd||0xcc;return function(_0x22898b){if(_0x22898b){return _0x2ac758[_0x7c1d('0x16')](_0x1bb5dd);}return _0x2ac758[_0x7c1d('0x17')](_0x1bb5dd)[_0x7c1d('0x18')]();};}function respondWithResult(_0x39b874,_0x38a0cd){_0x38a0cd=_0x38a0cd||0xc8;return function(_0x4fe49a){if(_0x4fe49a){return _0x39b874['status'](_0x38a0cd)[_0x7c1d('0x19')](_0x4fe49a);}};}function respondWithFilteredResult(_0x3b1b3d,_0x2b7a2d){return function(_0x35689b){if(_0x35689b){var _0x995faf=typeof _0x2b7a2d[_0x7c1d('0x1a')]===_0x7c1d('0x1b')&&typeof _0x2b7a2d[_0x7c1d('0x1c')]===_0x7c1d('0x1b');var _0x195895=_0x35689b[_0x7c1d('0x1d')];var _0x3409c5=_0x995faf?0x0:_0x2b7a2d[_0x7c1d('0x1a')];var _0x406e32=_0x995faf?_0x35689b['count']:_0x2b7a2d[_0x7c1d('0x1a')]+_0x2b7a2d[_0x7c1d('0x1c')];var _0x41dd8d;if(_0x406e32>=_0x195895){_0x406e32=_0x195895;_0x41dd8d=0xc8;}else{_0x41dd8d=0xce;}_0x3b1b3d[_0x7c1d('0x17')](_0x41dd8d);return _0x3b1b3d[_0x7c1d('0x1e')]('Content-Range',_0x3409c5+'-'+_0x406e32+'/'+_0x195895)[_0x7c1d('0x19')](_0x35689b);}return null;};}function patchUpdates(_0x2ad906){return function(_0x3d72bc){try{jsonpatch[_0x7c1d('0x1f')](_0x3d72bc,_0x2ad906,!![]);}catch(_0x146710){return BPromise['reject'](_0x146710);}return _0x3d72bc[_0x7c1d('0x20')]();};}function saveUpdates(_0x4440c9,_0x4d4ca2){return function(_0x16fe3d){if(_0x16fe3d){return _0x16fe3d[_0x7c1d('0x21')](_0x4440c9)['then'](function(_0x3a7cfc){return _0x3a7cfc;});}return null;};}function removeEntity(_0x3d327d,_0xb18672){return function(_0x54c749){if(_0x54c749){return _0x54c749[_0x7c1d('0x22')]()[_0x7c1d('0x23')](function(){_0x3d327d[_0x7c1d('0x17')](0xcc)[_0x7c1d('0x18')]();});}};}function handleEntityNotFound(_0x59defd,_0x270a36){return function(_0x36ba24){if(!_0x36ba24){_0x59defd[_0x7c1d('0x16')](0x194);}return _0x36ba24;};}function handleError(_0x2908ae,_0x2ae5ec){_0x2ae5ec=_0x2ae5ec||0x1f4;return function(_0x566417){logger[_0x7c1d('0x24')](_0x566417[_0x7c1d('0x25')]);if(_0x566417[_0x7c1d('0x26')]){delete _0x566417[_0x7c1d('0x26')];}_0x2908ae[_0x7c1d('0x17')](_0x2ae5ec)[_0x7c1d('0x27')](_0x566417);};}exports[_0x7c1d('0x28')]=function(_0x2f4240,_0x3f7e7a){var _0x57511d={},_0x2bdd94={},_0x1883b7={'count':0x0,'rows':[]};var _0x1814d7=_['map'](db['ChatTransferReport'][_0x7c1d('0x29')],function(_0x50f5ab){return{'name':_0x50f5ab[_0x7c1d('0x2a')],'type':_0x50f5ab[_0x7c1d('0x2b')][_0x7c1d('0x2c')]};});_0x2bdd94[_0x7c1d('0x2d')]=_[_0x7c1d('0x2e')](_0x1814d7,_0x7c1d('0x26'));_0x2bdd94[_0x7c1d('0x2f')]=_[_0x7c1d('0x30')](_0x2f4240[_0x7c1d('0x2f')]);_0x2bdd94[_0x7c1d('0x31')]=_[_0x7c1d('0x32')](_0x2bdd94[_0x7c1d('0x2d')],_0x2bdd94[_0x7c1d('0x2f')]);_0x57511d[_0x7c1d('0x33')]=_['intersection'](_0x2bdd94[_0x7c1d('0x2d')],qs['fields'](_0x2f4240[_0x7c1d('0x2f')][_0x7c1d('0x34')]));_0x57511d[_0x7c1d('0x33')]=_0x57511d['attributes'][_0x7c1d('0x35')]?_0x57511d[_0x7c1d('0x33')]:_0x2bdd94['model'];if(!_0x2f4240[_0x7c1d('0x2f')][_0x7c1d('0x36')]('nolimit')){_0x57511d[_0x7c1d('0x1c')]=qs[_0x7c1d('0x1c')](_0x2f4240[_0x7c1d('0x2f')][_0x7c1d('0x1c')]);_0x57511d[_0x7c1d('0x1a')]=qs['offset'](_0x2f4240[_0x7c1d('0x2f')]['offset']);}_0x57511d['order']=qs[_0x7c1d('0x37')](_0x2f4240[_0x7c1d('0x2f')][_0x7c1d('0x37')]);_0x57511d[_0x7c1d('0x38')]=qs['filters'](_['pick'](_0x2f4240[_0x7c1d('0x2f')],_0x2bdd94[_0x7c1d('0x31')]),_0x1814d7);if(_0x2f4240['query'][_0x7c1d('0x39')]){_0x57511d[_0x7c1d('0x38')]=_[_0x7c1d('0x3a')](_0x57511d[_0x7c1d('0x38')],{'$or':_[_0x7c1d('0x2e')](_0x1814d7,function(_0x514071){if(_0x514071[_0x7c1d('0x2b')]!==_0x7c1d('0x3b')){var _0x2b71fb={};_0x2b71fb[_0x514071['name']]={'$like':'%'+_0x2f4240[_0x7c1d('0x2f')][_0x7c1d('0x39')]+'%'};return _0x2b71fb;}})});}_0x57511d=_['merge']({},_0x57511d,_0x2f4240[_0x7c1d('0x3c')]);var _0x1527bd={'where':_0x57511d[_0x7c1d('0x38')]};return db['ChatTransferReport'][_0x7c1d('0x1d')](_0x1527bd)[_0x7c1d('0x23')](function(_0x26bbad){_0x1883b7[_0x7c1d('0x1d')]=_0x26bbad;if(_0x2f4240['query'][_0x7c1d('0x3d')]){_0x57511d[_0x7c1d('0x3e')]=[{'all':!![]}];}return db[_0x7c1d('0x3f')]['findAll'](_0x57511d);})[_0x7c1d('0x23')](function(_0x4f2857){_0x1883b7[_0x7c1d('0x40')]=_0x4f2857;return _0x1883b7;})[_0x7c1d('0x23')](respondWithFilteredResult(_0x3f7e7a,_0x57511d))[_0x7c1d('0x41')](handleError(_0x3f7e7a,null));};exports[_0x7c1d('0x42')]=function(_0x20504a,_0x2b70fa){var _0x2fbcbe={'raw':!![],'where':{'id':_0x20504a[_0x7c1d('0x43')]['id']}},_0x508c94={};_0x508c94['model']=_[_0x7c1d('0x30')](db[_0x7c1d('0x3f')]['rawAttributes']);_0x508c94[_0x7c1d('0x2f')]=_[_0x7c1d('0x30')](_0x20504a['query']);_0x508c94[_0x7c1d('0x31')]=_['intersection'](_0x508c94[_0x7c1d('0x2d')],_0x508c94['query']);_0x2fbcbe[_0x7c1d('0x33')]=_[_0x7c1d('0x32')](_0x508c94[_0x7c1d('0x2d')],qs[_0x7c1d('0x34')](_0x20504a[_0x7c1d('0x2f')]['fields']));_0x2fbcbe[_0x7c1d('0x33')]=_0x2fbcbe[_0x7c1d('0x33')]['length']?_0x2fbcbe[_0x7c1d('0x33')]:_0x508c94['model'];if(_0x20504a['query']['includeAll']){_0x2fbcbe[_0x7c1d('0x3e')]=[{'all':!![]}];}_0x2fbcbe=_['merge']({},_0x2fbcbe,_0x20504a[_0x7c1d('0x3c')]);return db[_0x7c1d('0x3f')][_0x7c1d('0x44')](_0x2fbcbe)['then'](handleEntityNotFound(_0x2b70fa,null))['then'](respondWithResult(_0x2b70fa,null))[_0x7c1d('0x41')](handleError(_0x2b70fa,null));};exports[_0x7c1d('0x45')]=function(_0x11b609,_0x3796a9){return db[_0x7c1d('0x3f')][_0x7c1d('0x45')](_0x11b609[_0x7c1d('0x46')],{})[_0x7c1d('0x23')](respondWithResult(_0x3796a9,0xc9))[_0x7c1d('0x41')](handleError(_0x3796a9,null));};exports[_0x7c1d('0x21')]=function(_0x6a0c53,_0x7c0c9a){if(_0x6a0c53[_0x7c1d('0x46')]['id']){delete _0x6a0c53[_0x7c1d('0x46')]['id'];}return db['ChatTransferReport'][_0x7c1d('0x44')]({'where':{'id':_0x6a0c53['params']['id']}})['then'](handleEntityNotFound(_0x7c0c9a,null))[_0x7c1d('0x23')](saveUpdates(_0x6a0c53[_0x7c1d('0x46')],null))[_0x7c1d('0x23')](respondWithResult(_0x7c0c9a,null))[_0x7c1d('0x41')](handleError(_0x7c0c9a,null));};exports[_0x7c1d('0x22')]=function(_0x5a1f34,_0xd3ee1d){return db['ChatTransferReport']['find']({'where':{'id':_0x5a1f34[_0x7c1d('0x43')]['id']}})['then'](handleEntityNotFound(_0xd3ee1d,null))[_0x7c1d('0x23')](removeEntity(_0xd3ee1d,null))['catch'](handleError(_0xd3ee1d,null));};exports[_0x7c1d('0x47')]=function(_0x3809f8,_0x5e37e7){return db['ChatTransferReport'][_0x7c1d('0x47')]()['then'](respondWithResult(_0x5e37e7,null))[_0x7c1d('0x41')](handleError(_0x5e37e7,null));};
\ No newline at end of file