Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / jira / jira.controller.js
index 7e1d012..5ccae3c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x08b8=['track.xcallymotion.com','/rest/api/2/issue','POST','application/json','Basic\x20','setEncoding','utf8','data','end','status','json','parse','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','api.jira','write','openIssue','body','headers','x-forwarded-for','remoteAddress','socket','connection','bluebird','https','support','key','MOTGUI','summary','Report','stringify','issuetype','customfield_11500','fields','customfield_11501','oldToken','customfield_11502','customfield_11503','name','customfield_11504','reason','customfield_10102'];(function(_0x3ab353,_0x5d5283){var _0x1e2285=function(_0x55804f){while(--_0x55804f){_0x3ab353['push'](_0x3ab353['shift']());}};_0x1e2285(++_0x5d5283);}(_0x08b8,0xe3));var _0x808b=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x08b8[_0x3dd15e];return _0x231fd0;};'use strict';var BPromise=require(_0x808b('0x0'));var https=require(_0x808b('0x1'));var logger=require('../../config/logger')('api');var USERNAME=_0x808b('0x2');var PASSWORD='3eAmWpBVP0';function openIssue(_0x5a9d90,_0x1044bd){var _0x4b32b0={'fields':{'project':{'key':_0x5a9d90[_0x808b('0x3')]||_0x808b('0x4')},'summary':(_0x5a9d90[_0x808b('0x5')]||_0x808b('0x6'))+'\x20from\x20'+_0x5a9d90['ip'],'description':_0x5a9d90['description']||JSON[_0x808b('0x7')](_0x5a9d90),'issuetype':{'name':_0x5a9d90[_0x808b('0x8')]||'Bug'}}};_0x4b32b0['fields'][_0x808b('0x9')]=_0x5a9d90['email'];_0x4b32b0[_0x808b('0xa')][_0x808b('0xb')]=_0x5a9d90[_0x808b('0xc')];_0x4b32b0[_0x808b('0xa')][_0x808b('0xd')]=_0x5a9d90['newToken'];_0x4b32b0[_0x808b('0xa')][_0x808b('0xe')]=_0x5a9d90[_0x808b('0xf')];_0x4b32b0['fields'][_0x808b('0x10')]=_0x5a9d90[_0x808b('0x11')];_0x4b32b0[_0x808b('0xa')][_0x808b('0x12')]=_0x5a9d90['ip'];var _0x5d8575={'host':_0x808b('0x13'),'port':0x1bb,'path':_0x808b('0x14'),'method':_0x808b('0x15'),'timeout':0x4e20,'headers':{'Content-Type':_0x808b('0x16'),'Authorization':_0x808b('0x17')+new Buffer(USERNAME+':'+PASSWORD)['toString']('base64')}};var _0x146be6=JSON['stringify'](_0x4b32b0);var _0x53b7ca=https['request'](_0x5d8575,function(_0x55dafe){_0x55dafe[_0x808b('0x18')](_0x808b('0x19'));var _0x350a9d='';_0x55dafe['on'](_0x808b('0x1a'),function(_0x176288){_0x350a9d+=_0x176288;});_0x55dafe['on'](_0x808b('0x1b'),function(){if(_0x1044bd){return _0x1044bd[_0x808b('0x1c')](_0x55dafe['statusCode'])[_0x808b('0x1d')](JSON[_0x808b('0x1e')](_0x350a9d));}});});_0x53b7ca['on']('error',function(_0x5bfa5c){if(_0x1044bd){return _0x1044bd[_0x808b('0x1c')](0x1f4)['json']({'errors':[{'message':_0x808b('0x1f'),'type':_0x808b('0x20')}]});}});_0x53b7ca[_0x808b('0x21')](_0x146be6);_0x53b7ca['end']();}exports[_0x808b('0x22')]=openIssue;exports['send']=function(_0x27c643,_0x1ffc4e){_0x27c643[_0x808b('0x23')]['ip']=_0x27c643[_0x808b('0x24')][_0x808b('0x25')]||_0x27c643['connection'][_0x808b('0x26')]||_0x27c643[_0x808b('0x27')][_0x808b('0x26')]||_0x27c643[_0x808b('0x28')]['socket'][_0x808b('0x26')];return openIssue(_0x27c643[_0x808b('0x23')],_0x1ffc4e);};
\ No newline at end of file
+var _0x6be6=['Report','\x20from\x20','stringify','issuetype','Bug','fields','customfield_11500','email','customfield_11501','customfield_11502','newToken','name','customfield_10102','track.xcallymotion.com','/rest/api/2/issue','POST','application/json','Basic\x20','toString','base64','status','statusCode','json','parse','error','api.jira','end','openIssue','send','x-forwarded-for','connection','remoteAddress','socket','body','bluebird','../../config/logger','support','3eAmWpBVP0','key','MOTGUI','summary'];(function(_0x3ecc30,_0x75412b){var _0x2682bc=function(_0x34c384){while(--_0x34c384){_0x3ecc30['push'](_0x3ecc30['shift']());}};_0x2682bc(++_0x75412b);}(_0x6be6,0x16a));var _0x66be=function(_0x5a3bca,_0x49a660){_0x5a3bca=_0x5a3bca-0x0;var _0x4b8b33=_0x6be6[_0x5a3bca];return _0x4b8b33;};'use strict';var BPromise=require(_0x66be('0x0'));var https=require('https');var logger=require(_0x66be('0x1'))('api');var USERNAME=_0x66be('0x2');var PASSWORD=_0x66be('0x3');function openIssue(_0x5c44bb,_0x9b4954){var _0x26aa23={'fields':{'project':{'key':_0x5c44bb[_0x66be('0x4')]||_0x66be('0x5')},'summary':(_0x5c44bb[_0x66be('0x6')]||_0x66be('0x7'))+_0x66be('0x8')+_0x5c44bb['ip'],'description':_0x5c44bb['description']||JSON[_0x66be('0x9')](_0x5c44bb),'issuetype':{'name':_0x5c44bb[_0x66be('0xa')]||_0x66be('0xb')}}};_0x26aa23[_0x66be('0xc')][_0x66be('0xd')]=_0x5c44bb[_0x66be('0xe')];_0x26aa23[_0x66be('0xc')][_0x66be('0xf')]=_0x5c44bb['oldToken'];_0x26aa23[_0x66be('0xc')][_0x66be('0x10')]=_0x5c44bb[_0x66be('0x11')];_0x26aa23['fields']['customfield_11503']=_0x5c44bb[_0x66be('0x12')];_0x26aa23[_0x66be('0xc')]['customfield_11504']=_0x5c44bb['reason'];_0x26aa23[_0x66be('0xc')][_0x66be('0x13')]=_0x5c44bb['ip'];var _0x178a31={'host':_0x66be('0x14'),'port':0x1bb,'path':_0x66be('0x15'),'method':_0x66be('0x16'),'timeout':0x4e20,'headers':{'Content-Type':_0x66be('0x17'),'Authorization':_0x66be('0x18')+new Buffer(USERNAME+':'+PASSWORD)[_0x66be('0x19')](_0x66be('0x1a'))}};var _0x4f7971=JSON[_0x66be('0x9')](_0x26aa23);var _0x31511c=https['request'](_0x178a31,function(_0x4262fb){_0x4262fb['setEncoding']('utf8');var _0x22bd19='';_0x4262fb['on']('data',function(_0x5c8dd9){_0x22bd19+=_0x5c8dd9;});_0x4262fb['on']('end',function(){if(_0x9b4954){return _0x9b4954[_0x66be('0x1b')](_0x4262fb[_0x66be('0x1c')])[_0x66be('0x1d')](JSON[_0x66be('0x1e')](_0x22bd19));}});});_0x31511c['on'](_0x66be('0x1f'),function(_0x438d8f){if(_0x9b4954){return _0x9b4954[_0x66be('0x1b')](0x1f4)[_0x66be('0x1d')]({'errors':[{'message':'Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','type':_0x66be('0x20')}]});}});_0x31511c['write'](_0x4f7971);_0x31511c[_0x66be('0x21')]();}exports[_0x66be('0x22')]=openIssue;exports[_0x66be('0x23')]=function(_0x85db25,_0x2e51bc){_0x85db25['body']['ip']=_0x85db25['headers'][_0x66be('0x24')]||_0x85db25[_0x66be('0x25')][_0x66be('0x26')]||_0x85db25[_0x66be('0x27')][_0x66be('0x26')]||_0x85db25[_0x66be('0x25')][_0x66be('0x27')][_0x66be('0x26')];return openIssue(_0x85db25[_0x66be('0x28')],_0x2e51bc);};
\ No newline at end of file