Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / migrations / 2.3.91.js
index 0fcacea..1196ea4 100644 (file)
@@ -1 +1 @@
-const a983_0xe6fd=['addColumn','sequence','join','Added\x20column\x20%s\x20to\x20%s','info','then','sipcallid','sequelize','final','report_call','dropTable','query','finally','addIndex\x20%s\x20%s\x20%s','removeColumn','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','addIndex','removeIndex','removeIndex\x20%s\x20%s','prototype','catch','enqueue','queryInterface','stringify','inspect','renameColumn','query\x20%s','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','STRING'];(function(_0x13bbef,_0xe6fd06){const _0x3c56ed=function(_0x1a6816){while(--_0x1a6816){_0x13bbef['push'](_0x13bbef['shift']());}};_0x3c56ed(++_0xe6fd06);}(a983_0xe6fd,0xb0));const a983_0x3c56=function(_0x13bbef,_0xe6fd06){_0x13bbef=_0x13bbef-0x0;let _0x3c56ed=a983_0xe6fd[_0x13bbef];return _0x3c56ed;};const _0x583047=a983_0x3c56;'use strict';const util=require('util'),logger=require('../config/logger')(_0x583047('0x4')),Sequence=function(){};Sequence[_0x583047('0xa')][_0x583047('0xc')]=function(_0x1a6816){const _0xbd8d98=_0x583047;this[_0xbd8d98('0x14')]=this[_0xbd8d98('0x14')]?this[_0xbd8d98('0x14')][_0xbd8d98('0x1')](_0x1a6816):_0x1a6816();};const Migration=function(_0x1cbe53){const _0x1527fa=_0x583047;this[_0x1527fa('0xd')]=_0x1cbe53,this[_0x1527fa('0x17')]=new Sequence();};Migration['prototype'][_0x583047('0x12')]=function(_0x2cad0f,_0x3a2da3,_0x700882){const _0x2e93e4=_0x583047,_0x56b6d6=this;this[_0x2e93e4('0x17')][_0x2e93e4('0xc')](function(){const _0xda08f4=_0x2e93e4;return _0x56b6d6[_0xda08f4('0xd')][_0xda08f4('0x12')](_0x2cad0f,_0x3a2da3,_0x700882)[_0xda08f4('0x1b')](function(){const _0x3f8ab5=_0xda08f4;logger[_0x3f8ab5('0x1a')](_0x3f8ab5('0x5'),_0x3a2da3,_0x2cad0f);})['catch'](function(_0x7d6a49){const _0x5d4aa8=_0xda08f4;logger['info'](JSON[_0x5d4aa8('0xe')](_0x7d6a49));});});},Migration[_0x583047('0xa')][_0x583047('0x16')]=function(_0x1f6714,_0x3311cf,_0x5e791c){const _0x51c374=_0x583047,_0x4e6c73=this;this[_0x51c374('0x17')][_0x51c374('0xc')](function(){const _0x3c3479=_0x51c374;return _0x4e6c73['queryInterface'][_0x3c3479('0x16')](_0x1f6714,_0x3311cf,_0x5e791c)[_0x3c3479('0x1b')](function(){const _0x473414=_0x3c3479;logger[_0x473414('0x1a')](_0x473414('0x19'),_0x3311cf,_0x1f6714);})['catch'](function(_0x506170){const _0x15ea4e=_0x3c3479;logger[_0x15ea4e('0x1a')](JSON[_0x15ea4e('0xe')](_0x506170));});});},Migration[_0x583047('0xa')][_0x583047('0x20')]=function(_0x4bee76){const _0x3e3561=_0x583047,_0x12bad5=this;this['sequence'][_0x3e3561('0xc')](function(){const _0x1e74a9=_0x3e3561;return _0x12bad5['queryInterface']['dropTable'](_0x4bee76,{'force':!![]})[_0x1e74a9('0x1b')](function(){const _0x25d480=_0x1e74a9;logger[_0x25d480('0x1a')](_0x25d480('0x6'),_0x4bee76);})[_0x1e74a9('0xb')](function(_0x224b21){const _0x5d2e6d=_0x1e74a9;logger[_0x5d2e6d('0x1a')](JSON[_0x5d2e6d('0xe')](_0x224b21));});});},Migration[_0x583047('0xa')][_0x583047('0x7')]=function(_0x3ae7f2,_0x11ef2c,_0x26e499){const _0x145797=_0x583047,_0x494f64=this;this[_0x145797('0x17')]['enqueue'](function(){const _0x3a5bd6=_0x145797;return _0x494f64[_0x3a5bd6('0xd')][_0x3a5bd6('0x7')](_0x3ae7f2,_0x11ef2c,{'indexName':_0x26e499})[_0x3a5bd6('0x1b')](function(){const _0x155d2b=_0x3a5bd6;logger[_0x155d2b('0x1a')](_0x155d2b('0x2'),_0x3ae7f2,_0x11ef2c[_0x155d2b('0x18')](','),_0x26e499);})[_0x3a5bd6('0xb')](function(_0x3e7be9){const _0x14d769=_0x3a5bd6;logger[_0x14d769('0x1a')](JSON[_0x14d769('0xe')](_0x3e7be9));});});},Migration[_0x583047('0xa')][_0x583047('0x8')]=function(_0x347761,_0x1e472b){const _0x23a456=_0x583047,_0x2d023a=this;this['sequence'][_0x23a456('0xc')](function(){const _0x3fe5ab=_0x23a456;return _0x2d023a['queryInterface'][_0x3fe5ab('0x8')](_0x347761,_0x1e472b)[_0x3fe5ab('0x1b')](function(){const _0x17b57d=_0x3fe5ab;logger[_0x17b57d('0x1a')](_0x17b57d('0x9'),_0x347761,_0x1e472b);})[_0x3fe5ab('0xb')](function(_0x19b0d3){const _0x45300b=_0x3fe5ab;logger[_0x45300b('0x1a')](JSON[_0x45300b('0xe')](_0x19b0d3));});});},Migration[_0x583047('0xa')][_0x583047('0x0')]=function(_0xdceee1){const _0x4c31d5=_0x583047,_0x27321e=this;this[_0x4c31d5('0x17')][_0x4c31d5('0xc')](function(){const _0xf989b5=_0x4c31d5;return _0x27321e[_0xf989b5('0xd')][_0xf989b5('0x1d')][_0xf989b5('0x0')](_0xdceee1)['then'](function(){const _0x5effb9=_0xf989b5;logger[_0x5effb9('0x1a')](_0x5effb9('0x11'),_0xdceee1);})['catch'](function(_0xd029b9){const _0x57f4b5=_0xf989b5;logger[_0x57f4b5('0x1a')](JSON[_0x57f4b5('0xe')](_0xd029b9));});});},Migration['prototype'][_0x583047('0x3')]=function(_0x1a5137,_0x1f24a3){const _0x45ad9e=_0x583047,_0x2045a3=this;this['sequence'][_0x45ad9e('0xc')](function(){const _0x136c5e=_0x45ad9e;return _0x2045a3[_0x136c5e('0xd')][_0x136c5e('0x3')](_0x1a5137,_0x1f24a3)['then'](function(){const _0x2de0a7=_0x136c5e;logger[_0x2de0a7('0x1a')]('Removed\x20column\x20%s\x20from\x20%s',_0x1f24a3,_0x1a5137);})[_0x136c5e('0xb')](function(_0x47f821){const _0x3cca8c=_0x136c5e;logger['info'](util[_0x3cca8c('0xf')](_0x47f821,{'showHidden':![],'depth':null}));});});},Migration[_0x583047('0xa')][_0x583047('0x10')]=function(_0xc4143d,_0x3ccba7,_0x3bd91a){const _0x4830b9=_0x583047,_0x162805=this;this[_0x4830b9('0x17')]['enqueue'](function(){const _0x2a27b0=_0x4830b9;return _0x162805[_0x2a27b0('0xd')][_0x2a27b0('0x10')](_0xc4143d,_0x3ccba7,_0x3bd91a)[_0x2a27b0('0x1b')](function(){const _0x540cdd=_0x2a27b0;logger['info'](_0x540cdd('0x13'),_0x3ccba7,_0x3bd91a,_0xc4143d);})[_0x2a27b0('0xb')](function(_0x17b0ed){const _0x534ad7=_0x2a27b0;logger[_0x534ad7('0x1a')](util['inspect'](_0x17b0ed,{'showHidden':![],'depth':null}));});});},Migration[_0x583047('0xa')][_0x583047('0x1e')]=function(_0x1fe25b){const _0x57853c=_0x583047;this[_0x57853c('0x17')]['enqueue'](function(){return _0x1fe25b();});},module['exports']={'up':function(_0x227e34,_0x2ff347){return new Promise(function(_0x137517){const _0x19744d=a983_0x3c56,_0x1d858b=new Migration(_0x227e34);_0x1d858b[_0x19744d('0x16')](_0x19744d('0x1f'),_0x19744d('0x1c'),{'type':_0x2ff347[_0x19744d('0x15')]}),_0x1d858b['final'](_0x137517);});},'down':function(){}};
\ No newline at end of file
+const a983_0x4581=['dropTable','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','table\x20dropped\x20%s','migration','enqueue','addColumn','stringify','finally','../config/logger','report_call','sequelize','prototype','Added\x20column\x20%s\x20to\x20%s','renameColumn','exports','addIndex','inspect','tail','query','removeIndex','STRING','changeColumn','queryInterface','query\x20%s','final','removeColumn','info','Changed\x20column\x20%s\x20in\x20table\x20%s','sipcallid','then'];(function(_0x1137c9,_0x458156){const _0x5ed53c=function(_0x15dac4){while(--_0x15dac4){_0x1137c9['push'](_0x1137c9['shift']());}};_0x5ed53c(++_0x458156);}(a983_0x4581,0x1a1));const a983_0x5ed5=function(_0x1137c9,_0x458156){_0x1137c9=_0x1137c9-0x0;let _0x5ed53c=a983_0x4581[_0x1137c9];return _0x5ed53c;};const _0x48b6e1=a983_0x5ed5;'use strict';const util=require('util'),logger=require(_0x48b6e1('0x9'))(_0x48b6e1('0x4')),Sequence=function(){};Sequence[_0x48b6e1('0xc')]['enqueue']=function(_0x15dac4){const _0x15f1ab=_0x48b6e1;this['tail']=this[_0x15f1ab('0x12')]?this['tail'][_0x15f1ab('0x8')](_0x15dac4):_0x15dac4();};const Migration=function(_0x3d5e0c){const _0x3c7ddf=_0x48b6e1;this[_0x3c7ddf('0x17')]=_0x3d5e0c,this[_0x3c7ddf('0x0')]=new Sequence();};Migration[_0x48b6e1('0xc')][_0x48b6e1('0x16')]=function(_0x238de7,_0x3db1f9,_0x18cad2){const _0xf09205=_0x48b6e1,_0x3a0c2d=this;this['sequence'][_0xf09205('0x5')](function(){const _0x1bab9a=_0xf09205;return _0x3a0c2d[_0x1bab9a('0x17')][_0x1bab9a('0x16')](_0x238de7,_0x3db1f9,_0x18cad2)[_0x1bab9a('0x1e')](function(){const _0x220bb8=_0x1bab9a;logger[_0x220bb8('0x1b')](_0x220bb8('0x1c'),_0x3db1f9,_0x238de7);})['catch'](function(_0x48da9c){logger['info'](JSON['stringify'](_0x48da9c));});});},Migration[_0x48b6e1('0xc')]['addColumn']=function(_0x252932,_0x2326d0,_0x4ae832){const _0x17e346=_0x48b6e1,_0x347025=this;this['sequence'][_0x17e346('0x5')](function(){const _0x3c320e=_0x17e346;return _0x347025[_0x3c320e('0x17')]['addColumn'](_0x252932,_0x2326d0,_0x4ae832)['then'](function(){const _0x1cb1c9=_0x3c320e;logger[_0x1cb1c9('0x1b')](_0x1cb1c9('0xd'),_0x2326d0,_0x252932);})[_0x3c320e('0x2')](function(_0x3df3d0){logger['info'](JSON['stringify'](_0x3df3d0));});});},Migration['prototype']['dropTable']=function(_0x1d21f6){const _0x332cc2=this;this['sequence']['enqueue'](function(){const _0x4dd917=a983_0x5ed5;return _0x332cc2[_0x4dd917('0x17')][_0x4dd917('0x1f')](_0x1d21f6,{'force':!![]})[_0x4dd917('0x1e')](function(){const _0x44b0ee=_0x4dd917;logger['info'](_0x44b0ee('0x3'),_0x1d21f6);})[_0x4dd917('0x2')](function(_0x55a31e){const _0x230ae8=_0x4dd917;logger[_0x230ae8('0x1b')](JSON[_0x230ae8('0x7')](_0x55a31e));});});},Migration['prototype'][_0x48b6e1('0x10')]=function(_0x1f33a9,_0x1743e3,_0xaed24e){const _0x586f3a=_0x48b6e1,_0x5e9338=this;this[_0x586f3a('0x0')][_0x586f3a('0x5')](function(){const _0x5e6a94=_0x586f3a;return _0x5e9338['queryInterface'][_0x5e6a94('0x10')](_0x1f33a9,_0x1743e3,{'indexName':_0xaed24e})[_0x5e6a94('0x1e')](function(){const _0xbcff15=_0x5e6a94;logger[_0xbcff15('0x1b')]('addIndex\x20%s\x20%s\x20%s',_0x1f33a9,_0x1743e3['join'](','),_0xaed24e);})['catch'](function(_0x4d83a8){const _0x93e551=_0x5e6a94;logger[_0x93e551('0x1b')](JSON[_0x93e551('0x7')](_0x4d83a8));});});},Migration[_0x48b6e1('0xc')][_0x48b6e1('0x14')]=function(_0x2335b1,_0x38f380){const _0x1dee8d=_0x48b6e1,_0x49db6c=this;this[_0x1dee8d('0x0')][_0x1dee8d('0x5')](function(){const _0x42f603=_0x1dee8d;return _0x49db6c[_0x42f603('0x17')]['removeIndex'](_0x2335b1,_0x38f380)[_0x42f603('0x1e')](function(){const _0x4e3fd8=_0x42f603;logger[_0x4e3fd8('0x1b')]('removeIndex\x20%s\x20%s',_0x2335b1,_0x38f380);})[_0x42f603('0x2')](function(_0x604fd2){const _0x5414bd=_0x42f603;logger[_0x5414bd('0x1b')](JSON['stringify'](_0x604fd2));});});},Migration[_0x48b6e1('0xc')][_0x48b6e1('0x13')]=function(_0x279058){const _0xab8e44=_0x48b6e1,_0x339ec1=this;this[_0xab8e44('0x0')][_0xab8e44('0x5')](function(){const _0x33c502=_0xab8e44;return _0x339ec1[_0x33c502('0x17')][_0x33c502('0xb')]['query'](_0x279058)['then'](function(){const _0x3d2370=_0x33c502;logger['info'](_0x3d2370('0x18'),_0x279058);})[_0x33c502('0x2')](function(_0x4c6939){const _0x154850=_0x33c502;logger['info'](JSON[_0x154850('0x7')](_0x4c6939));});});},Migration[_0x48b6e1('0xc')][_0x48b6e1('0x1a')]=function(_0x5f05ff,_0x390855){const _0x8a14e=_0x48b6e1,_0x2b83a4=this;this[_0x8a14e('0x0')][_0x8a14e('0x5')](function(){const _0x233d4e=_0x8a14e;return _0x2b83a4['queryInterface'][_0x233d4e('0x1a')](_0x5f05ff,_0x390855)['then'](function(){const _0x3e0d08=_0x233d4e;logger[_0x3e0d08('0x1b')]('Removed\x20column\x20%s\x20from\x20%s',_0x390855,_0x5f05ff);})['catch'](function(_0x903e42){logger['info'](util['inspect'](_0x903e42,{'showHidden':![],'depth':null}));});});},Migration[_0x48b6e1('0xc')][_0x48b6e1('0xe')]=function(_0x1a8ea1,_0xec0008,_0x51b1ae){const _0x17a20d=_0x48b6e1,_0x48395c=this;this['sequence'][_0x17a20d('0x5')](function(){const _0x74b7a8=_0x17a20d;return _0x48395c['queryInterface'][_0x74b7a8('0xe')](_0x1a8ea1,_0xec0008,_0x51b1ae)[_0x74b7a8('0x1e')](function(){const _0x1ecd36=_0x74b7a8;logger[_0x1ecd36('0x1b')](_0x1ecd36('0x1'),_0xec0008,_0x51b1ae,_0x1a8ea1);})['catch'](function(_0x252d2f){const _0x5ce2d2=_0x74b7a8;logger[_0x5ce2d2('0x1b')](util[_0x5ce2d2('0x11')](_0x252d2f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x48b6e1('0x19')]=function(_0x366732){const _0x23d247=_0x48b6e1;this[_0x23d247('0x0')]['enqueue'](function(){return _0x366732();});},module[_0x48b6e1('0xf')]={'up':function(_0x1bb8b7,_0x15c96c){return new Promise(function(_0xb77627){const _0x13704a=a983_0x5ed5,_0x1a283a=new Migration(_0x1bb8b7);_0x1a283a[_0x13704a('0x6')](_0x13704a('0xa'),_0x13704a('0x1d'),{'type':_0x15c96c[_0x13704a('0x15')]}),_0x1a283a['final'](_0xb77627);});},'down':function(){}};
\ No newline at end of file