Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.68.js
index 54882da..6f1ed0c 100644 (file)
@@ -1 +1 @@
-const a947_0xa166=['sequence','inspect','changeColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','../config/logger','addIndex\x20%s\x20%s\x20%s','catch','addIndex','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())','query','then','stringify','settings','renameColumn','join','prototype','tail','mapKey','queryInterface','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','exports','STRING','info','final','query\x20%s','addColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','enqueue','openchannel_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','chat_interactions','migration','removeIndex','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','Added\x20column\x20%s\x20to\x20%s','closeReason','removeColumn'];(function(_0x3ba287,_0xa1664d){const _0x2be405=function(_0xc2bf56){while(--_0xc2bf56){_0x3ba287['push'](_0x3ba287['shift']());}};_0x2be405(++_0xa1664d);}(a947_0xa166,0x94));const a947_0x2be4=function(_0x3ba287,_0xa1664d){_0x3ba287=_0x3ba287-0x0;let _0x2be405=a947_0xa166[_0x3ba287];return _0x2be405;};const _0x164084=a947_0x2be4;'use strict';const util=require('util'),logger=require(_0x164084('0x8'))(_0x164084('0x24')),Sequence=function(){};Sequence['prototype'][_0x164084('0x1f')]=function(_0xc2bf56){const _0x3143ea=_0x164084;this[_0x3143ea('0x14')]=this[_0x3143ea('0x14')]?this[_0x3143ea('0x14')]['finally'](_0xc2bf56):_0xc2bf56();};const Migration=function(_0x317e8a){const _0x361b62=_0x164084;this[_0x361b62('0x16')]=_0x317e8a,this[_0x361b62('0x4')]=new Sequence();};Migration[_0x164084('0x13')]['changeColumn']=function(_0x203f2a,_0x1f1bc9,_0x4cd988){const _0x378a31=_0x164084,_0x4f5d35=this;this[_0x378a31('0x4')][_0x378a31('0x1f')](function(){const _0x54d703=_0x378a31;return _0x4f5d35[_0x54d703('0x16')][_0x54d703('0x6')](_0x203f2a,_0x1f1bc9,_0x4cd988)[_0x54d703('0xe')](function(){const _0x25548c=_0x54d703;logger[_0x25548c('0x1a')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1f1bc9,_0x203f2a);})[_0x54d703('0xa')](function(_0x3a3d7b){const _0x13e828=_0x54d703;logger[_0x13e828('0x1a')](JSON[_0x13e828('0xf')](_0x3a3d7b));});});},Migration[_0x164084('0x13')][_0x164084('0x1d')]=function(_0x445964,_0x5a5519,_0x3ad953){const _0x2a2016=_0x164084,_0x44e77a=this;this['sequence'][_0x2a2016('0x1f')](function(){const _0x54f650=_0x2a2016;return _0x44e77a[_0x54f650('0x16')][_0x54f650('0x1d')](_0x445964,_0x5a5519,_0x3ad953)[_0x54f650('0xe')](function(){const _0x2ababf=_0x54f650;logger['info'](_0x2ababf('0x1'),_0x5a5519,_0x445964);})[_0x54f650('0xa')](function(_0x10995e){logger['info'](JSON['stringify'](_0x10995e));});});},Migration['prototype'][_0x164084('0x22')]=function(_0x5992e0){const _0x4dbbe7=this;this['sequence']['enqueue'](function(){const _0x32b2ec=a947_0x2be4;return _0x4dbbe7['queryInterface'][_0x32b2ec('0x22')](_0x5992e0,{'force':!![]})[_0x32b2ec('0xe')](function(){logger['info']('table\x20dropped\x20%s',_0x5992e0);})['catch'](function(_0x8fd54b){const _0x2b6099=_0x32b2ec;logger[_0x2b6099('0x1a')](JSON['stringify'](_0x8fd54b));});});},Migration['prototype'][_0x164084('0xb')]=function(_0x478a12,_0x13b114,_0x38ac0d){const _0x369e06=_0x164084,_0x31e16f=this;this[_0x369e06('0x4')][_0x369e06('0x1f')](function(){const _0x169b31=_0x369e06;return _0x31e16f[_0x169b31('0x16')][_0x169b31('0xb')](_0x478a12,_0x13b114,{'indexName':_0x38ac0d})['then'](function(){const _0xe903e8=_0x169b31;logger[_0xe903e8('0x1a')](_0xe903e8('0x9'),_0x478a12,_0x13b114[_0xe903e8('0x12')](','),_0x38ac0d);})[_0x169b31('0xa')](function(_0x218ea8){const _0xc666a1=_0x169b31;logger['info'](JSON[_0xc666a1('0xf')](_0x218ea8));});});},Migration[_0x164084('0x13')][_0x164084('0x25')]=function(_0x5110d0,_0x1d3ef4){const _0x2bc7ef=_0x164084,_0x536a32=this;this[_0x2bc7ef('0x4')][_0x2bc7ef('0x1f')](function(){const _0x1967e9=_0x2bc7ef;return _0x536a32[_0x1967e9('0x16')][_0x1967e9('0x25')](_0x5110d0,_0x1d3ef4)[_0x1967e9('0xe')](function(){const _0x23e3e5=_0x1967e9;logger[_0x23e3e5('0x1a')]('removeIndex\x20%s\x20%s',_0x5110d0,_0x1d3ef4);})[_0x1967e9('0xa')](function(_0x2e6194){const _0x1ae791=_0x1967e9;logger[_0x1ae791('0x1a')](JSON[_0x1ae791('0xf')](_0x2e6194));});});},Migration[_0x164084('0x13')]['query']=function(_0x26c65b){const _0x35825c=_0x164084,_0x479449=this;this['sequence'][_0x35825c('0x1f')](function(){const _0x1f6e35=_0x35825c;return _0x479449[_0x1f6e35('0x16')]['sequelize'][_0x1f6e35('0xd')](_0x26c65b)[_0x1f6e35('0xe')](function(){const _0x3d093d=_0x1f6e35;logger[_0x3d093d('0x1a')](_0x3d093d('0x1c'),_0x26c65b);})[_0x1f6e35('0xa')](function(_0x94e507){const _0x3a9764=_0x1f6e35;logger[_0x3a9764('0x1a')](JSON[_0x3a9764('0xf')](_0x94e507));});});},Migration['prototype'][_0x164084('0x3')]=function(_0x526b29,_0x1da3f0){const _0x4b9a6d=_0x164084,_0x9845ad=this;this['sequence'][_0x4b9a6d('0x1f')](function(){const _0x52f0bc=_0x4b9a6d;return _0x9845ad[_0x52f0bc('0x16')][_0x52f0bc('0x3')](_0x526b29,_0x1da3f0)[_0x52f0bc('0xe')](function(){const _0x2c1e68=_0x52f0bc;logger[_0x2c1e68('0x1a')]('Removed\x20column\x20%s\x20from\x20%s',_0x1da3f0,_0x526b29);})[_0x52f0bc('0xa')](function(_0xb393ce){const _0x471426=_0x52f0bc;logger[_0x471426('0x1a')](util[_0x471426('0x5')](_0xb393ce,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x164084('0x11')]=function(_0x122fc3,_0x552e80,_0x46e8fd){const _0x5ebf2d=_0x164084,_0x5597f8=this;this['sequence'][_0x5ebf2d('0x1f')](function(){const _0x17abac=_0x5ebf2d;return _0x5597f8['queryInterface'][_0x17abac('0x11')](_0x122fc3,_0x552e80,_0x46e8fd)[_0x17abac('0xe')](function(){const _0x565e62=_0x17abac;logger[_0x565e62('0x1a')](_0x565e62('0x21'),_0x552e80,_0x46e8fd,_0x122fc3);})[_0x17abac('0xa')](function(_0x50770c){const _0x4e5eac=_0x17abac;logger[_0x4e5eac('0x1a')](util['inspect'](_0x50770c,{'showHidden':![],'depth':null}));});});},Migration[_0x164084('0x13')][_0x164084('0x1b')]=function(_0x324b81){const _0x1903f6=_0x164084;this['sequence'][_0x1903f6('0x1f')](function(){return _0x324b81();});},module[_0x164084('0x18')]={'up':function(_0x34a92e,_0x379b86){return new Promise(function(_0x2138d9){const _0x3c6de7=a947_0x2be4,_0x571233=new Migration(_0x34a92e);_0x571233[_0x3c6de7('0xd')](_0x3c6de7('0xc')),_0x571233[_0x3c6de7('0xd')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())'),_0x571233[_0x3c6de7('0xd')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())'),_0x571233[_0x3c6de7('0xd')](_0x3c6de7('0x1e')),_0x571233[_0x3c6de7('0xd')](_0x3c6de7('0x7')),_0x571233['query'](_0x3c6de7('0x17')),_0x571233[_0x3c6de7('0x1d')](_0x3c6de7('0x20'),_0x3c6de7('0x15'),{'type':_0x379b86[_0x3c6de7('0x19')]}),_0x571233[_0x3c6de7('0x1d')](_0x3c6de7('0x23'),_0x3c6de7('0x2'),{'type':_0x379b86['STRING']}),_0x571233[_0x3c6de7('0x1d')](_0x3c6de7('0x10'),'messagesAlignment',{'type':_0x379b86[_0x3c6de7('0x19')]}),_0x571233['query'](_0x3c6de7('0x0')),_0x571233['final'](_0x2138d9);});},'down':function(){}};
\ No newline at end of file
+const a947_0x6352=['tail','inspect','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())','enqueue','query\x20%s','addColumn','info','removeIndex','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','openchannel_accounts','removeColumn','finally','util','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','exports','changeColumn','renameColumn','prototype','final','catch','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','query','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())','migration','closeReason','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','../config/logger','dropTable','Added\x20column\x20%s\x20to\x20%s','join','sequelize','mapKey','sequence','stringify','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','STRING','chat_interactions','then','queryInterface'];(function(_0x3b1b95,_0x63526d){const _0x1a0557=function(_0x1258c3){while(--_0x1258c3){_0x3b1b95['push'](_0x3b1b95['shift']());}};_0x1a0557(++_0x63526d);}(a947_0x6352,0x141));const a947_0x1a05=function(_0x3b1b95,_0x63526d){_0x3b1b95=_0x3b1b95-0x0;let _0x1a0557=a947_0x6352[_0x3b1b95];return _0x1a0557;};const _0xf4ce4d=a947_0x1a05;'use strict';const util=require(_0xf4ce4d('0x1d')),logger=require(_0xf4ce4d('0x2'))(_0xf4ce4d('0x29')),Sequence=function(){};Sequence[_0xf4ce4d('0x23')][_0xf4ce4d('0x12')]=function(_0x1258c3){const _0x5b69dd=_0xf4ce4d;this[_0x5b69dd('0xf')]=this['tail']?this[_0x5b69dd('0xf')][_0x5b69dd('0x1c')](_0x1258c3):_0x1258c3();};const Migration=function(_0x561832){const _0x1f60ef=_0xf4ce4d;this[_0x1f60ef('0xe')]=_0x561832,this[_0x1f60ef('0x8')]=new Sequence();};Migration['prototype'][_0xf4ce4d('0x21')]=function(_0x1478eb,_0x130abe,_0x1ab978){const _0x52cc0a=_0xf4ce4d,_0x3a1d1b=this;this['sequence'][_0x52cc0a('0x12')](function(){const _0x46b9dc=_0x52cc0a;return _0x3a1d1b['queryInterface'][_0x46b9dc('0x21')](_0x1478eb,_0x130abe,_0x1ab978)[_0x46b9dc('0xd')](function(){const _0x4076d1=_0x46b9dc;logger[_0x4076d1('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x130abe,_0x1478eb);})['catch'](function(_0x6f4d4b){const _0x9af96b=_0x46b9dc;logger[_0x9af96b('0x15')](JSON[_0x9af96b('0x9')](_0x6f4d4b));});});},Migration['prototype'][_0xf4ce4d('0x14')]=function(_0x447da0,_0x5e4439,_0x5b9ce1){const _0x456704=_0xf4ce4d,_0x415d37=this;this[_0x456704('0x8')]['enqueue'](function(){const _0x28fbcc=_0x456704;return _0x415d37[_0x28fbcc('0xe')][_0x28fbcc('0x14')](_0x447da0,_0x5e4439,_0x5b9ce1)[_0x28fbcc('0xd')](function(){const _0x1533a7=_0x28fbcc;logger[_0x1533a7('0x15')](_0x1533a7('0x4'),_0x5e4439,_0x447da0);})[_0x28fbcc('0x25')](function(_0x126318){const _0x182332=_0x28fbcc;logger[_0x182332('0x15')](JSON[_0x182332('0x9')](_0x126318));});});},Migration[_0xf4ce4d('0x23')]['dropTable']=function(_0x2a342f){const _0x43a70a=this;this['sequence']['enqueue'](function(){const _0x302768=a947_0x1a05;return _0x43a70a[_0x302768('0xe')][_0x302768('0x3')](_0x2a342f,{'force':!![]})[_0x302768('0xd')](function(){const _0x14f97e=_0x302768;logger[_0x14f97e('0x15')]('table\x20dropped\x20%s',_0x2a342f);})[_0x302768('0x25')](function(_0x104163){const _0x48e776=_0x302768;logger[_0x48e776('0x15')](JSON[_0x48e776('0x9')](_0x104163));});});},Migration['prototype'][_0xf4ce4d('0x17')]=function(_0x57cde9,_0x19d2e3,_0x161d58){const _0x4d3eb0=_0xf4ce4d,_0x540fd4=this;this[_0x4d3eb0('0x8')][_0x4d3eb0('0x12')](function(){const _0xde9dc8=_0x4d3eb0;return _0x540fd4[_0xde9dc8('0xe')][_0xde9dc8('0x17')](_0x57cde9,_0x19d2e3,{'indexName':_0x161d58})['then'](function(){const _0x5516bd=_0xde9dc8;logger[_0x5516bd('0x15')](_0x5516bd('0x1f'),_0x57cde9,_0x19d2e3[_0x5516bd('0x5')](','),_0x161d58);})['catch'](function(_0x6fff81){const _0x35a50a=_0xde9dc8;logger['info'](JSON[_0x35a50a('0x9')](_0x6fff81));});});},Migration['prototype'][_0xf4ce4d('0x16')]=function(_0x4e8f70,_0x4aa7e1){const _0x42d5c1=this;this['sequence']['enqueue'](function(){const _0x5c41b3=a947_0x1a05;return _0x42d5c1[_0x5c41b3('0xe')][_0x5c41b3('0x16')](_0x4e8f70,_0x4aa7e1)[_0x5c41b3('0xd')](function(){const _0xfdd44d=_0x5c41b3;logger[_0xfdd44d('0x15')](_0xfdd44d('0x19'),_0x4e8f70,_0x4aa7e1);})[_0x5c41b3('0x25')](function(_0x159d36){const _0xb86cd3=_0x5c41b3;logger[_0xb86cd3('0x15')](JSON[_0xb86cd3('0x9')](_0x159d36));});});},Migration['prototype']['query']=function(_0x547d34){const _0x1c3c1b=_0xf4ce4d,_0x555328=this;this[_0x1c3c1b('0x8')]['enqueue'](function(){const _0x12fdb8=_0x1c3c1b;return _0x555328[_0x12fdb8('0xe')][_0x12fdb8('0x6')][_0x12fdb8('0x27')](_0x547d34)[_0x12fdb8('0xd')](function(){const _0x4ee551=_0x12fdb8;logger['info'](_0x4ee551('0x13'),_0x547d34);})[_0x12fdb8('0x25')](function(_0x51d19c){const _0x3faf14=_0x12fdb8;logger[_0x3faf14('0x15')](JSON[_0x3faf14('0x9')](_0x51d19c));});});},Migration[_0xf4ce4d('0x23')][_0xf4ce4d('0x1b')]=function(_0x3ebc9f,_0x5eede4){const _0x570e9c=_0xf4ce4d,_0x34a261=this;this[_0x570e9c('0x8')][_0x570e9c('0x12')](function(){const _0xbe5765=_0x570e9c;return _0x34a261[_0xbe5765('0xe')][_0xbe5765('0x1b')](_0x3ebc9f,_0x5eede4)[_0xbe5765('0xd')](function(){const _0x1d865c=_0xbe5765;logger[_0x1d865c('0x15')](_0x1d865c('0x1e'),_0x5eede4,_0x3ebc9f);})[_0xbe5765('0x25')](function(_0x31f8ff){const _0x4f205c=_0xbe5765;logger[_0x4f205c('0x15')](util['inspect'](_0x31f8ff,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x1589f4,_0x2fd68f,_0x1f15a1){const _0xc109c9=_0xf4ce4d,_0x2f7c8f=this;this['sequence'][_0xc109c9('0x12')](function(){const _0x2c22c5=_0xc109c9;return _0x2f7c8f['queryInterface'][_0x2c22c5('0x22')](_0x1589f4,_0x2fd68f,_0x1f15a1)['then'](function(){const _0x3076a1=_0x2c22c5;logger[_0x3076a1('0x15')](_0x3076a1('0x18'),_0x2fd68f,_0x1f15a1,_0x1589f4);})[_0x2c22c5('0x25')](function(_0x27f9f7){const _0xfa23bd=_0x2c22c5;logger[_0xfa23bd('0x15')](util[_0xfa23bd('0x10')](_0x27f9f7,{'showHidden':![],'depth':null}));});});},Migration[_0xf4ce4d('0x23')][_0xf4ce4d('0x24')]=function(_0x14ed67){this['sequence']['enqueue'](function(){return _0x14ed67();});},module[_0xf4ce4d('0x20')]={'up':function(_0x2167a5,_0x2dfb35){return new Promise(function(_0xe29930){const _0x2edde5=a947_0x1a05,_0x178a63=new Migration(_0x2167a5);_0x178a63['query'](_0x2edde5('0x28')),_0x178a63[_0x2edde5('0x27')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())'),_0x178a63[_0x2edde5('0x27')](_0x2edde5('0x11')),_0x178a63['query'](_0x2edde5('0xa')),_0x178a63[_0x2edde5('0x27')](_0x2edde5('0x1')),_0x178a63['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())'),_0x178a63[_0x2edde5('0x14')](_0x2edde5('0x1a'),_0x2edde5('0x7'),{'type':_0x2dfb35[_0x2edde5('0xb')]}),_0x178a63['addColumn'](_0x2edde5('0xc'),_0x2edde5('0x0'),{'type':_0x2dfb35['STRING']}),_0x178a63['addColumn']('settings','messagesAlignment',{'type':_0x2dfb35[_0x2edde5('0xb')]}),_0x178a63['query'](_0x2edde5('0x26')),_0x178a63[_0x2edde5('0x24')](_0xe29930);});},'down':function(){}};
\ No newline at end of file