Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.83.js
index 86be74d..f07d298 100644 (file)
@@ -1 +1 @@
-const a962_0x281d=['Removed\x20column\x20%s\x20from\x20%s','dropTable','prototype','INTEGER','baseUrl','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','addIndex','plivo','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','renameColumn','util','twilio','catch','then','migration','csc','removeColumn','stringify','clicksend','info','cm_hopper','exports','inspect','sequence','../config/logger','connectel','table\x20dropped\x20%s','query','query\x20%s','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','type','queuecallerenterreason','addColumn','sms_accounts','removeIndex','finally','fb_data','final','sequelize','STRING','enqueue','report_queue'];(function(_0xb67281,_0x281dd4){const _0x27853d=function(_0x230b69){while(--_0x230b69){_0xb67281['push'](_0xb67281['shift']());}};_0x27853d(++_0x281dd4);}(a962_0x281d,0x151));const a962_0x2785=function(_0xb67281,_0x281dd4){_0xb67281=_0xb67281-0x0;let _0x27853d=a962_0x281d[_0xb67281];return _0x27853d;};const _0x39599c=a962_0x2785;'use strict';const util=require(_0x39599c('0x2b')),logger=require(_0x39599c('0xb'))(_0x39599c('0x1')),Sequence=function(){};Sequence['prototype'][_0x39599c('0x1d')]=function(_0x230b69){const _0x55d8ae=_0x39599c;this[_0x55d8ae('0x26')]=this[_0x55d8ae('0x26')]?this[_0x55d8ae('0x26')][_0x55d8ae('0x18')](_0x230b69):_0x230b69();};const Migration=function(_0xcf5af){const _0x34fee1=_0x39599c;this['queryInterface']=_0xcf5af,this[_0x34fee1('0xa')]=new Sequence();};Migration[_0x39599c('0x21')]['changeColumn']=function(_0x5e6fc2,_0x253192,_0x424c4b){const _0xe2a40c=_0x39599c,_0x3054aa=this;this[_0xe2a40c('0xa')][_0xe2a40c('0x1d')](function(){const _0x4f94b6=_0xe2a40c;return _0x3054aa[_0x4f94b6('0x12')][_0x4f94b6('0x24')](_0x5e6fc2,_0x253192,_0x424c4b)[_0x4f94b6('0x0')](function(){const _0x5c039b=_0x4f94b6;logger[_0x5c039b('0x6')](_0x5c039b('0x25'),_0x253192,_0x5e6fc2);})[_0x4f94b6('0x2d')](function(_0x232919){logger['info'](JSON['stringify'](_0x232919));});});},Migration['prototype'][_0x39599c('0x15')]=function(_0x2ed252,_0xaefe1c,_0x56179f){const _0x2f9ef7=_0x39599c,_0x53b880=this;this['sequence'][_0x2f9ef7('0x1d')](function(){const _0x421f56=_0x2f9ef7;return _0x53b880['queryInterface']['addColumn'](_0x2ed252,_0xaefe1c,_0x56179f)[_0x421f56('0x0')](function(){const _0x3d70df=_0x421f56;logger[_0x3d70df('0x6')]('Added\x20column\x20%s\x20to\x20%s',_0xaefe1c,_0x2ed252);})['catch'](function(_0x5c17a2){const _0x339fb6=_0x421f56;logger['info'](JSON[_0x339fb6('0x4')](_0x5c17a2));});});},Migration[_0x39599c('0x21')][_0x39599c('0x20')]=function(_0x368689){const _0x2062a2=_0x39599c,_0x3964a2=this;this[_0x2062a2('0xa')][_0x2062a2('0x1d')](function(){const _0x5f27b5=_0x2062a2;return _0x3964a2['queryInterface'][_0x5f27b5('0x20')](_0x368689,{'force':!![]})[_0x5f27b5('0x0')](function(){const _0x584fe5=_0x5f27b5;logger['info'](_0x584fe5('0xd'),_0x368689);})[_0x5f27b5('0x2d')](function(_0x2b49e6){const _0x12787b=_0x5f27b5;logger[_0x12787b('0x6')](JSON[_0x12787b('0x4')](_0x2b49e6));});});},Migration[_0x39599c('0x21')][_0x39599c('0x27')]=function(_0x4e2b54,_0x4a5449,_0x296b85){const _0x1972f6=_0x39599c,_0x47bc9c=this;this[_0x1972f6('0xa')][_0x1972f6('0x1d')](function(){const _0x14e44a=_0x1972f6;return _0x47bc9c['queryInterface'][_0x14e44a('0x27')](_0x4e2b54,_0x4a5449,{'indexName':_0x296b85})[_0x14e44a('0x0')](function(){const _0x296ff9=_0x14e44a;logger[_0x296ff9('0x6')](_0x296ff9('0x10'),_0x4e2b54,_0x4a5449['join'](','),_0x296b85);})['catch'](function(_0x48e028){const _0x1ada2b=_0x14e44a;logger['info'](JSON[_0x1ada2b('0x4')](_0x48e028));});});},Migration[_0x39599c('0x21')]['removeIndex']=function(_0x51abae,_0x5f5d1d){const _0xa5482a=this;this['sequence']['enqueue'](function(){const _0x22f6f5=a962_0x2785;return _0xa5482a[_0x22f6f5('0x12')][_0x22f6f5('0x17')](_0x51abae,_0x5f5d1d)[_0x22f6f5('0x0')](function(){const _0x1b1929=_0x22f6f5;logger[_0x1b1929('0x6')]('removeIndex\x20%s\x20%s',_0x51abae,_0x5f5d1d);})['catch'](function(_0x375d59){const _0xfec6cf=_0x22f6f5;logger[_0xfec6cf('0x6')](JSON[_0xfec6cf('0x4')](_0x375d59));});});},Migration[_0x39599c('0x21')]['query']=function(_0x5e89e6){const _0x53d961=_0x39599c,_0x26d1c7=this;this[_0x53d961('0xa')][_0x53d961('0x1d')](function(){const _0x4a3f33=_0x53d961;return _0x26d1c7[_0x4a3f33('0x12')][_0x4a3f33('0x1b')][_0x4a3f33('0xe')](_0x5e89e6)[_0x4a3f33('0x0')](function(){const _0x4ba22f=_0x4a3f33;logger[_0x4ba22f('0x6')](_0x4ba22f('0xf'),_0x5e89e6);})[_0x4a3f33('0x2d')](function(_0x9c3c3f){const _0x52267d=_0x4a3f33;logger[_0x52267d('0x6')](JSON[_0x52267d('0x4')](_0x9c3c3f));});});},Migration[_0x39599c('0x21')][_0x39599c('0x3')]=function(_0x199c3b,_0x561ec0){const _0x18e847=_0x39599c,_0x310aa3=this;this[_0x18e847('0xa')][_0x18e847('0x1d')](function(){const _0x32cc0b=_0x18e847;return _0x310aa3[_0x32cc0b('0x12')]['removeColumn'](_0x199c3b,_0x561ec0)[_0x32cc0b('0x0')](function(){const _0x47d634=_0x32cc0b;logger[_0x47d634('0x6')](_0x47d634('0x1f'),_0x561ec0,_0x199c3b);})[_0x32cc0b('0x2d')](function(_0x10aaf0){const _0x19980d=_0x32cc0b;logger[_0x19980d('0x6')](util[_0x19980d('0x9')](_0x10aaf0,{'showHidden':![],'depth':null}));});});},Migration[_0x39599c('0x21')][_0x39599c('0x2a')]=function(_0x1c6d02,_0x22b45,_0x1db655){const _0x58dce6=_0x39599c,_0x20b5c3=this;this[_0x58dce6('0xa')][_0x58dce6('0x1d')](function(){const _0x20f16f=_0x58dce6;return _0x20b5c3[_0x20f16f('0x12')][_0x20f16f('0x2a')](_0x1c6d02,_0x22b45,_0x1db655)[_0x20f16f('0x0')](function(){const _0x2573c5=_0x20f16f;logger[_0x2573c5('0x6')](_0x2573c5('0x11'),_0x22b45,_0x1db655,_0x1c6d02);})[_0x20f16f('0x2d')](function(_0x5eca4e){const _0x508d95=_0x20f16f;logger['info'](util[_0x508d95('0x9')](_0x5eca4e,{'showHidden':![],'depth':null}));});});},Migration[_0x39599c('0x21')][_0x39599c('0x1a')]=function(_0x2568c0){const _0x4031f8=_0x39599c;this[_0x4031f8('0xa')]['enqueue'](function(){return _0x2568c0();});},module[_0x39599c('0x8')]={'up':function(_0x10417c,_0x2ddce6){return new Promise(function(_0x4f44de){const _0x2790f6=a962_0x2785,_0x5623b6=new Migration(_0x10417c);_0x5623b6[_0x2790f6('0x15')](_0x2790f6('0x7'),'OwnerId',{'type':_0x2ddce6[_0x2790f6('0x22')](0xb)}),_0x5623b6['query'](_0x2790f6('0x29')),_0x5623b6[_0x2790f6('0x15')]('cm_contacts',_0x2790f6('0x19'),{'type':_0x2ddce6[_0x2790f6('0x1c')]}),_0x5623b6['changeColumn'](_0x2790f6('0x16'),_0x2790f6('0x13'),{'type':_0x2ddce6['ENUM'](_0x2790f6('0x2c'),'skebby',_0x2790f6('0xc'),_0x2790f6('0x5'),_0x2790f6('0x28'),'clickatell',_0x2790f6('0x2'),'infobip')}),_0x5623b6[_0x2790f6('0x15')](_0x2790f6('0x16'),_0x2790f6('0x23'),{'type':_0x2ddce6[_0x2790f6('0x1c')]}),_0x5623b6[_0x2790f6('0x15')](_0x2790f6('0x1e'),_0x2790f6('0x14'),{'type':_0x2ddce6[_0x2790f6('0x22')],'defaultValue':0x0}),_0x5623b6[_0x2790f6('0x1a')](_0x4f44de);});},'down':function(){}};
\ No newline at end of file
+const a962_0x579e=['../config/logger','sequence','then','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','baseUrl','dropTable','skebby','csc','Added\x20column\x20%s\x20to\x20%s','plivo','inspect','changeColumn','infobip','queryInterface','Removed\x20column\x20%s\x20from\x20%s','cm_contacts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','join','addIndex\x20%s\x20%s\x20%s','migration','twilio','sms_accounts','removeColumn','cm_hopper','exports','query','fb_data','connectel','catch','addIndex','OwnerId','clicksend','ENUM','enqueue','renameColumn','clickatell','removeIndex','sequelize','stringify','type','final','prototype','info','tail'];(function(_0x39b56b,_0x579e4f){const _0x5ca417=function(_0x5e06b3){while(--_0x5e06b3){_0x39b56b['push'](_0x39b56b['shift']());}};_0x5ca417(++_0x579e4f);}(a962_0x579e,0x101));const a962_0x5ca4=function(_0x39b56b,_0x579e4f){_0x39b56b=_0x39b56b-0x0;let _0x5ca417=a962_0x579e[_0x39b56b];return _0x5ca417;};const _0x312f04=a962_0x5ca4;'use strict';const util=require('util'),logger=require(_0x312f04('0xd'))(_0x312f04('0x21')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x5e06b3){const _0x2862f3=_0x312f04;this[_0x2862f3('0xc')]=this[_0x2862f3('0xc')]?this[_0x2862f3('0xc')]['finally'](_0x5e06b3):_0x5e06b3();};const Migration=function(_0x35b372){const _0x15a184=_0x312f04;this[_0x15a184('0x1a')]=_0x35b372,this[_0x15a184('0xe')]=new Sequence();};Migration[_0x312f04('0xa')][_0x312f04('0x18')]=function(_0x52fbfb,_0x1d949d,_0xb6b8ba){const _0x3ba666=_0x312f04,_0x1fcb77=this;this[_0x3ba666('0xe')][_0x3ba666('0x2')](function(){const _0x3c2b14=_0x3ba666;return _0x1fcb77[_0x3c2b14('0x1a')][_0x3c2b14('0x18')](_0x52fbfb,_0x1d949d,_0xb6b8ba)[_0x3c2b14('0xf')](function(){const _0x29c4b6=_0x3c2b14;logger[_0x29c4b6('0xb')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1d949d,_0x52fbfb);})['catch'](function(_0x52a1a3){const _0x190a14=_0x3c2b14;logger['info'](JSON[_0x190a14('0x7')](_0x52a1a3));});});},Migration[_0x312f04('0xa')][_0x312f04('0x1e')]=function(_0x34d2fb,_0x958e1f,_0x9a2d0b){const _0x3f3a53=_0x312f04,_0x36c331=this;this[_0x3f3a53('0xe')][_0x3f3a53('0x2')](function(){const _0x62cca5=_0x3f3a53;return _0x36c331[_0x62cca5('0x1a')][_0x62cca5('0x1e')](_0x34d2fb,_0x958e1f,_0x9a2d0b)[_0x62cca5('0xf')](function(){const _0x479471=_0x62cca5;logger[_0x479471('0xb')](_0x479471('0x15'),_0x958e1f,_0x34d2fb);})['catch'](function(_0x26095c){const _0x322bbc=_0x62cca5;logger[_0x322bbc('0xb')](JSON[_0x322bbc('0x7')](_0x26095c));});});},Migration['prototype'][_0x312f04('0x12')]=function(_0x58efff){const _0x1c46aa=_0x312f04,_0x336310=this;this['sequence'][_0x1c46aa('0x2')](function(){const _0x461805=_0x1c46aa;return _0x336310[_0x461805('0x1a')][_0x461805('0x12')](_0x58efff,{'force':!![]})['then'](function(){const _0x36a7fb=_0x461805;logger[_0x36a7fb('0xb')]('table\x20dropped\x20%s',_0x58efff);})[_0x461805('0x2a')](function(_0x531d15){const _0x2b5a63=_0x461805;logger[_0x2b5a63('0xb')](JSON[_0x2b5a63('0x7')](_0x531d15));});});},Migration[_0x312f04('0xa')][_0x312f04('0x2b')]=function(_0x4058c0,_0x10c452,_0x41a7a3){const _0x2a731b=_0x312f04,_0x24c8d6=this;this[_0x2a731b('0xe')][_0x2a731b('0x2')](function(){const _0x3f479c=_0x2a731b;return _0x24c8d6['queryInterface'][_0x3f479c('0x2b')](_0x4058c0,_0x10c452,{'indexName':_0x41a7a3})['then'](function(){const _0x1f14ea=_0x3f479c;logger[_0x1f14ea('0xb')](_0x1f14ea('0x20'),_0x4058c0,_0x10c452[_0x1f14ea('0x1f')](','),_0x41a7a3);})[_0x3f479c('0x2a')](function(_0x54c7d7){const _0x401426=_0x3f479c;logger[_0x401426('0xb')](JSON[_0x401426('0x7')](_0x54c7d7));});});},Migration[_0x312f04('0xa')][_0x312f04('0x5')]=function(_0x2e6ceb,_0x535b2c){const _0x345207=_0x312f04,_0x43c937=this;this[_0x345207('0xe')][_0x345207('0x2')](function(){const _0xe537fc=_0x345207;return _0x43c937[_0xe537fc('0x1a')][_0xe537fc('0x5')](_0x2e6ceb,_0x535b2c)[_0xe537fc('0xf')](function(){const _0x49f05f=_0xe537fc;logger[_0x49f05f('0xb')]('removeIndex\x20%s\x20%s',_0x2e6ceb,_0x535b2c);})[_0xe537fc('0x2a')](function(_0xc97495){const _0x1aa527=_0xe537fc;logger[_0x1aa527('0xb')](JSON['stringify'](_0xc97495));});});},Migration[_0x312f04('0xa')][_0x312f04('0x27')]=function(_0x3ea91e){const _0x3f35ee=_0x312f04,_0x3652a0=this;this[_0x3f35ee('0xe')]['enqueue'](function(){const _0x24b069=_0x3f35ee;return _0x3652a0[_0x24b069('0x1a')][_0x24b069('0x6')][_0x24b069('0x27')](_0x3ea91e)[_0x24b069('0xf')](function(){logger['info']('query\x20%s',_0x3ea91e);})[_0x24b069('0x2a')](function(_0x1140b5){const _0x5174ec=_0x24b069;logger['info'](JSON[_0x5174ec('0x7')](_0x1140b5));});});},Migration[_0x312f04('0xa')][_0x312f04('0x24')]=function(_0x36aada,_0x21c610){const _0x35b5ad=_0x312f04,_0x2354a7=this;this[_0x35b5ad('0xe')][_0x35b5ad('0x2')](function(){const _0x2ae06a=_0x35b5ad;return _0x2354a7[_0x2ae06a('0x1a')]['removeColumn'](_0x36aada,_0x21c610)[_0x2ae06a('0xf')](function(){const _0x54cf9a=_0x2ae06a;logger['info'](_0x54cf9a('0x1b'),_0x21c610,_0x36aada);})['catch'](function(_0x1954bc){const _0x57c0fd=_0x2ae06a;logger[_0x57c0fd('0xb')](util[_0x57c0fd('0x17')](_0x1954bc,{'showHidden':![],'depth':null}));});});},Migration[_0x312f04('0xa')][_0x312f04('0x3')]=function(_0x58c990,_0x3d96ec,_0x1dd09b){const _0x25c0b2=_0x312f04,_0x2a9ea8=this;this[_0x25c0b2('0xe')][_0x25c0b2('0x2')](function(){const _0x59d033=_0x25c0b2;return _0x2a9ea8[_0x59d033('0x1a')][_0x59d033('0x3')](_0x58c990,_0x3d96ec,_0x1dd09b)[_0x59d033('0xf')](function(){const _0x5834c9=_0x59d033;logger[_0x5834c9('0xb')](_0x5834c9('0x1d'),_0x3d96ec,_0x1dd09b,_0x58c990);})['catch'](function(_0x265acb){const _0xa0d153=_0x59d033;logger[_0xa0d153('0xb')](util[_0xa0d153('0x17')](_0x265acb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x312f04('0x9')]=function(_0x141f50){const _0xdc9262=_0x312f04;this[_0xdc9262('0xe')]['enqueue'](function(){return _0x141f50();});},module[_0x312f04('0x26')]={'up':function(_0xfef543,_0xd4b9ff){return new Promise(function(_0xcb05a6){const _0x5d83a1=a962_0x5ca4,_0x4e7fb8=new Migration(_0xfef543);_0x4e7fb8[_0x5d83a1('0x1e')](_0x5d83a1('0x25'),_0x5d83a1('0x2c'),{'type':_0xd4b9ff['INTEGER'](0xb)}),_0x4e7fb8[_0x5d83a1('0x27')](_0x5d83a1('0x10')),_0x4e7fb8[_0x5d83a1('0x1e')](_0x5d83a1('0x1c'),_0x5d83a1('0x28'),{'type':_0xd4b9ff['STRING']}),_0x4e7fb8[_0x5d83a1('0x18')](_0x5d83a1('0x23'),_0x5d83a1('0x8'),{'type':_0xd4b9ff[_0x5d83a1('0x1')](_0x5d83a1('0x22'),_0x5d83a1('0x13'),_0x5d83a1('0x29'),_0x5d83a1('0x0'),_0x5d83a1('0x16'),_0x5d83a1('0x4'),_0x5d83a1('0x14'),_0x5d83a1('0x19'))}),_0x4e7fb8[_0x5d83a1('0x1e')](_0x5d83a1('0x23'),_0x5d83a1('0x11'),{'type':_0xd4b9ff['STRING']}),_0x4e7fb8[_0x5d83a1('0x1e')]('report_queue','queuecallerenterreason',{'type':_0xd4b9ff['INTEGER'],'defaultValue':0x0}),_0x4e7fb8[_0x5d83a1('0x9')](_0xcb05a6);});},'down':function(){}};
\ No newline at end of file