Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / migrations / 2.4.7.js
index f1326c2..2e00a8b 100644 (file)
@@ -1 +1 @@
-const a1010_0x56f5=['dropTable','chat_websites','chat_interactions','enqueue','moduleCreate','removeIndex','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','table\x20dropped\x20%s','then','tail','removeColumn','ENUM','addColumn','changeColumn','feedbackTitle','Removed\x20column\x20%s\x20from\x20%s','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','stringify','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','info','query','STRING','catch','inspect','int_zoho_configurations','final','Feedback','Contacts','join','indicesType','addIndex','queryInterface','BOOLEAN','customerPort','enableSendButton'];(function(_0x4a1036,_0x56f565){const _0x5cf13c=function(_0x346b48){while(--_0x346b48){_0x4a1036['push'](_0x4a1036['shift']());}};_0x5cf13c(++_0x56f565);}(a1010_0x56f5,0x164));const a1010_0x5cf1=function(_0x4a1036,_0x56f565){_0x4a1036=_0x4a1036-0x0;let _0x5cf13c=a1010_0x56f5[_0x4a1036];return _0x5cf13c;};const _0x1943ba=a1010_0x5cf1;'use strict';const util=require('util'),logger=require(_0x1943ba('0x23'))(_0x1943ba('0x21')),Sequence=function(){};Sequence[_0x1943ba('0x25')][_0x1943ba('0x10')]=function(_0x346b48){const _0x53a6e7=_0x1943ba;this[_0x53a6e7('0x18')]=this['tail']?this[_0x53a6e7('0x18')]['finally'](_0x346b48):_0x346b48();};const Migration=function(_0x52e661){const _0x1a40a0=_0x1943ba;this[_0x1a40a0('0x9')]=_0x52e661,this[_0x1a40a0('0x15')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0xb4d54b,_0x21e6b5,_0x23ce50){const _0x58d1b6=_0x1943ba,_0x4d1760=this;this[_0x58d1b6('0x15')][_0x58d1b6('0x10')](function(){const _0xe2056d=_0x58d1b6;return _0x4d1760[_0xe2056d('0x9')][_0xe2056d('0x1c')](_0xb4d54b,_0x21e6b5,_0x23ce50)[_0xe2056d('0x17')](function(){const _0x129e29=_0xe2056d;logger['info'](_0x129e29('0x20'),_0x21e6b5,_0xb4d54b);})[_0xe2056d('0x0')](function(_0xd808d){const _0x56565a=_0xe2056d;logger[_0x56565a('0x26')](JSON[_0x56565a('0x22')](_0xd808d));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0x1b')]=function(_0x5c4683,_0x576396,_0x12b518){const _0x1fdc95=_0x1943ba,_0x273eaf=this;this[_0x1fdc95('0x15')][_0x1fdc95('0x10')](function(){const _0x3ead60=_0x1fdc95;return _0x273eaf[_0x3ead60('0x9')][_0x3ead60('0x1b')](_0x5c4683,_0x576396,_0x12b518)[_0x3ead60('0x17')](function(){const _0x125c72=_0x3ead60;logger[_0x125c72('0x26')]('Added\x20column\x20%s\x20to\x20%s',_0x576396,_0x5c4683);})[_0x3ead60('0x0')](function(_0xedc4d1){const _0xf1f325=_0x3ead60;logger[_0xf1f325('0x26')](JSON['stringify'](_0xedc4d1));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0xd')]=function(_0x24a535){const _0x6c7d63=_0x1943ba,_0xfaefec=this;this[_0x6c7d63('0x15')]['enqueue'](function(){const _0x4fbdcc=_0x6c7d63;return _0xfaefec[_0x4fbdcc('0x9')][_0x4fbdcc('0xd')](_0x24a535,{'force':!![]})[_0x4fbdcc('0x17')](function(){const _0x3b79ba=_0x4fbdcc;logger['info'](_0x3b79ba('0x16'),_0x24a535);})[_0x4fbdcc('0x0')](function(_0x183ee8){const _0x509376=_0x4fbdcc;logger[_0x509376('0x26')](JSON[_0x509376('0x22')](_0x183ee8));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0x8')]=function(_0x45febe,_0x2df6bd,_0xdf8d6b){const _0x553e8c=_0x1943ba,_0x437647=this;this[_0x553e8c('0x15')]['enqueue'](function(){const _0x35b40d=_0x553e8c;return _0x437647[_0x35b40d('0x9')]['addIndex'](_0x45febe,_0x2df6bd,{'indexName':_0xdf8d6b[_0x35b40d('0x13')],'indicesType':_0xdf8d6b[_0x35b40d('0x7')]})[_0x35b40d('0x17')](function(){const _0x36c05f=_0x35b40d;logger[_0x36c05f('0x26')](_0x36c05f('0x14'),_0x45febe,_0x2df6bd[_0x36c05f('0x6')](','),_0xdf8d6b['indexName'],_0xdf8d6b[_0x36c05f('0x7')]);})[_0x35b40d('0x0')](function(_0x418832){const _0x19e64b=_0x35b40d;logger[_0x19e64b('0x26')](JSON['stringify'](_0x418832));});});},Migration['prototype']['removeIndex']=function(_0x5eeb6e,_0x5c3335){const _0x4b5745=_0x1943ba,_0x583e70=this;this[_0x4b5745('0x15')][_0x4b5745('0x10')](function(){const _0x518495=_0x4b5745;return _0x583e70[_0x518495('0x9')][_0x518495('0x12')](_0x5eeb6e,_0x5c3335)[_0x518495('0x17')](function(){const _0x53d02b=_0x518495;logger[_0x53d02b('0x26')]('removeIndex\x20%s\x20%s',_0x5eeb6e,_0x5c3335);})[_0x518495('0x0')](function(_0x3a7c17){const _0x371a4a=_0x518495;logger[_0x371a4a('0x26')](JSON[_0x371a4a('0x22')](_0x3a7c17));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0x27')]=function(_0x36ae2f){const _0x42ae1d=_0x1943ba,_0x4fcc4d=this;this['sequence'][_0x42ae1d('0x10')](function(){const _0x149f1c=_0x42ae1d;return _0x4fcc4d[_0x149f1c('0x9')][_0x149f1c('0x1f')][_0x149f1c('0x27')](_0x36ae2f)[_0x149f1c('0x17')](function(){const _0xa49d4d=_0x149f1c;logger[_0xa49d4d('0x26')]('query\x20%s',_0x36ae2f);})[_0x149f1c('0x0')](function(_0x1608bf){const _0x25c1ec=_0x149f1c;logger['info'](JSON[_0x25c1ec('0x22')](_0x1608bf));});});},Migration['prototype'][_0x1943ba('0x19')]=function(_0x412e06,_0x402412){const _0x2b2942=_0x1943ba,_0x54582c=this;this[_0x2b2942('0x15')][_0x2b2942('0x10')](function(){const _0x2b4119=_0x2b2942;return _0x54582c[_0x2b4119('0x9')][_0x2b4119('0x19')](_0x412e06,_0x402412)['then'](function(){const _0x5e33a6=_0x2b4119;logger[_0x5e33a6('0x26')](_0x5e33a6('0x1e'),_0x402412,_0x412e06);})[_0x2b4119('0x0')](function(_0x4fd32e){const _0x597888=_0x2b4119;logger[_0x597888('0x26')](util[_0x597888('0x1')](_0x4fd32e,{'showHidden':![],'depth':null}));});});},Migration[_0x1943ba('0x25')]['renameColumn']=function(_0x277055,_0x2a2fec,_0x3645b9){const _0x330f3a=_0x1943ba,_0x196086=this;this[_0x330f3a('0x15')][_0x330f3a('0x10')](function(){const _0x4a924d=_0x330f3a;return _0x196086[_0x4a924d('0x9')]['renameColumn'](_0x277055,_0x2a2fec,_0x3645b9)['then'](function(){const _0x502695=_0x4a924d;logger[_0x502695('0x26')](_0x502695('0x24'),_0x2a2fec,_0x3645b9,_0x277055);})[_0x4a924d('0x0')](function(_0x4976d9){const _0x12f8f1=_0x4a924d;logger[_0x12f8f1('0x26')](util[_0x12f8f1('0x1')](_0x4976d9,{'showHidden':![],'depth':null}));});});},Migration[_0x1943ba('0x25')][_0x1943ba('0x3')]=function(_0x84006a){const _0x13c9e3=_0x1943ba;this[_0x13c9e3('0x15')]['enqueue'](function(){return _0x84006a();});},module['exports']={'up':function(_0x27bac2,_0x1551aa){return new Promise(function(_0xb5b180){const _0x2e5670=a1010_0x5cf1,_0x7b9432=new Migration(_0x27bac2);_0x7b9432[_0x2e5670('0x1b')](_0x2e5670('0x2'),_0x2e5670('0x11'),{'type':_0x1551aa[_0x2e5670('0x1a')]('Leads',_0x2e5670('0x5')),'defaultValue':'Leads'}),_0x7b9432[_0x2e5670('0x1b')](_0x2e5670('0xf'),_0x2e5670('0xb'),{'type':_0x1551aa[_0x2e5670('0x28')]}),_0x7b9432[_0x2e5670('0x1b')](_0x2e5670('0xe'),_0x2e5670('0xc'),{'type':_0x1551aa[_0x2e5670('0xa')],'defaultValue':![]}),_0x7b9432[_0x2e5670('0x1b')](_0x2e5670('0xe'),_0x2e5670('0x1d'),{'type':_0x1551aa[_0x2e5670('0x28')],'defaultValue':_0x2e5670('0x4')}),_0x7b9432[_0x2e5670('0x3')](_0xb5b180);});},'down':function(){}};
\ No newline at end of file
+const a1010_0x4cf0=['dropTable','finally','removeColumn','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','enableSendButton','exports','feedbackTitle','final','BOOLEAN','removeIndex\x20%s\x20%s','then','moduleCreate','indicesType','../config/logger','info','query','queryInterface','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','table\x20dropped\x20%s','migration','Feedback','enqueue','inspect','indexName','sequence','catch','STRING','Leads','addColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','query\x20%s','stringify','removeIndex','customerPort'];(function(_0x489e72,_0x4cf0d3){const _0x15220e=function(_0x4ffe42){while(--_0x4ffe42){_0x489e72['push'](_0x489e72['shift']());}};_0x15220e(++_0x4cf0d3);}(a1010_0x4cf0,0xc3));const a1010_0x1522=function(_0x489e72,_0x4cf0d3){_0x489e72=_0x489e72-0x0;let _0x15220e=a1010_0x4cf0[_0x489e72];return _0x15220e;};const _0x2527f9=a1010_0x1522;'use strict';const util=require('util'),logger=require(_0x2527f9('0x16'))(_0x2527f9('0x1d')),Sequence=function(){};Sequence[_0x2527f9('0x8')][_0x2527f9('0x1f')]=function(_0x4ffe42){const _0x234710=_0x2527f9;this[_0x234710('0xa')]=this[_0x234710('0xa')]?this[_0x234710('0xa')][_0x234710('0x6')](_0x4ffe42):_0x4ffe42();};const Migration=function(_0x4830fb){const _0x48a685=_0x2527f9;this[_0x48a685('0x19')]=_0x4830fb,this[_0x48a685('0x22')]=new Sequence();};Migration[_0x2527f9('0x8')][_0x2527f9('0xc')]=function(_0x57088b,_0xd759d,_0x193c82){const _0x3d1f0b=_0x2527f9,_0x19a0af=this;this[_0x3d1f0b('0x22')][_0x3d1f0b('0x1f')](function(){const _0x167d13=_0x3d1f0b;return _0x19a0af['queryInterface'][_0x167d13('0xc')](_0x57088b,_0xd759d,_0x193c82)[_0x167d13('0x13')](function(){const _0x33dc18=_0x167d13;logger[_0x33dc18('0x17')](_0x33dc18('0xb'),_0xd759d,_0x57088b);})[_0x167d13('0x23')](function(_0x349715){const _0x2409de=_0x167d13;logger[_0x2409de('0x17')](JSON[_0x2409de('0x2')](_0x349715));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x26')]=function(_0x38bc03,_0x1bfc16,_0x28c3a6){const _0xfda386=_0x2527f9,_0x9ac7b1=this;this['sequence'][_0xfda386('0x1f')](function(){const _0x36b9c4=_0xfda386;return _0x9ac7b1[_0x36b9c4('0x19')]['addColumn'](_0x38bc03,_0x1bfc16,_0x28c3a6)[_0x36b9c4('0x13')](function(){const _0x3a537f=_0x36b9c4;logger[_0x3a537f('0x17')](_0x3a537f('0x0'),_0x1bfc16,_0x38bc03);})['catch'](function(_0xd42dfb){const _0x544f73=_0x36b9c4;logger[_0x544f73('0x17')](JSON[_0x544f73('0x2')](_0xd42dfb));});});},Migration[_0x2527f9('0x8')]['dropTable']=function(_0x560cbe){const _0x36599c=_0x2527f9,_0x3a44b4=this;this[_0x36599c('0x22')]['enqueue'](function(){const _0x35ccee=_0x36599c;return _0x3a44b4['queryInterface'][_0x35ccee('0x5')](_0x560cbe,{'force':!![]})['then'](function(){const _0x2535cd=_0x35ccee;logger[_0x2535cd('0x17')](_0x2535cd('0x1c'),_0x560cbe);})[_0x35ccee('0x23')](function(_0x336f8a){const _0x17e40f=_0x35ccee;logger[_0x17e40f('0x17')](JSON['stringify'](_0x336f8a));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x27')]=function(_0x524a6d,_0x1f6eb6,_0x2efe15){const _0xbd421d=_0x2527f9,_0x5a4b78=this;this[_0xbd421d('0x22')][_0xbd421d('0x1f')](function(){const _0x631a86=_0xbd421d;return _0x5a4b78[_0x631a86('0x19')]['addIndex'](_0x524a6d,_0x1f6eb6,{'indexName':_0x2efe15[_0x631a86('0x21')],'indicesType':_0x2efe15[_0x631a86('0x15')]})[_0x631a86('0x13')](function(){const _0x37588b=_0x631a86;logger[_0x37588b('0x17')](_0x37588b('0x1b'),_0x524a6d,_0x1f6eb6['join'](','),_0x2efe15[_0x37588b('0x21')],_0x2efe15[_0x37588b('0x15')]);})[_0x631a86('0x23')](function(_0x4a7853){const _0x2c9c90=_0x631a86;logger[_0x2c9c90('0x17')](JSON[_0x2c9c90('0x2')](_0x4a7853));});});},Migration['prototype'][_0x2527f9('0x3')]=function(_0x5f4bb0,_0x224ec6){const _0x266df2=_0x2527f9,_0x5e3c88=this;this['sequence'][_0x266df2('0x1f')](function(){const _0x215628=_0x266df2;return _0x5e3c88['queryInterface'][_0x215628('0x3')](_0x5f4bb0,_0x224ec6)[_0x215628('0x13')](function(){const _0xbb5c04=_0x215628;logger[_0xbb5c04('0x17')](_0xbb5c04('0x12'),_0x5f4bb0,_0x224ec6);})[_0x215628('0x23')](function(_0x2d07fb){const _0x3e9676=_0x215628;logger[_0x3e9676('0x17')](JSON[_0x3e9676('0x2')](_0x2d07fb));});});},Migration[_0x2527f9('0x8')]['query']=function(_0x22d065){const _0xa7a9be=_0x2527f9,_0x34d3dd=this;this[_0xa7a9be('0x22')][_0xa7a9be('0x1f')](function(){const _0x451945=_0xa7a9be;return _0x34d3dd[_0x451945('0x19')]['sequelize'][_0x451945('0x18')](_0x22d065)[_0x451945('0x13')](function(){const _0x12c03c=_0x451945;logger[_0x12c03c('0x17')](_0x12c03c('0x1'),_0x22d065);})[_0x451945('0x23')](function(_0xecc99f){const _0x4b5764=_0x451945;logger[_0x4b5764('0x17')](JSON['stringify'](_0xecc99f));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x7')]=function(_0x7c5fd4,_0x530cd8){const _0x36a7fc=_0x2527f9,_0x418462=this;this['sequence'][_0x36a7fc('0x1f')](function(){const _0x482063=_0x36a7fc;return _0x418462['queryInterface'][_0x482063('0x7')](_0x7c5fd4,_0x530cd8)[_0x482063('0x13')](function(){const _0x500ed8=_0x482063;logger[_0x500ed8('0x17')]('Removed\x20column\x20%s\x20from\x20%s',_0x530cd8,_0x7c5fd4);})[_0x482063('0x23')](function(_0x4a1290){const _0x2d0877=_0x482063;logger[_0x2d0877('0x17')](util[_0x2d0877('0x20')](_0x4a1290,{'showHidden':![],'depth':null}));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x1a')]=function(_0x3ad169,_0x35784c,_0x448b46){const _0x5e1070=_0x2527f9,_0x353532=this;this[_0x5e1070('0x22')][_0x5e1070('0x1f')](function(){const _0x3de0a9=_0x5e1070;return _0x353532[_0x3de0a9('0x19')][_0x3de0a9('0x1a')](_0x3ad169,_0x35784c,_0x448b46)[_0x3de0a9('0x13')](function(){const _0x41505a=_0x3de0a9;logger[_0x41505a('0x17')](_0x41505a('0x9'),_0x35784c,_0x448b46,_0x3ad169);})['catch'](function(_0x943cc5){const _0x5e75a3=_0x3de0a9;logger[_0x5e75a3('0x17')](util[_0x5e75a3('0x20')](_0x943cc5,{'showHidden':![],'depth':null}));});});},Migration[_0x2527f9('0x8')][_0x2527f9('0x10')]=function(_0xdcbc9e){const _0x30fe5d=_0x2527f9;this[_0x30fe5d('0x22')]['enqueue'](function(){return _0xdcbc9e();});},module[_0x2527f9('0xe')]={'up':function(_0x4f698e,_0x386b01){return new Promise(function(_0x441ccb){const _0x578635=a1010_0x1522,_0x5c5903=new Migration(_0x4f698e);_0x5c5903[_0x578635('0x26')]('int_zoho_configurations',_0x578635('0x14'),{'type':_0x386b01['ENUM'](_0x578635('0x25'),'Contacts'),'defaultValue':_0x578635('0x25')}),_0x5c5903[_0x578635('0x26')]('chat_interactions',_0x578635('0x4'),{'type':_0x386b01[_0x578635('0x24')]}),_0x5c5903[_0x578635('0x26')]('chat_websites',_0x578635('0xd'),{'type':_0x386b01[_0x578635('0x11')],'defaultValue':![]}),_0x5c5903[_0x578635('0x26')]('chat_websites',_0x578635('0xf'),{'type':_0x386b01[_0x578635('0x24')],'defaultValue':_0x578635('0x1e')}),_0x5c5903[_0x578635('0x10')](_0x441ccb);});},'down':function(){}};
\ No newline at end of file