Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / intZendeskField / intZendeskField.rpc.js
index cde3801..00c1942 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x054b=['../../config/utils','../../config/logger','rpc','jayson/promise','client','http','request','then','info','ZendeskField,\x20%s,\x20%s','request\x20sent','debug','ZendeskField,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','randomstring','ioredis','../../mysqldb'];(function(_0x47e769,_0x427fa5){var _0x2a7bb0=function(_0x217706){while(--_0x217706){_0x47e769['push'](_0x47e769['shift']());}};_0x2a7bb0(++_0x427fa5);}(_0x054b,0x193));var _0xb054=function(_0x4af76e,_0x51f164){_0x4af76e=_0x4af76e-0x0;var _0xe89082=_0x054b[_0x4af76e];return _0xe89082;};'use strict';var _=require(_0xb054('0x0'));var util=require(_0xb054('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xb054('0x2'));var fs=require('fs');var Redis=require(_0xb054('0x3'));var db=require(_0xb054('0x4'))['db'];var utils=require(_0xb054('0x5'));var logger=require(_0xb054('0x6'))(_0xb054('0x7'));var config=require('../../config/environment');var jayson=require(_0xb054('0x8'));var client=jayson[_0xb054('0x9')][_0xb054('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5f1f39,_0x32c9fa,_0x232302){return new BPromise(function(_0x5857e7,_0x2a9607){return client[_0xb054('0xb')](_0x5f1f39,_0x232302)[_0xb054('0xc')](function(_0x1c3b58){logger[_0xb054('0xd')](_0xb054('0xe'),_0x32c9fa,_0xb054('0xf'));logger[_0xb054('0x10')](_0xb054('0x11'),_0x32c9fa,_0xb054('0xf'),JSON[_0xb054('0x12')](_0x1c3b58));if(_0x1c3b58['error']){if(_0x1c3b58[_0xb054('0x13')][_0xb054('0x14')]===0x1f4){logger[_0xb054('0x13')](_0xb054('0xe'),_0x32c9fa,_0x1c3b58[_0xb054('0x13')]['message']);return _0x2a9607(_0x1c3b58[_0xb054('0x13')][_0xb054('0x15')]);}logger[_0xb054('0x13')](_0xb054('0xe'),_0x32c9fa,_0x1c3b58['error'][_0xb054('0x15')]);return _0x5857e7(_0x1c3b58['error'][_0xb054('0x15')]);}else{logger[_0xb054('0xd')](_0xb054('0xe'),_0x32c9fa,_0xb054('0xf'));_0x5857e7(_0x1c3b58[_0xb054('0x16')][_0xb054('0x15')]);}})[_0xb054('0x17')](function(_0x26ee5a){logger[_0xb054('0x13')](_0xb054('0xe'),_0x32c9fa,_0x26ee5a);_0x2a9607(_0x26ee5a);});});}
\ No newline at end of file
+var _0xc43f=['client','request','then','info','ZendeskField,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise'];(function(_0x56eb02,_0x1f4beb){var _0x535ee4=function(_0xd143ba){while(--_0xd143ba){_0x56eb02['push'](_0x56eb02['shift']());}};_0x535ee4(++_0x1f4beb);}(_0xc43f,0x120));var _0xfc43=function(_0x2cdf5b,_0x41eece){_0x2cdf5b=_0x2cdf5b-0x0;var _0x87798e=_0xc43f[_0x2cdf5b];return _0x87798e;};'use strict';var _=require(_0xfc43('0x0'));var util=require(_0xfc43('0x1'));var moment=require(_0xfc43('0x2'));var BPromise=require(_0xfc43('0x3'));var rs=require(_0xfc43('0x4'));var fs=require('fs');var Redis=require(_0xfc43('0x5'));var db=require(_0xfc43('0x6'))['db'];var utils=require(_0xfc43('0x7'));var logger=require('../../config/logger')(_0xfc43('0x8'));var config=require(_0xfc43('0x9'));var jayson=require(_0xfc43('0xa'));var client=jayson[_0xfc43('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x241725,_0x91ede3,_0x5c032c){return new BPromise(function(_0x218a81,_0x943dd9){return client[_0xfc43('0xc')](_0x241725,_0x5c032c)[_0xfc43('0xd')](function(_0x49cd71){logger[_0xfc43('0xe')](_0xfc43('0xf'),_0x91ede3,_0xfc43('0x10'));logger[_0xfc43('0x11')]('ZendeskField,\x20%s,\x20%s,\x20%s',_0x91ede3,_0xfc43('0x10'),JSON[_0xfc43('0x12')](_0x49cd71));if(_0x49cd71[_0xfc43('0x13')]){if(_0x49cd71[_0xfc43('0x13')][_0xfc43('0x14')]===0x1f4){logger[_0xfc43('0x13')](_0xfc43('0xf'),_0x91ede3,_0x49cd71[_0xfc43('0x13')][_0xfc43('0x15')]);return _0x943dd9(_0x49cd71['error'][_0xfc43('0x15')]);}logger['error'](_0xfc43('0xf'),_0x91ede3,_0x49cd71[_0xfc43('0x13')][_0xfc43('0x15')]);return _0x218a81(_0x49cd71[_0xfc43('0x13')][_0xfc43('0x15')]);}else{logger[_0xfc43('0xe')](_0xfc43('0xf'),_0x91ede3,_0xfc43('0x10'));_0x218a81(_0x49cd71['result'][_0xfc43('0x15')]);}})[_0xfc43('0x16')](function(_0xfeb098){logger[_0xfc43('0x13')](_0xfc43('0xf'),_0x91ede3,_0xfeb098);_0x943dd9(_0xfeb098);});});}
\ No newline at end of file