Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.13.js
index f3f6e01..3e315ba 100644 (file)
@@ -1 +1 @@
-'use strict';const a1061_0x1739=['users','2762csqxQP','BOOLEAN','then','21UNuSFd','52045xbFJVD','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING','Removed\x20column\x20%s\x20from\x20%s','488035cNBJou','renameColumn','DATE','deletedat','removeColumn','rescheduled','exports','deleted','phoneBarRingInUse','reschedule','prototype','queryInterface','600308RhjeJT','stringify','339050MTBuWR','325377vBYICn','328jaEpnb','732489TpGpqy','2jPpjjz','addColumn','Added\x20column\x20%s\x20to\x20%s','cm_hopper_final','info'];const a1061_0x57ce=function(_0x1a0227,_0x46d562){_0x1a0227=_0x1a0227-0x181;let _0x1739ef=a1061_0x1739[_0x1a0227];return _0x1739ef;};const a1061_0x1b5d4c=a1061_0x57ce;(function(_0x41659a,_0x4c7e02){const _0x33e8ea=a1061_0x57ce;while(!![]){try{const _0x155df6=parseInt(_0x33e8ea(0x18e))+parseInt(_0x33e8ea(0x197))*-parseInt(_0x33e8ea(0x18f))+-parseInt(_0x33e8ea(0x190))+parseInt(_0x33e8ea(0x19a))*parseInt(_0x33e8ea(0x19b))+-parseInt(_0x33e8ea(0x19f))+parseInt(_0x33e8ea(0x18d))+-parseInt(_0x33e8ea(0x18b))*-parseInt(_0x33e8ea(0x191));if(_0x155df6===_0x4c7e02)break;else _0x41659a['push'](_0x41659a['shift']());}catch(_0x5bb1b2){_0x41659a['push'](_0x41659a['shift']());}}}(a1061_0x1739,0xcb028));const logger=require('@config/logger')('migration'),Migration=function(_0x22994f){const _0x4c5d4a=a1061_0x57ce;this[_0x4c5d4a(0x18a)]=_0x22994f;};Migration[a1061_0x1b5d4c(0x189)]['addColumn']=function(_0x3ca59c,_0x293b24,_0x596979){const _0x5189f3=a1061_0x1b5d4c;return this[_0x5189f3(0x18a)][_0x5189f3(0x192)](_0x3ca59c,_0x293b24,_0x596979)[_0x5189f3(0x199)](function(){const _0x24e4a9=_0x5189f3;logger[_0x24e4a9(0x195)](_0x24e4a9(0x193),_0x293b24,_0x3ca59c);})['catch'](function(_0x230b4c){const _0x418ab2=_0x5189f3;logger[_0x418ab2(0x195)](JSON[_0x418ab2(0x18c)](_0x230b4c));});},Migration[a1061_0x1b5d4c(0x189)]['removeColumn']=function(_0x2cdce7,_0x3d2bdd){const _0x3a2df7=a1061_0x1b5d4c;return this['queryInterface'][_0x3a2df7(0x183)](_0x2cdce7,_0x3d2bdd)[_0x3a2df7(0x199)](function(){const _0x3b7641=_0x3a2df7;logger[_0x3b7641(0x195)](_0x3b7641(0x19e),_0x3d2bdd,_0x2cdce7);})['catch'](function(_0x2bc0e0){const _0x2d9edb=_0x3a2df7;logger['info'](JSON[_0x2d9edb(0x18c)](_0x2bc0e0));});},Migration[a1061_0x1b5d4c(0x189)][a1061_0x1b5d4c(0x1a0)]=function(_0x361e4a,_0x417bea,_0x209f33){const _0x3d9d5d=a1061_0x1b5d4c;return this[_0x3d9d5d(0x18a)][_0x3d9d5d(0x1a0)](_0x361e4a,_0x417bea,_0x209f33)[_0x3d9d5d(0x199)](function(){const _0x200272=_0x3d9d5d;logger[_0x200272(0x195)](_0x200272(0x19c),_0x417bea,_0x209f33,_0x361e4a);})['catch'](function(_0x2694ac){const _0x18fd56=_0x3d9d5d;logger[_0x18fd56(0x195)](JSON[_0x18fd56(0x18c)](_0x2694ac));});},module[a1061_0x1b5d4c(0x185)]={'up':function(_0x39d759,_0x53de1a){const _0x43b729=a1061_0x1b5d4c,_0xe25cbd=new Migration(_0x39d759);_0xe25cbd[_0x43b729(0x192)]('cm_hopper_final',_0x43b729(0x182),{'type':_0x53de1a[_0x43b729(0x181)]}),_0xe25cbd['addColumn'](_0x43b729(0x196),'phoneBarRingInUse',{'type':_0x53de1a[_0x43b729(0x198)],'defaultValue':![]}),_0xe25cbd[_0x43b729(0x192)](_0x43b729(0x194),_0x43b729(0x186),{'type':_0x53de1a[_0x43b729(0x19d)],'defaultValue':null}),_0xe25cbd[_0x43b729(0x1a0)](_0x43b729(0x194),_0x43b729(0x188),_0x43b729(0x184));},'down':function(_0x485bdb,_0x43a491){const _0xbe3dfb=a1061_0x1b5d4c,_0x13c09e=new Migration(_0x485bdb,_0x43a491);return _0x13c09e[_0xbe3dfb(0x183)](_0xbe3dfb(0x196),_0xbe3dfb(0x187)),_0x13c09e[_0xbe3dfb(0x183)](_0xbe3dfb(0x194),'deletedat'),_0x13c09e[_0xbe3dfb(0x183)](_0xbe3dfb(0x194),_0xbe3dfb(0x186)),_0x13c09e['renameColumn']('cm_hopper_final',_0xbe3dfb(0x184),'reschedule'),Promise['resolve']();}};
\ No newline at end of file
+'use strict';const a1064_0x48ae=['4sMKuSp','Added\x20column\x20%s\x20to\x20%s','stringify','1234581aIOTTv','STRING','users','cm_hopper_final','resolve','4aqhBBf','deleted','addColumn','reschedule','Removed\x20column\x20%s\x20from\x20%s','queryInterface','phoneBarRingInUse','1ooycmJ','migration','then','1FFXKhU','info','224431FXbvDn','catch','prototype','DATE','removeColumn','1666474wMuuCH','renameColumn','rescheduled','1312891fBfncN','304841TkjbKM','238383ZDqDsv','117164wFDGuO','exports'];const a1064_0xaf9a=function(_0x1483f8,_0x37a800){_0x1483f8=_0x1483f8-0xd0;let _0x48ae90=a1064_0x48ae[_0x1483f8];return _0x48ae90;};const a1064_0x1ed45d=a1064_0xaf9a;(function(_0x4d43c3,_0x4a948d){const _0x490259=a1064_0xaf9a;while(!![]){try{const _0x10f93d=-parseInt(_0x490259(0xd8))+parseInt(_0x490259(0xef))*-parseInt(_0x490259(0xdd))+parseInt(_0x490259(0xe3))+-parseInt(_0x490259(0xde))+parseInt(_0x490259(0xdb))*parseInt(_0x490259(0xd1))+parseInt(_0x490259(0xe8))*-parseInt(_0x490259(0xd3))+-parseInt(_0x490259(0xe0))*-parseInt(_0x490259(0xdc));if(_0x10f93d===_0x4a948d)break;else _0x4d43c3['push'](_0x4d43c3['shift']());}catch(_0x583202){_0x4d43c3['push'](_0x4d43c3['shift']());}}}(a1064_0x48ae,0xcecf3));const logger=require('@config/logger')(a1064_0x1ed45d(0xf0)),Migration=function(_0x19e1bc){const _0x81265b=a1064_0x1ed45d;this[_0x81265b(0xed)]=_0x19e1bc;};Migration[a1064_0x1ed45d(0xd5)][a1064_0x1ed45d(0xea)]=function(_0x4f7e6c,_0x192679,_0xc3d554){const _0x35ba75=a1064_0x1ed45d;return this[_0x35ba75(0xed)]['addColumn'](_0x4f7e6c,_0x192679,_0xc3d554)[_0x35ba75(0xd0)](function(){const _0x55639f=_0x35ba75;logger[_0x55639f(0xd2)](_0x55639f(0xe1),_0x192679,_0x4f7e6c);})[_0x35ba75(0xd4)](function(_0x23da0d){logger['info'](JSON['stringify'](_0x23da0d));});},Migration[a1064_0x1ed45d(0xd5)]['removeColumn']=function(_0x28d1ff,_0x237077){const _0x4fb17f=a1064_0x1ed45d;return this[_0x4fb17f(0xed)][_0x4fb17f(0xd7)](_0x28d1ff,_0x237077)[_0x4fb17f(0xd0)](function(){const _0x165f30=_0x4fb17f;logger[_0x165f30(0xd2)](_0x165f30(0xec),_0x237077,_0x28d1ff);})['catch'](function(_0x2b2b6b){const _0x4150df=_0x4fb17f;logger[_0x4150df(0xd2)](JSON[_0x4150df(0xe2)](_0x2b2b6b));});},Migration[a1064_0x1ed45d(0xd5)][a1064_0x1ed45d(0xd9)]=function(_0x52df8f,_0xe0a069,_0x254c7a){const _0x3ad597=a1064_0x1ed45d;return this[_0x3ad597(0xed)][_0x3ad597(0xd9)](_0x52df8f,_0xe0a069,_0x254c7a)[_0x3ad597(0xd0)](function(){const _0x47ef22=_0x3ad597;logger[_0x47ef22(0xd2)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xe0a069,_0x254c7a,_0x52df8f);})[_0x3ad597(0xd4)](function(_0x24047d){const _0x272333=_0x3ad597;logger[_0x272333(0xd2)](JSON[_0x272333(0xe2)](_0x24047d));});},module[a1064_0x1ed45d(0xdf)]={'up':function(_0x1e8a3d,_0x443f42){const _0x7e891d=a1064_0x1ed45d,_0x65f7c4=new Migration(_0x1e8a3d);_0x65f7c4[_0x7e891d(0xea)](_0x7e891d(0xe6),'deletedat',{'type':_0x443f42[_0x7e891d(0xd6)]}),_0x65f7c4[_0x7e891d(0xea)](_0x7e891d(0xe5),_0x7e891d(0xee),{'type':_0x443f42['BOOLEAN'],'defaultValue':![]}),_0x65f7c4[_0x7e891d(0xea)](_0x7e891d(0xe6),_0x7e891d(0xe9),{'type':_0x443f42[_0x7e891d(0xe4)],'defaultValue':null}),_0x65f7c4['renameColumn'](_0x7e891d(0xe6),_0x7e891d(0xeb),_0x7e891d(0xda));},'down':function(_0x4040da,_0x5ad102){const _0x3b5ccf=a1064_0x1ed45d,_0x29f2a1=new Migration(_0x4040da,_0x5ad102);return _0x29f2a1[_0x3b5ccf(0xd7)](_0x3b5ccf(0xe5),_0x3b5ccf(0xee)),_0x29f2a1[_0x3b5ccf(0xd7)](_0x3b5ccf(0xe6),'deletedat'),_0x29f2a1[_0x3b5ccf(0xd7)](_0x3b5ccf(0xe6),'deleted'),_0x29f2a1[_0x3b5ccf(0xd9)](_0x3b5ccf(0xe6),_0x3b5ccf(0xda),'reschedule'),Promise[_0x3b5ccf(0xe7)]();}};
\ No newline at end of file