Built motion from commit e493b9a4954b50a8ee6d0034ba3601cd210d989d. Version 3.0.0...
[motion-next.git] / server / migrations / 2.0.49.js
index a8dfcb0..39d0d5f 100644 (file)
@@ -1 +1 @@
-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
+'use strict';const a1097_0x4e5f=['catch','stringify','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','agiafterat','classic+','158991ryxhPm','BOOLEAN','username','DATE','chat_websites','enqueue','addIndex','resolve','addIndex\x20%s\x20%s\x20%s','381678XtBbBE','deliveryReport','query','info','queryInterface','ENUM','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());','Added\x20column\x20%s\x20to\x20%s','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());','finally','9PSDBGJ','password','smsMethod','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','dialAgiAfterHangupAgent','changeColumn','then','tail','final','exports','addColumn','prototype','STRING','sequence','84405LbaPMt','184094kcURBH','removeColumn','sms_accounts','dropTable','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','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());','@config/logger','1014604twOWsL','voice_queues','basic','join','3WPbwRB','134353khzBzV','allowmessenger','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205','migration','6879nTbRDr','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());','phoneBarOutboundProxy','Removed\x20column\x20%s\x20from\x20%s'];const a1097_0x6e08=function(_0x18bef0,_0x390b80){_0x18bef0=_0x18bef0-0x127;let _0x4e5f35=a1097_0x4e5f[_0x18bef0];return _0x4e5f35;};const a1097_0x57d31c=a1097_0x6e08;(function(_0x348f69,_0x2337bc){const _0xa353=a1097_0x6e08;while(!![]){try{const _0x9d3ad3=-parseInt(_0xa353(0x128))*-parseInt(_0xa353(0x147))+-parseInt(_0xa353(0x136))+parseInt(_0xa353(0x137))+-parseInt(_0xa353(0x150))+-parseInt(_0xa353(0x159))+-parseInt(_0xa353(0x143))*parseInt(_0xa353(0x142))+parseInt(_0xa353(0x13e));if(_0x9d3ad3===_0x2337bc)break;else _0x348f69['push'](_0x348f69['shift']());}catch(_0x27a0cf){_0x348f69['push'](_0x348f69['shift']());}}}(a1097_0x4e5f,0x38c1c));const util=require('util'),logger=require(a1097_0x57d31c(0x13d))(a1097_0x57d31c(0x146)),Sequence=function(){};Sequence[a1097_0x57d31c(0x133)]['enqueue']=function(_0x8847ac){const _0x33815a=a1097_0x57d31c;this[_0x33815a(0x12f)]=this['tail']?this[_0x33815a(0x12f)][_0x33815a(0x127)](_0x8847ac):_0x8847ac();};const Migration=function(_0x2a7864){const _0x4f07d5=a1097_0x57d31c;this['queryInterface']=_0x2a7864,this[_0x4f07d5(0x135)]=new Sequence();};Migration['prototype'][a1097_0x57d31c(0x12d)]=function(_0x2e49f9,_0x3d92cf,_0x5c68b5){const _0x485524=a1097_0x57d31c,_0xddda51=this;this[_0x485524(0x135)][_0x485524(0x155)](function(){const _0x2d7b0e=_0x485524;return _0xddda51['queryInterface'][_0x2d7b0e(0x12d)](_0x2e49f9,_0x3d92cf,_0x5c68b5)[_0x2d7b0e(0x12e)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3d92cf,_0x2e49f9);})['catch'](function(_0x282052){const _0x596e4e=_0x2d7b0e;logger[_0x596e4e(0x15c)](JSON[_0x596e4e(0x14c)](_0x282052));});});},Migration[a1097_0x57d31c(0x133)][a1097_0x57d31c(0x132)]=function(_0x28c14b,_0x4a392a,_0xafb532){const _0x3c6dee=this;this['sequence']['enqueue'](function(){const _0x57d669=a1097_0x6e08;return _0x3c6dee[_0x57d669(0x15d)][_0x57d669(0x132)](_0x28c14b,_0x4a392a,_0xafb532)[_0x57d669(0x12e)](function(){const _0x225df1=_0x57d669;logger[_0x225df1(0x15c)](_0x225df1(0x160),_0x4a392a,_0x28c14b);})[_0x57d669(0x14b)](function(_0x117e65){const _0x255152=_0x57d669;logger['info'](JSON[_0x255152(0x14c)](_0x117e65));});});},Migration[a1097_0x57d31c(0x133)][a1097_0x57d31c(0x13a)]=function(_0x32db32){const _0x20c785=a1097_0x57d31c,_0x1956e5=this;this[_0x20c785(0x135)][_0x20c785(0x155)](function(){const _0x81a698=_0x20c785;return _0x1956e5[_0x81a698(0x15d)][_0x81a698(0x13a)](_0x32db32,{'force':!![]})[_0x81a698(0x12e)](function(){const _0x41dca7=_0x81a698;logger[_0x41dca7(0x15c)]('table\x20dropped\x20%s',_0x32db32);})[_0x81a698(0x14b)](function(_0x1a802d){const _0x5277dc=_0x81a698;logger['info'](JSON[_0x5277dc(0x14c)](_0x1a802d));});});},Migration['prototype'][a1097_0x57d31c(0x156)]=function(_0x10bcd4,_0x15e07f,_0x891342){const _0x32118d=this;this['sequence']['enqueue'](function(){const _0x3ea2cb=a1097_0x6e08;return _0x32118d['queryInterface'][_0x3ea2cb(0x156)](_0x10bcd4,_0x15e07f,{'indexName':_0x891342})[_0x3ea2cb(0x12e)](function(){const _0x7a73d6=_0x3ea2cb;logger[_0x7a73d6(0x15c)](_0x7a73d6(0x158),_0x10bcd4,_0x15e07f[_0x7a73d6(0x141)](','),_0x891342);})['catch'](function(_0x1e31c0){const _0x1ec57e=_0x3ea2cb;logger[_0x1ec57e(0x15c)](JSON['stringify'](_0x1e31c0));});});},Migration[a1097_0x57d31c(0x133)][a1097_0x57d31c(0x15b)]=function(_0x43d88c){const _0x92751c=a1097_0x57d31c,_0x3669bc=this;this[_0x92751c(0x135)]['enqueue'](function(){const _0x41d218=_0x92751c;return _0x3669bc['queryInterface']['sequelize']['query'](_0x43d88c)[_0x41d218(0x12e)](function(){logger['info']('query\x20%s',_0x43d88c);})['catch'](function(_0x314dde){const _0x52b05e=_0x41d218;logger[_0x52b05e(0x15c)](JSON[_0x52b05e(0x14c)](_0x314dde));});});},Migration[a1097_0x57d31c(0x133)][a1097_0x57d31c(0x138)]=function(_0x463847,_0x4e15a5){const _0x498d0e=this;this['sequence']['enqueue'](function(){const _0x411b7b=a1097_0x6e08;return _0x498d0e[_0x411b7b(0x15d)][_0x411b7b(0x138)](_0x463847,_0x4e15a5)[_0x411b7b(0x12e)](function(){const _0x36a64e=_0x411b7b;logger[_0x36a64e(0x15c)](_0x36a64e(0x14a),_0x4e15a5,_0x463847);})['catch'](function(_0x28d1dc){const _0x4a72e3=_0x411b7b;logger[_0x4a72e3(0x15c)](util['inspect'](_0x28d1dc,{'showHidden':![],'depth':null}));});});},Migration[a1097_0x57d31c(0x133)][a1097_0x57d31c(0x130)]=function(_0x8fed42){const _0x86ed8=a1097_0x57d31c;this['sequence'][_0x86ed8(0x155)](function(){return _0x8fed42();});},module[a1097_0x57d31c(0x131)]={'up':function(_0x14b6a0,_0x444ed1){return new Promise(function(_0x14f9f0){const _0x9f28b8=a1097_0x6e08,_0x4cf607=new Migration(_0x14b6a0);_0x4cf607[_0x9f28b8(0x132)]('sms_accounts',_0x9f28b8(0x12a),{'type':_0x444ed1[_0x9f28b8(0x15e)](_0x9f28b8(0x140),'classic',_0x9f28b8(0x14f))}),_0x4cf607[_0x9f28b8(0x132)](_0x9f28b8(0x139),_0x9f28b8(0x152),{'type':_0x444ed1[_0x9f28b8(0x134)]}),_0x4cf607[_0x9f28b8(0x132)]('sms_accounts',_0x9f28b8(0x129),{'type':_0x444ed1[_0x9f28b8(0x134)]}),_0x4cf607[_0x9f28b8(0x132)](_0x9f28b8(0x139),'senderString',{'type':_0x444ed1[_0x9f28b8(0x134)]}),_0x4cf607[_0x9f28b8(0x132)](_0x9f28b8(0x139),_0x9f28b8(0x15a),{'type':_0x444ed1[_0x9f28b8(0x151)],'defaultValue':![]}),_0x4cf607[_0x9f28b8(0x132)]('users',_0x9f28b8(0x144),{'type':_0x444ed1[_0x9f28b8(0x151)],'defaultValue':!![]}),_0x4cf607[_0x9f28b8(0x132)]('users',_0x9f28b8(0x149),{'type':_0x444ed1[_0x9f28b8(0x134)]}),_0x4cf607[_0x9f28b8(0x132)](_0x9f28b8(0x154),'offlineMessageSubject',{'type':_0x444ed1['STRING'],'defaultValue':'New\x20offline\x20message\x20from\x20websiteName'}),_0x4cf607['addColumn'](_0x9f28b8(0x154),'offlineMessageBody',{'type':_0x444ed1[_0x9f28b8(0x134)],'defaultValue':_0x9f28b8(0x13b)}),_0x4cf607[_0x9f28b8(0x132)](_0x9f28b8(0x13f),'dialQueueProject2',{'type':_0x444ed1['STRING']}),_0x4cf607[_0x9f28b8(0x132)](_0x9f28b8(0x13f),'dialAgiAfterHangupClient',{'type':_0x444ed1[_0x9f28b8(0x151)],'defaultValue':![]}),_0x4cf607['addColumn']('voice_queues',_0x9f28b8(0x12c),{'type':_0x444ed1[_0x9f28b8(0x151)],'defaultValue':![]}),_0x4cf607['query'](_0x9f28b8(0x12b)),_0x4cf607[_0x9f28b8(0x15b)](_0x9f28b8(0x13c)),_0x4cf607['query']('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());'),_0x4cf607['query'](_0x9f28b8(0x14d)),_0x4cf607[_0x9f28b8(0x15b)](_0x9f28b8(0x145)),_0x4cf607[_0x9f28b8(0x15b)](_0x9f28b8(0x15f)),_0x4cf607[_0x9f28b8(0x15b)](_0x9f28b8(0x161)),_0x4cf607[_0x9f28b8(0x15b)](_0x9f28b8(0x148)),_0x4cf607[_0x9f28b8(0x132)]('cm_hopper_final',_0x9f28b8(0x14e),{'type':_0x444ed1[_0x9f28b8(0x153)]}),_0x4cf607[_0x9f28b8(0x130)](_0x14f9f0);});},'down':function(){const _0x2ea6a5=a1097_0x57d31c;return Promise[_0x2ea6a5(0x157)]();}};
\ No newline at end of file