Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / server / api / jira / jira.controller.js
index d893167..6c6c9df 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8a89=['fields','customfield_11500','customfield_11501','oldToken','customfield_11502','newToken','customfield_11504','reason','customfield_10102','track.xcallymotion.com','/rest/api/2/issue','Basic\x20','toString','base64','request','utf8','data','status','json','error','api.jira','write','openIssue','body','x-forwarded-for','connection','remoteAddress','socket','../../config/logger','support','3eAmWpBVP0','MOTGUI','summary','description','stringify','issuetype'];(function(_0x49cb71,_0x2f0149){var _0x3a50fd=function(_0x48c304){while(--_0x48c304){_0x49cb71['push'](_0x49cb71['shift']());}};_0x3a50fd(++_0x2f0149);}(_0x8a89,0x1f0));var _0x98a8=function(_0x308c6a,_0xe04d64){_0x308c6a=_0x308c6a-0x0;var _0x257b4d=_0x8a89[_0x308c6a];return _0x257b4d;};'use strict';var BPromise=require('bluebird');var https=require('https');var logger=require(_0x98a8('0x0'))('api');var USERNAME=_0x98a8('0x1');var PASSWORD=_0x98a8('0x2');function openIssue(_0x5e5eb1,_0x537fcf){var _0x22fc3a={'fields':{'project':{'key':_0x5e5eb1['key']||_0x98a8('0x3')},'summary':(_0x5e5eb1[_0x98a8('0x4')]||'Report')+'\x20from\x20'+_0x5e5eb1['ip'],'description':_0x5e5eb1[_0x98a8('0x5')]||JSON[_0x98a8('0x6')](_0x5e5eb1),'issuetype':{'name':_0x5e5eb1[_0x98a8('0x7')]||'Bug'}}};_0x22fc3a[_0x98a8('0x8')][_0x98a8('0x9')]=_0x5e5eb1['email'];_0x22fc3a['fields'][_0x98a8('0xa')]=_0x5e5eb1[_0x98a8('0xb')];_0x22fc3a[_0x98a8('0x8')][_0x98a8('0xc')]=_0x5e5eb1[_0x98a8('0xd')];_0x22fc3a['fields']['customfield_11503']=_0x5e5eb1['name'];_0x22fc3a[_0x98a8('0x8')][_0x98a8('0xe')]=_0x5e5eb1[_0x98a8('0xf')];_0x22fc3a[_0x98a8('0x8')][_0x98a8('0x10')]=_0x5e5eb1['ip'];var _0x4f2648={'host':_0x98a8('0x11'),'port':0x1bb,'path':_0x98a8('0x12'),'method':'POST','timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':_0x98a8('0x13')+new Buffer(USERNAME+':'+PASSWORD)[_0x98a8('0x14')](_0x98a8('0x15'))}};var _0x263ad9=JSON[_0x98a8('0x6')](_0x22fc3a);var _0x5d2b5e=https[_0x98a8('0x16')](_0x4f2648,function(_0x303282){_0x303282['setEncoding'](_0x98a8('0x17'));var _0x4ce252='';_0x303282['on'](_0x98a8('0x18'),function(_0x479d3a){_0x4ce252+=_0x479d3a;});_0x303282['on']('end',function(){if(_0x537fcf){return _0x537fcf[_0x98a8('0x19')](_0x303282['statusCode'])[_0x98a8('0x1a')](JSON['parse'](_0x4ce252));}});});_0x5d2b5e['on'](_0x98a8('0x1b'),function(_0xad5aa){if(_0x537fcf){return _0x537fcf['status'](0x1f4)[_0x98a8('0x1a')]({'errors':[{'message':'Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','type':_0x98a8('0x1c')}]});}});_0x5d2b5e[_0x98a8('0x1d')](_0x263ad9);_0x5d2b5e['end']();}exports[_0x98a8('0x1e')]=openIssue;exports['send']=function(_0x5eae96,_0x48c579){_0x5eae96[_0x98a8('0x1f')]['ip']=_0x5eae96['headers'][_0x98a8('0x20')]||_0x5eae96[_0x98a8('0x21')][_0x98a8('0x22')]||_0x5eae96['socket'][_0x98a8('0x22')]||_0x5eae96[_0x98a8('0x21')][_0x98a8('0x23')][_0x98a8('0x22')];return openIssue(_0x5eae96[_0x98a8('0x1f')],_0x48c579);};
\ 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