Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.37.js
index aa24aff..142ee00 100644 (file)
@@ -1 +1 @@
-const a916_0x10d2=['queryInterface','sequelize','query','completed','removeColumn','tail','STRING','dropTable','inspect','changeColumn','util','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','phone','finally','enqueue','enableUncompleteSave','migration','final','report_jscripty_sessions','jscripty_projects','sequence','sms_interactions','query\x20%s','then','BOOLEAN','sms_messages','info','catch','addIndex','stringify','addColumn','join','exports','prototype','addIndex\x20%s\x20%s\x20%s'];(function(_0x1626cc,_0x10d20f){const _0x38d669=function(_0x594b42){while(--_0x594b42){_0x1626cc['push'](_0x1626cc['shift']());}};_0x38d669(++_0x10d20f);}(a916_0x10d2,0x10e));const a916_0x38d6=function(_0x1626cc,_0x10d20f){_0x1626cc=_0x1626cc-0x0;let _0x38d669=a916_0x10d2[_0x1626cc];return _0x38d669;};const _0x208624=a916_0x38d6;'use strict';const logger=require('../config/logger')(_0x208624('0x1a')),util=require(_0x208624('0x14')),Sequence=function(){};Sequence[_0x208624('0x8')][_0x208624('0x18')]=function(_0x594b42){const _0x440a2e=_0x208624;this[_0x440a2e('0xf')]=this[_0x440a2e('0xf')]?this[_0x440a2e('0xf')][_0x440a2e('0x17')](_0x594b42):_0x594b42();};const Migration=function(_0x2cc009){const _0x5f1b84=_0x208624;this[_0x5f1b84('0xa')]=_0x2cc009,this[_0x5f1b84('0x1e')]=new Sequence();};Migration[_0x208624('0x8')][_0x208624('0x13')]=function(_0x4b63fe,_0x474841,_0x572756){const _0x49ff33=_0x208624,_0x40ddab=this;this[_0x49ff33('0x1e')][_0x49ff33('0x18')](function(){const _0x369129=_0x49ff33;return _0x40ddab[_0x369129('0xa')][_0x369129('0x13')](_0x4b63fe,_0x474841,_0x572756)[_0x369129('0x21')](function(){const _0x312594=_0x369129;logger[_0x312594('0x1')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x474841,_0x4b63fe);})[_0x369129('0x2')](function(_0xca6a94){const _0x20fe75=_0x369129;logger[_0x20fe75('0x1')](JSON[_0x20fe75('0x4')](_0xca6a94));});});},Migration['prototype'][_0x208624('0x5')]=function(_0x326d36,_0x21d08c,_0x9e98dc){const _0xc81bfe=_0x208624,_0x2a5e84=this;this[_0xc81bfe('0x1e')]['enqueue'](function(){const _0x384235=_0xc81bfe;return _0x2a5e84[_0x384235('0xa')][_0x384235('0x5')](_0x326d36,_0x21d08c,_0x9e98dc)[_0x384235('0x21')](function(){const _0x41a1eb=_0x384235;logger[_0x41a1eb('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0x21d08c,_0x326d36);})['catch'](function(_0xac982c){const _0x2b4446=_0x384235;logger[_0x2b4446('0x1')](JSON[_0x2b4446('0x4')](_0xac982c));});});},Migration[_0x208624('0x8')][_0x208624('0x11')]=function(_0x45bdb6){const _0x424f8a=_0x208624,_0x26436b=this;this[_0x424f8a('0x1e')][_0x424f8a('0x18')](function(){return _0x26436b['queryInterface']['dropTable'](_0x45bdb6,{'force':!![]})['then'](function(){const _0x124bb9=a916_0x38d6;logger[_0x124bb9('0x1')]('table\x20dropped\x20%s',_0x45bdb6);})['catch'](function(_0x3cd848){const _0x4cffae=a916_0x38d6;logger['info'](JSON[_0x4cffae('0x4')](_0x3cd848));});});},Migration[_0x208624('0x8')]['addIndex']=function(_0x8061db,_0x20a40e,_0x583f58){const _0x11c08c=_0x208624,_0x1bb2ff=this;this[_0x11c08c('0x1e')]['enqueue'](function(){const _0x12ae04=_0x11c08c;return _0x1bb2ff[_0x12ae04('0xa')][_0x12ae04('0x3')](_0x8061db,_0x20a40e,{'indexName':_0x583f58})[_0x12ae04('0x21')](function(){const _0x283eca=_0x12ae04;logger[_0x283eca('0x1')](_0x283eca('0x9'),_0x8061db,_0x20a40e[_0x283eca('0x6')](','),_0x583f58);})['catch'](function(_0x397adb){const _0x2f75e4=_0x12ae04;logger[_0x2f75e4('0x1')](JSON['stringify'](_0x397adb));});});},Migration[_0x208624('0x8')][_0x208624('0xc')]=function(_0x19d654){const _0x48236b=this;this['sequence']['enqueue'](function(){const _0x340c43=a916_0x38d6;return _0x48236b[_0x340c43('0xa')][_0x340c43('0xb')]['query'](_0x19d654)[_0x340c43('0x21')](function(){const _0x26c180=_0x340c43;logger[_0x26c180('0x1')](_0x26c180('0x20'),_0x19d654);})['catch'](function(_0x146671){const _0x5aa29c=_0x340c43;logger[_0x5aa29c('0x1')](JSON[_0x5aa29c('0x4')](_0x146671));});});},Migration['prototype']['removeColumn']=function(_0x2a5395,_0x9d77a2){const _0x1be2b2=_0x208624,_0x1b5d73=this;this[_0x1be2b2('0x1e')][_0x1be2b2('0x18')](function(){const _0x33a226=_0x1be2b2;return _0x1b5d73[_0x33a226('0xa')][_0x33a226('0xe')](_0x2a5395,_0x9d77a2)[_0x33a226('0x21')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x9d77a2,_0x2a5395);})[_0x33a226('0x2')](function(_0x35cc2b){const _0x3eeae1=_0x33a226;logger[_0x3eeae1('0x1')](util[_0x3eeae1('0x12')](_0x35cc2b,{'showHidden':![],'depth':null}));});});},Migration[_0x208624('0x8')][_0x208624('0x1b')]=function(_0x5a9944){const _0x36d819=_0x208624;this[_0x36d819('0x1e')][_0x36d819('0x18')](function(){return _0x5a9944();});},module[_0x208624('0x7')]={'up':function(_0xac8168,_0x25ca6c){return new Promise(function(_0x47de23){const _0x2a6949=a916_0x38d6,_0x35d2fb=new Migration(_0xac8168);_0x35d2fb['addColumn'](_0x2a6949('0x1d'),_0x2a6949('0x19'),{'type':_0x25ca6c[_0x2a6949('0x22')],'defaultValue':!![]}),_0x35d2fb[_0x2a6949('0x5')](_0x2a6949('0x1c'),_0x2a6949('0xd'),{'type':_0x25ca6c[_0x2a6949('0x22')],'defaultValue':![]}),_0x35d2fb[_0x2a6949('0xc')](_0x2a6949('0x15')),_0x35d2fb[_0x2a6949('0x5')](_0x2a6949('0x1f'),_0x2a6949('0x16'),{'type':_0x25ca6c['STRING']}),_0x35d2fb[_0x2a6949('0x5')](_0x2a6949('0x0'),_0x2a6949('0x16'),{'type':_0x25ca6c[_0x2a6949('0x10')]}),_0x35d2fb[_0x2a6949('0x1b')](_0x47de23);});},'down':function(){}};
\ No newline at end of file
+const a916_0x4f9e=['enqueue','addColumn','query','stringify','util','info','report_jscripty_sessions','then','sequence','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','queryInterface','migration','Removed\x20column\x20%s\x20from\x20%s','STRING','sms_messages','join','dropTable','query\x20%s','finally','removeColumn','addIndex','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','phone','inspect','final','addIndex\x20%s\x20%s\x20%s','catch','exports','sms_interactions','jscripty_projects','prototype','BOOLEAN','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','sequelize','changeColumn'];(function(_0x2abfc9,_0x4f9e47){const _0x5cfb7e=function(_0x41b182){while(--_0x41b182){_0x2abfc9['push'](_0x2abfc9['shift']());}};_0x5cfb7e(++_0x4f9e47);}(a916_0x4f9e,0x131));const a916_0x5cfb=function(_0x2abfc9,_0x4f9e47){_0x2abfc9=_0x2abfc9-0x0;let _0x5cfb7e=a916_0x4f9e[_0x2abfc9];return _0x5cfb7e;};const _0x4fa363=a916_0x5cfb;'use strict';const logger=require('../config/logger')(_0x4fa363('0x3')),util=require(_0x4fa363('0x20')),Sequence=function(){};Sequence[_0x4fa363('0x17')][_0x4fa363('0x1c')]=function(_0x41b182){const _0x2758dd=_0x4fa363;this['tail']=this[_0x2758dd('0xd')]?this[_0x2758dd('0xd')][_0x2758dd('0xa')](_0x41b182):_0x41b182();};const Migration=function(_0x33aac9){const _0x2501bc=_0x4fa363;this[_0x2501bc('0x2')]=_0x33aac9,this[_0x2501bc('0x24')]=new Sequence();};Migration[_0x4fa363('0x17')][_0x4fa363('0x1b')]=function(_0x2ff7f9,_0x3c2fd5,_0x5ad000){const _0x46979d=_0x4fa363,_0x559a8d=this;this[_0x46979d('0x24')][_0x46979d('0x1c')](function(){const _0x35b402=_0x46979d;return _0x559a8d[_0x35b402('0x2')][_0x35b402('0x1b')](_0x2ff7f9,_0x3c2fd5,_0x5ad000)['then'](function(){const _0x383de6=_0x35b402;logger[_0x383de6('0x21')](_0x383de6('0xe'),_0x3c2fd5,_0x2ff7f9);})[_0x35b402('0x13')](function(_0x10d4c7){const _0x59fdec=_0x35b402;logger[_0x59fdec('0x21')](JSON['stringify'](_0x10d4c7));});});},Migration['prototype'][_0x4fa363('0x1d')]=function(_0x4a9131,_0x2c8b93,_0x49d038){const _0x974729=_0x4fa363,_0x147833=this;this[_0x974729('0x24')][_0x974729('0x1c')](function(){const _0x1f450b=_0x974729;return _0x147833['queryInterface'][_0x1f450b('0x1d')](_0x4a9131,_0x2c8b93,_0x49d038)[_0x1f450b('0x23')](function(){const _0x538441=_0x1f450b;logger[_0x538441('0x21')](_0x538441('0x0'),_0x2c8b93,_0x4a9131);})['catch'](function(_0x1fda5c){const _0x4dcb9a=_0x1f450b;logger[_0x4dcb9a('0x21')](JSON['stringify'](_0x1fda5c));});});},Migration['prototype']['dropTable']=function(_0x1ba353){const _0x4499fd=_0x4fa363,_0x14a064=this;this[_0x4499fd('0x24')]['enqueue'](function(){const _0x3f2d7b=_0x4499fd;return _0x14a064[_0x3f2d7b('0x2')][_0x3f2d7b('0x8')](_0x1ba353,{'force':!![]})['then'](function(){const _0x46fbc8=_0x3f2d7b;logger[_0x46fbc8('0x21')](_0x46fbc8('0x1'),_0x1ba353);})[_0x3f2d7b('0x13')](function(_0x1595a2){const _0xb689fd=_0x3f2d7b;logger[_0xb689fd('0x21')](JSON[_0xb689fd('0x1f')](_0x1595a2));});});},Migration[_0x4fa363('0x17')][_0x4fa363('0xc')]=function(_0x242021,_0x2f7e31,_0x20eaff){const _0x3ed2de=this;this['sequence']['enqueue'](function(){const _0x183bad=a916_0x5cfb;return _0x3ed2de['queryInterface'][_0x183bad('0xc')](_0x242021,_0x2f7e31,{'indexName':_0x20eaff})[_0x183bad('0x23')](function(){const _0x5c55ad=_0x183bad;logger[_0x5c55ad('0x21')](_0x5c55ad('0x12'),_0x242021,_0x2f7e31[_0x5c55ad('0x7')](','),_0x20eaff);})[_0x183bad('0x13')](function(_0x1b538c){const _0x3d245b=_0x183bad;logger[_0x3d245b('0x21')](JSON[_0x3d245b('0x1f')](_0x1b538c));});});},Migration[_0x4fa363('0x17')][_0x4fa363('0x1e')]=function(_0x455957){const _0x4ee4d6=_0x4fa363,_0x50cf99=this;this[_0x4ee4d6('0x24')][_0x4ee4d6('0x1c')](function(){const _0x1c98f7=_0x4ee4d6;return _0x50cf99['queryInterface'][_0x1c98f7('0x1a')][_0x1c98f7('0x1e')](_0x455957)[_0x1c98f7('0x23')](function(){const _0x2c50c2=_0x1c98f7;logger[_0x2c50c2('0x21')](_0x2c50c2('0x9'),_0x455957);})[_0x1c98f7('0x13')](function(_0x5b9f5a){const _0x1973b0=_0x1c98f7;logger[_0x1973b0('0x21')](JSON[_0x1973b0('0x1f')](_0x5b9f5a));});});},Migration[_0x4fa363('0x17')][_0x4fa363('0xb')]=function(_0x1dabfa,_0x4b042d){const _0x4aa081=_0x4fa363,_0x15cc2c=this;this[_0x4aa081('0x24')]['enqueue'](function(){const _0x465377=_0x4aa081;return _0x15cc2c['queryInterface']['removeColumn'](_0x1dabfa,_0x4b042d)[_0x465377('0x23')](function(){const _0x447f4f=_0x465377;logger[_0x447f4f('0x21')](_0x447f4f('0x4'),_0x4b042d,_0x1dabfa);})['catch'](function(_0x130420){const _0x21aa7d=_0x465377;logger[_0x21aa7d('0x21')](util[_0x21aa7d('0x10')](_0x130420,{'showHidden':![],'depth':null}));});});},Migration[_0x4fa363('0x17')][_0x4fa363('0x11')]=function(_0x161796){const _0x2e87fa=_0x4fa363;this[_0x2e87fa('0x24')]['enqueue'](function(){return _0x161796();});},module[_0x4fa363('0x14')]={'up':function(_0x29729c,_0x3a5525){return new Promise(function(_0x692e41){const _0x581a69=a916_0x5cfb,_0x29d2c0=new Migration(_0x29729c);_0x29d2c0[_0x581a69('0x1d')](_0x581a69('0x16'),'enableUncompleteSave',{'type':_0x3a5525[_0x581a69('0x18')],'defaultValue':!![]}),_0x29d2c0[_0x581a69('0x1d')](_0x581a69('0x22'),'completed',{'type':_0x3a5525[_0x581a69('0x18')],'defaultValue':![]}),_0x29d2c0[_0x581a69('0x1e')](_0x581a69('0x19')),_0x29d2c0['addColumn'](_0x581a69('0x15'),_0x581a69('0xf'),{'type':_0x3a5525[_0x581a69('0x5')]}),_0x29d2c0['addColumn'](_0x581a69('0x6'),'phone',{'type':_0x3a5525[_0x581a69('0x5')]}),_0x29d2c0[_0x581a69('0x11')](_0x692e41);});},'down':function(){}};
\ No newline at end of file