Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / jira / jira.controller.js
index c4cf056..7b5b294 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc602=['bluebird','https','api','3eAmWpBVP0','key','MOTGUI','summary','Report','\x20from\x20','description','stringify','issuetype','customfield_11500','fields','customfield_11501','customfield_11502','newToken','customfield_11503','customfield_11504','reason','track.xcallymotion.com','/rest/api/2/issue','POST','application/json','Basic\x20','toString','request','setEncoding','utf8','data','end','status','parse','json','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','api.jira','write','body','headers','x-forwarded-for','connection','remoteAddress','socket'];(function(_0x4ab6a0,_0x5314d1){var _0x30deca=function(_0x3f3d88){while(--_0x3f3d88){_0x4ab6a0['push'](_0x4ab6a0['shift']());}};_0x30deca(++_0x5314d1);}(_0xc602,0xac));var _0x2c60=function(_0x3ed445,_0x179ec8){_0x3ed445=_0x3ed445-0x0;var _0x1f7664=_0xc602[_0x3ed445];return _0x1f7664;};'use strict';var BPromise=require(_0x2c60('0x0'));var https=require(_0x2c60('0x1'));var logger=require('../../config/logger')(_0x2c60('0x2'));var USERNAME='support';var PASSWORD=_0x2c60('0x3');function openIssue(_0x3c36be,_0x36a033){var _0x707d56={'fields':{'project':{'key':_0x3c36be[_0x2c60('0x4')]||_0x2c60('0x5')},'summary':(_0x3c36be[_0x2c60('0x6')]||_0x2c60('0x7'))+_0x2c60('0x8')+_0x3c36be['ip'],'description':_0x3c36be[_0x2c60('0x9')]||JSON[_0x2c60('0xa')](_0x3c36be),'issuetype':{'name':_0x3c36be[_0x2c60('0xb')]||'Bug'}}};_0x707d56['fields'][_0x2c60('0xc')]=_0x3c36be['email'];_0x707d56[_0x2c60('0xd')][_0x2c60('0xe')]=_0x3c36be['oldToken'];_0x707d56[_0x2c60('0xd')][_0x2c60('0xf')]=_0x3c36be[_0x2c60('0x10')];_0x707d56[_0x2c60('0xd')][_0x2c60('0x11')]=_0x3c36be['name'];_0x707d56[_0x2c60('0xd')][_0x2c60('0x12')]=_0x3c36be[_0x2c60('0x13')];_0x707d56['fields']['customfield_10102']=_0x3c36be['ip'];var _0x3cdaf6={'host':_0x2c60('0x14'),'port':0x1bb,'path':_0x2c60('0x15'),'method':_0x2c60('0x16'),'timeout':0x4e20,'headers':{'Content-Type':_0x2c60('0x17'),'Authorization':_0x2c60('0x18')+new Buffer(USERNAME+':'+PASSWORD)[_0x2c60('0x19')]('base64')}};var _0x216642=JSON[_0x2c60('0xa')](_0x707d56);var _0xfc3a46=https[_0x2c60('0x1a')](_0x3cdaf6,function(_0x20fa10){_0x20fa10[_0x2c60('0x1b')](_0x2c60('0x1c'));var _0x474e72='';_0x20fa10['on'](_0x2c60('0x1d'),function(_0x41a89a){_0x474e72+=_0x41a89a;});_0x20fa10['on'](_0x2c60('0x1e'),function(){if(_0x36a033){return _0x36a033[_0x2c60('0x1f')](_0x20fa10['statusCode'])['json'](JSON[_0x2c60('0x20')](_0x474e72));}});});_0xfc3a46['on']('error',function(_0x5af2a7){if(_0x36a033){return _0x36a033[_0x2c60('0x1f')](0x1f4)[_0x2c60('0x21')]({'errors':[{'message':_0x2c60('0x22'),'type':_0x2c60('0x23')}]});}});_0xfc3a46[_0x2c60('0x24')](_0x216642);_0xfc3a46[_0x2c60('0x1e')]();}exports['openIssue']=openIssue;exports['send']=function(_0x49f826,_0x1129a6){_0x49f826[_0x2c60('0x25')]['ip']=_0x49f826[_0x2c60('0x26')][_0x2c60('0x27')]||_0x49f826[_0x2c60('0x28')][_0x2c60('0x29')]||_0x49f826[_0x2c60('0x2a')]['remoteAddress']||_0x49f826[_0x2c60('0x28')][_0x2c60('0x2a')]['remoteAddress'];return openIssue(_0x49f826[_0x2c60('0x25')],_0x1129a6);};
\ No newline at end of file
+var _0xf6c0=['issuetype','Bug','fields','customfield_11500','email','customfield_11502','newToken','name','customfield_11504','reason','customfield_10102','/rest/api/2/issue','POST','toString','base64','request','setEncoding','utf8','end','error','status','json','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','api.jira','write','body','headers','x-forwarded-for','connection','remoteAddress','socket','bluebird','https','../../config/logger','api','support','3eAmWpBVP0','key','MOTGUI','Report','description','stringify'];(function(_0x437472,_0x31db2d){var _0x217fce=function(_0x593ccd){while(--_0x593ccd){_0x437472['push'](_0x437472['shift']());}};_0x217fce(++_0x31db2d);}(_0xf6c0,0x145));var _0x0f6c=function(_0x6dc660,_0x5e63fb){_0x6dc660=_0x6dc660-0x0;var _0x4fa02a=_0xf6c0[_0x6dc660];return _0x4fa02a;};'use strict';var BPromise=require(_0x0f6c('0x0'));var https=require(_0x0f6c('0x1'));var logger=require(_0x0f6c('0x2'))(_0x0f6c('0x3'));var USERNAME=_0x0f6c('0x4');var PASSWORD=_0x0f6c('0x5');function openIssue(_0x35f803,_0x515c0f){var _0x2962de={'fields':{'project':{'key':_0x35f803[_0x0f6c('0x6')]||_0x0f6c('0x7')},'summary':(_0x35f803['summary']||_0x0f6c('0x8'))+'\x20from\x20'+_0x35f803['ip'],'description':_0x35f803[_0x0f6c('0x9')]||JSON[_0x0f6c('0xa')](_0x35f803),'issuetype':{'name':_0x35f803[_0x0f6c('0xb')]||_0x0f6c('0xc')}}};_0x2962de[_0x0f6c('0xd')][_0x0f6c('0xe')]=_0x35f803[_0x0f6c('0xf')];_0x2962de[_0x0f6c('0xd')]['customfield_11501']=_0x35f803['oldToken'];_0x2962de[_0x0f6c('0xd')][_0x0f6c('0x10')]=_0x35f803[_0x0f6c('0x11')];_0x2962de[_0x0f6c('0xd')]['customfield_11503']=_0x35f803[_0x0f6c('0x12')];_0x2962de[_0x0f6c('0xd')][_0x0f6c('0x13')]=_0x35f803[_0x0f6c('0x14')];_0x2962de['fields'][_0x0f6c('0x15')]=_0x35f803['ip'];var _0x4db363={'host':'track.xcallymotion.com','port':0x1bb,'path':_0x0f6c('0x16'),'method':_0x0f6c('0x17'),'timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':'Basic\x20'+new Buffer(USERNAME+':'+PASSWORD)[_0x0f6c('0x18')](_0x0f6c('0x19'))}};var _0x986e79=JSON[_0x0f6c('0xa')](_0x2962de);var _0x2f299c=https[_0x0f6c('0x1a')](_0x4db363,function(_0xfebbd4){_0xfebbd4[_0x0f6c('0x1b')](_0x0f6c('0x1c'));var _0xebc37b='';_0xfebbd4['on']('data',function(_0x2233dc){_0xebc37b+=_0x2233dc;});_0xfebbd4['on'](_0x0f6c('0x1d'),function(){if(_0x515c0f){return _0x515c0f['status'](_0xfebbd4['statusCode'])['json'](JSON['parse'](_0xebc37b));}});});_0x2f299c['on'](_0x0f6c('0x1e'),function(_0x2e40ed){if(_0x515c0f){return _0x515c0f[_0x0f6c('0x1f')](0x1f4)[_0x0f6c('0x20')]({'errors':[{'message':_0x0f6c('0x21'),'type':_0x0f6c('0x22')}]});}});_0x2f299c[_0x0f6c('0x23')](_0x986e79);_0x2f299c[_0x0f6c('0x1d')]();}exports['openIssue']=openIssue;exports['send']=function(_0x1c6c43,_0x4d4831){_0x1c6c43[_0x0f6c('0x24')]['ip']=_0x1c6c43[_0x0f6c('0x25')][_0x0f6c('0x26')]||_0x1c6c43[_0x0f6c('0x27')][_0x0f6c('0x28')]||_0x1c6c43[_0x0f6c('0x29')][_0x0f6c('0x28')]||_0x1c6c43['connection']['socket'][_0x0f6c('0x28')];return openIssue(_0x1c6c43[_0x0f6c('0x24')],_0x4d4831);};
\ No newline at end of file