Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / services / xdr / transfers.controller.js
index 4719d90..e2c2a24 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa916=['request','CreateVoiceTransferReport','blindtransfer','[%s][transfers][blindtransfer]','transferercalleridnum','transferercalleridname','transfereecalleridnum','transfereecalleridname','error','attendedtransfer','debug','[%s][transfers][attendedtransfer]','origtransferercalleridnum','origtransferercalleridname','transfertargetcalleridnum','assign','origtransfererchannel','secondtransfererconnectedlinename','origtransfereraccountcode','origtransfererlinkedid','origtransferercontext','transfereechannel','transfertargetchannel','transfertargetcalleridname','transfertargetconnectedlinenum','transfertargetconnectedlinename','transfertargetaccountcode','transfertargetcontext','transfertargetexten','transfertargetlinkedid','lodash','util','./utils','info','format','[%s][transfers][writeDB]\x20type:%s','type','attended','origtransfereruniqueid','uniqueid'];(function(_0x3e2fac,_0x235ea3){var _0x2d7f95=function(_0x240a31){while(--_0x240a31){_0x3e2fac['push'](_0x3e2fac['shift']());}};_0x2d7f95(++_0x235ea3);}(_0xa916,0x96));var _0x6a91=function(_0x79ca4f,_0x2ac24d){_0x79ca4f=_0x79ca4f-0x0;var _0x3beebc=_0xa916[_0x79ca4f];return _0x3beebc;};'use strict';var _=require(_0x6a91('0x0'));var util=require(_0x6a91('0x1'));var utils=require(_0x6a91('0x2'));function writeDB(_0x17cf35){utils[_0x6a91('0x3')](util[_0x6a91('0x4')](_0x6a91('0x5'),_0x17cf35[_0x6a91('0x6')]===_0x6a91('0x7')?_0x17cf35[_0x6a91('0x8')]:_0x17cf35[_0x6a91('0x9')],_0x17cf35[_0x6a91('0x6')]));utils[_0x6a91('0xa')](_0x6a91('0xb'),_0x17cf35);}exports[_0x6a91('0xc')]=function(_0x2a6e94){try{utils['debug'](util[_0x6a91('0x4')](_0x6a91('0xd'),_0x2a6e94[_0x6a91('0x9')]),_0x2a6e94);utils[_0x6a91('0x3')](util[_0x6a91('0x4')]('[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s',_0x2a6e94[_0x6a91('0x9')],_0x2a6e94[_0x6a91('0xe')],_0x2a6e94[_0x6a91('0xf')],_0x2a6e94[_0x6a91('0x10')],_0x2a6e94[_0x6a91('0x11')]));_0x2a6e94['type']='blind';writeDB(_0x2a6e94);}catch(_0x6d8e18){utils[_0x6a91('0x12')](util[_0x6a91('0x4')](_0x6a91('0xd'),_0x2a6e94['uniqueid']),_0x6d8e18);}};exports[_0x6a91('0x13')]=function(_0x42eee7){try{utils[_0x6a91('0x14')](util[_0x6a91('0x4')](_0x6a91('0x15'),_0x42eee7[_0x6a91('0x8')]),_0x42eee7);utils[_0x6a91('0x3')](util[_0x6a91('0x4')]('[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s',_0x42eee7['origtransfereruniqueid'],_0x42eee7[_0x6a91('0x16')],_0x42eee7[_0x6a91('0x17')],_0x42eee7[_0x6a91('0x18')],_0x42eee7['transfertargetcalleridname']));_0x42eee7=_[_0x6a91('0x19')](_0x42eee7,{'transfererchannel':_0x42eee7[_0x6a91('0x1a')],'transferercalleridnum':_0x42eee7['origtransferercalleridnum'],'transferercalleridname':_0x42eee7[_0x6a91('0x17')],'transfererconnectedlinenum':_0x42eee7['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x42eee7[_0x6a91('0x1b')],'transfereraccountcode':_0x42eee7[_0x6a91('0x1c')],'transferercontext':_0x42eee7['secondtransferercontext'],'transfererexten':_0x42eee7['secondtransfererexten'],'transfererlinkedid':_0x42eee7[_0x6a91('0x1d')],'context':_0x42eee7[_0x6a91('0x1e')],'extension':_0x42eee7['origtransfererexten'],'type':'attended'});if(_['isNil'](_0x42eee7[_0x6a91('0x1f')])){_0x42eee7=_['assign'](_0x42eee7,{'transfereechannel':_0x42eee7[_0x6a91('0x20')],'transfereecalleridnum':_0x42eee7[_0x6a91('0x18')],'transfereecalleridname':_0x42eee7[_0x6a91('0x21')],'transfereeconnectedlinenum':_0x42eee7[_0x6a91('0x22')],'transfereeconnectedlinename':_0x42eee7[_0x6a91('0x23')],'transfereeaccountcode':_0x42eee7[_0x6a91('0x24')],'transfereecontext':_0x42eee7[_0x6a91('0x25')],'transfereeexten':_0x42eee7[_0x6a91('0x26')],'transfereelinkedid':_0x42eee7[_0x6a91('0x27')]});}writeDB(_0x42eee7);}catch(_0x2328db){utils['error'](util[_0x6a91('0x4')]('[%s][transfers][attendedtransfer]',_0x42eee7[_0x6a91('0x8')]),_0x2328db);}};
\ No newline at end of file
+var _0xb16d=['attendedtransfer','origtransfereruniqueid','[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','origtransferercalleridnum','transfertargetcalleridname','assign','origtransfererchannel','origtransferercalleridname','secondtransfererconnectedlinenum','secondtransfererconnectedlinename','origtransfereraccountcode','secondtransferercontext','secondtransfererexten','origtransfererlinkedid','origtransferercontext','origtransfererexten','isNil','transfereechannel','transfertargetconnectedlinenum','transfertargetconnectedlinename','transfertargetaccountcode','transfertargetcontext','transfertargetexten','error','[%s][transfers][attendedtransfer]','util','info','[%s][transfers][writeDB]\x20type:%s','attended','uniqueid','CreateVoiceTransferReport','debug','format','[%s][transfers][blindtransfer]','[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','transferercalleridname','transfereecalleridnum','transfereecalleridname','type','blind'];(function(_0x506449,_0x3e5621){var _0x46398f=function(_0x2dfcb9){while(--_0x2dfcb9){_0x506449['push'](_0x506449['shift']());}};_0x46398f(++_0x3e5621);}(_0xb16d,0x109));var _0xdb16=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xb16d[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0xdb16('0x0'));var utils=require('./utils');function writeDB(_0x30da47){utils[_0xdb16('0x1')](util['format'](_0xdb16('0x2'),_0x30da47['type']===_0xdb16('0x3')?_0x30da47['origtransfereruniqueid']:_0x30da47[_0xdb16('0x4')],_0x30da47['type']));utils['request'](_0xdb16('0x5'),_0x30da47);}exports['blindtransfer']=function(_0x1b1bab){try{utils[_0xdb16('0x6')](util[_0xdb16('0x7')](_0xdb16('0x8'),_0x1b1bab[_0xdb16('0x4')]),_0x1b1bab);utils[_0xdb16('0x1')](util[_0xdb16('0x7')](_0xdb16('0x9'),_0x1b1bab[_0xdb16('0x4')],_0x1b1bab['transferercalleridnum'],_0x1b1bab[_0xdb16('0xa')],_0x1b1bab[_0xdb16('0xb')],_0x1b1bab[_0xdb16('0xc')]));_0x1b1bab[_0xdb16('0xd')]=_0xdb16('0xe');writeDB(_0x1b1bab);}catch(_0x357173){utils['error'](util['format'](_0xdb16('0x8'),_0x1b1bab['uniqueid']),_0x357173);}};exports[_0xdb16('0xf')]=function(_0x5ce0f3){try{utils[_0xdb16('0x6')](util[_0xdb16('0x7')]('[%s][transfers][attendedtransfer]',_0x5ce0f3[_0xdb16('0x10')]),_0x5ce0f3);utils[_0xdb16('0x1')](util[_0xdb16('0x7')](_0xdb16('0x11'),_0x5ce0f3[_0xdb16('0x10')],_0x5ce0f3[_0xdb16('0x12')],_0x5ce0f3['origtransferercalleridname'],_0x5ce0f3['transfertargetcalleridnum'],_0x5ce0f3[_0xdb16('0x13')]));_0x5ce0f3=_[_0xdb16('0x14')](_0x5ce0f3,{'transfererchannel':_0x5ce0f3[_0xdb16('0x15')],'transferercalleridnum':_0x5ce0f3['origtransferercalleridnum'],'transferercalleridname':_0x5ce0f3[_0xdb16('0x16')],'transfererconnectedlinenum':_0x5ce0f3[_0xdb16('0x17')],'transfererconnectedlinename':_0x5ce0f3[_0xdb16('0x18')],'transfereraccountcode':_0x5ce0f3[_0xdb16('0x19')],'transferercontext':_0x5ce0f3[_0xdb16('0x1a')],'transfererexten':_0x5ce0f3[_0xdb16('0x1b')],'transfererlinkedid':_0x5ce0f3[_0xdb16('0x1c')],'context':_0x5ce0f3[_0xdb16('0x1d')],'extension':_0x5ce0f3[_0xdb16('0x1e')],'type':'attended'});if(_[_0xdb16('0x1f')](_0x5ce0f3[_0xdb16('0x20')])){_0x5ce0f3=_[_0xdb16('0x14')](_0x5ce0f3,{'transfereechannel':_0x5ce0f3['transfertargetchannel'],'transfereecalleridnum':_0x5ce0f3['transfertargetcalleridnum'],'transfereecalleridname':_0x5ce0f3[_0xdb16('0x13')],'transfereeconnectedlinenum':_0x5ce0f3[_0xdb16('0x21')],'transfereeconnectedlinename':_0x5ce0f3[_0xdb16('0x22')],'transfereeaccountcode':_0x5ce0f3[_0xdb16('0x23')],'transfereecontext':_0x5ce0f3[_0xdb16('0x24')],'transfereeexten':_0x5ce0f3[_0xdb16('0x25')],'transfereelinkedid':_0x5ce0f3['transfertargetlinkedid']});}writeDB(_0x5ce0f3);}catch(_0x558ab3){utils[_0xdb16('0x26')](util['format'](_0xdb16('0x27'),_0x5ce0f3[_0xdb16('0x10')]),_0x558ab3);}};
\ No newline at end of file