Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.41.js
1 'use strict';const a1092_0x5821=['Changed\x20column\x20%s\x20in\x20table\x20%s','992714Ncjdwp','showAgentAvatar','serverUrl','258852YTzvtz','table\x20dropped\x20%s','353197muHdiX','agentAvatar','exports','3344921nmomyX','1DFeLtI','removeColumn','STRING','chat_messages','enqueue','sequence','cm_custom_fields','query\x20%s','chat_interactions','Added\x20column\x20%s\x20to\x20%s','changeColumn','int_desk_accounts','values','TEXT','then','addIndex','845676aaZPTu','util','addIndex\x20%s\x20%s\x20%s','chat_websites','migration','secret','stringify','addColumn','595622LgQfpK','long','join','Removed\x20column\x20%s\x20from\x20%s','info','final','495836ZwsSwv','dropTable','queryInterface','tail','resolve','query','BOOLEAN','finally','prototype','catch'];const a1092_0x3292=function(_0x21e818,_0x4c57a5){_0x21e818=_0x21e818-0xb6;let _0x5821c5=a1092_0x5821[_0x21e818];return _0x5821c5;};const a1092_0x5aa78f=a1092_0x3292;(function(_0x19f6dc,_0x1f8b46){const _0x5c5915=a1092_0x3292;while(!![]){try{const _0x501d73=-parseInt(_0x5c5915(0xcb))+-parseInt(_0x5c5915(0xc0))+-parseInt(_0x5c5915(0xba))+-parseInt(_0x5c5915(0xce))+parseInt(_0x5c5915(0xd0))+-parseInt(_0x5c5915(0xe4))+parseInt(_0x5c5915(0xd3))*parseInt(_0x5c5915(0xd4));if(_0x501d73===_0x1f8b46)break;else _0x19f6dc['push'](_0x19f6dc['shift']());}catch(_0x1bd3e0){_0x19f6dc['push'](_0x19f6dc['shift']());}}}(a1092_0x5821,0x7c5ea));const logger=require('@config/logger')(a1092_0x5aa78f(0xb6)),util=require(a1092_0x5aa78f(0xe5)),Sequence=function(){};Sequence['prototype'][a1092_0x5aa78f(0xd8)]=function(_0x3db762){const _0x3ba50a=a1092_0x5aa78f;this[_0x3ba50a(0xc3)]=this['tail']?this[_0x3ba50a(0xc3)][_0x3ba50a(0xc7)](_0x3db762):_0x3db762();};const Migration=function(_0x1e24d5){const _0x450145=a1092_0x5aa78f;this[_0x450145(0xc2)]=_0x1e24d5,this[_0x450145(0xd9)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x151ccd,_0x5d3de6,_0xd29310){const _0x4783c4=a1092_0x5aa78f,_0x1ea380=this;this[_0x4783c4(0xd9)][_0x4783c4(0xd8)](function(){const _0x3383b5=_0x4783c4;return _0x1ea380[_0x3383b5(0xc2)][_0x3383b5(0xde)](_0x151ccd,_0x5d3de6,_0xd29310)[_0x3383b5(0xe2)](function(){const _0xb1df90=_0x3383b5;logger[_0xb1df90(0xbe)](_0xb1df90(0xca),_0x5d3de6,_0x151ccd);})[_0x3383b5(0xc9)](function(_0x157584){const _0x273017=_0x3383b5;logger[_0x273017(0xbe)](JSON[_0x273017(0xb8)](_0x157584));});});},Migration[a1092_0x5aa78f(0xc8)][a1092_0x5aa78f(0xb9)]=function(_0x28ea6a,_0x24464a,_0x5d1d95){const _0x375711=a1092_0x5aa78f,_0xb47b5e=this;this['sequence'][_0x375711(0xd8)](function(){const _0xcbe282=_0x375711;return _0xb47b5e[_0xcbe282(0xc2)][_0xcbe282(0xb9)](_0x28ea6a,_0x24464a,_0x5d1d95)[_0xcbe282(0xe2)](function(){const _0x130ca1=_0xcbe282;logger[_0x130ca1(0xbe)](_0x130ca1(0xdd),_0x24464a,_0x28ea6a);})[_0xcbe282(0xc9)](function(_0x4a3322){const _0x3359c5=_0xcbe282;logger['info'](JSON[_0x3359c5(0xb8)](_0x4a3322));});});},Migration[a1092_0x5aa78f(0xc8)][a1092_0x5aa78f(0xc1)]=function(_0x406ee9){const _0x6d8aa=a1092_0x5aa78f,_0x532b8b=this;this['sequence'][_0x6d8aa(0xd8)](function(){const _0x4c6c3b=_0x6d8aa;return _0x532b8b[_0x4c6c3b(0xc2)][_0x4c6c3b(0xc1)](_0x406ee9,{'force':!![]})[_0x4c6c3b(0xe2)](function(){const _0x50e8e1=_0x4c6c3b;logger[_0x50e8e1(0xbe)](_0x50e8e1(0xcf),_0x406ee9);})[_0x4c6c3b(0xc9)](function(_0x2cfee0){const _0x5c5dd8=_0x4c6c3b;logger[_0x5c5dd8(0xbe)](JSON[_0x5c5dd8(0xb8)](_0x2cfee0));});});},Migration['prototype']['addIndex']=function(_0x3b99d3,_0x3c2ab0,_0x7b7a90){const _0xb39d3c=a1092_0x5aa78f,_0x3c557f=this;this[_0xb39d3c(0xd9)]['enqueue'](function(){const _0x2de726=_0xb39d3c;return _0x3c557f[_0x2de726(0xc2)][_0x2de726(0xe3)](_0x3b99d3,_0x3c2ab0,{'indexName':_0x7b7a90})[_0x2de726(0xe2)](function(){const _0x3ce0e0=_0x2de726;logger[_0x3ce0e0(0xbe)](_0x3ce0e0(0xe6),_0x3b99d3,_0x3c2ab0[_0x3ce0e0(0xbc)](','),_0x7b7a90);})[_0x2de726(0xc9)](function(_0x1a8e59){const _0x4b6989=_0x2de726;logger[_0x4b6989(0xbe)](JSON[_0x4b6989(0xb8)](_0x1a8e59));});});},Migration[a1092_0x5aa78f(0xc8)][a1092_0x5aa78f(0xc5)]=function(_0x592f53){const _0x22749a=a1092_0x5aa78f,_0x1bf19f=this;this[_0x22749a(0xd9)][_0x22749a(0xd8)](function(){const _0x30a59d=_0x22749a;return _0x1bf19f[_0x30a59d(0xc2)]['sequelize'][_0x30a59d(0xc5)](_0x592f53)[_0x30a59d(0xe2)](function(){const _0x2cbd23=_0x30a59d;logger[_0x2cbd23(0xbe)](_0x2cbd23(0xdb),_0x592f53);})[_0x30a59d(0xc9)](function(_0x5db843){const _0x593f63=_0x30a59d;logger[_0x593f63(0xbe)](JSON[_0x593f63(0xb8)](_0x5db843));});});},Migration[a1092_0x5aa78f(0xc8)][a1092_0x5aa78f(0xd5)]=function(_0x183038,_0x572f1b){const _0x59db02=a1092_0x5aa78f,_0x21dc5b=this;this['sequence'][_0x59db02(0xd8)](function(){const _0x16bbfb=_0x59db02;return _0x21dc5b['queryInterface'][_0x16bbfb(0xd5)](_0x183038,_0x572f1b)['then'](function(){const _0x7d6263=_0x16bbfb;logger[_0x7d6263(0xbe)](_0x7d6263(0xbd),_0x572f1b,_0x183038);})[_0x16bbfb(0xc9)](function(_0x12d20f){const _0x57ebe2=_0x16bbfb;logger[_0x57ebe2(0xbe)](util['inspect'](_0x12d20f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1092_0x5aa78f(0xbf)]=function(_0x11caa4){const _0x12da52=a1092_0x5aa78f;this['sequence'][_0x12da52(0xd8)](function(){return _0x11caa4();});},module[a1092_0x5aa78f(0xd2)]={'up':function(_0x167d95,_0x518035){return new Promise(function(_0x4ea402){const _0x253413=a1092_0x3292,_0xbce267=new Migration(_0x167d95);_0xbce267[_0x253413(0xb9)](_0x253413(0xdf),_0x253413(0xcd),{'type':_0x518035[_0x253413(0xd6)]}),_0xbce267[_0x253413(0xb9)](_0x253413(0xdc),'formData',{'type':_0x518035[_0x253413(0xe1)]('long')}),_0xbce267[_0x253413(0xb9)](_0x253413(0xd7),_0x253413(0xb7),{'type':_0x518035[_0x253413(0xc6)],'defaultValue':![]}),_0xbce267['addColumn'](_0x253413(0xe7),_0x253413(0xd1),{'type':_0x518035[_0x253413(0xe1)]}),_0xbce267[_0x253413(0xb9)](_0x253413(0xe7),_0x253413(0xcc),{'type':_0x518035[_0x253413(0xc6)],'defaultValue':![]}),_0xbce267[_0x253413(0xde)](_0x253413(0xda),_0x253413(0xe0),{'type':_0x518035['TEXT'](_0x253413(0xbb))}),_0xbce267[_0x253413(0xbf)](_0x4ea402);});},'down':function(){const _0x287a38=a1092_0x5aa78f;return Promise[_0x287a38(0xc4)]();}};