Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / services / xdr / transfers.controller.js
index b941824..8d28eb7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xeed9=['format','type','attended','uniqueid','request','CreateVoiceTransferReport','blindtransfer','[%s][transfers][blindtransfer]','[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','transferercalleridnum','transferercalleridname','transfereecalleridname','error','attendedtransfer','debug','[%s][transfers][attendedtransfer]','origtransfereruniqueid','info','[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','origtransferercalleridnum','transfertargetcalleridnum','transfertargetcalleridname','assign','origtransferercalleridname','secondtransfererconnectedlinename','origtransfereraccountcode','secondtransferercontext','secondtransfererexten','origtransfererlinkedid','isNil','transfertargetchannel','transfertargetconnectedlinenum','transfertargetconnectedlinename','transfertargetcontext','transfertargetexten','transfertargetlinkedid','lodash','./utils'];(function(_0x10b4f2,_0x2d4ec8){var _0x1d9640=function(_0x5a55ab){while(--_0x5a55ab){_0x10b4f2['push'](_0x10b4f2['shift']());}};_0x1d9640(++_0x2d4ec8);}(_0xeed9,0x12e));var _0x9eed=function(_0x2a4da6,_0x5e7f66){_0x2a4da6=_0x2a4da6-0x0;var _0x21f384=_0xeed9[_0x2a4da6];return _0x21f384;};'use strict';var _=require(_0x9eed('0x0'));var util=require('util');var utils=require(_0x9eed('0x1'));function writeDB(_0x10bdf3){utils['info'](util[_0x9eed('0x2')]('[%s][transfers][writeDB]\x20type:%s',_0x10bdf3[_0x9eed('0x3')]===_0x9eed('0x4')?_0x10bdf3['origtransfereruniqueid']:_0x10bdf3[_0x9eed('0x5')],_0x10bdf3[_0x9eed('0x3')]));utils[_0x9eed('0x6')](_0x9eed('0x7'),_0x10bdf3);}exports[_0x9eed('0x8')]=function(_0x17c736){try{utils['debug'](util[_0x9eed('0x2')](_0x9eed('0x9'),_0x17c736[_0x9eed('0x5')]),_0x17c736);utils['info'](util['format'](_0x9eed('0xa'),_0x17c736[_0x9eed('0x5')],_0x17c736[_0x9eed('0xb')],_0x17c736[_0x9eed('0xc')],_0x17c736['transfereecalleridnum'],_0x17c736[_0x9eed('0xd')]));_0x17c736['type']='blind';writeDB(_0x17c736);}catch(_0x2b93c2){utils[_0x9eed('0xe')](util[_0x9eed('0x2')](_0x9eed('0x9'),_0x17c736[_0x9eed('0x5')]),_0x2b93c2);}};exports[_0x9eed('0xf')]=function(_0x177f80){try{utils[_0x9eed('0x10')](util['format'](_0x9eed('0x11'),_0x177f80[_0x9eed('0x12')]),_0x177f80);utils[_0x9eed('0x13')](util[_0x9eed('0x2')](_0x9eed('0x14'),_0x177f80[_0x9eed('0x12')],_0x177f80[_0x9eed('0x15')],_0x177f80['origtransferercalleridname'],_0x177f80[_0x9eed('0x16')],_0x177f80[_0x9eed('0x17')]));_0x177f80=_[_0x9eed('0x18')](_0x177f80,{'transfererchannel':_0x177f80['origtransfererchannel'],'transferercalleridnum':_0x177f80[_0x9eed('0x15')],'transferercalleridname':_0x177f80[_0x9eed('0x19')],'transfererconnectedlinenum':_0x177f80['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x177f80[_0x9eed('0x1a')],'transfereraccountcode':_0x177f80[_0x9eed('0x1b')],'transferercontext':_0x177f80[_0x9eed('0x1c')],'transfererexten':_0x177f80[_0x9eed('0x1d')],'transfererlinkedid':_0x177f80[_0x9eed('0x1e')],'context':_0x177f80['origtransferercontext'],'extension':_0x177f80['origtransfererexten'],'type':_0x9eed('0x4')});if(_[_0x9eed('0x1f')](_0x177f80['transfereechannel'])){_0x177f80=_[_0x9eed('0x18')](_0x177f80,{'transfereechannel':_0x177f80[_0x9eed('0x20')],'transfereecalleridnum':_0x177f80[_0x9eed('0x16')],'transfereecalleridname':_0x177f80['transfertargetcalleridname'],'transfereeconnectedlinenum':_0x177f80[_0x9eed('0x21')],'transfereeconnectedlinename':_0x177f80[_0x9eed('0x22')],'transfereeaccountcode':_0x177f80['transfertargetaccountcode'],'transfereecontext':_0x177f80[_0x9eed('0x23')],'transfereeexten':_0x177f80[_0x9eed('0x24')],'transfereelinkedid':_0x177f80[_0x9eed('0x25')]});}writeDB(_0x177f80);}catch(_0x5790df){utils['error'](util[_0x9eed('0x2')](_0x9eed('0x11'),_0x177f80[_0x9eed('0x12')]),_0x5790df);}};
\ No newline at end of file
+var _0x09f2=['format','[%s][transfers][writeDB]\x20type:%s','type','attended','request','blindtransfer','debug','[%s][transfers][blindtransfer]','[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','uniqueid','transferercalleridnum','transferercalleridname','transfereecalleridnum','transfereecalleridname','error','attendedtransfer','[%s][transfers][attendedtransfer]','origtransfereruniqueid','[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','origtransferercalleridnum','origtransferercalleridname','transfertargetcalleridnum','transfertargetcalleridname','assign','secondtransfererconnectedlinenum','secondtransfererconnectedlinename','origtransfereraccountcode','secondtransferercontext','secondtransfererexten','origtransferercontext','origtransfererexten','isNil','transfereechannel','transfertargetchannel','transfertargetconnectedlinenum','transfertargetconnectedlinename','transfertargetaccountcode','transfertargetcontext','transfertargetexten','lodash','util','./utils','info'];(function(_0x4ed520,_0x21be63){var _0x4415a6=function(_0x14b151){while(--_0x14b151){_0x4ed520['push'](_0x4ed520['shift']());}};_0x4415a6(++_0x21be63);}(_0x09f2,0x1d5));var _0x209f=function(_0x374126,_0x4cbe46){_0x374126=_0x374126-0x0;var _0x2e5ad7=_0x09f2[_0x374126];return _0x2e5ad7;};'use strict';var _=require(_0x209f('0x0'));var util=require(_0x209f('0x1'));var utils=require(_0x209f('0x2'));function writeDB(_0x3b9775){utils[_0x209f('0x3')](util[_0x209f('0x4')](_0x209f('0x5'),_0x3b9775[_0x209f('0x6')]===_0x209f('0x7')?_0x3b9775['origtransfereruniqueid']:_0x3b9775['uniqueid'],_0x3b9775[_0x209f('0x6')]));utils[_0x209f('0x8')]('CreateVoiceTransferReport',_0x3b9775);}exports[_0x209f('0x9')]=function(_0x557a4f){try{utils[_0x209f('0xa')](util['format'](_0x209f('0xb'),_0x557a4f['uniqueid']),_0x557a4f);utils[_0x209f('0x3')](util['format'](_0x209f('0xc'),_0x557a4f[_0x209f('0xd')],_0x557a4f[_0x209f('0xe')],_0x557a4f[_0x209f('0xf')],_0x557a4f[_0x209f('0x10')],_0x557a4f[_0x209f('0x11')]));_0x557a4f['type']='blind';writeDB(_0x557a4f);}catch(_0x5c9b67){utils[_0x209f('0x12')](util[_0x209f('0x4')](_0x209f('0xb'),_0x557a4f[_0x209f('0xd')]),_0x5c9b67);}};exports[_0x209f('0x13')]=function(_0x73e1c8){try{utils[_0x209f('0xa')](util[_0x209f('0x4')](_0x209f('0x14'),_0x73e1c8[_0x209f('0x15')]),_0x73e1c8);utils[_0x209f('0x3')](util[_0x209f('0x4')](_0x209f('0x16'),_0x73e1c8['origtransfereruniqueid'],_0x73e1c8[_0x209f('0x17')],_0x73e1c8[_0x209f('0x18')],_0x73e1c8[_0x209f('0x19')],_0x73e1c8[_0x209f('0x1a')]));_0x73e1c8=_[_0x209f('0x1b')](_0x73e1c8,{'transfererchannel':_0x73e1c8['origtransfererchannel'],'transferercalleridnum':_0x73e1c8[_0x209f('0x17')],'transferercalleridname':_0x73e1c8['origtransferercalleridname'],'transfererconnectedlinenum':_0x73e1c8[_0x209f('0x1c')],'transfererconnectedlinename':_0x73e1c8[_0x209f('0x1d')],'transfereraccountcode':_0x73e1c8[_0x209f('0x1e')],'transferercontext':_0x73e1c8[_0x209f('0x1f')],'transfererexten':_0x73e1c8[_0x209f('0x20')],'transfererlinkedid':_0x73e1c8['origtransfererlinkedid'],'context':_0x73e1c8[_0x209f('0x21')],'extension':_0x73e1c8[_0x209f('0x22')],'type':'attended'});if(_[_0x209f('0x23')](_0x73e1c8[_0x209f('0x24')])){_0x73e1c8=_[_0x209f('0x1b')](_0x73e1c8,{'transfereechannel':_0x73e1c8[_0x209f('0x25')],'transfereecalleridnum':_0x73e1c8[_0x209f('0x19')],'transfereecalleridname':_0x73e1c8[_0x209f('0x1a')],'transfereeconnectedlinenum':_0x73e1c8[_0x209f('0x26')],'transfereeconnectedlinename':_0x73e1c8[_0x209f('0x27')],'transfereeaccountcode':_0x73e1c8[_0x209f('0x28')],'transfereecontext':_0x73e1c8[_0x209f('0x29')],'transfereeexten':_0x73e1c8[_0x209f('0x2a')],'transfereelinkedid':_0x73e1c8['transfertargetlinkedid']});}writeDB(_0x73e1c8);}catch(_0x2978f3){utils['error'](util[_0x209f('0x4')](_0x209f('0x14'),_0x73e1c8[_0x209f('0x15')]),_0x2978f3);}};
\ No newline at end of file