Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.82.js
index 495c776..e4a2fb2 100644 (file)
@@ -1 +1 @@
-const a961_0xf5c6=['changeColumn','join','twilio','prototype','Removed\x20column\x20%s\x20from\x20%s','STRING','dropTable','Added\x20column\x20%s\x20to\x20%s','sequelize','info','removeIndex\x20%s\x20%s','migration','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','type','../config/logger','addIndex','query','addIndex\x20%s\x20%s\x20%s','sequence','enqueue','plivo','query\x20%s','finally','tail','catch','table\x20dropped\x20%s','addColumn','util','removeColumn','ENUM','skebby','renameColumn','connectel','sms_accounts','queryInterface','stringify','then'];(function(_0x1be37d,_0xf5c6e0){const _0x3f1700=function(_0x2d7b48){while(--_0x2d7b48){_0x1be37d['push'](_0x1be37d['shift']());}};_0x3f1700(++_0xf5c6e0);}(a961_0xf5c6,0x1a8));const a961_0x3f17=function(_0x1be37d,_0xf5c6e0){_0x1be37d=_0x1be37d-0x0;let _0x3f1700=a961_0xf5c6[_0x1be37d];return _0x3f1700;};const _0x30a6cf=a961_0x3f17;'use strict';const util=require(_0x30a6cf('0x22')),logger=require(_0x30a6cf('0x15'))(_0x30a6cf('0x10')),Sequence=function(){};Sequence[_0x30a6cf('0x8')][_0x30a6cf('0x1a')]=function(_0x2d7b48){const _0x278dd1=_0x30a6cf;this['tail']=this[_0x278dd1('0x1e')]?this[_0x278dd1('0x1e')][_0x278dd1('0x1d')](_0x2d7b48):_0x2d7b48();};const Migration=function(_0x597056){const _0x2e9fa2=_0x30a6cf;this['queryInterface']=_0x597056,this[_0x2e9fa2('0x19')]=new Sequence();};Migration[_0x30a6cf('0x8')][_0x30a6cf('0x5')]=function(_0x42c852,_0x2adbab,_0x2d6c98){const _0x3a26bc=_0x30a6cf,_0x5f33fe=this;this[_0x3a26bc('0x19')]['enqueue'](function(){const _0x995764=_0x3a26bc;return _0x5f33fe[_0x995764('0x2')]['changeColumn'](_0x42c852,_0x2adbab,_0x2d6c98)['then'](function(){const _0x2cbccc=_0x995764;logger[_0x2cbccc('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2adbab,_0x42c852);})[_0x995764('0x1f')](function(_0x26f11f){const _0x432528=_0x995764;logger[_0x432528('0xe')](JSON[_0x432528('0x3')](_0x26f11f));});});},Migration[_0x30a6cf('0x8')][_0x30a6cf('0x21')]=function(_0x223f04,_0x577c8e,_0x3d620a){const _0x45fb0c=_0x30a6cf,_0x40fb91=this;this[_0x45fb0c('0x19')]['enqueue'](function(){const _0xb633b0=_0x45fb0c;return _0x40fb91[_0xb633b0('0x2')][_0xb633b0('0x21')](_0x223f04,_0x577c8e,_0x3d620a)['then'](function(){const _0x13ec38=_0xb633b0;logger['info'](_0x13ec38('0xc'),_0x577c8e,_0x223f04);})[_0xb633b0('0x1f')](function(_0x36cd4f){const _0x3d9d95=_0xb633b0;logger[_0x3d9d95('0xe')](JSON[_0x3d9d95('0x3')](_0x36cd4f));});});},Migration['prototype'][_0x30a6cf('0xb')]=function(_0x4ebfe8){const _0x54d232=_0x30a6cf,_0x17ed68=this;this[_0x54d232('0x19')][_0x54d232('0x1a')](function(){const _0x1ef2c8=_0x54d232;return _0x17ed68['queryInterface'][_0x1ef2c8('0xb')](_0x4ebfe8,{'force':!![]})['then'](function(){const _0x1da8c3=_0x1ef2c8;logger[_0x1da8c3('0xe')](_0x1da8c3('0x20'),_0x4ebfe8);})[_0x1ef2c8('0x1f')](function(_0x23d515){const _0x1d9540=_0x1ef2c8;logger[_0x1d9540('0xe')](JSON[_0x1d9540('0x3')](_0x23d515));});});},Migration[_0x30a6cf('0x8')]['addIndex']=function(_0x4487cf,_0x296169,_0x2b8693){const _0x4e9181=_0x30a6cf,_0xb69814=this;this['sequence'][_0x4e9181('0x1a')](function(){const _0x2f67e2=_0x4e9181;return _0xb69814[_0x2f67e2('0x2')][_0x2f67e2('0x16')](_0x4487cf,_0x296169,{'indexName':_0x2b8693})[_0x2f67e2('0x4')](function(){const _0x6b9fac=_0x2f67e2;logger[_0x6b9fac('0xe')](_0x6b9fac('0x18'),_0x4487cf,_0x296169[_0x6b9fac('0x6')](','),_0x2b8693);})['catch'](function(_0x5f28ad){const _0x50848e=_0x2f67e2;logger['info'](JSON[_0x50848e('0x3')](_0x5f28ad));});});},Migration[_0x30a6cf('0x8')]['removeIndex']=function(_0x3dac44,_0x22604c){const _0x156d65=this;this['sequence']['enqueue'](function(){const _0xf1ef76=a961_0x3f17;return _0x156d65[_0xf1ef76('0x2')]['removeIndex'](_0x3dac44,_0x22604c)['then'](function(){const _0x4ec441=_0xf1ef76;logger[_0x4ec441('0xe')](_0x4ec441('0xf'),_0x3dac44,_0x22604c);})[_0xf1ef76('0x1f')](function(_0x14316f){const _0x1208b4=_0xf1ef76;logger[_0x1208b4('0xe')](JSON['stringify'](_0x14316f));});});},Migration['prototype'][_0x30a6cf('0x17')]=function(_0x5d85eb){const _0x300838=_0x30a6cf,_0x2dac31=this;this[_0x300838('0x19')][_0x300838('0x1a')](function(){const _0x4a86dc=_0x300838;return _0x2dac31[_0x4a86dc('0x2')][_0x4a86dc('0xd')][_0x4a86dc('0x17')](_0x5d85eb)['then'](function(){const _0x15038e=_0x4a86dc;logger['info'](_0x15038e('0x1c'),_0x5d85eb);})['catch'](function(_0x5bb32b){const _0x442b41=_0x4a86dc;logger['info'](JSON[_0x442b41('0x3')](_0x5bb32b));});});},Migration[_0x30a6cf('0x8')][_0x30a6cf('0x23')]=function(_0x7d9462,_0x2cb325){const _0xda4db8=_0x30a6cf,_0x3f790a=this;this[_0xda4db8('0x19')][_0xda4db8('0x1a')](function(){const _0x273014=_0xda4db8;return _0x3f790a[_0x273014('0x2')]['removeColumn'](_0x7d9462,_0x2cb325)[_0x273014('0x4')](function(){const _0x3c9b0a=_0x273014;logger['info'](_0x3c9b0a('0x9'),_0x2cb325,_0x7d9462);})[_0x273014('0x1f')](function(_0x3fe48b){logger['info'](util['inspect'](_0x3fe48b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x30a6cf('0x26')]=function(_0x224b2b,_0x2701e9,_0x2dec43){const _0xf50a93=_0x30a6cf,_0x29ed2a=this;this['sequence'][_0xf50a93('0x1a')](function(){const _0x27f5d1=_0xf50a93;return _0x29ed2a['queryInterface'][_0x27f5d1('0x26')](_0x224b2b,_0x2701e9,_0x2dec43)[_0x27f5d1('0x4')](function(){const _0x16f0a4=_0x27f5d1;logger[_0x16f0a4('0xe')](_0x16f0a4('0x12'),_0x2701e9,_0x2dec43,_0x224b2b);})[_0x27f5d1('0x1f')](function(_0x2fa5e5){const _0x2c9b36=_0x27f5d1;logger[_0x2c9b36('0xe')](util['inspect'](_0x2fa5e5,{'showHidden':![],'depth':null}));});});},Migration[_0x30a6cf('0x8')][_0x30a6cf('0x13')]=function(_0x4064c2){const _0x4d6393=_0x30a6cf;this[_0x4d6393('0x19')][_0x4d6393('0x1a')](function(){return _0x4064c2();});},module[_0x30a6cf('0x11')]={'up':function(_0x2b4abc,_0x488b02){return new Promise(function(_0x337435){const _0x498f6d=a961_0x3f17,_0xe280bf=new Migration(_0x2b4abc);_0xe280bf[_0x498f6d('0x21')](_0x498f6d('0x1'),'apiKey',{'type':_0x488b02[_0x498f6d('0xa')]}),_0xe280bf[_0x498f6d('0x5')](_0x498f6d('0x1'),_0x498f6d('0x14'),{'type':_0x488b02[_0x498f6d('0x24')](_0x498f6d('0x7'),_0x498f6d('0x25'),_0x498f6d('0x0'),'clicksend',_0x498f6d('0x1b'),'clickatell','csc')}),_0xe280bf[_0x498f6d('0x13')](_0x337435);});},'down':function(){}};
\ No newline at end of file
+const a961_0x385b=['enqueue','sequelize','query','final','then','removeIndex','clicksend','tail','stringify','inspect','dropTable','util','type','finally','addColumn','table\x20dropped\x20%s','prototype','ENUM','sms_accounts','addIndex','clickatell','renameColumn','addIndex\x20%s\x20%s\x20%s','STRING','queryInterface','removeColumn','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','apiKey','csc','changeColumn','sequence','twilio','catch','../config/logger','skebby','exports'];(function(_0xc97c,_0x385b06){const _0x1ce7d9=function(_0x282b17){while(--_0x282b17){_0xc97c['push'](_0xc97c['shift']());}};_0x1ce7d9(++_0x385b06);}(a961_0x385b,0x186));const a961_0x1ce7=function(_0xc97c,_0x385b06){_0xc97c=_0xc97c-0x0;let _0x1ce7d9=a961_0x385b[_0xc97c];return _0x1ce7d9;};const _0x2434f5=a961_0x1ce7;'use strict';const util=require(_0x2434f5('0x1')),logger=require(_0x2434f5('0x19'))('migration'),Sequence=function(){};Sequence[_0x2434f5('0x6')][_0x2434f5('0x1c')]=function(_0x282b17){const _0x22879b=_0x2434f5;this[_0x22879b('0x23')]=this['tail']?this[_0x22879b('0x23')][_0x22879b('0x3')](_0x282b17):_0x282b17();};const Migration=function(_0x1f0ab5){const _0x44451=_0x2434f5;this[_0x44451('0xe')]=_0x1f0ab5,this['sequence']=new Sequence();};Migration[_0x2434f5('0x6')][_0x2434f5('0x15')]=function(_0x44ddd7,_0x56ee18,_0x46bcc8){const _0x1ad64f=_0x2434f5,_0x3cde53=this;this[_0x1ad64f('0x16')]['enqueue'](function(){const _0x33336c=_0x1ad64f;return _0x3cde53['queryInterface'][_0x33336c('0x15')](_0x44ddd7,_0x56ee18,_0x46bcc8)[_0x33336c('0x20')](function(){const _0x443bac=_0x33336c;logger[_0x443bac('0x12')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x56ee18,_0x44ddd7);})[_0x33336c('0x18')](function(_0x1f87b0){const _0x3b4771=_0x33336c;logger['info'](JSON[_0x3b4771('0x24')](_0x1f87b0));});});},Migration[_0x2434f5('0x6')][_0x2434f5('0x4')]=function(_0x3cdd99,_0x1397c1,_0x205baf){const _0x5e8117=_0x2434f5,_0x560c85=this;this[_0x5e8117('0x16')][_0x5e8117('0x1c')](function(){const _0x4eace3=_0x5e8117;return _0x560c85[_0x4eace3('0xe')][_0x4eace3('0x4')](_0x3cdd99,_0x1397c1,_0x205baf)['then'](function(){const _0x19c365=_0x4eace3;logger[_0x19c365('0x12')]('Added\x20column\x20%s\x20to\x20%s',_0x1397c1,_0x3cdd99);})['catch'](function(_0x1da3e7){const _0x1c6d35=_0x4eace3;logger[_0x1c6d35('0x12')](JSON[_0x1c6d35('0x24')](_0x1da3e7));});});},Migration[_0x2434f5('0x6')][_0x2434f5('0x0')]=function(_0x324ef8){const _0x22eb22=_0x2434f5,_0x21d287=this;this[_0x22eb22('0x16')][_0x22eb22('0x1c')](function(){const _0x50ce68=_0x22eb22;return _0x21d287['queryInterface'][_0x50ce68('0x0')](_0x324ef8,{'force':!![]})[_0x50ce68('0x20')](function(){const _0x2ad27c=_0x50ce68;logger[_0x2ad27c('0x12')](_0x2ad27c('0x5'),_0x324ef8);})['catch'](function(_0x3fd238){const _0x1e349b=_0x50ce68;logger[_0x1e349b('0x12')](JSON[_0x1e349b('0x24')](_0x3fd238));});});},Migration[_0x2434f5('0x6')][_0x2434f5('0x9')]=function(_0x3dbc0d,_0x2b371b,_0x33fdc7){const _0x110aa5=this;this['sequence']['enqueue'](function(){const _0x5cfdcc=a961_0x1ce7;return _0x110aa5[_0x5cfdcc('0xe')][_0x5cfdcc('0x9')](_0x3dbc0d,_0x2b371b,{'indexName':_0x33fdc7})[_0x5cfdcc('0x20')](function(){const _0x3a6113=_0x5cfdcc;logger['info'](_0x3a6113('0xc'),_0x3dbc0d,_0x2b371b[_0x3a6113('0x10')](','),_0x33fdc7);})[_0x5cfdcc('0x18')](function(_0x277921){const _0x4c03fa=_0x5cfdcc;logger['info'](JSON[_0x4c03fa('0x24')](_0x277921));});});},Migration[_0x2434f5('0x6')][_0x2434f5('0x21')]=function(_0x2e2c17,_0x45e11d){const _0xc6b7ef=_0x2434f5,_0x2e3dec=this;this[_0xc6b7ef('0x16')][_0xc6b7ef('0x1c')](function(){const _0x322b40=_0xc6b7ef;return _0x2e3dec[_0x322b40('0xe')]['removeIndex'](_0x2e2c17,_0x45e11d)[_0x322b40('0x20')](function(){const _0x259782=_0x322b40;logger[_0x259782('0x12')]('removeIndex\x20%s\x20%s',_0x2e2c17,_0x45e11d);})[_0x322b40('0x18')](function(_0x1cc5d0){const _0x2b503e=_0x322b40;logger[_0x2b503e('0x12')](JSON[_0x2b503e('0x24')](_0x1cc5d0));});});},Migration[_0x2434f5('0x6')][_0x2434f5('0x1e')]=function(_0x4061b7){const _0x163a78=_0x2434f5,_0x5e25a8=this;this[_0x163a78('0x16')][_0x163a78('0x1c')](function(){const _0x1b050d=_0x163a78;return _0x5e25a8[_0x1b050d('0xe')][_0x1b050d('0x1d')][_0x1b050d('0x1e')](_0x4061b7)[_0x1b050d('0x20')](function(){const _0x389d6e=_0x1b050d;logger[_0x389d6e('0x12')]('query\x20%s',_0x4061b7);})[_0x1b050d('0x18')](function(_0x367164){const _0x3afe9a=_0x1b050d;logger['info'](JSON[_0x3afe9a('0x24')](_0x367164));});});},Migration[_0x2434f5('0x6')][_0x2434f5('0xf')]=function(_0x44e277,_0x3c1fd0){const _0x2ec060=_0x2434f5,_0x200c45=this;this['sequence'][_0x2ec060('0x1c')](function(){const _0x23130d=_0x2ec060;return _0x200c45['queryInterface'][_0x23130d('0xf')](_0x44e277,_0x3c1fd0)[_0x23130d('0x20')](function(){const _0x16028f=_0x23130d;logger[_0x16028f('0x12')]('Removed\x20column\x20%s\x20from\x20%s',_0x3c1fd0,_0x44e277);})['catch'](function(_0x3e668d){const _0x4499fb=_0x23130d;logger[_0x4499fb('0x12')](util[_0x4499fb('0x25')](_0x3e668d,{'showHidden':![],'depth':null}));});});},Migration[_0x2434f5('0x6')][_0x2434f5('0xb')]=function(_0x41aa35,_0x53d503,_0x542867){const _0x4d57a4=_0x2434f5,_0x5cd822=this;this[_0x4d57a4('0x16')]['enqueue'](function(){const _0x47c7c9=_0x4d57a4;return _0x5cd822[_0x47c7c9('0xe')][_0x47c7c9('0xb')](_0x41aa35,_0x53d503,_0x542867)['then'](function(){const _0x13f259=_0x47c7c9;logger['info'](_0x13f259('0x11'),_0x53d503,_0x542867,_0x41aa35);})[_0x47c7c9('0x18')](function(_0x54b6a7){const _0x492c25=_0x47c7c9;logger[_0x492c25('0x12')](util['inspect'](_0x54b6a7,{'showHidden':![],'depth':null}));});});},Migration[_0x2434f5('0x6')][_0x2434f5('0x1f')]=function(_0x3c7340){const _0x454ec8=_0x2434f5;this[_0x454ec8('0x16')][_0x454ec8('0x1c')](function(){return _0x3c7340();});},module[_0x2434f5('0x1b')]={'up':function(_0x24acbd,_0x18b9b8){return new Promise(function(_0x4a8eb9){const _0x5da5b5=a961_0x1ce7,_0x392e2b=new Migration(_0x24acbd);_0x392e2b[_0x5da5b5('0x4')](_0x5da5b5('0x8'),_0x5da5b5('0x13'),{'type':_0x18b9b8[_0x5da5b5('0xd')]}),_0x392e2b['changeColumn'](_0x5da5b5('0x8'),_0x5da5b5('0x2'),{'type':_0x18b9b8[_0x5da5b5('0x7')](_0x5da5b5('0x17'),_0x5da5b5('0x1a'),'connectel',_0x5da5b5('0x22'),'plivo',_0x5da5b5('0xa'),_0x5da5b5('0x14'))}),_0x392e2b[_0x5da5b5('0x1f')](_0x4a8eb9);});},'down':function(){}};
\ No newline at end of file