Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / cmHopperHistory / cmHopperHistory.controller.js
index 41c910c..2b0d00d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9fc6=['find','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','to-csv','ejs','squel','crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','undefined','limit','count','offset','set','Content-Range','reject','save','update','destroy','then','stack','name','send','index','map','CmHopperHistory','fieldName','type','key','model','query','keys','filters','attributes','fields','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','intersection','length','create','body','uniqueid'];(function(_0x585d09,_0x1274bc){var _0x7d9a14=function(_0x343d4e){while(--_0x343d4e){_0x585d09['push'](_0x585d09['shift']());}};_0x7d9a14(++_0x1274bc);}(_0x9fc6,0x1d5));var _0x69fc=function(_0x468b0f,_0x408566){_0x468b0f=_0x468b0f-0x0;var _0x3e74d9=_0x9fc6[_0x468b0f];return _0x3e74d9;};'use strict';var emlformat=require(_0x69fc('0x0'));var rimraf=require(_0x69fc('0x1'));var zipdir=require(_0x69fc('0x2'));var jsonpatch=require(_0x69fc('0x3'));var rp=require(_0x69fc('0x4'));var moment=require(_0x69fc('0x5'));var BPromise=require(_0x69fc('0x6'));var Mustache=require(_0x69fc('0x7'));var util=require(_0x69fc('0x8'));var path=require(_0x69fc('0x9'));var sox=require('sox');var csv=require(_0x69fc('0xa'));var ejs=require(_0x69fc('0xb'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x69fc('0xc'));var crypto=require(_0x69fc('0xd'));var jsforce=require(_0x69fc('0xe'));var deskjs=require(_0x69fc('0xf'));var toCsv=require(_0x69fc('0xa'));var querystring=require('querystring');var Papa=require(_0x69fc('0x10'));var Redis=require(_0x69fc('0x11'));var authService=require(_0x69fc('0x12'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x69fc('0x13'));var logger=require(_0x69fc('0x14'))(_0x69fc('0x15'));var utils=require(_0x69fc('0x16'));var config=require('../../config/environment');var licenseUtil=require(_0x69fc('0x17'));var db=require(_0x69fc('0x18'))['db'];function respondWithStatusCode(_0x243c3a,_0x1c1c73){_0x1c1c73=_0x1c1c73||0xcc;return function(_0x1cd5f9){if(_0x1cd5f9){return _0x243c3a[_0x69fc('0x19')](_0x1c1c73);}return _0x243c3a[_0x69fc('0x1a')](_0x1c1c73)[_0x69fc('0x1b')]();};}function respondWithResult(_0x138d0d,_0x1de368){_0x1de368=_0x1de368||0xc8;return function(_0x2e9038){if(_0x2e9038){return _0x138d0d[_0x69fc('0x1a')](_0x1de368)[_0x69fc('0x1c')](_0x2e9038);}};}function respondWithFilteredResult(_0x3466f2,_0x41e0bd){return function(_0x29939f){if(_0x29939f){var _0x3c260a=typeof _0x41e0bd['offset']===_0x69fc('0x1d')&&typeof _0x41e0bd[_0x69fc('0x1e')]==='undefined';var _0x54a94e=_0x29939f[_0x69fc('0x1f')];var _0x126642=_0x3c260a?0x0:_0x41e0bd[_0x69fc('0x20')];var _0x38e8eb=_0x3c260a?_0x29939f[_0x69fc('0x1f')]:_0x41e0bd['offset']+_0x41e0bd[_0x69fc('0x1e')];var _0x3d8378;if(_0x38e8eb>=_0x54a94e){_0x38e8eb=_0x54a94e;_0x3d8378=0xc8;}else{_0x3d8378=0xce;}_0x3466f2[_0x69fc('0x1a')](_0x3d8378);return _0x3466f2[_0x69fc('0x21')](_0x69fc('0x22'),_0x126642+'-'+_0x38e8eb+'/'+_0x54a94e)['json'](_0x29939f);}return null;};}function patchUpdates(_0xffc7e5){return function(_0x5a640b){try{jsonpatch['apply'](_0x5a640b,_0xffc7e5,!![]);}catch(_0x2efa49){return BPromise[_0x69fc('0x23')](_0x2efa49);}return _0x5a640b[_0x69fc('0x24')]();};}function saveUpdates(_0x4fedfc,_0x40cb6b){return function(_0x5ad863){if(_0x5ad863){return _0x5ad863[_0x69fc('0x25')](_0x4fedfc)['then'](function(_0x50321e){return _0x50321e;});}return null;};}function removeEntity(_0x4737f5,_0x642eb5){return function(_0x5c8837){if(_0x5c8837){return _0x5c8837[_0x69fc('0x26')]()[_0x69fc('0x27')](function(){_0x4737f5[_0x69fc('0x1a')](0xcc)[_0x69fc('0x1b')]();});}};}function handleEntityNotFound(_0x2f8270,_0x4e8efb){return function(_0x8f62cd){if(!_0x8f62cd){_0x2f8270[_0x69fc('0x19')](0x194);}return _0x8f62cd;};}function handleError(_0x55d93f,_0x3894d3){_0x3894d3=_0x3894d3||0x1f4;return function(_0x3b7d77){logger['error'](_0x3b7d77[_0x69fc('0x28')]);if(_0x3b7d77['name']){delete _0x3b7d77[_0x69fc('0x29')];}_0x55d93f[_0x69fc('0x1a')](_0x3894d3)[_0x69fc('0x2a')](_0x3b7d77);};}exports[_0x69fc('0x2b')]=function(_0x400b7f,_0xcb3477){var _0x21a335={},_0xf6e372={},_0x4c3617={'count':0x0,'rows':[]};var _0x37fbbf=_[_0x69fc('0x2c')](db[_0x69fc('0x2d')]['rawAttributes'],function(_0x4fbe3c){return{'name':_0x4fbe3c[_0x69fc('0x2e')],'type':_0x4fbe3c[_0x69fc('0x2f')][_0x69fc('0x30')]};});_0xf6e372[_0x69fc('0x31')]=_[_0x69fc('0x2c')](_0x37fbbf,'name');_0xf6e372[_0x69fc('0x32')]=_[_0x69fc('0x33')](_0x400b7f[_0x69fc('0x32')]);_0xf6e372[_0x69fc('0x34')]=_['intersection'](_0xf6e372[_0x69fc('0x31')],_0xf6e372[_0x69fc('0x32')]);_0x21a335[_0x69fc('0x35')]=_['intersection'](_0xf6e372[_0x69fc('0x31')],qs[_0x69fc('0x36')](_0x400b7f[_0x69fc('0x32')][_0x69fc('0x36')]));_0x21a335[_0x69fc('0x35')]=_0x21a335[_0x69fc('0x35')]['length']?_0x21a335[_0x69fc('0x35')]:_0xf6e372['model'];if(!_0x400b7f['query'][_0x69fc('0x37')](_0x69fc('0x38'))){_0x21a335[_0x69fc('0x1e')]=qs[_0x69fc('0x1e')](_0x400b7f[_0x69fc('0x32')]['limit']);_0x21a335[_0x69fc('0x20')]=qs[_0x69fc('0x20')](_0x400b7f[_0x69fc('0x32')]['offset']);}_0x21a335[_0x69fc('0x39')]=qs[_0x69fc('0x3a')](_0x400b7f[_0x69fc('0x32')]['sort']);_0x21a335[_0x69fc('0x3b')]=qs[_0x69fc('0x34')](_[_0x69fc('0x3c')](_0x400b7f[_0x69fc('0x32')],_0xf6e372[_0x69fc('0x34')]),_0x37fbbf);if(_0x400b7f[_0x69fc('0x32')][_0x69fc('0x3d')]){_0x21a335[_0x69fc('0x3b')]=_[_0x69fc('0x3e')](_0x21a335['where'],{'$or':_[_0x69fc('0x2c')](_0x37fbbf,function(_0x166c60){if(_0x166c60[_0x69fc('0x2f')]!==_0x69fc('0x3f')){var _0x406750={};_0x406750[_0x166c60['name']]={'$like':'%'+_0x400b7f['query'][_0x69fc('0x3d')]+'%'};return _0x406750;}})});}_0x21a335=_[_0x69fc('0x3e')]({},_0x21a335,_0x400b7f[_0x69fc('0x40')]);var _0x429f38={'where':_0x21a335['where']};return db[_0x69fc('0x2d')][_0x69fc('0x1f')](_0x429f38)[_0x69fc('0x27')](function(_0x15e9b4){_0x4c3617[_0x69fc('0x1f')]=_0x15e9b4;if(_0x400b7f[_0x69fc('0x32')][_0x69fc('0x41')]){_0x21a335[_0x69fc('0x42')]=[{'all':!![]}];}return db[_0x69fc('0x2d')][_0x69fc('0x43')](_0x21a335);})[_0x69fc('0x27')](function(_0x478c97){_0x4c3617[_0x69fc('0x44')]=_0x478c97;return _0x4c3617;})['then'](respondWithFilteredResult(_0xcb3477,_0x21a335))[_0x69fc('0x45')](handleError(_0xcb3477,null));};exports[_0x69fc('0x46')]=function(_0x321958,_0x5ce37d){var _0x16b139={'raw':!![],'where':{'id':_0x321958[_0x69fc('0x47')]['id']}},_0x1c60fb={};_0x1c60fb[_0x69fc('0x31')]=_[_0x69fc('0x33')](db['CmHopperHistory']['rawAttributes']);_0x1c60fb[_0x69fc('0x32')]=_[_0x69fc('0x33')](_0x321958[_0x69fc('0x32')]);_0x1c60fb[_0x69fc('0x34')]=_[_0x69fc('0x48')](_0x1c60fb[_0x69fc('0x31')],_0x1c60fb[_0x69fc('0x32')]);_0x16b139[_0x69fc('0x35')]=_[_0x69fc('0x48')](_0x1c60fb[_0x69fc('0x31')],qs[_0x69fc('0x36')](_0x321958[_0x69fc('0x32')][_0x69fc('0x36')]));_0x16b139[_0x69fc('0x35')]=_0x16b139['attributes'][_0x69fc('0x49')]?_0x16b139['attributes']:_0x1c60fb[_0x69fc('0x31')];if(_0x321958[_0x69fc('0x32')]['includeAll']){_0x16b139[_0x69fc('0x42')]=[{'all':!![]}];}_0x16b139=_[_0x69fc('0x3e')]({},_0x16b139,_0x321958[_0x69fc('0x40')]);return db[_0x69fc('0x2d')]['find'](_0x16b139)['then'](handleEntityNotFound(_0x5ce37d,null))[_0x69fc('0x27')](respondWithResult(_0x5ce37d,null))[_0x69fc('0x45')](handleError(_0x5ce37d,null));};exports[_0x69fc('0x4a')]=function(_0x534a35,_0x54250){return db[_0x69fc('0x2d')][_0x69fc('0x4a')](_0x534a35[_0x69fc('0x4b')],{})['then'](respondWithResult(_0x54250,0xc9))[_0x69fc('0x45')](handleError(_0x54250,null));};exports['describe']=function(_0x331be0,_0x3e87fe){return db[_0x69fc('0x2d')]['describe']()[_0x69fc('0x27')](respondWithResult(_0x3e87fe,null))[_0x69fc('0x45')](handleError(_0x3e87fe,null));};exports[_0x69fc('0x25')]=function(_0x29488f,_0x4f7eb5){if(_0x29488f[_0x69fc('0x4b')]['uniqueid']){delete _0x29488f[_0x69fc('0x4b')][_0x69fc('0x4c')];}return db[_0x69fc('0x2d')][_0x69fc('0x4d')]({'where':{'uniqueid':_0x29488f[_0x69fc('0x47')]['id']}})[_0x69fc('0x27')](handleEntityNotFound(_0x4f7eb5,null))[_0x69fc('0x27')](saveUpdates(_0x29488f[_0x69fc('0x4b')],null))[_0x69fc('0x27')](respondWithResult(_0x4f7eb5,null))[_0x69fc('0x45')](handleError(_0x4f7eb5,null));};
\ No newline at end of file
+var _0xce5d=['../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','undefined','limit','count','offset','Content-Range','apply','reject','update','then','destroy','error','stack','name','index','rawAttributes','fieldName','type','key','model','map','query','attributes','intersection','fields','length','nolimit','order','sort','where','filters','merge','VIRTUAL','options','includeAll','include','CmHopperHistory','findAll','rows','show','params','keys','find','catch','create','body','describe','uniqueid','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','to-csv','fs-extra','lodash','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils'];(function(_0x192099,_0x38a593){var _0x3d6ccc=function(_0x541fff){while(--_0x541fff){_0x192099['push'](_0x192099['shift']());}};_0x3d6ccc(++_0x38a593);}(_0xce5d,0x120));var _0xdce5=function(_0x35bca2,_0x4ce50d){_0x35bca2=_0x35bca2-0x0;var _0x295d7a=_0xce5d[_0x35bca2];return _0x295d7a;};'use strict';var emlformat=require(_0xdce5('0x0'));var rimraf=require(_0xdce5('0x1'));var zipdir=require(_0xdce5('0x2'));var jsonpatch=require(_0xdce5('0x3'));var rp=require(_0xdce5('0x4'));var moment=require(_0xdce5('0x5'));var BPromise=require(_0xdce5('0x6'));var Mustache=require(_0xdce5('0x7'));var util=require(_0xdce5('0x8'));var path=require(_0xdce5('0x9'));var sox=require('sox');var csv=require(_0xdce5('0xa'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xdce5('0xb'));var _=require(_0xdce5('0xc'));var squel=require('squel');var crypto=require(_0xdce5('0xd'));var jsforce=require(_0xdce5('0xe'));var deskjs=require(_0xdce5('0xf'));var toCsv=require(_0xdce5('0xa'));var querystring=require(_0xdce5('0x10'));var Papa=require(_0xdce5('0x11'));var Redis=require('ioredis');var authService=require(_0xdce5('0x12'));var qs=require(_0xdce5('0x13'));var as=require(_0xdce5('0x14'));var hardwareService=require(_0xdce5('0x15'));var logger=require(_0xdce5('0x16'))('api');var utils=require(_0xdce5('0x17'));var config=require(_0xdce5('0x18'));var licenseUtil=require(_0xdce5('0x19'));var db=require(_0xdce5('0x1a'))['db'];function respondWithStatusCode(_0x4fb36d,_0x187f78){_0x187f78=_0x187f78||0xcc;return function(_0x23253e){if(_0x23253e){return _0x4fb36d[_0xdce5('0x1b')](_0x187f78);}return _0x4fb36d[_0xdce5('0x1c')](_0x187f78)[_0xdce5('0x1d')]();};}function respondWithResult(_0x3dd253,_0x467043){_0x467043=_0x467043||0xc8;return function(_0x5ed86f){if(_0x5ed86f){return _0x3dd253[_0xdce5('0x1c')](_0x467043)[_0xdce5('0x1e')](_0x5ed86f);}};}function respondWithFilteredResult(_0x50730a,_0x4b6b02){return function(_0x3b3903){if(_0x3b3903){var _0x1025d8=typeof _0x4b6b02['offset']===_0xdce5('0x1f')&&typeof _0x4b6b02[_0xdce5('0x20')]===_0xdce5('0x1f');var _0x195907=_0x3b3903['count'];var _0x1e4da1=_0x1025d8?0x0:_0x4b6b02['offset'];var _0x18ec57=_0x1025d8?_0x3b3903[_0xdce5('0x21')]:_0x4b6b02[_0xdce5('0x22')]+_0x4b6b02['limit'];var _0x57262f;if(_0x18ec57>=_0x195907){_0x18ec57=_0x195907;_0x57262f=0xc8;}else{_0x57262f=0xce;}_0x50730a[_0xdce5('0x1c')](_0x57262f);return _0x50730a['set'](_0xdce5('0x23'),_0x1e4da1+'-'+_0x18ec57+'/'+_0x195907)[_0xdce5('0x1e')](_0x3b3903);}return null;};}function patchUpdates(_0x899213){return function(_0x301618){try{jsonpatch[_0xdce5('0x24')](_0x301618,_0x899213,!![]);}catch(_0x39541d){return BPromise[_0xdce5('0x25')](_0x39541d);}return _0x301618['save']();};}function saveUpdates(_0x1be9f2,_0x4fcfb6){return function(_0x1c366c){if(_0x1c366c){return _0x1c366c[_0xdce5('0x26')](_0x1be9f2)[_0xdce5('0x27')](function(_0x1dfb5d){return _0x1dfb5d;});}return null;};}function removeEntity(_0x1ad119,_0x3b8c8e){return function(_0x5c6fe3){if(_0x5c6fe3){return _0x5c6fe3[_0xdce5('0x28')]()[_0xdce5('0x27')](function(){_0x1ad119[_0xdce5('0x1c')](0xcc)[_0xdce5('0x1d')]();});}};}function handleEntityNotFound(_0x4db274,_0x2a2fed){return function(_0x3d594e){if(!_0x3d594e){_0x4db274[_0xdce5('0x1b')](0x194);}return _0x3d594e;};}function handleError(_0x19e29a,_0x1b4eff){_0x1b4eff=_0x1b4eff||0x1f4;return function(_0x18ec78){logger[_0xdce5('0x29')](_0x18ec78[_0xdce5('0x2a')]);if(_0x18ec78[_0xdce5('0x2b')]){delete _0x18ec78[_0xdce5('0x2b')];}_0x19e29a[_0xdce5('0x1c')](_0x1b4eff)['send'](_0x18ec78);};}exports[_0xdce5('0x2c')]=function(_0x14ce8a,_0x237434){var _0x19ba50={},_0x32f6d0={},_0x144799={'count':0x0,'rows':[]};var _0x282e44=_['map'](db['CmHopperHistory'][_0xdce5('0x2d')],function(_0x3fd548){return{'name':_0x3fd548[_0xdce5('0x2e')],'type':_0x3fd548[_0xdce5('0x2f')][_0xdce5('0x30')]};});_0x32f6d0[_0xdce5('0x31')]=_[_0xdce5('0x32')](_0x282e44,_0xdce5('0x2b'));_0x32f6d0[_0xdce5('0x33')]=_['keys'](_0x14ce8a['query']);_0x32f6d0['filters']=_['intersection'](_0x32f6d0[_0xdce5('0x31')],_0x32f6d0['query']);_0x19ba50[_0xdce5('0x34')]=_[_0xdce5('0x35')](_0x32f6d0['model'],qs[_0xdce5('0x36')](_0x14ce8a['query']['fields']));_0x19ba50['attributes']=_0x19ba50[_0xdce5('0x34')][_0xdce5('0x37')]?_0x19ba50['attributes']:_0x32f6d0['model'];if(!_0x14ce8a['query']['hasOwnProperty'](_0xdce5('0x38'))){_0x19ba50[_0xdce5('0x20')]=qs['limit'](_0x14ce8a['query']['limit']);_0x19ba50[_0xdce5('0x22')]=qs['offset'](_0x14ce8a[_0xdce5('0x33')][_0xdce5('0x22')]);}_0x19ba50[_0xdce5('0x39')]=qs[_0xdce5('0x3a')](_0x14ce8a[_0xdce5('0x33')][_0xdce5('0x3a')]);_0x19ba50[_0xdce5('0x3b')]=qs[_0xdce5('0x3c')](_['pick'](_0x14ce8a['query'],_0x32f6d0[_0xdce5('0x3c')]),_0x282e44);if(_0x14ce8a[_0xdce5('0x33')]['filter']){_0x19ba50['where']=_[_0xdce5('0x3d')](_0x19ba50[_0xdce5('0x3b')],{'$or':_[_0xdce5('0x32')](_0x282e44,function(_0xae5b26){if(_0xae5b26['type']!==_0xdce5('0x3e')){var _0x3d5c7e={};_0x3d5c7e[_0xae5b26[_0xdce5('0x2b')]]={'$like':'%'+_0x14ce8a[_0xdce5('0x33')]['filter']+'%'};return _0x3d5c7e;}})});}_0x19ba50=_[_0xdce5('0x3d')]({},_0x19ba50,_0x14ce8a[_0xdce5('0x3f')]);var _0x3d2eea={'where':_0x19ba50['where']};return db['CmHopperHistory'][_0xdce5('0x21')](_0x3d2eea)[_0xdce5('0x27')](function(_0x41aac0){_0x144799['count']=_0x41aac0;if(_0x14ce8a[_0xdce5('0x33')][_0xdce5('0x40')]){_0x19ba50[_0xdce5('0x41')]=[{'all':!![]}];}return db[_0xdce5('0x42')][_0xdce5('0x43')](_0x19ba50);})['then'](function(_0x63ab2c){_0x144799[_0xdce5('0x44')]=_0x63ab2c;return _0x144799;})['then'](respondWithFilteredResult(_0x237434,_0x19ba50))['catch'](handleError(_0x237434,null));};exports[_0xdce5('0x45')]=function(_0x7788e2,_0x501ec5){var _0x3771b0={'raw':!![],'where':{'id':_0x7788e2[_0xdce5('0x46')]['id']}},_0x366399={};_0x366399[_0xdce5('0x31')]=_['keys'](db['CmHopperHistory']['rawAttributes']);_0x366399[_0xdce5('0x33')]=_[_0xdce5('0x47')](_0x7788e2['query']);_0x366399['filters']=_[_0xdce5('0x35')](_0x366399['model'],_0x366399[_0xdce5('0x33')]);_0x3771b0[_0xdce5('0x34')]=_[_0xdce5('0x35')](_0x366399[_0xdce5('0x31')],qs[_0xdce5('0x36')](_0x7788e2[_0xdce5('0x33')]['fields']));_0x3771b0[_0xdce5('0x34')]=_0x3771b0['attributes'][_0xdce5('0x37')]?_0x3771b0[_0xdce5('0x34')]:_0x366399[_0xdce5('0x31')];if(_0x7788e2[_0xdce5('0x33')]['includeAll']){_0x3771b0['include']=[{'all':!![]}];}_0x3771b0=_[_0xdce5('0x3d')]({},_0x3771b0,_0x7788e2['options']);return db[_0xdce5('0x42')][_0xdce5('0x48')](_0x3771b0)[_0xdce5('0x27')](handleEntityNotFound(_0x501ec5,null))[_0xdce5('0x27')](respondWithResult(_0x501ec5,null))[_0xdce5('0x49')](handleError(_0x501ec5,null));};exports[_0xdce5('0x4a')]=function(_0x13d972,_0x4114af){return db['CmHopperHistory'][_0xdce5('0x4a')](_0x13d972[_0xdce5('0x4b')],{})[_0xdce5('0x27')](respondWithResult(_0x4114af,0xc9))[_0xdce5('0x49')](handleError(_0x4114af,null));};exports[_0xdce5('0x4c')]=function(_0x4d0a07,_0x33741c){return db[_0xdce5('0x42')][_0xdce5('0x4c')]()[_0xdce5('0x27')](respondWithResult(_0x33741c,null))[_0xdce5('0x49')](handleError(_0x33741c,null));};exports[_0xdce5('0x26')]=function(_0x868e48,_0x7afb18){if(_0x868e48[_0xdce5('0x4b')][_0xdce5('0x4d')]){delete _0x868e48['body'][_0xdce5('0x4d')];}return db[_0xdce5('0x42')][_0xdce5('0x48')]({'where':{'uniqueid':_0x868e48['params']['id']}})[_0xdce5('0x27')](handleEntityNotFound(_0x7afb18,null))[_0xdce5('0x27')](saveUpdates(_0x868e48[_0xdce5('0x4b')],null))[_0xdce5('0x27')](respondWithResult(_0x7afb18,null))['catch'](handleError(_0x7afb18,null));};
\ No newline at end of file