Built motion from commit (unavailable).|2.5.3
[motion2.git] / server / api / jira / jira.controller.js
index 79fdfc6..6419af4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x130e=['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','bluebird','../../config/logger','api','3eAmWpBVP0','key','Report','\x20from\x20','description','issuetype','Bug','fields','customfield_11500','oldToken','customfield_11502','newToken','customfield_11503','name','customfield_11504','customfield_10102','track.xcallymotion.com','/rest/api/2/issue','POST','application/json','toString','stringify','request','setEncoding','utf8','data','end','json','parse','error'];(function(_0xc0213d,_0x4a3b1d){var _0x1a93c4=function(_0xc683f3){while(--_0xc683f3){_0xc0213d['push'](_0xc0213d['shift']());}};_0x1a93c4(++_0x4a3b1d);}(_0x130e,0x93));var _0xe130=function(_0x1ace72,_0x274a09){_0x1ace72=_0x1ace72-0x0;var _0x38e16e=_0x130e[_0x1ace72];return _0x38e16e;};'use strict';var BPromise=require(_0xe130('0x0'));var https=require('https');var logger=require(_0xe130('0x1'))(_0xe130('0x2'));var USERNAME='support';var PASSWORD=_0xe130('0x3');function openIssue(_0x35eda3,_0x358c42){var _0x1c20e1={'fields':{'project':{'key':_0x35eda3[_0xe130('0x4')]||'MOTGUI'},'summary':(_0x35eda3['summary']||_0xe130('0x5'))+_0xe130('0x6')+_0x35eda3['ip'],'description':_0x35eda3[_0xe130('0x7')]||JSON['stringify'](_0x35eda3),'issuetype':{'name':_0x35eda3[_0xe130('0x8')]||_0xe130('0x9')}}};_0x1c20e1[_0xe130('0xa')][_0xe130('0xb')]=_0x35eda3['email'];_0x1c20e1[_0xe130('0xa')]['customfield_11501']=_0x35eda3[_0xe130('0xc')];_0x1c20e1[_0xe130('0xa')][_0xe130('0xd')]=_0x35eda3[_0xe130('0xe')];_0x1c20e1['fields'][_0xe130('0xf')]=_0x35eda3[_0xe130('0x10')];_0x1c20e1['fields'][_0xe130('0x11')]=_0x35eda3['reason'];_0x1c20e1[_0xe130('0xa')][_0xe130('0x12')]=_0x35eda3['ip'];var _0x355b9a={'host':_0xe130('0x13'),'port':0x1bb,'path':_0xe130('0x14'),'method':_0xe130('0x15'),'timeout':0x4e20,'headers':{'Content-Type':_0xe130('0x16'),'Authorization':'Basic\x20'+new Buffer(USERNAME+':'+PASSWORD)[_0xe130('0x17')]('base64')}};var _0x170aed=JSON[_0xe130('0x18')](_0x1c20e1);var _0x1734df=https[_0xe130('0x19')](_0x355b9a,function(_0x4219b2){_0x4219b2[_0xe130('0x1a')](_0xe130('0x1b'));var _0x12072a='';_0x4219b2['on'](_0xe130('0x1c'),function(_0x3459a1){_0x12072a+=_0x3459a1;});_0x4219b2['on'](_0xe130('0x1d'),function(){if(_0x358c42){return _0x358c42['status'](_0x4219b2['statusCode'])[_0xe130('0x1e')](JSON[_0xe130('0x1f')](_0x12072a));}});});_0x1734df['on'](_0xe130('0x20'),function(_0xc872b9){if(_0x358c42){return _0x358c42[_0xe130('0x21')](0x1f4)[_0xe130('0x1e')]({'errors':[{'message':_0xe130('0x22'),'type':_0xe130('0x23')}]});}});_0x1734df[_0xe130('0x24')](_0x170aed);_0x1734df['end']();}exports[_0xe130('0x25')]=openIssue;exports[_0xe130('0x26')]=function(_0x1590d5,_0x17641b){_0x1590d5[_0xe130('0x27')]['ip']=_0x1590d5[_0xe130('0x28')][_0xe130('0x29')]||_0x1590d5[_0xe130('0x2a')][_0xe130('0x2b')]||_0x1590d5[_0xe130('0x2c')][_0xe130('0x2b')]||_0x1590d5[_0xe130('0x2a')][_0xe130('0x2c')][_0xe130('0x2b')];return openIssue(_0x1590d5[_0xe130('0x27')],_0x17641b);};
\ No newline at end of file
+var _0xf48b=['socket','body','bluebird','https','support','3eAmWpBVP0','key','MOTGUI','summary','Report','\x20from\x20','description','stringify','issuetype','Bug','fields','email','customfield_11501','customfield_11502','newToken','name','customfield_11504','reason','customfield_10102','/rest/api/2/issue','POST','Basic\x20','toString','utf8','data','end','status','statusCode','json','parse','error','api.jira','write','openIssue','send','headers','x-forwarded-for','remoteAddress'];(function(_0x4cf782,_0x43c0dc){var _0x4046aa=function(_0x341c57){while(--_0x341c57){_0x4cf782['push'](_0x4cf782['shift']());}};_0x4046aa(++_0x43c0dc);}(_0xf48b,0x185));var _0xbf48=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xf48b[_0x4565bf];return _0x5610ba;};'use strict';var BPromise=require(_0xbf48('0x0'));var https=require(_0xbf48('0x1'));var logger=require('../../config/logger')('api');var USERNAME=_0xbf48('0x2');var PASSWORD=_0xbf48('0x3');function openIssue(_0x390942,_0x382190){var _0x487b8e={'fields':{'project':{'key':_0x390942[_0xbf48('0x4')]||_0xbf48('0x5')},'summary':(_0x390942[_0xbf48('0x6')]||_0xbf48('0x7'))+_0xbf48('0x8')+_0x390942['ip'],'description':_0x390942[_0xbf48('0x9')]||JSON[_0xbf48('0xa')](_0x390942),'issuetype':{'name':_0x390942[_0xbf48('0xb')]||_0xbf48('0xc')}}};_0x487b8e[_0xbf48('0xd')]['customfield_11500']=_0x390942[_0xbf48('0xe')];_0x487b8e['fields'][_0xbf48('0xf')]=_0x390942['oldToken'];_0x487b8e[_0xbf48('0xd')][_0xbf48('0x10')]=_0x390942[_0xbf48('0x11')];_0x487b8e['fields']['customfield_11503']=_0x390942[_0xbf48('0x12')];_0x487b8e[_0xbf48('0xd')][_0xbf48('0x13')]=_0x390942[_0xbf48('0x14')];_0x487b8e[_0xbf48('0xd')][_0xbf48('0x15')]=_0x390942['ip'];var _0x21de3e={'host':'track.xcallymotion.com','port':0x1bb,'path':_0xbf48('0x16'),'method':_0xbf48('0x17'),'timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':_0xbf48('0x18')+new Buffer(USERNAME+':'+PASSWORD)[_0xbf48('0x19')]('base64')}};var _0x4870c3=JSON['stringify'](_0x487b8e);var _0x44a028=https['request'](_0x21de3e,function(_0x5ab764){_0x5ab764['setEncoding'](_0xbf48('0x1a'));var _0x52b070='';_0x5ab764['on'](_0xbf48('0x1b'),function(_0x2740f6){_0x52b070+=_0x2740f6;});_0x5ab764['on'](_0xbf48('0x1c'),function(){if(_0x382190){return _0x382190[_0xbf48('0x1d')](_0x5ab764[_0xbf48('0x1e')])[_0xbf48('0x1f')](JSON[_0xbf48('0x20')](_0x52b070));}});});_0x44a028['on'](_0xbf48('0x21'),function(_0x349a14){if(_0x382190){return _0x382190[_0xbf48('0x1d')](0x1f4)[_0xbf48('0x1f')]({'errors':[{'message':'Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','type':_0xbf48('0x22')}]});}});_0x44a028[_0xbf48('0x23')](_0x4870c3);_0x44a028[_0xbf48('0x1c')]();}exports[_0xbf48('0x24')]=openIssue;exports[_0xbf48('0x25')]=function(_0x39dd1a,_0x244d4f){_0x39dd1a['body']['ip']=_0x39dd1a[_0xbf48('0x26')][_0xbf48('0x27')]||_0x39dd1a['connection'][_0xbf48('0x28')]||_0x39dd1a['socket'][_0xbf48('0x28')]||_0x39dd1a['connection'][_0xbf48('0x29')][_0xbf48('0x28')];return openIssue(_0x39dd1a[_0xbf48('0x2a')],_0x244d4f);};
\ No newline at end of file