Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / jira / jira.controller.js
index b40aa23..6c6c9df 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x052b=['\x20from\x20','description','Bug','fields','customfield_11500','customfield_11501','oldToken','customfield_11502','name','customfield_10102','/rest/api/2/issue','application/json','Basic\x20','base64','stringify','request','setEncoding','utf8','data','end','status','statusCode','json','parse','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','openIssue','body','headers','x-forwarded-for','connection','remoteAddress','socket','bluebird','https','../../config/logger','support','3eAmWpBVP0','key','MOTGUI','summary','Report'];(function(_0x28adcf,_0x7551aa){var _0x9fb48c=function(_0x272746){while(--_0x272746){_0x28adcf['push'](_0x28adcf['shift']());}};_0x9fb48c(++_0x7551aa);}(_0x052b,0x1e3));var _0xb052=function(_0x11711c,_0x40515f){_0x11711c=_0x11711c-0x0;var _0xc8a3db=_0x052b[_0x11711c];return _0xc8a3db;};'use strict';var BPromise=require(_0xb052('0x0'));var https=require(_0xb052('0x1'));var logger=require(_0xb052('0x2'))('api');var USERNAME=_0xb052('0x3');var PASSWORD=_0xb052('0x4');function openIssue(_0x25632c,_0x4f2063){var _0x4e31a5={'fields':{'project':{'key':_0x25632c[_0xb052('0x5')]||_0xb052('0x6')},'summary':(_0x25632c[_0xb052('0x7')]||_0xb052('0x8'))+_0xb052('0x9')+_0x25632c['ip'],'description':_0x25632c[_0xb052('0xa')]||JSON['stringify'](_0x25632c),'issuetype':{'name':_0x25632c['issuetype']||_0xb052('0xb')}}};_0x4e31a5[_0xb052('0xc')][_0xb052('0xd')]=_0x25632c['email'];_0x4e31a5[_0xb052('0xc')][_0xb052('0xe')]=_0x25632c[_0xb052('0xf')];_0x4e31a5[_0xb052('0xc')][_0xb052('0x10')]=_0x25632c['newToken'];_0x4e31a5[_0xb052('0xc')]['customfield_11503']=_0x25632c[_0xb052('0x11')];_0x4e31a5[_0xb052('0xc')]['customfield_11504']=_0x25632c['reason'];_0x4e31a5[_0xb052('0xc')][_0xb052('0x12')]=_0x25632c['ip'];var _0x9a18b1={'host':'track.xcallymotion.com','port':0x1bb,'path':_0xb052('0x13'),'method':'POST','timeout':0x4e20,'headers':{'Content-Type':_0xb052('0x14'),'Authorization':_0xb052('0x15')+new Buffer(USERNAME+':'+PASSWORD)['toString'](_0xb052('0x16'))}};var _0x1db09d=JSON[_0xb052('0x17')](_0x4e31a5);var _0x128dc2=https[_0xb052('0x18')](_0x9a18b1,function(_0x3bd2fc){_0x3bd2fc[_0xb052('0x19')](_0xb052('0x1a'));var _0x192cab='';_0x3bd2fc['on'](_0xb052('0x1b'),function(_0x52afb2){_0x192cab+=_0x52afb2;});_0x3bd2fc['on'](_0xb052('0x1c'),function(){if(_0x4f2063){return _0x4f2063[_0xb052('0x1d')](_0x3bd2fc[_0xb052('0x1e')])[_0xb052('0x1f')](JSON[_0xb052('0x20')](_0x192cab));}});});_0x128dc2['on']('error',function(_0x2751fc){if(_0x4f2063){return _0x4f2063['status'](0x1f4)['json']({'errors':[{'message':_0xb052('0x21'),'type':'api.jira'}]});}});_0x128dc2['write'](_0x1db09d);_0x128dc2[_0xb052('0x1c')]();}exports[_0xb052('0x22')]=openIssue;exports['send']=function(_0x30ef2a,_0x37dc26){_0x30ef2a[_0xb052('0x23')]['ip']=_0x30ef2a[_0xb052('0x24')][_0xb052('0x25')]||_0x30ef2a[_0xb052('0x26')][_0xb052('0x27')]||_0x30ef2a[_0xb052('0x28')][_0xb052('0x27')]||_0x30ef2a['connection'][_0xb052('0x28')][_0xb052('0x27')];return openIssue(_0x30ef2a[_0xb052('0x23')],_0x37dc26);};
\ No newline at end of file
+var _0x09c0=['fields','customfield_11500','email','customfield_11502','newToken','customfield_11503','name','customfield_11504','reason','track.xcallymotion.com','/rest/api/2/issue','POST','base64','request','setEncoding','data','end','json','parse','error','status','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','api.jira','write','openIssue','send','body','headers','x-forwarded-for','connection','remoteAddress','socket','https','../../config/logger','api','support','3eAmWpBVP0','key','Report','\x20from\x20','stringify','Bug'];(function(_0x2384f4,_0x18b44b){var _0xc31fa4=function(_0x1aff7a){while(--_0x1aff7a){_0x2384f4['push'](_0x2384f4['shift']());}};_0xc31fa4(++_0x18b44b);}(_0x09c0,0x1ee));var _0x009c=function(_0x419267,_0x5f0093){_0x419267=_0x419267-0x0;var _0x3c110c=_0x09c0[_0x419267];return _0x3c110c;};'use strict';var BPromise=require('bluebird');var https=require(_0x009c('0x0'));var logger=require(_0x009c('0x1'))(_0x009c('0x2'));var USERNAME=_0x009c('0x3');var PASSWORD=_0x009c('0x4');function openIssue(_0x5e1253,_0x1daee0){var _0x333ca6={'fields':{'project':{'key':_0x5e1253[_0x009c('0x5')]||'MOTGUI'},'summary':(_0x5e1253['summary']||_0x009c('0x6'))+_0x009c('0x7')+_0x5e1253['ip'],'description':_0x5e1253['description']||JSON[_0x009c('0x8')](_0x5e1253),'issuetype':{'name':_0x5e1253['issuetype']||_0x009c('0x9')}}};_0x333ca6[_0x009c('0xa')][_0x009c('0xb')]=_0x5e1253[_0x009c('0xc')];_0x333ca6[_0x009c('0xa')]['customfield_11501']=_0x5e1253['oldToken'];_0x333ca6[_0x009c('0xa')][_0x009c('0xd')]=_0x5e1253[_0x009c('0xe')];_0x333ca6['fields'][_0x009c('0xf')]=_0x5e1253[_0x009c('0x10')];_0x333ca6[_0x009c('0xa')][_0x009c('0x11')]=_0x5e1253[_0x009c('0x12')];_0x333ca6[_0x009c('0xa')]['customfield_10102']=_0x5e1253['ip'];var _0xf34fa1={'host':_0x009c('0x13'),'port':0x1bb,'path':_0x009c('0x14'),'method':_0x009c('0x15'),'timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':'Basic\x20'+new Buffer(USERNAME+':'+PASSWORD)['toString'](_0x009c('0x16'))}};var _0x547982=JSON[_0x009c('0x8')](_0x333ca6);var _0x30e195=https[_0x009c('0x17')](_0xf34fa1,function(_0x56b92e){_0x56b92e[_0x009c('0x18')]('utf8');var _0x701743='';_0x56b92e['on'](_0x009c('0x19'),function(_0x37739c){_0x701743+=_0x37739c;});_0x56b92e['on'](_0x009c('0x1a'),function(){if(_0x1daee0){return _0x1daee0['status'](_0x56b92e['statusCode'])[_0x009c('0x1b')](JSON[_0x009c('0x1c')](_0x701743));}});});_0x30e195['on'](_0x009c('0x1d'),function(_0x1d677c){if(_0x1daee0){return _0x1daee0[_0x009c('0x1e')](0x1f4)['json']({'errors':[{'message':_0x009c('0x1f'),'type':_0x009c('0x20')}]});}});_0x30e195[_0x009c('0x21')](_0x547982);_0x30e195['end']();}exports[_0x009c('0x22')]=openIssue;exports[_0x009c('0x23')]=function(_0x52ee47,_0x558add){_0x52ee47[_0x009c('0x24')]['ip']=_0x52ee47[_0x009c('0x25')][_0x009c('0x26')]||_0x52ee47[_0x009c('0x27')]['remoteAddress']||_0x52ee47['socket'][_0x009c('0x28')]||_0x52ee47[_0x009c('0x27')][_0x009c('0x29')]['remoteAddress'];return openIssue(_0x52ee47[_0x009c('0x24')],_0x558add);};
\ No newline at end of file