Built motion from commit 362b9399b4d0ed5560fbb795af995925d345fc38. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.49.js
index 0eb6fed..a8dfcb0 100644 (file)
@@ -1 +1 @@
-const a1092_0x2999=['tail','cm_hopper_final','addColumn','info','table\x20dropped\x20%s','dialAgiAfterHangupAgent','New\x20offline\x20message\x20from\x20websiteName','basic','query\x20%s','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','dialQueueProject2','chat_websites','Removed\x20column\x20%s\x20from\x20%s','../config/logger','phoneBarOutboundProxy','offlineMessageSubject','query','classic+','dropTable','then','addIndex','prototype','offlineMessageBody','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','final','changeColumn','stringify','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','join','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','finally','queryInterface','users','senderString','sms_accounts','smsMethod','password','allowmessenger','voice_queues','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','username','sequence','STRING','DATE','deliveryReport','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','catch','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','ENUM','inspect','migration','exports','removeColumn'];(function(_0x141b04,_0x5df3b8){const _0x2999d0=function(_0x5bc8a1){while(--_0x5bc8a1){_0x141b04['push'](_0x141b04['shift']());}};_0x2999d0(++_0x5df3b8);}(a1092_0x2999,0xd3));const a1092_0x5bc8=function(_0x141b04,_0x5df3b8){_0x141b04=_0x141b04-0x8d;let _0x2999d0=a1092_0x2999[_0x141b04];return _0x2999d0;};const a1092_0x5f178d=a1092_0x5bc8;'use strict';const util=require('util'),logger=require(a1092_0x5f178d(0xa3))(a1092_0x5f178d(0x93)),Sequence=function(){};Sequence[a1092_0x5f178d(0xab)]['enqueue']=function(_0x4b13f5){const _0x2a9f5e=a1092_0x5f178d;this[_0x2a9f5e(0x96)]=this[_0x2a9f5e(0x96)]?this[_0x2a9f5e(0x96)][_0x2a9f5e(0xb4)](_0x4b13f5):_0x4b13f5();};const Migration=function(_0x278b9a){const _0x5745e8=a1092_0x5f178d;this[_0x5745e8(0xb5)]=_0x278b9a,this[_0x5745e8(0xc0)]=new Sequence();};Migration[a1092_0x5f178d(0xab)]['changeColumn']=function(_0x10b290,_0x4df5c0,_0x3ed191){const _0x3f77ae=a1092_0x5f178d,_0xfa2c30=this;this['sequence'][_0x3f77ae(0xbe)](function(){const _0x533a18=_0x3f77ae;return _0xfa2c30[_0x533a18(0xb5)][_0x533a18(0xaf)](_0x10b290,_0x4df5c0,_0x3ed191)[_0x533a18(0xa9)](function(){const _0x2f5a00=_0x533a18;logger['info'](_0x2f5a00(0xbd),_0x4df5c0,_0x10b290);})[_0x533a18(0x8f)](function(_0x1926e0){const _0x2f3d99=_0x533a18;logger[_0x2f3d99(0x99)](JSON[_0x2f3d99(0xb0)](_0x1926e0));});});},Migration['prototype']['addColumn']=function(_0x5771f0,_0x5605a7,_0x50a593){const _0x4851e3=a1092_0x5f178d,_0x2ffe71=this;this[_0x4851e3(0xc0)][_0x4851e3(0xbe)](function(){const _0x3307b4=_0x4851e3;return _0x2ffe71['queryInterface'][_0x3307b4(0x98)](_0x5771f0,_0x5605a7,_0x50a593)['then'](function(){const _0x7f90c6=_0x3307b4;logger[_0x7f90c6(0x99)](_0x7f90c6(0x8d),_0x5605a7,_0x5771f0);})[_0x3307b4(0x8f)](function(_0x4f6a03){logger['info'](JSON['stringify'](_0x4f6a03));});});},Migration[a1092_0x5f178d(0xab)][a1092_0x5f178d(0xa8)]=function(_0x25abdd){const _0x9251fa=a1092_0x5f178d,_0x1ade7b=this;this[_0x9251fa(0xc0)]['enqueue'](function(){const _0x1eaa15=_0x9251fa;return _0x1ade7b[_0x1eaa15(0xb5)][_0x1eaa15(0xa8)](_0x25abdd,{'force':!![]})['then'](function(){const _0x2248d5=_0x1eaa15;logger['info'](_0x2248d5(0x9a),_0x25abdd);})[_0x1eaa15(0x8f)](function(_0x5c72b0){const _0x3ad46a=_0x1eaa15;logger[_0x3ad46a(0x99)](JSON[_0x3ad46a(0xb0)](_0x5c72b0));});});},Migration[a1092_0x5f178d(0xab)][a1092_0x5f178d(0xaa)]=function(_0x227478,_0x46c3e4,_0x1cfbca){const _0x796ad5=a1092_0x5f178d,_0x56e74e=this;this[_0x796ad5(0xc0)][_0x796ad5(0xbe)](function(){const _0x590d30=_0x796ad5;return _0x56e74e['queryInterface']['addIndex'](_0x227478,_0x46c3e4,{'indexName':_0x1cfbca})['then'](function(){const _0x1ce9b9=a1092_0x5bc8;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x227478,_0x46c3e4[_0x1ce9b9(0xb2)](','),_0x1cfbca);})[_0x590d30(0x8f)](function(_0x4d87d1){const _0xd40bfb=_0x590d30;logger[_0xd40bfb(0x99)](JSON[_0xd40bfb(0xb0)](_0x4d87d1));});});},Migration['prototype'][a1092_0x5f178d(0xa6)]=function(_0x5d2ec3){const _0x30de57=a1092_0x5f178d,_0x5bce1a=this;this[_0x30de57(0xc0)][_0x30de57(0xbe)](function(){const _0x23cb34=_0x30de57;return _0x5bce1a[_0x23cb34(0xb5)]['sequelize']['query'](_0x5d2ec3)[_0x23cb34(0xa9)](function(){const _0x2a069d=_0x23cb34;logger[_0x2a069d(0x99)](_0x2a069d(0x9e),_0x5d2ec3);})[_0x23cb34(0x8f)](function(_0x50da41){const _0xfd5b2e=_0x23cb34;logger[_0xfd5b2e(0x99)](JSON[_0xfd5b2e(0xb0)](_0x50da41));});});},Migration['prototype'][a1092_0x5f178d(0x95)]=function(_0xb99f67,_0x1626c2){const _0x22a019=a1092_0x5f178d,_0x12ca1d=this;this['sequence'][_0x22a019(0xbe)](function(){const _0x3f0d32=_0x22a019;return _0x12ca1d[_0x3f0d32(0xb5)][_0x3f0d32(0x95)](_0xb99f67,_0x1626c2)[_0x3f0d32(0xa9)](function(){const _0x2363ec=_0x3f0d32;logger['info'](_0x2363ec(0xa2),_0x1626c2,_0xb99f67);})['catch'](function(_0x3a18f5){const _0x3757cf=_0x3f0d32;logger[_0x3757cf(0x99)](util[_0x3757cf(0x92)](_0x3a18f5,{'showHidden':![],'depth':null}));});});},Migration[a1092_0x5f178d(0xab)][a1092_0x5f178d(0xae)]=function(_0x2e9ff4){const _0x4e74aa=a1092_0x5f178d;this['sequence'][_0x4e74aa(0xbe)](function(){return _0x2e9ff4();});},module[a1092_0x5f178d(0x94)]={'up':function(_0x3738af,_0x320874){return new Promise(function(_0x16e7df){const _0x43cc11=a1092_0x5bc8,_0x3a52e4=new Migration(_0x3738af);_0x3a52e4['addColumn'](_0x43cc11(0xb8),_0x43cc11(0xb9),{'type':_0x320874[_0x43cc11(0x91)](_0x43cc11(0x9d),'classic',_0x43cc11(0xa7))}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb8),_0x43cc11(0xbf),{'type':_0x320874['STRING']}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb8),_0x43cc11(0xba),{'type':_0x320874[_0x43cc11(0xc1)]}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb8),_0x43cc11(0xb7),{'type':_0x320874[_0x43cc11(0xc1)]}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb8),_0x43cc11(0xc3),{'type':_0x320874[_0x43cc11(0x8e)],'defaultValue':![]}),_0x3a52e4['addColumn'](_0x43cc11(0xb6),_0x43cc11(0xbb),{'type':_0x320874[_0x43cc11(0x8e)],'defaultValue':!![]}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xb6),_0x43cc11(0xa4),{'type':_0x320874[_0x43cc11(0xc1)]}),_0x3a52e4[_0x43cc11(0x98)]('chat_websites',_0x43cc11(0xa5),{'type':_0x320874['STRING'],'defaultValue':_0x43cc11(0x9c)}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xa1),_0x43cc11(0xac),{'type':_0x320874[_0x43cc11(0xc1)],'defaultValue':_0x43cc11(0xad)}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xbc),_0x43cc11(0xa0),{'type':_0x320874['STRING']}),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0xbc),'dialAgiAfterHangupClient',{'type':_0x320874[_0x43cc11(0x8e)],'defaultValue':![]}),_0x3a52e4['addColumn']('voice_queues',_0x43cc11(0x9b),{'type':_0x320874[_0x43cc11(0x8e)],'defaultValue':![]}),_0x3a52e4[_0x43cc11(0xa6)](_0x43cc11(0x90)),_0x3a52e4[_0x43cc11(0xa6)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x3a52e4['query'](_0x43cc11(0xb1)),_0x3a52e4[_0x43cc11(0xa6)](_0x43cc11(0x9f)),_0x3a52e4[_0x43cc11(0xa6)]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205'),_0x3a52e4[_0x43cc11(0xa6)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x274\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x3a52e4[_0x43cc11(0xa6)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x275\x27,\x20\x27dial\x27,\x20\x27${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x3a52e4['query'](_0x43cc11(0xb3)),_0x3a52e4[_0x43cc11(0x98)](_0x43cc11(0x97),'agiafterat',{'type':_0x320874[_0x43cc11(0xc2)]}),_0x3a52e4['final'](_0x16e7df);});},'down':function(){}};
\ No newline at end of file
+const a1092_0x5471=['addIndex\x20%s\x20%s\x20%s','sequence','migration','inspect','util','prototype','cm_hopper_final','BOOLEAN','then','stringify','tail','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x274\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','agiafterat','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','allowmessenger','STRING','senderString','password','../config/logger','final','info','username','basic','query','deliveryReport','enqueue','queryInterface','voice_queues','phoneBarOutboundProxy','DATE','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','dialAgiAfterHangupClient','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','offlineMessageBody','classic+','dropTable','classic','Added\x20column\x20%s\x20to\x20%s','sms_accounts','changeColumn','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_websites','New\x20offline\x20message\x20from\x20websiteName','ENUM','join','addColumn','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2711\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','dialAgiAfterHangupAgent','catch','smsMethod','users','dialQueueProject2','offlineMessageSubject','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205','sequelize','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x275\x27,\x20\x27dial\x27,\x20\x27${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','removeColumn','addIndex'];(function(_0x42c673,_0x2203ac){const _0x5471aa=function(_0x1ec977){while(--_0x1ec977){_0x42c673['push'](_0x42c673['shift']());}};_0x5471aa(++_0x2203ac);}(a1092_0x5471,0x13e));const a1092_0x1ec9=function(_0x42c673,_0x2203ac){_0x42c673=_0x42c673-0x1d0;let _0x5471aa=a1092_0x5471[_0x42c673];return _0x5471aa;};const a1092_0x6a516b=a1092_0x1ec9;'use strict';const util=require(a1092_0x6a516b(0x20a)),logger=require(a1092_0x6a516b(0x1dd))(a1092_0x6a516b(0x208)),Sequence=function(){};Sequence[a1092_0x6a516b(0x20b)][a1092_0x6a516b(0x1e4)]=function(_0x4911ea){const _0x44f154=a1092_0x6a516b;this[_0x44f154(0x1d2)]=this[_0x44f154(0x1d2)]?this[_0x44f154(0x1d2)]['finally'](_0x4911ea):_0x4911ea();};const Migration=function(_0x529dd5){this['queryInterface']=_0x529dd5,this['sequence']=new Sequence();};Migration[a1092_0x6a516b(0x20b)][a1092_0x6a516b(0x1f2)]=function(_0x4132ce,_0x265b08,_0x5406f7){const _0x5de1a6=a1092_0x6a516b,_0x1ae8e6=this;this['sequence'][_0x5de1a6(0x1e4)](function(){const _0x4333b4=_0x5de1a6;return _0x1ae8e6['queryInterface'][_0x4333b4(0x1f2)](_0x4132ce,_0x265b08,_0x5406f7)[_0x4333b4(0x1d0)](function(){const _0x5d519f=_0x4333b4;logger[_0x5d519f(0x1df)](_0x5d519f(0x1f4),_0x265b08,_0x4132ce);})[_0x4333b4(0x1fc)](function(_0xa574bb){const _0x156ee9=_0x4333b4;logger[_0x156ee9(0x1df)](JSON['stringify'](_0xa574bb));});});},Migration['prototype']['addColumn']=function(_0x574d95,_0x5c74fe,_0xcb9ebe){const _0x343187=a1092_0x6a516b,_0x4e15a8=this;this[_0x343187(0x207)][_0x343187(0x1e4)](function(){const _0x1b085c=_0x343187;return _0x4e15a8['queryInterface']['addColumn'](_0x574d95,_0x5c74fe,_0xcb9ebe)[_0x1b085c(0x1d0)](function(){const _0x463729=_0x1b085c;logger['info'](_0x463729(0x1f0),_0x5c74fe,_0x574d95);})[_0x1b085c(0x1fc)](function(_0x2b1639){const _0x2a91af=_0x1b085c;logger[_0x2a91af(0x1df)](JSON[_0x2a91af(0x1d1)](_0x2b1639));});});},Migration['prototype'][a1092_0x6a516b(0x1ee)]=function(_0x4884e1){const _0x378c0d=a1092_0x6a516b,_0x19b808=this;this[_0x378c0d(0x207)][_0x378c0d(0x1e4)](function(){const _0x3fdf06=_0x378c0d;return _0x19b808['queryInterface'][_0x3fdf06(0x1ee)](_0x4884e1,{'force':!![]})[_0x3fdf06(0x1d0)](function(){const _0xfabbda=_0x3fdf06;logger[_0xfabbda(0x1df)](_0xfabbda(0x1d8),_0x4884e1);})['catch'](function(_0xc6af5c){const _0x27a28b=_0x3fdf06;logger['info'](JSON[_0x27a28b(0x1d1)](_0xc6af5c));});});},Migration['prototype'][a1092_0x6a516b(0x205)]=function(_0x58d0a1,_0x31d43d,_0xa85c56){const _0x1d23ac=a1092_0x6a516b,_0x2f7d7e=this;this['sequence'][_0x1d23ac(0x1e4)](function(){const _0x1d67e0=_0x1d23ac;return _0x2f7d7e[_0x1d67e0(0x1e5)][_0x1d67e0(0x205)](_0x58d0a1,_0x31d43d,{'indexName':_0xa85c56})['then'](function(){const _0x28ba49=_0x1d67e0;logger['info'](_0x28ba49(0x206),_0x58d0a1,_0x31d43d[_0x28ba49(0x1f8)](','),_0xa85c56);})[_0x1d67e0(0x1fc)](function(_0x546c14){logger['info'](JSON['stringify'](_0x546c14));});});},Migration[a1092_0x6a516b(0x20b)][a1092_0x6a516b(0x1e2)]=function(_0x2a1552){const _0x190b52=a1092_0x6a516b,_0x11fbc6=this;this['sequence'][_0x190b52(0x1e4)](function(){const _0x51e58c=_0x190b52;return _0x11fbc6['queryInterface'][_0x51e58c(0x202)][_0x51e58c(0x1e2)](_0x2a1552)[_0x51e58c(0x1d0)](function(){logger['info']('query\x20%s',_0x2a1552);})['catch'](function(_0x5e30da){const _0x27c59d=_0x51e58c;logger[_0x27c59d(0x1df)](JSON[_0x27c59d(0x1d1)](_0x5e30da));});});},Migration[a1092_0x6a516b(0x20b)]['removeColumn']=function(_0x5bfa71,_0x45cfd4){const _0x305746=a1092_0x6a516b,_0x5d4d76=this;this[_0x305746(0x207)][_0x305746(0x1e4)](function(){const _0x1cc0d1=_0x305746;return _0x5d4d76[_0x1cc0d1(0x1e5)][_0x1cc0d1(0x204)](_0x5bfa71,_0x45cfd4)[_0x1cc0d1(0x1d0)](function(){const _0x498c17=_0x1cc0d1;logger[_0x498c17(0x1df)](_0x498c17(0x1d7),_0x45cfd4,_0x5bfa71);})[_0x1cc0d1(0x1fc)](function(_0x36248c){const _0x4ea551=_0x1cc0d1;logger['info'](util[_0x4ea551(0x209)](_0x36248c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1092_0x6a516b(0x1de)]=function(_0x2a6165){const _0x511877=a1092_0x6a516b;this[_0x511877(0x207)][_0x511877(0x1e4)](function(){return _0x2a6165();});},module[a1092_0x6a516b(0x1f3)]={'up':function(_0x23b6e8,_0x32c11e){return new Promise(function(_0x49b247){const _0x1a14d5=a1092_0x1ec9,_0x3463ce=new Migration(_0x23b6e8);_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1f1),_0x1a14d5(0x1fd),{'type':_0x32c11e[_0x1a14d5(0x1f7)](_0x1a14d5(0x1e1),_0x1a14d5(0x1ef),_0x1a14d5(0x1ed))}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1f1),_0x1a14d5(0x1e0),{'type':_0x32c11e[_0x1a14d5(0x1da)]}),_0x3463ce[_0x1a14d5(0x1f9)]('sms_accounts',_0x1a14d5(0x1dc),{'type':_0x32c11e[_0x1a14d5(0x1da)]}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1f1),_0x1a14d5(0x1db),{'type':_0x32c11e['STRING']}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1f1),_0x1a14d5(0x1e3),{'type':_0x32c11e['BOOLEAN'],'defaultValue':![]}),_0x3463ce['addColumn']('users',_0x1a14d5(0x1d9),{'type':_0x32c11e[_0x1a14d5(0x20d)],'defaultValue':!![]}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1fe),_0x1a14d5(0x1e7),{'type':_0x32c11e['STRING']}),_0x3463ce['addColumn'](_0x1a14d5(0x1f5),_0x1a14d5(0x200),{'type':_0x32c11e[_0x1a14d5(0x1da)],'defaultValue':_0x1a14d5(0x1f6)}),_0x3463ce['addColumn']('chat_websites',_0x1a14d5(0x1ec),{'type':_0x32c11e['STRING'],'defaultValue':_0x1a14d5(0x1e9)}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1e6),_0x1a14d5(0x1ff),{'type':_0x32c11e[_0x1a14d5(0x1da)]}),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x1e6),_0x1a14d5(0x1ea),{'type':_0x32c11e[_0x1a14d5(0x20d)],'defaultValue':![]}),_0x3463ce['addColumn'](_0x1a14d5(0x1e6),_0x1a14d5(0x1fb),{'type':_0x32c11e['BOOLEAN'],'defaultValue':![]}),_0x3463ce[_0x1a14d5(0x1e2)](_0x1a14d5(0x1eb)),_0x3463ce['query'](_0x1a14d5(0x1fa)),_0x3463ce['query'](_0x1a14d5(0x1d3)),_0x3463ce[_0x1a14d5(0x1e2)](_0x1a14d5(0x1d4)),_0x3463ce[_0x1a14d5(0x1e2)](_0x1a14d5(0x201)),_0x3463ce['query'](_0x1a14d5(0x1d5)),_0x3463ce[_0x1a14d5(0x1e2)](_0x1a14d5(0x203)),_0x3463ce[_0x1a14d5(0x1e2)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x3463ce[_0x1a14d5(0x1f9)](_0x1a14d5(0x20c),_0x1a14d5(0x1d6),{'type':_0x32c11e[_0x1a14d5(0x1e8)]}),_0x3463ce[_0x1a14d5(0x1de)](_0x49b247);});},'down':function(){}};
\ No newline at end of file