Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / jira / jira.controller.js
index 55ed664..e171d0e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd440=['parse','api.jira','openIssue','body','x-forwarded-for','connection','remoteAddress','socket','bluebird','https','../../config/logger','api','MOTGUI','Report','\x20from\x20','stringify','issuetype','Bug','fields','customfield_11501','oldToken','customfield_11502','newToken','customfield_11503','name','customfield_11504','customfield_10102','track.xcallymotion.com','POST','Basic\x20','toString','base64','request','setEncoding','utf8','data','end','status'];(function(_0x458dd2,_0xb2c6e6){var _0x470f65=function(_0x506bc9){while(--_0x506bc9){_0x458dd2['push'](_0x458dd2['shift']());}};_0x470f65(++_0xb2c6e6);}(_0xd440,0x138));var _0x0d44=function(_0x3690dd,_0x323aa3){_0x3690dd=_0x3690dd-0x0;var _0x33e731=_0xd440[_0x3690dd];return _0x33e731;};'use strict';var BPromise=require(_0x0d44('0x0'));var https=require(_0x0d44('0x1'));var logger=require(_0x0d44('0x2'))(_0x0d44('0x3'));var USERNAME='support';var PASSWORD='3eAmWpBVP0';function openIssue(_0x11b09b,_0x5f2a8c){var _0x7cecde={'fields':{'project':{'key':_0x11b09b['key']||_0x0d44('0x4')},'summary':(_0x11b09b['summary']||_0x0d44('0x5'))+_0x0d44('0x6')+_0x11b09b['ip'],'description':_0x11b09b['description']||JSON[_0x0d44('0x7')](_0x11b09b),'issuetype':{'name':_0x11b09b[_0x0d44('0x8')]||_0x0d44('0x9')}}};_0x7cecde['fields']['customfield_11500']=_0x11b09b['email'];_0x7cecde[_0x0d44('0xa')][_0x0d44('0xb')]=_0x11b09b[_0x0d44('0xc')];_0x7cecde['fields'][_0x0d44('0xd')]=_0x11b09b[_0x0d44('0xe')];_0x7cecde[_0x0d44('0xa')][_0x0d44('0xf')]=_0x11b09b[_0x0d44('0x10')];_0x7cecde[_0x0d44('0xa')][_0x0d44('0x11')]=_0x11b09b['reason'];_0x7cecde[_0x0d44('0xa')][_0x0d44('0x12')]=_0x11b09b['ip'];var _0x1f5e30={'host':_0x0d44('0x13'),'port':0x1bb,'path':'/rest/api/2/issue','method':_0x0d44('0x14'),'timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':_0x0d44('0x15')+new Buffer(USERNAME+':'+PASSWORD)[_0x0d44('0x16')](_0x0d44('0x17'))}};var _0x3e4461=JSON[_0x0d44('0x7')](_0x7cecde);var _0x3272ad=https[_0x0d44('0x18')](_0x1f5e30,function(_0x15032c){_0x15032c[_0x0d44('0x19')](_0x0d44('0x1a'));var _0x5a0ea5='';_0x15032c['on'](_0x0d44('0x1b'),function(_0x102bc6){_0x5a0ea5+=_0x102bc6;});_0x15032c['on'](_0x0d44('0x1c'),function(){if(_0x5f2a8c){return _0x5f2a8c[_0x0d44('0x1d')](_0x15032c['statusCode'])['json'](JSON[_0x0d44('0x1e')](_0x5a0ea5));}});});_0x3272ad['on']('error',function(_0x4490c3){if(_0x5f2a8c){return _0x5f2a8c[_0x0d44('0x1d')](0x1f4)['json']({'errors':[{'message':'Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','type':_0x0d44('0x1f')}]});}});_0x3272ad['write'](_0x3e4461);_0x3272ad['end']();}exports[_0x0d44('0x20')]=openIssue;exports['send']=function(_0x4e164b,_0x45134d){_0x4e164b[_0x0d44('0x21')]['ip']=_0x4e164b['headers'][_0x0d44('0x22')]||_0x4e164b[_0x0d44('0x23')][_0x0d44('0x24')]||_0x4e164b['socket']['remoteAddress']||_0x4e164b[_0x0d44('0x23')][_0x0d44('0x25')][_0x0d44('0x24')];return openIssue(_0x4e164b[_0x0d44('0x21')],_0x45134d);};
\ No newline at end of file
+var _0x39a4=['customfield_10102','track.xcallymotion.com','POST','Basic\x20','toString','base64','request','utf8','data','json','error','status','write','openIssue','send','body','headers','x-forwarded-for','connection','remoteAddress','socket','bluebird','https','../../config/logger','key','MOTGUI','summary','\x20from\x20','description','stringify','issuetype','Bug','fields','customfield_11500','customfield_11502','customfield_11503','name','reason'];(function(_0xe33e38,_0x8b4992){var _0xe3db22=function(_0x4932c9){while(--_0x4932c9){_0xe33e38['push'](_0xe33e38['shift']());}};_0xe3db22(++_0x8b4992);}(_0x39a4,0xd3));var _0x439a=function(_0x2b368a,_0x22262b){_0x2b368a=_0x2b368a-0x0;var _0x9a5c23=_0x39a4[_0x2b368a];return _0x9a5c23;};'use strict';var BPromise=require(_0x439a('0x0'));var https=require(_0x439a('0x1'));var logger=require(_0x439a('0x2'))('api');var USERNAME='support';var PASSWORD='3eAmWpBVP0';function openIssue(_0x5b76c8,_0x1b312f){var _0x5c7ce5={'fields':{'project':{'key':_0x5b76c8[_0x439a('0x3')]||_0x439a('0x4')},'summary':(_0x5b76c8[_0x439a('0x5')]||'Report')+_0x439a('0x6')+_0x5b76c8['ip'],'description':_0x5b76c8[_0x439a('0x7')]||JSON[_0x439a('0x8')](_0x5b76c8),'issuetype':{'name':_0x5b76c8[_0x439a('0x9')]||_0x439a('0xa')}}};_0x5c7ce5[_0x439a('0xb')][_0x439a('0xc')]=_0x5b76c8['email'];_0x5c7ce5['fields']['customfield_11501']=_0x5b76c8['oldToken'];_0x5c7ce5[_0x439a('0xb')][_0x439a('0xd')]=_0x5b76c8['newToken'];_0x5c7ce5[_0x439a('0xb')][_0x439a('0xe')]=_0x5b76c8[_0x439a('0xf')];_0x5c7ce5[_0x439a('0xb')]['customfield_11504']=_0x5b76c8[_0x439a('0x10')];_0x5c7ce5[_0x439a('0xb')][_0x439a('0x11')]=_0x5b76c8['ip'];var _0x4edeb2={'host':_0x439a('0x12'),'port':0x1bb,'path':'/rest/api/2/issue','method':_0x439a('0x13'),'timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':_0x439a('0x14')+new Buffer(USERNAME+':'+PASSWORD)[_0x439a('0x15')](_0x439a('0x16'))}};var _0x32ff46=JSON[_0x439a('0x8')](_0x5c7ce5);var _0x36cfb6=https[_0x439a('0x17')](_0x4edeb2,function(_0x48445e){_0x48445e['setEncoding'](_0x439a('0x18'));var _0xaa233d='';_0x48445e['on'](_0x439a('0x19'),function(_0x5c173c){_0xaa233d+=_0x5c173c;});_0x48445e['on']('end',function(){if(_0x1b312f){return _0x1b312f['status'](_0x48445e['statusCode'])[_0x439a('0x1a')](JSON['parse'](_0xaa233d));}});});_0x36cfb6['on'](_0x439a('0x1b'),function(_0x4235f2){if(_0x1b312f){return _0x1b312f[_0x439a('0x1c')](0x1f4)[_0x439a('0x1a')]({'errors':[{'message':'Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','type':'api.jira'}]});}});_0x36cfb6[_0x439a('0x1d')](_0x32ff46);_0x36cfb6['end']();}exports[_0x439a('0x1e')]=openIssue;exports[_0x439a('0x1f')]=function(_0x1ea6d3,_0x42668b){_0x1ea6d3[_0x439a('0x20')]['ip']=_0x1ea6d3[_0x439a('0x21')][_0x439a('0x22')]||_0x1ea6d3[_0x439a('0x23')][_0x439a('0x24')]||_0x1ea6d3[_0x439a('0x25')][_0x439a('0x24')]||_0x1ea6d3[_0x439a('0x23')][_0x439a('0x25')][_0x439a('0x24')];return openIssue(_0x1ea6d3[_0x439a('0x20')],_0x42668b);};
\ No newline at end of file