Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.83.js
index bd28488..3f7bff3 100644 (file)
@@ -1 +1 @@
-'use strict';const a1131_0x5a94=['@config/logger','inspect','1yhMdiQ','STRING','cm_contacts','tail','then','stringify','changeColumn','finally','info','infobip','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','1MGnIUb','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','1EgtcPh','78vhCvwW','queryInterface','type','sequence','prototype','twilio','plivo','baseUrl','dropTable','517996XRxHBy','1767733zZqLKe','cm_hopper','2531332QWPcWN','queuecallerenterreason','1368437IPwwfy','sequelize','report_queue','join','final','addIndex','4088SQmWXy','query','migration','skebby','enqueue','clickatell','462249skrUTH','Added\x20column\x20%s\x20to\x20%s','684289ZGEsQZ','catch','INTEGER','sms_accounts','clicksend','OwnerId'];const a1131_0x354d=function(_0x2fb69a,_0x43b54f){_0x2fb69a=_0x2fb69a-0x180;let _0x5a944b=a1131_0x5a94[_0x2fb69a];return _0x5a944b;};const a1131_0x27cad5=a1131_0x354d;(function(_0x8b6718,_0x1e7bbb){const _0x418910=a1131_0x354d;while(!![]){try{const _0x3b3fa7=parseInt(_0x418910(0x1aa))+-parseInt(_0x418910(0x1a9))+parseInt(_0x418910(0x1ae))*parseInt(_0x418910(0x190))+-parseInt(_0x418910(0x19c))*-parseInt(_0x418910(0x188))+-parseInt(_0x418910(0x180))*parseInt(_0x418910(0x1a0))+-parseInt(_0x418910(0x186))*-parseInt(_0x418910(0x19f))+-parseInt(_0x418910(0x1ac));if(_0x3b3fa7===_0x1e7bbb)break;else _0x8b6718['push'](_0x8b6718['shift']());}catch(_0x4f2a25){_0x8b6718['push'](_0x8b6718['shift']());}}}(a1131_0x5a94,0xdf454));const util=require('util'),logger=require(a1131_0x27cad5(0x18e))(a1131_0x27cad5(0x182)),Sequence=function(){};Sequence[a1131_0x27cad5(0x1a4)][a1131_0x27cad5(0x184)]=function(_0x11fdd4){const _0x2e5f4e=a1131_0x27cad5;this[_0x2e5f4e(0x193)]=this[_0x2e5f4e(0x193)]?this[_0x2e5f4e(0x193)][_0x2e5f4e(0x197)](_0x11fdd4):_0x11fdd4();};const Migration=function(_0x240e7c){const _0x1e83a1=a1131_0x27cad5;this[_0x1e83a1(0x1a1)]=_0x240e7c,this['sequence']=new Sequence();};Migration['prototype'][a1131_0x27cad5(0x196)]=function(_0x1632ef,_0xb4911,_0x42436a){const _0x9b64d3=a1131_0x27cad5,_0x5342bf=this;this[_0x9b64d3(0x1a3)][_0x9b64d3(0x184)](function(){const _0x184328=_0x9b64d3;return _0x5342bf[_0x184328(0x1a1)][_0x184328(0x196)](_0x1632ef,_0xb4911,_0x42436a)['then'](function(){const _0x2dbee7=_0x184328;logger[_0x2dbee7(0x198)](_0x2dbee7(0x19a),_0xb4911,_0x1632ef);})[_0x184328(0x189)](function(_0x378b27){const _0x2d322b=_0x184328;logger[_0x2d322b(0x198)](JSON[_0x2d322b(0x195)](_0x378b27));});});},Migration[a1131_0x27cad5(0x1a4)]['addColumn']=function(_0xa11a10,_0x5726b1,_0x752550){const _0x2eff1b=a1131_0x27cad5,_0x492dd2=this;this[_0x2eff1b(0x1a3)]['enqueue'](function(){const _0xb3ab3e=_0x2eff1b;return _0x492dd2[_0xb3ab3e(0x1a1)]['addColumn'](_0xa11a10,_0x5726b1,_0x752550)[_0xb3ab3e(0x194)](function(){const _0x454297=_0xb3ab3e;logger[_0x454297(0x198)](_0x454297(0x187),_0x5726b1,_0xa11a10);})['catch'](function(_0x34fb27){const _0x1a079e=_0xb3ab3e;logger[_0x1a079e(0x198)](JSON[_0x1a079e(0x195)](_0x34fb27));});});},Migration['prototype'][a1131_0x27cad5(0x1a8)]=function(_0x21c9e6){const _0x45f349=a1131_0x27cad5,_0x21ed2f=this;this[_0x45f349(0x1a3)][_0x45f349(0x184)](function(){const _0xd77074=_0x45f349;return _0x21ed2f['queryInterface'][_0xd77074(0x1a8)](_0x21c9e6,{'force':!![]})[_0xd77074(0x194)](function(){const _0x492859=_0xd77074;logger[_0x492859(0x198)]('table\x20dropped\x20%s',_0x21c9e6);})[_0xd77074(0x189)](function(_0x56b16d){const _0x52fa39=_0xd77074;logger[_0x52fa39(0x198)](JSON[_0x52fa39(0x195)](_0x56b16d));});});},Migration[a1131_0x27cad5(0x1a4)][a1131_0x27cad5(0x1b3)]=function(_0x4c50af,_0x5c7ecc,_0x4013d7){const _0x2e640e=a1131_0x27cad5,_0x3bb4c0=this;this['sequence'][_0x2e640e(0x184)](function(){const _0x40363a=_0x2e640e;return _0x3bb4c0[_0x40363a(0x1a1)][_0x40363a(0x1b3)](_0x4c50af,_0x5c7ecc,{'indexName':_0x4013d7})['then'](function(){const _0x410d9a=_0x40363a;logger[_0x410d9a(0x198)]('addIndex\x20%s\x20%s\x20%s',_0x4c50af,_0x5c7ecc[_0x410d9a(0x1b1)](','),_0x4013d7);})['catch'](function(_0x463885){const _0x574c82=_0x40363a;logger[_0x574c82(0x198)](JSON['stringify'](_0x463885));});});},Migration[a1131_0x27cad5(0x1a4)]['removeIndex']=function(_0x3cb119,_0x69d356){const _0x267a6e=a1131_0x27cad5,_0x385b97=this;this[_0x267a6e(0x1a3)][_0x267a6e(0x184)](function(){const _0x4a18b6=_0x267a6e;return _0x385b97[_0x4a18b6(0x1a1)]['removeIndex'](_0x3cb119,_0x69d356)['then'](function(){const _0x1e34c6=_0x4a18b6;logger[_0x1e34c6(0x198)]('removeIndex\x20%s\x20%s',_0x3cb119,_0x69d356);})[_0x4a18b6(0x189)](function(_0x5c6e17){const _0x4111d0=_0x4a18b6;logger[_0x4111d0(0x198)](JSON[_0x4111d0(0x195)](_0x5c6e17));});});},Migration['prototype'][a1131_0x27cad5(0x181)]=function(_0x99b606){const _0xad5a94=a1131_0x27cad5,_0x4fa4ae=this;this['sequence'][_0xad5a94(0x184)](function(){const _0x58cead=_0xad5a94;return _0x4fa4ae[_0x58cead(0x1a1)][_0x58cead(0x1af)][_0x58cead(0x181)](_0x99b606)[_0x58cead(0x194)](function(){const _0x38d69a=_0x58cead;logger[_0x38d69a(0x198)]('query\x20%s',_0x99b606);})[_0x58cead(0x189)](function(_0xdcb81){const _0x3e7632=_0x58cead;logger[_0x3e7632(0x198)](JSON[_0x3e7632(0x195)](_0xdcb81));});});},Migration[a1131_0x27cad5(0x1a4)]['removeColumn']=function(_0x1c64f0,_0x2e8cca){const _0x1fa0b8=a1131_0x27cad5,_0x1948ae=this;this[_0x1fa0b8(0x1a3)][_0x1fa0b8(0x184)](function(){const _0x2f2fa6=_0x1fa0b8;return _0x1948ae['queryInterface']['removeColumn'](_0x1c64f0,_0x2e8cca)[_0x2f2fa6(0x194)](function(){const _0x1b6245=_0x2f2fa6;logger[_0x1b6245(0x198)]('Removed\x20column\x20%s\x20from\x20%s',_0x2e8cca,_0x1c64f0);})['catch'](function(_0x431d02){const _0x49dbf2=_0x2f2fa6;logger[_0x49dbf2(0x198)](util[_0x49dbf2(0x18f)](_0x431d02,{'showHidden':![],'depth':null}));});});},Migration[a1131_0x27cad5(0x1a4)][a1131_0x27cad5(0x19b)]=function(_0x1b5937,_0xcf7253,_0x19e806){const _0xc463c3=a1131_0x27cad5,_0x3515df=this;this[_0xc463c3(0x1a3)][_0xc463c3(0x184)](function(){const _0x5da766=_0xc463c3;return _0x3515df[_0x5da766(0x1a1)]['renameColumn'](_0x1b5937,_0xcf7253,_0x19e806)[_0x5da766(0x194)](function(){const _0x4ecc20=_0x5da766;logger[_0x4ecc20(0x198)](_0x4ecc20(0x19e),_0xcf7253,_0x19e806,_0x1b5937);})[_0x5da766(0x189)](function(_0x16eb8f){const _0x301614=_0x5da766;logger['info'](util[_0x301614(0x18f)](_0x16eb8f,{'showHidden':![],'depth':null}));});});},Migration[a1131_0x27cad5(0x1a4)][a1131_0x27cad5(0x1b2)]=function(_0x253973){const _0x21c144=a1131_0x27cad5;this[_0x21c144(0x1a3)]['enqueue'](function(){return _0x253973();});},module['exports']={'up':function(_0x47d8a8,_0x372424){return new Promise(function(_0x579316){const _0x5ad1bf=a1131_0x354d,_0x5865f7=new Migration(_0x47d8a8);_0x5865f7['addColumn'](_0x5ad1bf(0x1ab),_0x5ad1bf(0x18d),{'type':_0x372424[_0x5ad1bf(0x18a)](0xb)}),_0x5865f7[_0x5ad1bf(0x181)]('ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL'),_0x5865f7[_0x5ad1bf(0x19d)](_0x5ad1bf(0x192),'fb_data',{'type':_0x372424[_0x5ad1bf(0x191)]}),_0x5865f7[_0x5ad1bf(0x196)]('sms_accounts',_0x5ad1bf(0x1a2),{'type':_0x372424['ENUM'](_0x5ad1bf(0x1a5),_0x5ad1bf(0x183),'connectel',_0x5ad1bf(0x18c),_0x5ad1bf(0x1a6),_0x5ad1bf(0x185),'csc',_0x5ad1bf(0x199))}),_0x5865f7['addColumn'](_0x5ad1bf(0x18b),_0x5ad1bf(0x1a7),{'type':_0x372424[_0x5ad1bf(0x191)]}),_0x5865f7[_0x5ad1bf(0x19d)](_0x5ad1bf(0x1b0),_0x5ad1bf(0x1ad),{'type':_0x372424['INTEGER'],'defaultValue':0x0}),_0x5865f7[_0x5ad1bf(0x1b2)](_0x579316);});},'down':function(){return Promise['resolve']();}};
\ No newline at end of file
+'use strict';const a1134_0x245d=['addIndex\x20%s\x20%s\x20%s','plivo','addIndex','2BTowUq','migration','sequence','272542fVhpUt','skebby','cm_hopper','catch','inspect','1HSFJXk','queuecallerenterreason','INTEGER','addColumn','type','removeIndex','renameColumn','util','info','dropTable','176InstyN','sms_accounts','Added\x20column\x20%s\x20to\x20%s','queryInterface','table\x20dropped\x20%s','exports','7349LwnwcZ','50857dhMGYt','finally','final','@config/logger','stringify','query\x20%s','190245SGhXiw','twilio','tail','OwnerId','enqueue','then','584400UMikBn','167182dgxpEY','Removed\x20column\x20%s\x20from\x20%s','clicksend','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','infobip','548919KgEyov','removeColumn','query','STRING','changeColumn','prototype'];const a1134_0x3055=function(_0x1ea22d,_0x29b5f5){_0x1ea22d=_0x1ea22d-0xc3;let _0x245dbb=a1134_0x245d[_0x1ea22d];return _0x245dbb;};const a1134_0x5b028a=a1134_0x3055;(function(_0x1c5ac2,_0x192a62){const _0xfcf140=a1134_0x3055;while(!![]){try{const _0x3e96bb=-parseInt(_0xfcf140(0xdc))+parseInt(_0xfcf140(0xdb))+parseInt(_0xfcf140(0xd5))*parseInt(_0xfcf140(0xea))+parseInt(_0xfcf140(0xe1))+parseInt(_0xfcf140(0xed))+parseInt(_0xfcf140(0xf2))*parseInt(_0xfcf140(0xcf))+parseInt(_0xfcf140(0xc8))*-parseInt(_0xfcf140(0xce));if(_0x3e96bb===_0x192a62)break;else _0x1c5ac2['push'](_0x1c5ac2['shift']());}catch(_0x50a07b){_0x1c5ac2['push'](_0x1c5ac2['shift']());}}}(a1134_0x245d,0x5bf1a));const util=require(a1134_0x5b028a(0xc5)),logger=require(a1134_0x5b028a(0xd2))(a1134_0x5b028a(0xeb)),Sequence=function(){};Sequence[a1134_0x5b028a(0xe6)][a1134_0x5b028a(0xd9)]=function(_0x229278){const _0x52663e=a1134_0x5b028a;this[_0x52663e(0xd7)]=this['tail']?this[_0x52663e(0xd7)][_0x52663e(0xd0)](_0x229278):_0x229278();};const Migration=function(_0x320fbd){const _0x598cab=a1134_0x5b028a;this[_0x598cab(0xcb)]=_0x320fbd,this[_0x598cab(0xec)]=new Sequence();};Migration[a1134_0x5b028a(0xe6)][a1134_0x5b028a(0xe5)]=function(_0x41f13f,_0x4ff249,_0x1bc832){const _0x2eb7fe=a1134_0x5b028a,_0x283080=this;this[_0x2eb7fe(0xec)]['enqueue'](function(){const _0x3c1521=_0x2eb7fe;return _0x283080[_0x3c1521(0xcb)][_0x3c1521(0xe5)](_0x41f13f,_0x4ff249,_0x1bc832)[_0x3c1521(0xda)](function(){const _0x2d2be9=_0x3c1521;logger[_0x2d2be9(0xc6)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4ff249,_0x41f13f);})[_0x3c1521(0xf0)](function(_0x41befa){const _0x3344aa=_0x3c1521;logger[_0x3344aa(0xc6)](JSON[_0x3344aa(0xd3)](_0x41befa));});});},Migration['prototype']['addColumn']=function(_0x28c356,_0x4c8647,_0x52658b){const _0x38e53a=a1134_0x5b028a,_0x497b96=this;this[_0x38e53a(0xec)][_0x38e53a(0xd9)](function(){const _0x54dc36=_0x38e53a;return _0x497b96['queryInterface']['addColumn'](_0x28c356,_0x4c8647,_0x52658b)[_0x54dc36(0xda)](function(){const _0x25d519=_0x54dc36;logger[_0x25d519(0xc6)](_0x25d519(0xca),_0x4c8647,_0x28c356);})[_0x54dc36(0xf0)](function(_0x5da6d4){const _0x3f105f=_0x54dc36;logger['info'](JSON[_0x3f105f(0xd3)](_0x5da6d4));});});},Migration[a1134_0x5b028a(0xe6)][a1134_0x5b028a(0xc7)]=function(_0x16c818){const _0x4b00bb=a1134_0x5b028a,_0x346317=this;this[_0x4b00bb(0xec)][_0x4b00bb(0xd9)](function(){const _0x5a3b9a=_0x4b00bb;return _0x346317[_0x5a3b9a(0xcb)][_0x5a3b9a(0xc7)](_0x16c818,{'force':!![]})[_0x5a3b9a(0xda)](function(){const _0x49bd49=_0x5a3b9a;logger['info'](_0x49bd49(0xcc),_0x16c818);})[_0x5a3b9a(0xf0)](function(_0x4dc62f){const _0x17e578=_0x5a3b9a;logger['info'](JSON[_0x17e578(0xd3)](_0x4dc62f));});});},Migration[a1134_0x5b028a(0xe6)][a1134_0x5b028a(0xe9)]=function(_0x41be27,_0x478c48,_0x3f3b80){const _0x2c088b=a1134_0x5b028a,_0x554404=this;this['sequence'][_0x2c088b(0xd9)](function(){const _0x5447b7=_0x2c088b;return _0x554404[_0x5447b7(0xcb)][_0x5447b7(0xe9)](_0x41be27,_0x478c48,{'indexName':_0x3f3b80})[_0x5447b7(0xda)](function(){const _0x57c44b=_0x5447b7;logger['info'](_0x57c44b(0xe7),_0x41be27,_0x478c48['join'](','),_0x3f3b80);})[_0x5447b7(0xf0)](function(_0x3d631a){const _0x2da30d=_0x5447b7;logger[_0x2da30d(0xc6)](JSON[_0x2da30d(0xd3)](_0x3d631a));});});},Migration[a1134_0x5b028a(0xe6)][a1134_0x5b028a(0xc3)]=function(_0x1b4844,_0x3ae9de){const _0x5c410f=a1134_0x5b028a,_0x1f1a75=this;this['sequence'][_0x5c410f(0xd9)](function(){const _0x2a7254=_0x5c410f;return _0x1f1a75[_0x2a7254(0xcb)][_0x2a7254(0xc3)](_0x1b4844,_0x3ae9de)[_0x2a7254(0xda)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x1b4844,_0x3ae9de);})[_0x2a7254(0xf0)](function(_0x5cbe84){const _0x1bb83d=_0x2a7254;logger[_0x1bb83d(0xc6)](JSON[_0x1bb83d(0xd3)](_0x5cbe84));});});},Migration[a1134_0x5b028a(0xe6)][a1134_0x5b028a(0xe3)]=function(_0x15ca2e){const _0x2d7e9d=a1134_0x5b028a,_0x3e279e=this;this['sequence'][_0x2d7e9d(0xd9)](function(){const _0x539f3f=_0x2d7e9d;return _0x3e279e['queryInterface']['sequelize'][_0x539f3f(0xe3)](_0x15ca2e)[_0x539f3f(0xda)](function(){const _0x27fa8c=_0x539f3f;logger[_0x27fa8c(0xc6)](_0x27fa8c(0xd4),_0x15ca2e);})[_0x539f3f(0xf0)](function(_0x45bd64){logger['info'](JSON['stringify'](_0x45bd64));});});},Migration['prototype']['removeColumn']=function(_0x1535ab,_0x33cdd1){const _0x595e6c=a1134_0x5b028a,_0x3d2fa3=this;this[_0x595e6c(0xec)]['enqueue'](function(){const _0x376456=_0x595e6c;return _0x3d2fa3[_0x376456(0xcb)][_0x376456(0xe2)](_0x1535ab,_0x33cdd1)[_0x376456(0xda)](function(){const _0x4f0627=_0x376456;logger[_0x4f0627(0xc6)](_0x4f0627(0xdd),_0x33cdd1,_0x1535ab);})['catch'](function(_0x35acce){const _0x1d508d=_0x376456;logger[_0x1d508d(0xc6)](util['inspect'](_0x35acce,{'showHidden':![],'depth':null}));});});},Migration[a1134_0x5b028a(0xe6)][a1134_0x5b028a(0xc4)]=function(_0xd9e57,_0x191b9f,_0x351b4d){const _0x398b2b=this;this['sequence']['enqueue'](function(){const _0x5c3a62=a1134_0x3055;return _0x398b2b['queryInterface']['renameColumn'](_0xd9e57,_0x191b9f,_0x351b4d)['then'](function(){const _0x2ea46c=a1134_0x3055;logger[_0x2ea46c(0xc6)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x191b9f,_0x351b4d,_0xd9e57);})[_0x5c3a62(0xf0)](function(_0xe5e16){const _0x2a0fcb=_0x5c3a62;logger[_0x2a0fcb(0xc6)](util[_0x2a0fcb(0xf1)](_0xe5e16,{'showHidden':![],'depth':null}));});});},Migration[a1134_0x5b028a(0xe6)][a1134_0x5b028a(0xd1)]=function(_0x535979){const _0x3d81dc=a1134_0x5b028a;this['sequence'][_0x3d81dc(0xd9)](function(){return _0x535979();});},module[a1134_0x5b028a(0xcd)]={'up':function(_0x463c9b,_0x4193b3){return new Promise(function(_0x266ac6){const _0x2d4505=a1134_0x3055,_0x357477=new Migration(_0x463c9b);_0x357477[_0x2d4505(0xf5)](_0x2d4505(0xef),_0x2d4505(0xd8),{'type':_0x4193b3[_0x2d4505(0xf4)](0xb)}),_0x357477[_0x2d4505(0xe3)](_0x2d4505(0xdf)),_0x357477[_0x2d4505(0xf5)]('cm_contacts','fb_data',{'type':_0x4193b3['STRING']}),_0x357477[_0x2d4505(0xe5)]('sms_accounts',_0x2d4505(0xf6),{'type':_0x4193b3['ENUM'](_0x2d4505(0xd6),_0x2d4505(0xee),'connectel',_0x2d4505(0xde),_0x2d4505(0xe8),'clickatell','csc',_0x2d4505(0xe0))}),_0x357477[_0x2d4505(0xf5)](_0x2d4505(0xc9),'baseUrl',{'type':_0x4193b3[_0x2d4505(0xe4)]}),_0x357477[_0x2d4505(0xf5)]('report_queue',_0x2d4505(0xf3),{'type':_0x4193b3[_0x2d4505(0xf4)],'defaultValue':0x0}),_0x357477[_0x2d4505(0xd1)](_0x266ac6);});},'down':function(){return Promise['resolve']();}};
\ No newline at end of file