Built motion from commit be44e1e4d16f8b29d243415b03d27262d8601e0e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.91.js
index 2b0a14a..1d3e908 100644 (file)
@@ -1 +1 @@
-const a983_0x2b4c=['then','changeColumn','info','removeColumn','prototype','dropTable','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','tail','final','stringify','removeIndex\x20%s\x20%s','renameColumn','enqueue','finally','addIndex\x20%s\x20%s\x20%s','removeIndex','queryInterface','table\x20dropped\x20%s','catch','sequelize','addColumn','exports','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','Removed\x20column\x20%s\x20from\x20%s','sequence','sipcallid','query','inspect','join'];(function(_0x48cf0a,_0x2b4c57){const _0x674946=function(_0xcf32cc){while(--_0xcf32cc){_0x48cf0a['push'](_0x48cf0a['shift']());}};_0x674946(++_0x2b4c57);}(a983_0x2b4c,0xda));const a983_0x6749=function(_0x48cf0a,_0x2b4c57){_0x48cf0a=_0x48cf0a-0x0;let _0x674946=a983_0x2b4c[_0x48cf0a];return _0x674946;};const _0x1c76af=a983_0x6749;'use strict';const util=require('util'),logger=require(_0x1c76af('0x6'))('migration'),Sequence=function(){};Sequence[_0x1c76af('0x11')][_0x1c76af('0x1b')]=function(_0xcf32cc){const _0xba2eb=_0x1c76af;this[_0xba2eb('0x16')]=this[_0xba2eb('0x16')]?this[_0xba2eb('0x16')][_0xba2eb('0x1c')](_0xcf32cc):_0xcf32cc();};const Migration=function(_0x2d103c){const _0x2fe055=_0x1c76af;this['queryInterface']=_0x2d103c,this[_0x2fe055('0x8')]=new Sequence();};Migration[_0x1c76af('0x11')][_0x1c76af('0xe')]=function(_0x4071cf,_0x47e8af,_0x583a9b){const _0x22636c=_0x1c76af,_0x589675=this;this['sequence'][_0x22636c('0x1b')](function(){const _0x1f1bc8=_0x22636c;return _0x589675['queryInterface'][_0x1f1bc8('0xe')](_0x4071cf,_0x47e8af,_0x583a9b)['then'](function(){const _0x8cfb55=_0x1f1bc8;logger[_0x8cfb55('0xf')](_0x8cfb55('0x14'),_0x47e8af,_0x4071cf);})[_0x1f1bc8('0x0')](function(_0x44b370){const _0x43d741=_0x1f1bc8;logger[_0x43d741('0xf')](JSON[_0x43d741('0x18')](_0x44b370));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x2')]=function(_0x1a43aa,_0x1e7439,_0x28d0d1){const _0x4365ef=_0x1c76af,_0x2fb261=this;this['sequence'][_0x4365ef('0x1b')](function(){const _0x3d8523=_0x4365ef;return _0x2fb261[_0x3d8523('0x1f')][_0x3d8523('0x2')](_0x1a43aa,_0x1e7439,_0x28d0d1)[_0x3d8523('0xd')](function(){const _0x52ce30=_0x3d8523;logger[_0x52ce30('0xf')](_0x52ce30('0x4'),_0x1e7439,_0x1a43aa);})[_0x3d8523('0x0')](function(_0x5354de){const _0x3eff8b=_0x3d8523;logger[_0x3eff8b('0xf')](JSON[_0x3eff8b('0x18')](_0x5354de));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x12')]=function(_0x20b029){const _0x4a7226=_0x1c76af,_0x495a74=this;this[_0x4a7226('0x8')]['enqueue'](function(){const _0x367b68=_0x4a7226;return _0x495a74[_0x367b68('0x1f')][_0x367b68('0x12')](_0x20b029,{'force':!![]})[_0x367b68('0xd')](function(){const _0x18b916=_0x367b68;logger['info'](_0x18b916('0x20'),_0x20b029);})[_0x367b68('0x0')](function(_0x3203b3){const _0x2ae9b6=_0x367b68;logger['info'](JSON[_0x2ae9b6('0x18')](_0x3203b3));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x13')]=function(_0x380695,_0x5693c1,_0x13ae2a){const _0xe7445b=_0x1c76af,_0x48fe52=this;this[_0xe7445b('0x8')][_0xe7445b('0x1b')](function(){const _0x2bd19a=_0xe7445b;return _0x48fe52[_0x2bd19a('0x1f')][_0x2bd19a('0x13')](_0x380695,_0x5693c1,{'indexName':_0x13ae2a})['then'](function(){const _0x2961eb=_0x2bd19a;logger[_0x2961eb('0xf')](_0x2961eb('0x1d'),_0x380695,_0x5693c1[_0x2961eb('0xc')](','),_0x13ae2a);})[_0x2bd19a('0x0')](function(_0x1e2848){const _0x2d8a6a=_0x2bd19a;logger[_0x2d8a6a('0xf')](JSON['stringify'](_0x1e2848));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x1e')]=function(_0x1fdbe4,_0x170774){const _0x3743ae=this;this['sequence']['enqueue'](function(){const _0x93bc5f=a983_0x6749;return _0x3743ae['queryInterface']['removeIndex'](_0x1fdbe4,_0x170774)[_0x93bc5f('0xd')](function(){const _0x2c27fd=_0x93bc5f;logger['info'](_0x2c27fd('0x19'),_0x1fdbe4,_0x170774);})['catch'](function(_0x3f0542){const _0x56b2ef=_0x93bc5f;logger['info'](JSON[_0x56b2ef('0x18')](_0x3f0542));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0xa')]=function(_0x37b022){const _0xa01899=_0x1c76af,_0x2d6948=this;this[_0xa01899('0x8')][_0xa01899('0x1b')](function(){const _0x46d854=_0xa01899;return _0x2d6948['queryInterface'][_0x46d854('0x1')][_0x46d854('0xa')](_0x37b022)[_0x46d854('0xd')](function(){const _0x98df8e=_0x46d854;logger['info'](_0x98df8e('0x15'),_0x37b022);})[_0x46d854('0x0')](function(_0x51d4f3){const _0x5b56c2=_0x46d854;logger['info'](JSON[_0x5b56c2('0x18')](_0x51d4f3));});});},Migration[_0x1c76af('0x11')]['removeColumn']=function(_0x33eab5,_0x593b95){const _0x3e7fa6=_0x1c76af,_0x1d708f=this;this[_0x3e7fa6('0x8')]['enqueue'](function(){const _0x4b5b26=_0x3e7fa6;return _0x1d708f[_0x4b5b26('0x1f')][_0x4b5b26('0x10')](_0x33eab5,_0x593b95)[_0x4b5b26('0xd')](function(){const _0x18919f=_0x4b5b26;logger['info'](_0x18919f('0x7'),_0x593b95,_0x33eab5);})[_0x4b5b26('0x0')](function(_0x17505f){const _0x1446fd=_0x4b5b26;logger[_0x1446fd('0xf')](util[_0x1446fd('0xb')](_0x17505f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1c76af('0x1a')]=function(_0x2ce704,_0xdc0130,_0x3ecec4){const _0x37a6fb=_0x1c76af,_0x983f41=this;this[_0x37a6fb('0x8')][_0x37a6fb('0x1b')](function(){const _0x49179f=_0x37a6fb;return _0x983f41['queryInterface'][_0x49179f('0x1a')](_0x2ce704,_0xdc0130,_0x3ecec4)[_0x49179f('0xd')](function(){const _0x246822=_0x49179f;logger[_0x246822('0xf')](_0x246822('0x5'),_0xdc0130,_0x3ecec4,_0x2ce704);})[_0x49179f('0x0')](function(_0x56c772){const _0x4ed0f3=_0x49179f;logger[_0x4ed0f3('0xf')](util['inspect'](_0x56c772,{'showHidden':![],'depth':null}));});});},Migration[_0x1c76af('0x11')][_0x1c76af('0x17')]=function(_0x278534){const _0x4a901d=_0x1c76af;this[_0x4a901d('0x8')]['enqueue'](function(){return _0x278534();});},module[_0x1c76af('0x3')]={'up':function(_0x4149ce,_0x29aca6){return new Promise(function(_0x543758){const _0x1e170d=a983_0x6749,_0x33a6ec=new Migration(_0x4149ce);_0x33a6ec[_0x1e170d('0x2')]('report_call',_0x1e170d('0x9'),{'type':_0x29aca6['STRING']}),_0x33a6ec['final'](_0x543758);});},'down':function(){}};
\ No newline at end of file
+const a983_0x4685=['../config/logger','dropTable','join','migration','prototype','queryInterface','STRING','util','catch','final','addColumn','report_call','inspect','addIndex','tail','Removed\x20column\x20%s\x20from\x20%s','removeColumn','exports','renameColumn','query','sequence','changeColumn','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','removeIndex','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','then','sipcallid','enqueue','finally','query\x20%s','info','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x3a9dea,_0x468504){const _0x2f6285=function(_0x3b20d6){while(--_0x3b20d6){_0x3a9dea['push'](_0x3a9dea['shift']());}};_0x2f6285(++_0x468504);}(a983_0x4685,0x1b3));const a983_0x2f62=function(_0x3a9dea,_0x468504){_0x3a9dea=_0x3a9dea-0x0;let _0x2f6285=a983_0x4685[_0x3a9dea];return _0x2f6285;};const _0x5e9a31=a983_0x2f62;'use strict';const util=require(_0x5e9a31('0x4')),logger=require(_0x5e9a31('0x21'))(_0x5e9a31('0x0')),Sequence=function(){};Sequence[_0x5e9a31('0x1')][_0x5e9a31('0x1b')]=function(_0x3b20d6){const _0x49d834=_0x5e9a31;this[_0x49d834('0xb')]=this['tail']?this['tail'][_0x49d834('0x1c')](_0x3b20d6):_0x3b20d6();};const Migration=function(_0x35f0e6){const _0x18acf4=_0x5e9a31;this[_0x18acf4('0x2')]=_0x35f0e6,this[_0x18acf4('0x11')]=new Sequence();};Migration[_0x5e9a31('0x1')][_0x5e9a31('0x12')]=function(_0x2ec9ad,_0x3ee9e8,_0x488d7a){const _0x462364=_0x5e9a31,_0x339845=this;this['sequence'][_0x462364('0x1b')](function(){const _0x462839=_0x462364;return _0x339845['queryInterface'][_0x462839('0x12')](_0x2ec9ad,_0x3ee9e8,_0x488d7a)[_0x462839('0x19')](function(){const _0x1c0c01=_0x462839;logger[_0x1c0c01('0x1e')](_0x1c0c01('0x20'),_0x3ee9e8,_0x2ec9ad);})[_0x462839('0x5')](function(_0x3c33de){const _0x424887=_0x462839;logger[_0x424887('0x1e')](JSON[_0x424887('0x15')](_0x3c33de));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0x7')]=function(_0x3ee741,_0x329577,_0x476b5a){const _0x7e7f71=_0x5e9a31,_0x1829ca=this;this[_0x7e7f71('0x11')][_0x7e7f71('0x1b')](function(){const _0x581e17=_0x7e7f71;return _0x1829ca[_0x581e17('0x2')][_0x581e17('0x7')](_0x3ee741,_0x329577,_0x476b5a)[_0x581e17('0x19')](function(){const _0x51042b=_0x581e17;logger[_0x51042b('0x1e')](_0x51042b('0x18'),_0x329577,_0x3ee741);})[_0x581e17('0x5')](function(_0x2c9283){const _0x4d7ac6=_0x581e17;logger['info'](JSON[_0x4d7ac6('0x15')](_0x2c9283));});});},Migration[_0x5e9a31('0x1')]['dropTable']=function(_0xf642dd){const _0x72e460=_0x5e9a31,_0x59f135=this;this['sequence'][_0x72e460('0x1b')](function(){const _0x3b375c=_0x72e460;return _0x59f135['queryInterface'][_0x3b375c('0x22')](_0xf642dd,{'force':!![]})[_0x3b375c('0x19')](function(){const _0x462ecf=_0x3b375c;logger[_0x462ecf('0x1e')]('table\x20dropped\x20%s',_0xf642dd);})[_0x3b375c('0x5')](function(_0x56dcdd){const _0x509614=_0x3b375c;logger[_0x509614('0x1e')](JSON[_0x509614('0x15')](_0x56dcdd));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0xa')]=function(_0x45c106,_0x5c25d5,_0x2203a6){const _0x2cb829=this;this['sequence']['enqueue'](function(){const _0x332088=a983_0x2f62;return _0x2cb829[_0x332088('0x2')][_0x332088('0xa')](_0x45c106,_0x5c25d5,{'indexName':_0x2203a6})['then'](function(){const _0x14ea0d=_0x332088;logger[_0x14ea0d('0x1e')](_0x14ea0d('0x17'),_0x45c106,_0x5c25d5[_0x14ea0d('0x23')](','),_0x2203a6);})['catch'](function(_0x4e9cfb){const _0x5adf35=_0x332088;logger[_0x5adf35('0x1e')](JSON[_0x5adf35('0x15')](_0x4e9cfb));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0x16')]=function(_0x38663b,_0x701195){const _0x19ba36=_0x5e9a31,_0x46e067=this;this[_0x19ba36('0x11')]['enqueue'](function(){const _0x353c3f=_0x19ba36;return _0x46e067[_0x353c3f('0x2')][_0x353c3f('0x16')](_0x38663b,_0x701195)[_0x353c3f('0x19')](function(){const _0x312772=_0x353c3f;logger[_0x312772('0x1e')](_0x312772('0x13'),_0x38663b,_0x701195);})[_0x353c3f('0x5')](function(_0x44ff53){const _0x2ed093=_0x353c3f;logger[_0x2ed093('0x1e')](JSON[_0x2ed093('0x15')](_0x44ff53));});});},Migration['prototype'][_0x5e9a31('0x10')]=function(_0x2bba97){const _0x21f440=_0x5e9a31,_0xb31051=this;this[_0x21f440('0x11')][_0x21f440('0x1b')](function(){const _0x4dbd95=_0x21f440;return _0xb31051[_0x4dbd95('0x2')][_0x4dbd95('0x1f')][_0x4dbd95('0x10')](_0x2bba97)[_0x4dbd95('0x19')](function(){const _0x3b0103=_0x4dbd95;logger['info'](_0x3b0103('0x1d'),_0x2bba97);})['catch'](function(_0x591004){const _0x4a9ccb=_0x4dbd95;logger[_0x4a9ccb('0x1e')](JSON[_0x4a9ccb('0x15')](_0x591004));});});},Migration['prototype'][_0x5e9a31('0xd')]=function(_0xc0690d,_0x9efb23){const _0x3c70e0=_0x5e9a31,_0x441a17=this;this['sequence'][_0x3c70e0('0x1b')](function(){const _0x7595ff=_0x3c70e0;return _0x441a17['queryInterface'][_0x7595ff('0xd')](_0xc0690d,_0x9efb23)['then'](function(){const _0x43adb2=_0x7595ff;logger[_0x43adb2('0x1e')](_0x43adb2('0xc'),_0x9efb23,_0xc0690d);})[_0x7595ff('0x5')](function(_0x202099){const _0xcfb8e7=_0x7595ff;logger['info'](util[_0xcfb8e7('0x9')](_0x202099,{'showHidden':![],'depth':null}));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0xf')]=function(_0x21baff,_0x39a09e,_0x5c0c31){const _0x35711f=_0x5e9a31,_0x2b6b45=this;this[_0x35711f('0x11')]['enqueue'](function(){const _0x108311=_0x35711f;return _0x2b6b45['queryInterface']['renameColumn'](_0x21baff,_0x39a09e,_0x5c0c31)['then'](function(){const _0x31fb8d=a983_0x2f62;logger[_0x31fb8d('0x1e')](_0x31fb8d('0x14'),_0x39a09e,_0x5c0c31,_0x21baff);})[_0x108311('0x5')](function(_0x5d55f5){const _0x563665=_0x108311;logger[_0x563665('0x1e')](util[_0x563665('0x9')](_0x5d55f5,{'showHidden':![],'depth':null}));});});},Migration[_0x5e9a31('0x1')][_0x5e9a31('0x6')]=function(_0x586310){this['sequence']['enqueue'](function(){return _0x586310();});},module[_0x5e9a31('0xe')]={'up':function(_0x893dc2,_0x9adb5){return new Promise(function(_0x3edca3){const _0x3b3741=a983_0x2f62,_0x3ee5eb=new Migration(_0x893dc2);_0x3ee5eb['addColumn'](_0x3b3741('0x8'),_0x3b3741('0x1a'),{'type':_0x9adb5[_0x3b3741('0x3')]}),_0x3ee5eb[_0x3b3741('0x6')](_0x3edca3);});},'down':function(){}};
\ No newline at end of file