Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.30.js
index 9504c94..d51d1c1 100644 (file)
@@ -1 +1 @@
-const a908_0x507f=['changeColumn','UNSIGNED','queryInterface','chat_websites_fields','chat_messages','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','team_has_chat_queues','voice_queues','prototype','chat_enquiries','addIndex','stringify','dialQueueTimeout','chat_websites','catch','table\x20dropped\x20%s','info','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','addColumn','join','chat_visitors','user_has_chat_interactions','then','query\x20%s','tail','dropTable','sequence','chat_queues','chat_dispositions','../config/logger','Added\x20column\x20%s\x20to\x20%s','enqueue','chat_proactive_actions','chat_interactions','user_has_chat_queues','query','INTEGER'];(function(_0xd28655,_0x507f31){const _0xccbf35=function(_0x341045){while(--_0x341045){_0xd28655['push'](_0xd28655['shift']());}};_0xccbf35(++_0x507f31);}(a908_0x507f,0x141));const a908_0xccbf=function(_0xd28655,_0x507f31){_0xd28655=_0xd28655-0x0;let _0xccbf35=a908_0x507f[_0xd28655];return _0xccbf35;};const _0x31e5df=a908_0xccbf;'use strict';const logger=require(_0x31e5df('0xd'))('migration'),Sequence=function(){};Sequence[_0x31e5df('0x1e')][_0x31e5df('0xf')]=function(_0x341045){const _0x2efadd=_0x31e5df;this[_0x2efadd('0x8')]=this[_0x2efadd('0x8')]?this['tail'][_0x2efadd('0x1b')](_0x341045):_0x341045();};const Migration=function(_0x52be0f){this['queryInterface']=_0x52be0f,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x34fd8c,_0x1ef7ba,_0x175c97){const _0x523901=_0x31e5df,_0x493e1d=this;this[_0x523901('0xa')][_0x523901('0xf')](function(){const _0x394324=_0x523901;return _0x493e1d[_0x394324('0x17')][_0x394324('0x15')](_0x34fd8c,_0x1ef7ba,_0x175c97)['then'](function(){const _0x1dcee5=_0x394324;logger['info'](_0x1dcee5('0x1a'),_0x1ef7ba,_0x34fd8c);})[_0x394324('0x24')](function(_0x2de863){const _0x139f62=_0x394324;logger[_0x139f62('0x0')](JSON[_0x139f62('0x21')](_0x2de863));});});},Migration[_0x31e5df('0x1e')][_0x31e5df('0x2')]=function(_0x423b2d,_0x4653de,_0x581d47){const _0x2976b3=_0x31e5df,_0x14d0e2=this;this[_0x2976b3('0xa')][_0x2976b3('0xf')](function(){const _0x3415f5=_0x2976b3;return _0x14d0e2['queryInterface']['addColumn'](_0x423b2d,_0x4653de,_0x581d47)[_0x3415f5('0x6')](function(){const _0x3806b6=_0x3415f5;logger[_0x3806b6('0x0')](_0x3806b6('0xe'),_0x4653de,_0x423b2d);})['catch'](function(_0x4be7bd){const _0x48704a=_0x3415f5;logger[_0x48704a('0x0')](JSON['stringify'](_0x4be7bd));});});},Migration['prototype'][_0x31e5df('0x9')]=function(_0x16a004){const _0x70a491=_0x31e5df,_0x317eba=this;this[_0x70a491('0xa')][_0x70a491('0xf')](function(){const _0x5f4872=_0x70a491;return _0x317eba[_0x5f4872('0x17')][_0x5f4872('0x9')](_0x16a004,{'force':!![]})[_0x5f4872('0x6')](function(){const _0x4c22bd=_0x5f4872;logger['info'](_0x4c22bd('0x25'),_0x16a004);})['catch'](function(_0x5b6053){const _0x2bf8ce=_0x5f4872;logger[_0x2bf8ce('0x0')](JSON['stringify'](_0x5b6053));});});},Migration['prototype'][_0x31e5df('0x20')]=function(_0x2208a6,_0x470a01,_0x37f2d5){const _0x421aab=_0x31e5df,_0x78210=this;this[_0x421aab('0xa')][_0x421aab('0xf')](function(){const _0x4fc10c=_0x421aab;return _0x78210[_0x4fc10c('0x17')]['addIndex'](_0x2208a6,_0x470a01,{'indexName':_0x37f2d5})[_0x4fc10c('0x6')](function(){const _0x2f7f1a=_0x4fc10c;logger[_0x2f7f1a('0x0')]('addIndex\x20%s\x20%s\x20%s',_0x2208a6,_0x470a01[_0x2f7f1a('0x3')](','),_0x37f2d5);})[_0x4fc10c('0x24')](function(_0x5afddd){logger['info'](JSON['stringify'](_0x5afddd));});});},Migration[_0x31e5df('0x1e')][_0x31e5df('0x13')]=function(_0x4e8195){const _0x5f0321=_0x31e5df,_0x555a84=this;this[_0x5f0321('0xa')][_0x5f0321('0xf')](function(){const _0x33c3e5=_0x5f0321;return _0x555a84[_0x33c3e5('0x17')]['sequelize'][_0x33c3e5('0x13')](_0x4e8195)[_0x33c3e5('0x6')](function(){const _0x1f6339=_0x33c3e5;logger[_0x1f6339('0x0')](_0x1f6339('0x7'),_0x4e8195);})[_0x33c3e5('0x24')](function(_0x537758){const _0x54d40b=_0x33c3e5;logger[_0x54d40b('0x0')](JSON['stringify'](_0x537758));});});},Migration[_0x31e5df('0x1e')]['final']=function(_0x28d0b8){const _0x4f9c3c=_0x31e5df;this[_0x4f9c3c('0xa')][_0x4f9c3c('0xf')](function(){return _0x28d0b8();});},module['exports']={'up':function(_0x2fed20,_0x454146){return new Promise(function(_0x1366ec){const _0x2cd18d=a908_0xccbf,_0x5ca58a=new Migration(_0x2fed20);_0x5ca58a[_0x2cd18d('0x9')]('user_has_chat_rooms'),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x1f')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x19')),_0x5ca58a['dropTable'](_0x2cd18d('0x10')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0xc')),_0x5ca58a[_0x2cd18d('0x9')]('chat_applications'),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x5')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x11')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x1c')),_0x5ca58a['dropTable'](_0x2cd18d('0x12')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0xb')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x4')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x18')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x23')),_0x5ca58a['changeColumn'](_0x2cd18d('0x1d'),_0x2cd18d('0x22'),{'type':_0x454146[_0x2cd18d('0x14')](0x3)[_0x2cd18d('0x16')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cd18d('0x1')}),_0x5ca58a['final'](_0x1366ec);});},'down':function(){}};
\ No newline at end of file
+const a1070_0x40d0=['addIndex','UNSIGNED','INTEGER','../config/logger','chat_websites_fields','stringify','chat_queues','info','queryInterface','addIndex\x20%s\x20%s\x20%s','query\x20%s','finally','prototype','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','addColumn','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_applications','query','enqueue','table\x20dropped\x20%s','team_has_chat_queues','Added\x20column\x20%s\x20to\x20%s','voice_queues','changeColumn','tail','catch','chat_enquiries','final','sequence','chat_proactive_actions','then','chat_websites'];(function(_0x216388,_0x2c3a9b){const _0x40d0eb=function(_0x2a4960){while(--_0x2a4960){_0x216388['push'](_0x216388['shift']());}};_0x40d0eb(++_0x2c3a9b);}(a1070_0x40d0,0x96));const a1070_0x2a49=function(_0x216388,_0x2c3a9b){_0x216388=_0x216388-0x1e1;let _0x40d0eb=a1070_0x40d0[_0x216388];return _0x40d0eb;};const a1070_0x6947bc=a1070_0x2a49;'use strict';const logger=require(a1070_0x6947bc(0x1f3))('migration'),Sequence=function(){};Sequence['prototype'][a1070_0x6947bc(0x1e2)]=function(_0x50ea47){const _0x12bd6d=a1070_0x6947bc;this['tail']=this[_0x12bd6d(0x1e8)]?this[_0x12bd6d(0x1e8)][_0x12bd6d(0x1fb)](_0x50ea47):_0x50ea47();};const Migration=function(_0x113c08){const _0x3f829a=a1070_0x6947bc;this[_0x3f829a(0x1f8)]=_0x113c08,this[_0x3f829a(0x1ec)]=new Sequence();};Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1e7)]=function(_0x733fa7,_0x5758d0,_0x18980d){const _0x10546a=a1070_0x6947bc,_0x3c334b=this;this[_0x10546a(0x1ec)]['enqueue'](function(){const _0x49078d=_0x10546a;return _0x3c334b[_0x49078d(0x1f8)][_0x49078d(0x1e7)](_0x733fa7,_0x5758d0,_0x18980d)['then'](function(){const _0x2c4fe7=_0x49078d;logger[_0x2c4fe7(0x1f7)](_0x2c4fe7(0x200),_0x5758d0,_0x733fa7);})[_0x49078d(0x1e9)](function(_0x329f2e){const _0x31382d=_0x49078d;logger[_0x31382d(0x1f7)](JSON[_0x31382d(0x1f5)](_0x329f2e));});});},Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1fe)]=function(_0x1d54c9,_0x2235f4,_0x1cfb7d){const _0x1d3fbf=this;this['sequence']['enqueue'](function(){const _0x4e78be=a1070_0x2a49;return _0x1d3fbf['queryInterface'][_0x4e78be(0x1fe)](_0x1d54c9,_0x2235f4,_0x1cfb7d)[_0x4e78be(0x1ee)](function(){const _0x530048=_0x4e78be;logger[_0x530048(0x1f7)](_0x530048(0x1e5),_0x2235f4,_0x1d54c9);})['catch'](function(_0x523ef1){const _0x482c27=_0x4e78be;logger[_0x482c27(0x1f7)](JSON[_0x482c27(0x1f5)](_0x523ef1));});});},Migration[a1070_0x6947bc(0x1fc)]['dropTable']=function(_0x238d47){const _0x3ec07b=a1070_0x6947bc,_0x4cad83=this;this[_0x3ec07b(0x1ec)]['enqueue'](function(){const _0x53a597=_0x3ec07b;return _0x4cad83[_0x53a597(0x1f8)][_0x53a597(0x1ff)](_0x238d47,{'force':!![]})[_0x53a597(0x1ee)](function(){const _0x1240c4=_0x53a597;logger['info'](_0x1240c4(0x1e3),_0x238d47);})[_0x53a597(0x1e9)](function(_0x323a06){const _0x24e565=_0x53a597;logger[_0x24e565(0x1f7)](JSON['stringify'](_0x323a06));});});},Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1f0)]=function(_0x5813b1,_0x5357e4,_0x430825){const _0x492109=a1070_0x6947bc,_0x3480a2=this;this['sequence'][_0x492109(0x1e2)](function(){const _0x23acd2=_0x492109;return _0x3480a2[_0x23acd2(0x1f8)][_0x23acd2(0x1f0)](_0x5813b1,_0x5357e4,{'indexName':_0x430825})[_0x23acd2(0x1ee)](function(){const _0x190efc=_0x23acd2;logger[_0x190efc(0x1f7)](_0x190efc(0x1f9),_0x5813b1,_0x5357e4['join'](','),_0x430825);})[_0x23acd2(0x1e9)](function(_0x1cf557){const _0x1c0986=_0x23acd2;logger[_0x1c0986(0x1f7)](JSON[_0x1c0986(0x1f5)](_0x1cf557));});});},Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1e1)]=function(_0xa9134a){const _0x271e4b=a1070_0x6947bc,_0x6d83fd=this;this['sequence'][_0x271e4b(0x1e2)](function(){const _0x3a9e7e=_0x271e4b;return _0x6d83fd[_0x3a9e7e(0x1f8)]['sequelize'][_0x3a9e7e(0x1e1)](_0xa9134a)[_0x3a9e7e(0x1ee)](function(){const _0x32d8a4=_0x3a9e7e;logger[_0x32d8a4(0x1f7)](_0x32d8a4(0x1fa),_0xa9134a);})[_0x3a9e7e(0x1e9)](function(_0xdfeb09){const _0x526d30=_0x3a9e7e;logger[_0x526d30(0x1f7)](JSON['stringify'](_0xdfeb09));});});},Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1eb)]=function(_0x440533){const _0x39592f=a1070_0x6947bc;this[_0x39592f(0x1ec)][_0x39592f(0x1e2)](function(){return _0x440533();});},module['exports']={'up':function(_0x86bb5b,_0x1d8fa3){return new Promise(function(_0x503bd6){const _0x2a0356=a1070_0x2a49,_0x541be9=new Migration(_0x86bb5b);_0x541be9[_0x2a0356(0x1ff)]('user_has_chat_rooms'),_0x541be9['dropTable'](_0x2a0356(0x1ea)),_0x541be9[_0x2a0356(0x1ff)]('chat_messages'),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1ed)),_0x541be9['dropTable']('chat_dispositions'),_0x541be9['dropTable'](_0x2a0356(0x201)),_0x541be9[_0x2a0356(0x1ff)]('user_has_chat_interactions'),_0x541be9['dropTable']('chat_interactions'),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1e4)),_0x541be9['dropTable']('user_has_chat_queues'),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1f6)),_0x541be9[_0x2a0356(0x1ff)]('chat_visitors'),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1f4)),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1ef)),_0x541be9['changeColumn'](_0x2a0356(0x1e6),'dialQueueTimeout',{'type':_0x1d8fa3[_0x2a0356(0x1f2)](0x3)[_0x2a0356(0x1f1)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2a0356(0x1fd)}),_0x541be9['final'](_0x503bd6);});},'down':function(){}};
\ No newline at end of file