Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / services / xdr / transfers.controller.js
index 47e67f6..c555575 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf63=['TRANSFER|%s','type','request','CreateVoiceTransferReport','blindtransfer','blind','error','stack','origtransferercalleridnum','origtransferercalleridname','secondtransfererconnectedlinenum','origtransfereraccountcode','secondtransferercontext','secondtransfererexten','origtransfererlinkedid','origtransfererexten','attended','isNil','assign','transfertargetcalleridnum','transfertargetcalleridname','transfertargetconnectedlinenum','transfertargetconnectedlinename','lodash','./utils','format'];(function(_0x293b8b,_0x20f129){var _0x2eccfd=function(_0x42712a){while(--_0x42712a){_0x293b8b['push'](_0x293b8b['shift']());}};_0x2eccfd(++_0x20f129);}(_0xbf63,0x1eb));var _0x3bf6=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0xbf63[_0x3ab51d];return _0x29a04e;};'use strict';var _=require(_0x3bf6('0x0'));var util=require('util');var utils=require(_0x3bf6('0x1'));function writeDB(_0x58a62f){utils['info'](util[_0x3bf6('0x2')](_0x3bf6('0x3'),_0x58a62f[_0x3bf6('0x4')]));utils[_0x3bf6('0x5')](_0x3bf6('0x6'),_0x58a62f);}exports[_0x3bf6('0x7')]=function(_0x2a5895){try{_0x2a5895[_0x3bf6('0x4')]=_0x3bf6('0x8');writeDB(_0x2a5895);}catch(_0x260724){utils[_0x3bf6('0x9')](_0x260724[_0x3bf6('0xa')]);}};exports['attendedtransfer']=function(_0x36ff95){try{_0x36ff95=_['assign'](_0x36ff95,{'transfererchannel':_0x36ff95['origtransfererchannel'],'transferercalleridnum':_0x36ff95[_0x3bf6('0xb')],'transferercalleridname':_0x36ff95[_0x3bf6('0xc')],'transfererconnectedlinenum':_0x36ff95[_0x3bf6('0xd')],'transfererconnectedlinename':_0x36ff95['secondtransfererconnectedlinename'],'transfereraccountcode':_0x36ff95[_0x3bf6('0xe')],'transferercontext':_0x36ff95[_0x3bf6('0xf')],'transfererexten':_0x36ff95[_0x3bf6('0x10')],'transfererlinkedid':_0x36ff95[_0x3bf6('0x11')],'context':_0x36ff95['origtransferercontext'],'extension':_0x36ff95[_0x3bf6('0x12')],'type':_0x3bf6('0x13')});if(_[_0x3bf6('0x14')](_0x36ff95['transfereechannel'])){_0x36ff95=_[_0x3bf6('0x15')](_0x36ff95,{'transfereechannel':_0x36ff95['transfertargetchannel'],'transfereecalleridnum':_0x36ff95[_0x3bf6('0x16')],'transfereecalleridname':_0x36ff95[_0x3bf6('0x17')],'transfereeconnectedlinenum':_0x36ff95[_0x3bf6('0x18')],'transfereeconnectedlinename':_0x36ff95[_0x3bf6('0x19')],'transfereeaccountcode':_0x36ff95['transfertargetaccountcode'],'transfereecontext':_0x36ff95['transfertargetcontext'],'transfereeexten':_0x36ff95['transfertargetexten'],'transfereelinkedid':_0x36ff95['transfertargetlinkedid']});}writeDB(_0x36ff95);}catch(_0xa5818d){utils[_0x3bf6('0x9')](_0xa5818d[_0x3bf6('0xa')]);}};
\ No newline at end of file
+var _0x9c15=['origtransfereraccountcode','secondtransfererexten','origtransfererlinkedid','origtransferercontext','origtransfererexten','attended','isNil','transfertargetchannel','transfertargetcalleridnum','transfertargetconnectedlinenum','transfertargetconnectedlinename','transfertargetaccountcode','transfertargetcontext','transfertargetexten','transfertargetlinkedid','[%s][transfers][attendedtransfer]','util','./utils','info','format','type','origtransfereruniqueid','uniqueid','request','CreateVoiceTransferReport','blinds','blindtransfer','debug','[%s][transfers][blindtransfer]','[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','transferercalleridname','transfereecalleridname','transfereruniqueid','error','[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','transfertargetcalleridname','assign','origtransferercalleridnum','origtransferercalleridname','secondtransfererconnectedlinenum','secondtransfererconnectedlinename'];(function(_0x4c59fe,_0x28b083){var _0x1a90f5=function(_0x13bc31){while(--_0x13bc31){_0x4c59fe['push'](_0x4c59fe['shift']());}};_0x1a90f5(++_0x28b083);}(_0x9c15,0xb4));var _0x59c1=function(_0x126558,_0x143c9a){_0x126558=_0x126558-0x0;var _0x1f6d14=_0x9c15[_0x126558];return _0x1f6d14;};'use strict';var _=require('lodash');var util=require(_0x59c1('0x0'));var utils=require(_0x59c1('0x1'));function writeDB(_0x11c7b6){utils[_0x59c1('0x2')](util[_0x59c1('0x3')]('[%s][transfers][writeDB]\x20type:%s',_0x11c7b6[_0x59c1('0x4')]==='attended'?_0x11c7b6[_0x59c1('0x5')]:_0x11c7b6[_0x59c1('0x6')],_0x11c7b6[_0x59c1('0x4')]));utils[_0x59c1('0x7')](_0x59c1('0x8'),_0x11c7b6);}exports[_0x59c1('0x9')]={};exports[_0x59c1('0xa')]=function(_0x71c430){try{utils[_0x59c1('0xb')](util[_0x59c1('0x3')](_0x59c1('0xc'),_0x71c430['uniqueid']),_0x71c430);utils[_0x59c1('0x2')](util[_0x59c1('0x3')](_0x59c1('0xd'),_0x71c430[_0x59c1('0x6')],_0x71c430['transferercalleridnum'],_0x71c430[_0x59c1('0xe')],_0x71c430['transfereecalleridnum'],_0x71c430[_0x59c1('0xf')]));_0x71c430[_0x59c1('0x4')]='blind';exports[_0x59c1('0x9')][_0x71c430[_0x59c1('0x10')]]=_0x71c430;writeDB(_0x71c430);}catch(_0x1f90f8){utils[_0x59c1('0x11')](util[_0x59c1('0x3')]('[%s][transfers][blindtransfer]',_0x71c430[_0x59c1('0x6')]),_0x1f90f8);}};exports['attendedtransfer']=function(_0x2d4e71){try{utils[_0x59c1('0xb')](util[_0x59c1('0x3')]('[%s][transfers][attendedtransfer]',_0x2d4e71[_0x59c1('0x5')]),_0x2d4e71);utils[_0x59c1('0x2')](util[_0x59c1('0x3')](_0x59c1('0x12'),_0x2d4e71[_0x59c1('0x5')],_0x2d4e71['origtransferercalleridnum'],_0x2d4e71['origtransferercalleridname'],_0x2d4e71['transfertargetcalleridnum'],_0x2d4e71[_0x59c1('0x13')]));_0x2d4e71=_[_0x59c1('0x14')](_0x2d4e71,{'transfererchannel':_0x2d4e71['origtransfererchannel'],'transferercalleridnum':_0x2d4e71[_0x59c1('0x15')],'transferercalleridname':_0x2d4e71[_0x59c1('0x16')],'transfererconnectedlinenum':_0x2d4e71[_0x59c1('0x17')],'transfererconnectedlinename':_0x2d4e71[_0x59c1('0x18')],'transfereraccountcode':_0x2d4e71[_0x59c1('0x19')],'transferercontext':_0x2d4e71['secondtransferercontext'],'transfererexten':_0x2d4e71[_0x59c1('0x1a')],'transfererlinkedid':_0x2d4e71[_0x59c1('0x1b')],'context':_0x2d4e71[_0x59c1('0x1c')],'extension':_0x2d4e71[_0x59c1('0x1d')],'type':_0x59c1('0x1e')});if(_[_0x59c1('0x1f')](_0x2d4e71['transfereechannel'])){_0x2d4e71=_[_0x59c1('0x14')](_0x2d4e71,{'transfereechannel':_0x2d4e71[_0x59c1('0x20')],'transfereecalleridnum':_0x2d4e71[_0x59c1('0x21')],'transfereecalleridname':_0x2d4e71[_0x59c1('0x13')],'transfereeconnectedlinenum':_0x2d4e71[_0x59c1('0x22')],'transfereeconnectedlinename':_0x2d4e71[_0x59c1('0x23')],'transfereeaccountcode':_0x2d4e71[_0x59c1('0x24')],'transfereecontext':_0x2d4e71[_0x59c1('0x25')],'transfereeexten':_0x2d4e71[_0x59c1('0x26')],'transfereelinkedid':_0x2d4e71[_0x59c1('0x27')]});}writeDB(_0x2d4e71);}catch(_0x1d3bae){utils[_0x59c1('0x11')](util['format'](_0x59c1('0x28'),_0x2d4e71[_0x59c1('0x5')]),_0x1d3bae);}};
\ No newline at end of file