Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.83.js
index 8b59537..89688c1 100644 (file)
@@ -1 +1 @@
-const a1123_0xf7b9=['ENUM','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','inspect','final','removeColumn','connectel','stringify','clicksend','dropTable','query','renameColumn','removeIndex\x20%s\x20%s','enqueue','type','addColumn','table\x20dropped\x20%s','removeIndex','clickatell','fb_data','prototype','../config/logger','queryInterface','INTEGER','info','tail','Added\x20column\x20%s\x20to\x20%s','changeColumn','query\x20%s','sequence','cm_contacts','exports','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','addIndex','Removed\x20column\x20%s\x20from\x20%s','baseUrl','migration','OwnerId','sms_accounts','finally','twilio','STRING','sequelize','csc','plivo','Changed\x20column\x20%s\x20in\x20table\x20%s','util','then','cm_hopper','join'];(function(_0x226173,_0x5a3188){const _0xf7b97b=function(_0x59ca2d){while(--_0x59ca2d){_0x226173['push'](_0x226173['shift']());}};_0xf7b97b(++_0x5a3188);}(a1123_0xf7b9,0x1a7));const a1123_0x59ca=function(_0x226173,_0x5a3188){_0x226173=_0x226173-0x13f;let _0xf7b97b=a1123_0xf7b9[_0x226173];return _0xf7b97b;};const a1123_0x2125cd=a1123_0x59ca;'use strict';const util=require(a1123_0x2125cd(0x15f)),logger=require(a1123_0x2125cd(0x144))(a1123_0x2125cd(0x155)),Sequence=function(){};Sequence[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x16f)]=function(_0x3422e1){const _0x2f0140=a1123_0x2125cd;this[_0x2f0140(0x148)]=this[_0x2f0140(0x148)]?this['tail'][_0x2f0140(0x158)](_0x3422e1):_0x3422e1();};const Migration=function(_0x5c3906){const _0x3c2e80=a1123_0x2125cd;this[_0x3c2e80(0x145)]=_0x5c3906,this[_0x3c2e80(0x14c)]=new Sequence();};Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x14a)]=function(_0x4dc71f,_0x450b8e,_0x5a2977){const _0x4e8f66=a1123_0x2125cd,_0x26c450=this;this[_0x4e8f66(0x14c)][_0x4e8f66(0x16f)](function(){const _0x6cd612=_0x4e8f66;return _0x26c450['queryInterface'][_0x6cd612(0x14a)](_0x4dc71f,_0x450b8e,_0x5a2977)[_0x6cd612(0x160)](function(){const _0x4dfcd7=_0x6cd612;logger['info'](_0x4dfcd7(0x15e),_0x450b8e,_0x4dc71f);})[_0x6cd612(0x151)](function(_0x324406){logger['info'](JSON['stringify'](_0x324406));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x171)]=function(_0xadf471,_0x5d06a7,_0x3e1118){const _0x84ff4f=a1123_0x2125cd,_0x135d28=this;this[_0x84ff4f(0x14c)][_0x84ff4f(0x16f)](function(){const _0x1bfcbf=_0x84ff4f;return _0x135d28[_0x1bfcbf(0x145)][_0x1bfcbf(0x171)](_0xadf471,_0x5d06a7,_0x3e1118)[_0x1bfcbf(0x160)](function(){const _0x40a299=_0x1bfcbf;logger[_0x40a299(0x147)](_0x40a299(0x149),_0x5d06a7,_0xadf471);})['catch'](function(_0x6657dc){const _0x462370=_0x1bfcbf;logger[_0x462370(0x147)](JSON[_0x462370(0x169)](_0x6657dc));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x16b)]=function(_0x3e3901){const _0x38dc1a=a1123_0x2125cd,_0x1c6a24=this;this[_0x38dc1a(0x14c)]['enqueue'](function(){const _0x2a08c6=_0x38dc1a;return _0x1c6a24[_0x2a08c6(0x145)][_0x2a08c6(0x16b)](_0x3e3901,{'force':!![]})[_0x2a08c6(0x160)](function(){const _0x3970b6=_0x2a08c6;logger[_0x3970b6(0x147)](_0x3970b6(0x13f),_0x3e3901);})['catch'](function(_0x46afea){const _0x510341=_0x2a08c6;logger['info'](JSON[_0x510341(0x169)](_0x46afea));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x152)]=function(_0x2984e5,_0x4a04d4,_0x2ce2a2){const _0x56cffa=a1123_0x2125cd,_0x5a4620=this;this[_0x56cffa(0x14c)][_0x56cffa(0x16f)](function(){const _0x47a8bc=_0x56cffa;return _0x5a4620[_0x47a8bc(0x145)][_0x47a8bc(0x152)](_0x2984e5,_0x4a04d4,{'indexName':_0x2ce2a2})['then'](function(){const _0x41f644=_0x47a8bc;logger[_0x41f644(0x147)](_0x41f644(0x14f),_0x2984e5,_0x4a04d4[_0x41f644(0x162)](','),_0x2ce2a2);})[_0x47a8bc(0x151)](function(_0x24d50b){const _0x35ef61=_0x47a8bc;logger[_0x35ef61(0x147)](JSON['stringify'](_0x24d50b));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x140)]=function(_0x3b3d0b,_0x2cbdcd){const _0x441f79=a1123_0x2125cd,_0x32d900=this;this[_0x441f79(0x14c)][_0x441f79(0x16f)](function(){const _0x4a22dd=_0x441f79;return _0x32d900['queryInterface'][_0x4a22dd(0x140)](_0x3b3d0b,_0x2cbdcd)[_0x4a22dd(0x160)](function(){const _0x472df2=_0x4a22dd;logger['info'](_0x472df2(0x16e),_0x3b3d0b,_0x2cbdcd);})[_0x4a22dd(0x151)](function(_0x179dec){const _0x3cab58=_0x4a22dd;logger[_0x3cab58(0x147)](JSON[_0x3cab58(0x169)](_0x179dec));});});},Migration['prototype'][a1123_0x2125cd(0x16c)]=function(_0x399b8e){const _0x1aa624=a1123_0x2125cd,_0x99f67c=this;this[_0x1aa624(0x14c)][_0x1aa624(0x16f)](function(){const _0x6be0cd=_0x1aa624;return _0x99f67c[_0x6be0cd(0x145)][_0x6be0cd(0x15b)][_0x6be0cd(0x16c)](_0x399b8e)[_0x6be0cd(0x160)](function(){const _0x30aec4=_0x6be0cd;logger[_0x30aec4(0x147)](_0x30aec4(0x14b),_0x399b8e);})[_0x6be0cd(0x151)](function(_0x5dd30b){const _0x49bc7d=_0x6be0cd;logger[_0x49bc7d(0x147)](JSON[_0x49bc7d(0x169)](_0x5dd30b));});});},Migration['prototype']['removeColumn']=function(_0x407756,_0x5158bb){const _0xbdd728=this;this['sequence']['enqueue'](function(){const _0x34bea6=a1123_0x59ca;return _0xbdd728[_0x34bea6(0x145)][_0x34bea6(0x167)](_0x407756,_0x5158bb)[_0x34bea6(0x160)](function(){const _0x598a5c=_0x34bea6;logger['info'](_0x598a5c(0x153),_0x5158bb,_0x407756);})[_0x34bea6(0x151)](function(_0x2ff8e1){const _0x1f9336=_0x34bea6;logger[_0x1f9336(0x147)](util[_0x1f9336(0x165)](_0x2ff8e1,{'showHidden':![],'depth':null}));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x16d)]=function(_0x1ff60b,_0x35f724,_0x4e0a13){const _0x31111b=this;this['sequence']['enqueue'](function(){const _0x3a6718=a1123_0x59ca;return _0x31111b[_0x3a6718(0x145)]['renameColumn'](_0x1ff60b,_0x35f724,_0x4e0a13)[_0x3a6718(0x160)](function(){const _0x27d009=_0x3a6718;logger[_0x27d009(0x147)](_0x27d009(0x150),_0x35f724,_0x4e0a13,_0x1ff60b);})[_0x3a6718(0x151)](function(_0x4ac0f7){const _0x283856=_0x3a6718;logger['info'](util[_0x283856(0x165)](_0x4ac0f7,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1123_0x2125cd(0x166)]=function(_0x9ab61c){const _0x5debea=a1123_0x2125cd;this[_0x5debea(0x14c)][_0x5debea(0x16f)](function(){return _0x9ab61c();});},module[a1123_0x2125cd(0x14e)]={'up':function(_0x4f9348,_0x40b2d4){return new Promise(function(_0x568545){const _0x2b3e6b=a1123_0x59ca,_0x3d9557=new Migration(_0x4f9348);_0x3d9557[_0x2b3e6b(0x171)](_0x2b3e6b(0x161),_0x2b3e6b(0x156),{'type':_0x40b2d4[_0x2b3e6b(0x146)](0xb)}),_0x3d9557['query'](_0x2b3e6b(0x164)),_0x3d9557['addColumn'](_0x2b3e6b(0x14d),_0x2b3e6b(0x142),{'type':_0x40b2d4[_0x2b3e6b(0x15a)]}),_0x3d9557[_0x2b3e6b(0x14a)]('sms_accounts',_0x2b3e6b(0x170),{'type':_0x40b2d4[_0x2b3e6b(0x163)](_0x2b3e6b(0x159),'skebby',_0x2b3e6b(0x168),_0x2b3e6b(0x16a),_0x2b3e6b(0x15d),_0x2b3e6b(0x141),_0x2b3e6b(0x15c),'infobip')}),_0x3d9557[_0x2b3e6b(0x171)](_0x2b3e6b(0x157),_0x2b3e6b(0x154),{'type':_0x40b2d4['STRING']}),_0x3d9557[_0x2b3e6b(0x171)]('report_queue','queuecallerenterreason',{'type':_0x40b2d4['INTEGER'],'defaultValue':0x0}),_0x3d9557[_0x2b3e6b(0x166)](_0x568545);});},'down':function(){}};
\ No newline at end of file
+const a1126_0x20e4=['finally','STRING','catch','addColumn','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','../config/logger','exports','report_queue','tail','queuecallerenterreason','inspect','skebby','final','migration','cm_contacts','cm_hopper','infobip','fb_data','clickatell','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','queryInterface','query\x20%s','then','join','addIndex','sms_accounts','baseUrl','sequelize','stringify','dropTable','twilio','enqueue','removeColumn','connectel','changeColumn','query','renameColumn','util','removeIndex','INTEGER','Added\x20column\x20%s\x20to\x20%s','sequence','prototype','Removed\x20column\x20%s\x20from\x20%s','info'];(function(_0x4d2bc6,_0x354a89){const _0x20e47f=function(_0x5e6d1a){while(--_0x5e6d1a){_0x4d2bc6['push'](_0x4d2bc6['shift']());}};_0x20e47f(++_0x354a89);}(a1126_0x20e4,0x8a));const a1126_0x5e6d=function(_0x4d2bc6,_0x354a89){_0x4d2bc6=_0x4d2bc6-0x74;let _0x20e47f=a1126_0x20e4[_0x4d2bc6];return _0x20e47f;};const a1126_0x16675c=a1126_0x5e6d;'use strict';const util=require(a1126_0x16675c(0x9a)),logger=require(a1126_0x16675c(0x7a))(a1126_0x16675c(0x82)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x50fd85){const _0x55f38d=a1126_0x16675c;this[_0x55f38d(0x7d)]=this[_0x55f38d(0x7d)]?this[_0x55f38d(0x7d)][_0x55f38d(0x74)](_0x50fd85):_0x50fd85();};const Migration=function(_0x241632){const _0x1a6328=a1126_0x16675c;this[_0x1a6328(0x89)]=_0x241632,this[_0x1a6328(0x9e)]=new Sequence();};Migration[a1126_0x16675c(0x9f)][a1126_0x16675c(0x97)]=function(_0x30f897,_0x17f7c0,_0x25df1a){const _0x3bded9=a1126_0x16675c,_0xc82e57=this;this[_0x3bded9(0x9e)][_0x3bded9(0x94)](function(){const _0x48c0bf=_0x3bded9;return _0xc82e57[_0x48c0bf(0x89)][_0x48c0bf(0x97)](_0x30f897,_0x17f7c0,_0x25df1a)[_0x48c0bf(0x8b)](function(){const _0x313f1f=_0x48c0bf;logger[_0x313f1f(0xa1)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x17f7c0,_0x30f897);})['catch'](function(_0x706f1b){const _0x290c8a=_0x48c0bf;logger[_0x290c8a(0xa1)](JSON[_0x290c8a(0x91)](_0x706f1b));});});},Migration[a1126_0x16675c(0x9f)][a1126_0x16675c(0x77)]=function(_0x4df500,_0x45dddd,_0x300a70){const _0x1e08c3=a1126_0x16675c,_0x1ef0b8=this;this[_0x1e08c3(0x9e)][_0x1e08c3(0x94)](function(){const _0x1074ce=_0x1e08c3;return _0x1ef0b8[_0x1074ce(0x89)][_0x1074ce(0x77)](_0x4df500,_0x45dddd,_0x300a70)['then'](function(){const _0x12e28d=_0x1074ce;logger[_0x12e28d(0xa1)](_0x12e28d(0x9d),_0x45dddd,_0x4df500);})[_0x1074ce(0x76)](function(_0x295429){const _0x2da2c4=_0x1074ce;logger['info'](JSON[_0x2da2c4(0x91)](_0x295429));});});},Migration['prototype']['dropTable']=function(_0x4a4966){const _0xebf996=a1126_0x16675c,_0x3440c5=this;this['sequence'][_0xebf996(0x94)](function(){const _0x160626=_0xebf996;return _0x3440c5[_0x160626(0x89)][_0x160626(0x92)](_0x4a4966,{'force':!![]})[_0x160626(0x8b)](function(){const _0x4f5fd5=_0x160626;logger[_0x4f5fd5(0xa1)](_0x4f5fd5(0x78),_0x4a4966);})[_0x160626(0x76)](function(_0x365c6d){const _0x2dfaa7=_0x160626;logger[_0x2dfaa7(0xa1)](JSON[_0x2dfaa7(0x91)](_0x365c6d));});});},Migration[a1126_0x16675c(0x9f)]['addIndex']=function(_0x4eed98,_0x45a6df,_0x22e3cc){const _0x45c9d0=a1126_0x16675c,_0xe7e1a1=this;this[_0x45c9d0(0x9e)][_0x45c9d0(0x94)](function(){const _0x1f8364=_0x45c9d0;return _0xe7e1a1[_0x1f8364(0x89)][_0x1f8364(0x8d)](_0x4eed98,_0x45a6df,{'indexName':_0x22e3cc})[_0x1f8364(0x8b)](function(){const _0x562163=_0x1f8364;logger[_0x562163(0xa1)]('addIndex\x20%s\x20%s\x20%s',_0x4eed98,_0x45a6df[_0x562163(0x8c)](','),_0x22e3cc);})[_0x1f8364(0x76)](function(_0x293896){const _0x1dc8dc=_0x1f8364;logger['info'](JSON[_0x1dc8dc(0x91)](_0x293896));});});},Migration[a1126_0x16675c(0x9f)][a1126_0x16675c(0x9b)]=function(_0x24de72,_0x1a157b){const _0x223ecf=a1126_0x16675c,_0x31ff44=this;this[_0x223ecf(0x9e)][_0x223ecf(0x94)](function(){const _0x35c4c1=_0x223ecf;return _0x31ff44[_0x35c4c1(0x89)][_0x35c4c1(0x9b)](_0x24de72,_0x1a157b)[_0x35c4c1(0x8b)](function(){const _0x3a5989=_0x35c4c1;logger['info'](_0x3a5989(0x79),_0x24de72,_0x1a157b);})['catch'](function(_0x4e8f15){const _0x221663=_0x35c4c1;logger[_0x221663(0xa1)](JSON['stringify'](_0x4e8f15));});});},Migration[a1126_0x16675c(0x9f)]['query']=function(_0x518748){const _0x460f7e=a1126_0x16675c,_0x59f738=this;this[_0x460f7e(0x9e)]['enqueue'](function(){const _0x8a0823=_0x460f7e;return _0x59f738[_0x8a0823(0x89)][_0x8a0823(0x90)][_0x8a0823(0x98)](_0x518748)['then'](function(){const _0x34d19f=_0x8a0823;logger['info'](_0x34d19f(0x8a),_0x518748);})[_0x8a0823(0x76)](function(_0x4f1278){const _0x11ad62=_0x8a0823;logger[_0x11ad62(0xa1)](JSON[_0x11ad62(0x91)](_0x4f1278));});});},Migration[a1126_0x16675c(0x9f)]['removeColumn']=function(_0xc1bc88,_0x456049){const _0x4ff0b5=a1126_0x16675c,_0xb45762=this;this[_0x4ff0b5(0x9e)][_0x4ff0b5(0x94)](function(){const _0x2cdc69=_0x4ff0b5;return _0xb45762[_0x2cdc69(0x89)][_0x2cdc69(0x95)](_0xc1bc88,_0x456049)[_0x2cdc69(0x8b)](function(){const _0x101832=_0x2cdc69;logger['info'](_0x101832(0xa0),_0x456049,_0xc1bc88);})['catch'](function(_0x2d9250){const _0x2c203b=_0x2cdc69;logger[_0x2c203b(0xa1)](util[_0x2c203b(0x7f)](_0x2d9250,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1126_0x16675c(0x99)]=function(_0x14b3e0,_0x3c5262,_0x4b2552){const _0x2556e4=a1126_0x16675c,_0x231333=this;this[_0x2556e4(0x9e)][_0x2556e4(0x94)](function(){const _0x21621a=_0x2556e4;return _0x231333['queryInterface'][_0x21621a(0x99)](_0x14b3e0,_0x3c5262,_0x4b2552)[_0x21621a(0x8b)](function(){const _0x24e92c=_0x21621a;logger[_0x24e92c(0xa1)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3c5262,_0x4b2552,_0x14b3e0);})[_0x21621a(0x76)](function(_0x413ea5){const _0x372157=_0x21621a;logger[_0x372157(0xa1)](util['inspect'](_0x413ea5,{'showHidden':![],'depth':null}));});});},Migration[a1126_0x16675c(0x9f)][a1126_0x16675c(0x81)]=function(_0x1f872b){const _0x748897=a1126_0x16675c;this[_0x748897(0x9e)][_0x748897(0x94)](function(){return _0x1f872b();});},module[a1126_0x16675c(0x7b)]={'up':function(_0xfa61ec,_0x4a0d93){return new Promise(function(_0x127928){const _0xd20d39=a1126_0x5e6d,_0x47eceb=new Migration(_0xfa61ec);_0x47eceb[_0xd20d39(0x77)](_0xd20d39(0x84),'OwnerId',{'type':_0x4a0d93['INTEGER'](0xb)}),_0x47eceb['query'](_0xd20d39(0x88)),_0x47eceb[_0xd20d39(0x77)](_0xd20d39(0x83),_0xd20d39(0x86),{'type':_0x4a0d93[_0xd20d39(0x75)]}),_0x47eceb[_0xd20d39(0x97)](_0xd20d39(0x8e),'type',{'type':_0x4a0d93['ENUM'](_0xd20d39(0x93),_0xd20d39(0x80),_0xd20d39(0x96),'clicksend','plivo',_0xd20d39(0x87),'csc',_0xd20d39(0x85))}),_0x47eceb[_0xd20d39(0x77)](_0xd20d39(0x8e),_0xd20d39(0x8f),{'type':_0x4a0d93[_0xd20d39(0x75)]}),_0x47eceb['addColumn'](_0xd20d39(0x7c),_0xd20d39(0x7e),{'type':_0x4a0d93[_0xd20d39(0x9c)],'defaultValue':0x0}),_0x47eceb[_0xd20d39(0x81)](_0x127928);});},'down':function(){}};
\ No newline at end of file