Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / config / seedDB / analyticReports.js
index 3aba0dd..fd62abc 100644 (file)
@@ -1 +1 @@
-const a854_0x2666=['default','fields','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','destroy','ReportId','app','length','../../mysqldb','then','../logger','Analytic\x20Default\x20Reports\x20have\x20been\x20created','AnalyticCustomReport','createCustom','./report','catch','AnalyticFieldReport','error','motion','message','Can\x27t\x20create\x20Analytic\x20Custom\x20Report','bulkCreate','custom','DefaultReportId','Can\x27t\x20create\x20Analytic\x20Default\x20Report','info','CustomReportId','AnalyticDefaultReport'];(function(_0x3df0f4,_0x2666b4){const _0x6d1c3f=function(_0x3e9932){while(--_0x3e9932){_0x3df0f4['push'](_0x3df0f4['shift']());}};_0x6d1c3f(++_0x2666b4);}(a854_0x2666,0x145));const a854_0x6d1c=function(_0x3df0f4,_0x2666b4){_0x3df0f4=_0x3df0f4-0x0;let _0x6d1c3f=a854_0x2666[_0x3df0f4];return _0x6d1c3f;};const _0x9712f3=a854_0x6d1c;'use strict';const db=require(_0x9712f3('0x6'))['db'],logger=require(_0x9712f3('0x8'))(_0x9712f3('0x4')),report=require(_0x9712f3('0xc'));exports['createDefault']=function(){const _0xa77df2=_0x9712f3;return db[_0xa77df2('0x19')][_0xa77df2('0x2')]({'where':{}})[_0xa77df2('0x7')](function(){const _0xecdfad=_0xa77df2;return db[_0xecdfad('0x19')][_0xecdfad('0x13')](report[_0xecdfad('0x1a')](_0xecdfad('0x10')),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0xa77df2('0x7')](function(_0x3e9932){const _0x3466e4=_0xa77df2,_0x1e2c46=report[_0x3466e4('0x0')]();for(let _0x1c1360=0x0;_0x1c1360<_0x3e9932[_0x3466e4('0x5')];_0x1c1360+=0x1){if(_0x1e2c46[_0x3e9932[_0x1c1360]['id']]){for(let _0x1ea959=0x0;_0x1ea959<_0x1e2c46[_0x3e9932[_0x1c1360]['id']][_0x3466e4('0x5')];_0x1ea959+=0x1){_0x1e2c46[_0x3e9932[_0x1c1360]['id']][_0x1ea959][_0x3466e4('0x15')]=_0x1e2c46[_0x3e9932[_0x1c1360]['id']][_0x1ea959][_0x3466e4('0x3')],delete _0x1e2c46[_0x3e9932[_0x1c1360]['id']][_0x1ea959][_0x3466e4('0x3')];}db[_0x3466e4('0xe')][_0x3466e4('0x13')](_0x1e2c46[_0x3e9932[_0x1c1360]['id']]);}}})[_0xa77df2('0x7')](function(){const _0x1a310b=_0xa77df2;logger[_0x1a310b('0x17')](_0x1a310b('0x9'));})[_0xa77df2('0xd')](function(_0x512f1c){const _0x2d0cf1=_0xa77df2;logger[_0x2d0cf1('0xf')](_0x2d0cf1('0x16'),_0x512f1c[_0x2d0cf1('0x11')]);});},exports[_0x9712f3('0xb')]=function(){const _0x15a928=_0x9712f3;return db[_0x15a928('0xa')][_0x15a928('0x13')](report[_0x15a928('0x1a')](_0x15a928('0x14')),{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x15a928('0x7')](function(_0x4c5eca){const _0x4f6b95=_0x15a928,_0x8b0b0d=report[_0x4f6b95('0x0')]();for(let _0x24f8b8=0x0;_0x24f8b8<_0x4c5eca[_0x4f6b95('0x5')];_0x24f8b8+=0x1){if(_0x8b0b0d[_0x4c5eca[_0x24f8b8]['id']]){for(let _0x59857f=0x0;_0x59857f<_0x8b0b0d[_0x4c5eca[_0x24f8b8]['id']]['length'];_0x59857f+=0x1){_0x8b0b0d[_0x4c5eca[_0x24f8b8]['id']][_0x59857f][_0x4f6b95('0x18')]=_0x8b0b0d[_0x4c5eca[_0x24f8b8]['id']][_0x59857f][_0x4f6b95('0x3')],delete _0x8b0b0d[_0x4c5eca[_0x24f8b8]['id']][_0x59857f][_0x4f6b95('0x3')];}db[_0x4f6b95('0xe')][_0x4f6b95('0x13')](_0x8b0b0d[_0x4c5eca[_0x24f8b8]['id']]);}}})['then'](function(){const _0x576f57=_0x15a928;logger['info'](_0x576f57('0x1'));})[_0x15a928('0xd')](function(){const _0x2441dd=_0x15a928;logger[_0x2441dd('0xf')](_0x2441dd('0x12'));});};
\ No newline at end of file
+const a854_0x262f=['motion','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','../../mysqldb','message','../logger','info','error','length','then','bulkCreate','default','AnalyticCustomReport','custom','DefaultReportId','catch','fields','Can\x27t\x20create\x20Analytic\x20Custom\x20Report','./report','AnalyticDefaultReport','ReportId','Can\x27t\x20create\x20Analytic\x20Default\x20Report','destroy','AnalyticFieldReport'];(function(_0x5ee9c5,_0x262f14){const _0x18ddbc=function(_0x44fc98){while(--_0x44fc98){_0x5ee9c5['push'](_0x5ee9c5['shift']());}};_0x18ddbc(++_0x262f14);}(a854_0x262f,0x129));const a854_0x18dd=function(_0x5ee9c5,_0x262f14){_0x5ee9c5=_0x5ee9c5-0x0;let _0x18ddbc=a854_0x262f[_0x5ee9c5];return _0x18ddbc;};const _0x515483=a854_0x18dd;'use strict';const db=require(_0x515483('0x4'))['db'],logger=require(_0x515483('0x6'))('app'),report=require(_0x515483('0x13'));exports['createDefault']=function(){const _0x587688=_0x515483;return db[_0x587688('0x14')][_0x587688('0x0')]({'where':{}})[_0x587688('0xa')](function(){const _0xfcc635=_0x587688;return db[_0xfcc635('0x14')][_0xfcc635('0xb')](report[_0xfcc635('0xc')](_0xfcc635('0x2')),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x587688('0xa')](function(_0x44fc98){const _0x42a580=_0x587688,_0x98be43=report['fields']();for(let _0x45af00=0x0;_0x45af00<_0x44fc98[_0x42a580('0x9')];_0x45af00+=0x1){if(_0x98be43[_0x44fc98[_0x45af00]['id']]){for(let _0x75fe9d=0x0;_0x75fe9d<_0x98be43[_0x44fc98[_0x45af00]['id']][_0x42a580('0x9')];_0x75fe9d+=0x1){_0x98be43[_0x44fc98[_0x45af00]['id']][_0x75fe9d][_0x42a580('0xf')]=_0x98be43[_0x44fc98[_0x45af00]['id']][_0x75fe9d][_0x42a580('0x15')],delete _0x98be43[_0x44fc98[_0x45af00]['id']][_0x75fe9d][_0x42a580('0x15')];}db[_0x42a580('0x1')][_0x42a580('0xb')](_0x98be43[_0x44fc98[_0x45af00]['id']]);}}})[_0x587688('0xa')](function(){const _0x4344d2=_0x587688;logger[_0x4344d2('0x7')]('Analytic\x20Default\x20Reports\x20have\x20been\x20created');})['catch'](function(_0xcbd947){const _0x1faff5=_0x587688;logger[_0x1faff5('0x8')](_0x1faff5('0x16'),_0xcbd947[_0x1faff5('0x5')]);});},exports['createCustom']=function(){const _0x11f073=_0x515483;return db[_0x11f073('0xd')][_0x11f073('0xb')](report[_0x11f073('0xc')](_0x11f073('0xe')),{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0x425203){const _0x460ec9=_0x11f073,_0x5d41e8=report[_0x460ec9('0x11')]();for(let _0x4e5666=0x0;_0x4e5666<_0x425203[_0x460ec9('0x9')];_0x4e5666+=0x1){if(_0x5d41e8[_0x425203[_0x4e5666]['id']]){for(let _0x4b64b3=0x0;_0x4b64b3<_0x5d41e8[_0x425203[_0x4e5666]['id']][_0x460ec9('0x9')];_0x4b64b3+=0x1){_0x5d41e8[_0x425203[_0x4e5666]['id']][_0x4b64b3]['CustomReportId']=_0x5d41e8[_0x425203[_0x4e5666]['id']][_0x4b64b3][_0x460ec9('0x15')],delete _0x5d41e8[_0x425203[_0x4e5666]['id']][_0x4b64b3]['ReportId'];}db[_0x460ec9('0x1')][_0x460ec9('0xb')](_0x5d41e8[_0x425203[_0x4e5666]['id']]);}}})[_0x11f073('0xa')](function(){const _0x343ed6=_0x11f073;logger[_0x343ed6('0x7')](_0x343ed6('0x3'));})[_0x11f073('0x10')](function(){const _0x3d414f=_0x11f073;logger[_0x3d414f('0x8')](_0x3d414f('0x12'));});};
\ No newline at end of file