Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.13.js
1 const a1053_0x3812=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','users','../config/logger','info','Removed\x20column\x20%s\x20from\x20%s','exports','rescheduled','deleted','then','removeColumn','Added\x20column\x20%s\x20to\x20%s','catch','queryInterface','stringify','migration','prototype','addColumn','cm_hopper_final','deletedat','renameColumn','reschedule','phoneBarRingInUse'];(function(_0xc988ba,_0xf1f196){const _0x38128c=function(_0x259be2){while(--_0x259be2){_0xc988ba['push'](_0xc988ba['shift']());}};_0x38128c(++_0xf1f196);}(a1053_0x3812,0x1ad));const a1053_0x259b=function(_0xc988ba,_0xf1f196){_0xc988ba=_0xc988ba-0x177;let _0x38128c=a1053_0x3812[_0xc988ba];return _0x38128c;};const a1053_0x23b400=a1053_0x259b;'use strict';const logger=require(a1053_0x23b400(0x184))(a1053_0x23b400(0x17a)),Migration=function(_0x31a4e6){const _0x11da04=a1053_0x23b400;this[_0x11da04(0x178)]=_0x31a4e6;};Migration[a1053_0x23b400(0x17b)]['addColumn']=function(_0x5f519b,_0x30acb8,_0x18385c){const _0x449c17=a1053_0x23b400;return this[_0x449c17(0x178)][_0x449c17(0x17c)](_0x5f519b,_0x30acb8,_0x18385c)['then'](function(){const _0x406c27=_0x449c17;logger[_0x406c27(0x185)](_0x406c27(0x18c),_0x30acb8,_0x5f519b);})[_0x449c17(0x177)](function(_0x4f5702){const _0x4679af=_0x449c17;logger[_0x4679af(0x185)](JSON[_0x4679af(0x179)](_0x4f5702));});},Migration['prototype'][a1053_0x23b400(0x18b)]=function(_0x4bb487,_0x4c6d49){const _0x506bfd=a1053_0x23b400;return this[_0x506bfd(0x178)]['removeColumn'](_0x4bb487,_0x4c6d49)[_0x506bfd(0x18a)](function(){const _0x488ce4=_0x506bfd;logger[_0x488ce4(0x185)](_0x488ce4(0x186),_0x4c6d49,_0x4bb487);})[_0x506bfd(0x177)](function(_0x51f28d){const _0x375274=_0x506bfd;logger[_0x375274(0x185)](JSON[_0x375274(0x179)](_0x51f28d));});},Migration[a1053_0x23b400(0x17b)][a1053_0x23b400(0x17f)]=function(_0x428249,_0x3de5ff,_0x50361b){const _0x1fdbc3=a1053_0x23b400;return this[_0x1fdbc3(0x178)][_0x1fdbc3(0x17f)](_0x428249,_0x3de5ff,_0x50361b)[_0x1fdbc3(0x18a)](function(){const _0xfbcc0b=_0x1fdbc3;logger[_0xfbcc0b(0x185)](_0xfbcc0b(0x182),_0x3de5ff,_0x50361b,_0x428249);})[_0x1fdbc3(0x177)](function(_0x290507){const _0x3d27bb=_0x1fdbc3;logger[_0x3d27bb(0x185)](JSON[_0x3d27bb(0x179)](_0x290507));});},module[a1053_0x23b400(0x187)]={'up':function(_0x5533a8,_0x5bd73){const _0x103b85=a1053_0x23b400,_0x23859a=new Migration(_0x5533a8);_0x23859a[_0x103b85(0x17c)](_0x103b85(0x17d),_0x103b85(0x17e),{'type':_0x5bd73['DATE']}),_0x23859a['addColumn'](_0x103b85(0x183),_0x103b85(0x181),{'type':_0x5bd73['BOOLEAN'],'defaultValue':![]}),_0x23859a['addColumn'](_0x103b85(0x17d),_0x103b85(0x189),{'type':_0x5bd73['STRING'],'defaultValue':null}),_0x23859a[_0x103b85(0x17f)]('cm_hopper_final',_0x103b85(0x180),_0x103b85(0x188));},'down':function(_0x11c139,_0x25bcf8){const _0x29403f=a1053_0x23b400,_0xf7d38b=new Migration(_0x11c139,_0x25bcf8);_0xf7d38b['removeColumn'](_0x29403f(0x183),_0x29403f(0x181)),_0xf7d38b[_0x29403f(0x18b)](_0x29403f(0x17d),_0x29403f(0x17e)),_0xf7d38b[_0x29403f(0x18b)]('cm_hopper_final',_0x29403f(0x189)),_0xf7d38b['renameColumn'](_0x29403f(0x17d),_0x29403f(0x188),_0x29403f(0x180));}};