Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.37.js
index ac82995..5916225 100644 (file)
@@ -1 +1 @@
-const a916_0x5ac4=['prototype','query','join','info','migration','jscripty_projects','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','changeColumn','enqueue','phone','query\x20%s','sequelize','dropTable','sms_messages','sequence','catch','exports','removeColumn','BOOLEAN','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','queryInterface','completed','stringify','addIndex','tail','sms_interactions','then','final','../config/logger','addIndex\x20%s\x20%s\x20%s','report_jscripty_sessions','STRING','util'];(function(_0x4a941f,_0x5ac426){const _0x5b4ec1=function(_0x5c1111){while(--_0x5c1111){_0x4a941f['push'](_0x4a941f['shift']());}};_0x5b4ec1(++_0x5ac426);}(a916_0x5ac4,0x18f));const a916_0x5b4e=function(_0x4a941f,_0x5ac426){_0x4a941f=_0x4a941f-0x0;let _0x5b4ec1=a916_0x5ac4[_0x4a941f];return _0x5b4ec1;};const _0x4e7b37=a916_0x5b4e;'use strict';const logger=require(_0x4e7b37('0x4'))(_0x4e7b37('0xd')),util=require(_0x4e7b37('0x8')),Sequence=function(){};Sequence[_0x4e7b37('0x9')][_0x4e7b37('0x12')]=function(_0x5c1111){const _0x52cf28=_0x4e7b37;this[_0x52cf28('0x0')]=this[_0x52cf28('0x0')]?this[_0x52cf28('0x0')]['finally'](_0x5c1111):_0x5c1111();};const Migration=function(_0x493f9c){const _0x11b2f4=_0x4e7b37;this[_0x11b2f4('0x1e')]=_0x493f9c,this[_0x11b2f4('0x18')]=new Sequence();};Migration['prototype'][_0x4e7b37('0x11')]=function(_0x24716f,_0x299d5b,_0x375c2b){const _0x5a90e7=_0x4e7b37,_0x3964a9=this;this[_0x5a90e7('0x18')]['enqueue'](function(){const _0x4cf18b=_0x5a90e7;return _0x3964a9[_0x4cf18b('0x1e')][_0x4cf18b('0x11')](_0x24716f,_0x299d5b,_0x375c2b)[_0x4cf18b('0x2')](function(){const _0x25b65c=_0x4cf18b;logger['info'](_0x25b65c('0xf'),_0x299d5b,_0x24716f);})[_0x4cf18b('0x19')](function(_0x4198c6){const _0x57aa55=_0x4cf18b;logger[_0x57aa55('0xc')](JSON['stringify'](_0x4198c6));});});},Migration[_0x4e7b37('0x9')][_0x4e7b37('0x10')]=function(_0x5a5770,_0x4e2458,_0x55cd3b){const _0x49435a=_0x4e7b37,_0xcbd8c8=this;this[_0x49435a('0x18')][_0x49435a('0x12')](function(){const _0x4a8a8d=_0x49435a;return _0xcbd8c8[_0x4a8a8d('0x1e')][_0x4a8a8d('0x10')](_0x5a5770,_0x4e2458,_0x55cd3b)[_0x4a8a8d('0x2')](function(){const _0x1b09f9=_0x4a8a8d;logger[_0x1b09f9('0xc')]('Added\x20column\x20%s\x20to\x20%s',_0x4e2458,_0x5a5770);})[_0x4a8a8d('0x19')](function(_0x3c920f){const _0x5849e0=_0x4a8a8d;logger[_0x5849e0('0xc')](JSON[_0x5849e0('0x20')](_0x3c920f));});});},Migration[_0x4e7b37('0x9')][_0x4e7b37('0x16')]=function(_0x409887){const _0x53f384=this;this['sequence']['enqueue'](function(){const _0x4a2109=a916_0x5b4e;return _0x53f384[_0x4a2109('0x1e')]['dropTable'](_0x409887,{'force':!![]})[_0x4a2109('0x2')](function(){const _0x348ece=_0x4a2109;logger[_0x348ece('0xc')]('table\x20dropped\x20%s',_0x409887);})[_0x4a2109('0x19')](function(_0x16cd1e){const _0x433668=_0x4a2109;logger[_0x433668('0xc')](JSON[_0x433668('0x20')](_0x16cd1e));});});},Migration['prototype']['addIndex']=function(_0x5ef455,_0x4cae99,_0xc80e0c){const _0x247ae5=_0x4e7b37,_0x15a81e=this;this[_0x247ae5('0x18')]['enqueue'](function(){const _0x14637a=_0x247ae5;return _0x15a81e['queryInterface'][_0x14637a('0x21')](_0x5ef455,_0x4cae99,{'indexName':_0xc80e0c})[_0x14637a('0x2')](function(){const _0x24ec9b=_0x14637a;logger[_0x24ec9b('0xc')](_0x24ec9b('0x5'),_0x5ef455,_0x4cae99[_0x24ec9b('0xb')](','),_0xc80e0c);})[_0x14637a('0x19')](function(_0x5c8fca){const _0x26c9ca=_0x14637a;logger[_0x26c9ca('0xc')](JSON[_0x26c9ca('0x20')](_0x5c8fca));});});},Migration[_0x4e7b37('0x9')][_0x4e7b37('0xa')]=function(_0xd377e9){const _0x5209ac=_0x4e7b37,_0x12f15d=this;this[_0x5209ac('0x18')]['enqueue'](function(){const _0xdd274=_0x5209ac;return _0x12f15d[_0xdd274('0x1e')][_0xdd274('0x15')][_0xdd274('0xa')](_0xd377e9)[_0xdd274('0x2')](function(){const _0x23b510=_0xdd274;logger[_0x23b510('0xc')](_0x23b510('0x14'),_0xd377e9);})[_0xdd274('0x19')](function(_0x3fe929){const _0x160d47=_0xdd274;logger[_0x160d47('0xc')](JSON[_0x160d47('0x20')](_0x3fe929));});});},Migration['prototype']['removeColumn']=function(_0x5a92f2,_0x2ca430){const _0x1022b1=_0x4e7b37,_0xceeb47=this;this[_0x1022b1('0x18')][_0x1022b1('0x12')](function(){const _0x38b5f8=_0x1022b1;return _0xceeb47[_0x38b5f8('0x1e')][_0x38b5f8('0x1b')](_0x5a92f2,_0x2ca430)[_0x38b5f8('0x2')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2ca430,_0x5a92f2);})[_0x38b5f8('0x19')](function(_0x3af908){const _0x2d54d8=_0x38b5f8;logger[_0x2d54d8('0xc')](util['inspect'](_0x3af908,{'showHidden':![],'depth':null}));});});},Migration[_0x4e7b37('0x9')][_0x4e7b37('0x3')]=function(_0x501e77){const _0x36fd95=_0x4e7b37;this[_0x36fd95('0x18')]['enqueue'](function(){return _0x501e77();});},module[_0x4e7b37('0x1a')]={'up':function(_0x145725,_0x30f3ed){return new Promise(function(_0x1721e8){const _0x5a7d37=a916_0x5b4e,_0x5491b9=new Migration(_0x145725);_0x5491b9[_0x5a7d37('0x10')](_0x5a7d37('0xe'),'enableUncompleteSave',{'type':_0x30f3ed[_0x5a7d37('0x1c')],'defaultValue':!![]}),_0x5491b9[_0x5a7d37('0x10')](_0x5a7d37('0x6'),_0x5a7d37('0x1f'),{'type':_0x30f3ed[_0x5a7d37('0x1c')],'defaultValue':![]}),_0x5491b9[_0x5a7d37('0xa')](_0x5a7d37('0x1d')),_0x5491b9[_0x5a7d37('0x10')](_0x5a7d37('0x1'),_0x5a7d37('0x13'),{'type':_0x30f3ed[_0x5a7d37('0x7')]}),_0x5491b9['addColumn'](_0x5a7d37('0x17'),_0x5a7d37('0x13'),{'type':_0x30f3ed['STRING']}),_0x5491b9[_0x5a7d37('0x3')](_0x1721e8);});},'down':function(){}};
\ No newline at end of file
+const a916_0x2af9=['queryInterface','query','Changed\x20column\x20%s\x20in\x20table\x20%s','info','then','jscripty_projects','removeColumn','phone','sequelize','catch','enqueue','addIndex','inspect','join','table\x20dropped\x20%s','report_jscripty_sessions','sms_interactions','stringify','tail','addColumn','dropTable','changeColumn','util','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','STRING','migration','BOOLEAN','prototype','sequence','query\x20%s'];(function(_0x3dac16,_0x2af95e){const _0x4ebb47=function(_0x41122c){while(--_0x41122c){_0x3dac16['push'](_0x3dac16['shift']());}};_0x4ebb47(++_0x2af95e);}(a916_0x2af9,0x64));const a916_0x4ebb=function(_0x3dac16,_0x2af95e){_0x3dac16=_0x3dac16-0x0;let _0x4ebb47=a916_0x2af9[_0x3dac16];return _0x4ebb47;};const _0x10803f=a916_0x4ebb;'use strict';const logger=require('../config/logger')(_0x10803f('0x13')),util=require(_0x10803f('0xf')),Sequence=function(){};Sequence['prototype'][_0x10803f('0x3')]=function(_0x41122c){const _0x11955e=_0x10803f;this[_0x11955e('0xb')]=this[_0x11955e('0xb')]?this[_0x11955e('0xb')]['finally'](_0x41122c):_0x41122c();};const Migration=function(_0x39403f){const _0x54ff33=_0x10803f;this[_0x54ff33('0x18')]=_0x39403f,this[_0x54ff33('0x16')]=new Sequence();};Migration[_0x10803f('0x15')][_0x10803f('0xe')]=function(_0xcf1c5d,_0x4803ef,_0x17f05e){const _0x258ecd=_0x10803f,_0x15f6a9=this;this['sequence'][_0x258ecd('0x3')](function(){const _0x3735e3=_0x258ecd;return _0x15f6a9[_0x3735e3('0x18')][_0x3735e3('0xe')](_0xcf1c5d,_0x4803ef,_0x17f05e)[_0x3735e3('0x1c')](function(){const _0x421a1d=_0x3735e3;logger[_0x421a1d('0x1b')](_0x421a1d('0x1a'),_0x4803ef,_0xcf1c5d);})[_0x3735e3('0x2')](function(_0x2eb1ba){const _0x23f142=_0x3735e3;logger[_0x23f142('0x1b')](JSON[_0x23f142('0xa')](_0x2eb1ba));});});},Migration[_0x10803f('0x15')][_0x10803f('0xc')]=function(_0x3fa1c4,_0x486ad5,_0x5ebadb){const _0x406c32=_0x10803f,_0x3812f1=this;this[_0x406c32('0x16')]['enqueue'](function(){const _0x331b87=_0x406c32;return _0x3812f1[_0x331b87('0x18')][_0x331b87('0xc')](_0x3fa1c4,_0x486ad5,_0x5ebadb)[_0x331b87('0x1c')](function(){const _0xae87f9=_0x331b87;logger[_0xae87f9('0x1b')](_0xae87f9('0x10'),_0x486ad5,_0x3fa1c4);})[_0x331b87('0x2')](function(_0x18a665){const _0x496b96=_0x331b87;logger[_0x496b96('0x1b')](JSON[_0x496b96('0xa')](_0x18a665));});});},Migration[_0x10803f('0x15')][_0x10803f('0xd')]=function(_0x183912){const _0x4059a1=_0x10803f,_0x264e4c=this;this[_0x4059a1('0x16')][_0x4059a1('0x3')](function(){const _0xc511b1=_0x4059a1;return _0x264e4c[_0xc511b1('0x18')][_0xc511b1('0xd')](_0x183912,{'force':!![]})[_0xc511b1('0x1c')](function(){const _0x404306=_0xc511b1;logger[_0x404306('0x1b')](_0x404306('0x7'),_0x183912);})[_0xc511b1('0x2')](function(_0x1f8969){const _0x1f9f33=_0xc511b1;logger[_0x1f9f33('0x1b')](JSON[_0x1f9f33('0xa')](_0x1f8969));});});},Migration['prototype'][_0x10803f('0x4')]=function(_0x1d05c4,_0x2b8aef,_0x53d597){const _0x4fea15=_0x10803f,_0x4d42ca=this;this[_0x4fea15('0x16')][_0x4fea15('0x3')](function(){const _0x8c4e67=_0x4fea15;return _0x4d42ca[_0x8c4e67('0x18')][_0x8c4e67('0x4')](_0x1d05c4,_0x2b8aef,{'indexName':_0x53d597})[_0x8c4e67('0x1c')](function(){const _0x5d4cdd=_0x8c4e67;logger[_0x5d4cdd('0x1b')](_0x5d4cdd('0x11'),_0x1d05c4,_0x2b8aef[_0x5d4cdd('0x6')](','),_0x53d597);})[_0x8c4e67('0x2')](function(_0x137e8a){const _0x2ace48=_0x8c4e67;logger[_0x2ace48('0x1b')](JSON[_0x2ace48('0xa')](_0x137e8a));});});},Migration['prototype'][_0x10803f('0x19')]=function(_0x46a234){const _0x538c6b=_0x10803f,_0x202b97=this;this['sequence'][_0x538c6b('0x3')](function(){const _0x268294=_0x538c6b;return _0x202b97[_0x268294('0x18')][_0x268294('0x1')][_0x268294('0x19')](_0x46a234)[_0x268294('0x1c')](function(){const _0x25e998=_0x268294;logger[_0x25e998('0x1b')](_0x25e998('0x17'),_0x46a234);})[_0x268294('0x2')](function(_0x1d58e4){const _0x487bd5=_0x268294;logger[_0x487bd5('0x1b')](JSON[_0x487bd5('0xa')](_0x1d58e4));});});},Migration[_0x10803f('0x15')][_0x10803f('0x1e')]=function(_0x426b3c,_0x24618d){const _0x7ed44f=_0x10803f,_0x511e16=this;this[_0x7ed44f('0x16')][_0x7ed44f('0x3')](function(){const _0x55edf0=_0x7ed44f;return _0x511e16[_0x55edf0('0x18')][_0x55edf0('0x1e')](_0x426b3c,_0x24618d)['then'](function(){const _0x59c6ab=_0x55edf0;logger[_0x59c6ab('0x1b')]('Removed\x20column\x20%s\x20from\x20%s',_0x24618d,_0x426b3c);})[_0x55edf0('0x2')](function(_0x4dfc48){const _0x3d1ac3=_0x55edf0;logger[_0x3d1ac3('0x1b')](util[_0x3d1ac3('0x5')](_0x4dfc48,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x3055ea){const _0x3be7cf=_0x10803f;this[_0x3be7cf('0x16')][_0x3be7cf('0x3')](function(){return _0x3055ea();});},module['exports']={'up':function(_0x48d43a,_0x1751f0){return new Promise(function(_0x2512f3){const _0x16eea6=a916_0x4ebb,_0x7f7b05=new Migration(_0x48d43a);_0x7f7b05['addColumn'](_0x16eea6('0x1d'),'enableUncompleteSave',{'type':_0x1751f0[_0x16eea6('0x14')],'defaultValue':!![]}),_0x7f7b05[_0x16eea6('0xc')](_0x16eea6('0x8'),'completed',{'type':_0x1751f0[_0x16eea6('0x14')],'defaultValue':![]}),_0x7f7b05[_0x16eea6('0x19')]('UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true'),_0x7f7b05[_0x16eea6('0xc')](_0x16eea6('0x9'),_0x16eea6('0x0'),{'type':_0x1751f0[_0x16eea6('0x12')]}),_0x7f7b05[_0x16eea6('0xc')]('sms_messages',_0x16eea6('0x0'),{'type':_0x1751f0[_0x16eea6('0x12')]}),_0x7f7b05['final'](_0x2512f3);});},'down':function(){}};
\ No newline at end of file