Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / jira / jira.controller.js
index 371cf10..5ccae3c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0a5c=['track.xcallymotion.com','/rest/api/2/issue','request','setEncoding','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','headers','x-forwarded-for','connection','socket','remoteAddress','bluebird','https','support','3eAmWpBVP0','key','MOTGUI','summary','\x20from\x20','description','stringify','issuetype','fields','customfield_11500','oldToken','customfield_11503','name','customfield_11504','reason'];(function(_0x5bc6cb,_0x861f52){var _0x8a731a=function(_0x2d4d18){while(--_0x2d4d18){_0x5bc6cb['push'](_0x5bc6cb['shift']());}};_0x8a731a(++_0x861f52);}(_0x0a5c,0xf1));var _0xc0a5=function(_0x1e4360,_0x930b9b){_0x1e4360=_0x1e4360-0x0;var _0x31e6b4=_0x0a5c[_0x1e4360];return _0x31e6b4;};'use strict';var BPromise=require(_0xc0a5('0x0'));var https=require(_0xc0a5('0x1'));var logger=require('../../config/logger')('api');var USERNAME=_0xc0a5('0x2');var PASSWORD=_0xc0a5('0x3');function openIssue(_0x2a1f07,_0x123a9c){var _0x3f0578={'fields':{'project':{'key':_0x2a1f07[_0xc0a5('0x4')]||_0xc0a5('0x5')},'summary':(_0x2a1f07[_0xc0a5('0x6')]||'Report')+_0xc0a5('0x7')+_0x2a1f07['ip'],'description':_0x2a1f07[_0xc0a5('0x8')]||JSON[_0xc0a5('0x9')](_0x2a1f07),'issuetype':{'name':_0x2a1f07[_0xc0a5('0xa')]||'Bug'}}};_0x3f0578[_0xc0a5('0xb')][_0xc0a5('0xc')]=_0x2a1f07['email'];_0x3f0578[_0xc0a5('0xb')]['customfield_11501']=_0x2a1f07[_0xc0a5('0xd')];_0x3f0578[_0xc0a5('0xb')]['customfield_11502']=_0x2a1f07['newToken'];_0x3f0578[_0xc0a5('0xb')][_0xc0a5('0xe')]=_0x2a1f07[_0xc0a5('0xf')];_0x3f0578[_0xc0a5('0xb')][_0xc0a5('0x10')]=_0x2a1f07[_0xc0a5('0x11')];_0x3f0578['fields']['customfield_10102']=_0x2a1f07['ip'];var _0x491ec1={'host':_0xc0a5('0x12'),'port':0x1bb,'path':_0xc0a5('0x13'),'method':'POST','timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':'Basic\x20'+new Buffer(USERNAME+':'+PASSWORD)['toString']('base64')}};var _0x1b75a0=JSON[_0xc0a5('0x9')](_0x3f0578);var _0x430e8b=https[_0xc0a5('0x14')](_0x491ec1,function(_0x450d64){_0x450d64[_0xc0a5('0x15')]('utf8');var _0x5d1432='';_0x450d64['on']('data',function(_0x4a0705){_0x5d1432+=_0x4a0705;});_0x450d64['on'](_0xc0a5('0x16'),function(){if(_0x123a9c){return _0x123a9c['status'](_0x450d64['statusCode'])[_0xc0a5('0x17')](JSON[_0xc0a5('0x18')](_0x5d1432));}});});_0x430e8b['on'](_0xc0a5('0x19'),function(_0x3ebea8){if(_0x123a9c){return _0x123a9c[_0xc0a5('0x1a')](0x1f4)[_0xc0a5('0x17')]({'errors':[{'message':_0xc0a5('0x1b'),'type':_0xc0a5('0x1c')}]});}});_0x430e8b[_0xc0a5('0x1d')](_0x1b75a0);_0x430e8b[_0xc0a5('0x16')]();}exports[_0xc0a5('0x1e')]=openIssue;exports[_0xc0a5('0x1f')]=function(_0x101331,_0x51447f){_0x101331['body']['ip']=_0x101331[_0xc0a5('0x20')][_0xc0a5('0x21')]||_0x101331[_0xc0a5('0x22')]['remoteAddress']||_0x101331[_0xc0a5('0x23')]['remoteAddress']||_0x101331[_0xc0a5('0x22')][_0xc0a5('0x23')][_0xc0a5('0x24')];return openIssue(_0x101331['body'],_0x51447f);};
\ 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