Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / services / xdr / transfers.controller.js
index ddba8b7..0c0df12 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6051=['type','origtransfereruniqueid','uniqueid','CreateVoiceTransferReport','blindtransfer','debug','[%s][transfers][blindtransfer]','[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','transferercalleridname','transfereecalleridname','blind','error','attendedtransfer','[%s][transfers][attendedtransfer]','origtransferercalleridnum','origtransferercalleridname','transfertargetcalleridnum','transfertargetcalleridname','assign','origtransfererchannel','secondtransfererconnectedlinenum','secondtransfererconnectedlinename','origtransfereraccountcode','secondtransferercontext','secondtransfererexten','origtransfererlinkedid','origtransferercontext','origtransfererexten','attended','isNil','transfertargetconnectedlinenum','transfertargetaccountcode','transfertargetcontext','transfertargetexten','transfertargetlinkedid','lodash','util','./utils','info','format','[%s][transfers][writeDB]\x20type:%s'];(function(_0x4e689c,_0x1b05ed){var _0x435bcc=function(_0xfcb7e8){while(--_0xfcb7e8){_0x4e689c['push'](_0x4e689c['shift']());}};_0x435bcc(++_0x1b05ed);}(_0x6051,0x1e6));var _0x1605=function(_0x4e37bc,_0x8174e7){_0x4e37bc=_0x4e37bc-0x0;var _0x48a8b7=_0x6051[_0x4e37bc];return _0x48a8b7;};'use strict';var _=require(_0x1605('0x0'));var util=require(_0x1605('0x1'));var utils=require(_0x1605('0x2'));function writeDB(_0x3aa3b2){utils[_0x1605('0x3')](util[_0x1605('0x4')](_0x1605('0x5'),_0x3aa3b2[_0x1605('0x6')]==='attended'?_0x3aa3b2[_0x1605('0x7')]:_0x3aa3b2[_0x1605('0x8')],_0x3aa3b2['type']));utils['request'](_0x1605('0x9'),_0x3aa3b2);}exports[_0x1605('0xa')]=function(_0xc51e60){try{utils[_0x1605('0xb')](util[_0x1605('0x4')](_0x1605('0xc'),_0xc51e60['uniqueid']),_0xc51e60);utils[_0x1605('0x3')](util[_0x1605('0x4')](_0x1605('0xd'),_0xc51e60[_0x1605('0x8')],_0xc51e60['transferercalleridnum'],_0xc51e60[_0x1605('0xe')],_0xc51e60['transfereecalleridnum'],_0xc51e60[_0x1605('0xf')]));_0xc51e60[_0x1605('0x6')]=_0x1605('0x10');writeDB(_0xc51e60);}catch(_0x4c0b41){utils[_0x1605('0x11')](util[_0x1605('0x4')](_0x1605('0xc'),_0xc51e60[_0x1605('0x8')]),_0x4c0b41);}};exports[_0x1605('0x12')]=function(_0x21d600){try{utils[_0x1605('0xb')](util[_0x1605('0x4')](_0x1605('0x13'),_0x21d600['origtransfereruniqueid']),_0x21d600);utils['info'](util['format']('[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s',_0x21d600[_0x1605('0x7')],_0x21d600[_0x1605('0x14')],_0x21d600[_0x1605('0x15')],_0x21d600[_0x1605('0x16')],_0x21d600[_0x1605('0x17')]));_0x21d600=_[_0x1605('0x18')](_0x21d600,{'transfererchannel':_0x21d600[_0x1605('0x19')],'transferercalleridnum':_0x21d600[_0x1605('0x14')],'transferercalleridname':_0x21d600[_0x1605('0x15')],'transfererconnectedlinenum':_0x21d600[_0x1605('0x1a')],'transfererconnectedlinename':_0x21d600[_0x1605('0x1b')],'transfereraccountcode':_0x21d600[_0x1605('0x1c')],'transferercontext':_0x21d600[_0x1605('0x1d')],'transfererexten':_0x21d600[_0x1605('0x1e')],'transfererlinkedid':_0x21d600[_0x1605('0x1f')],'context':_0x21d600[_0x1605('0x20')],'extension':_0x21d600[_0x1605('0x21')],'type':_0x1605('0x22')});if(_[_0x1605('0x23')](_0x21d600['transfereechannel'])){_0x21d600=_[_0x1605('0x18')](_0x21d600,{'transfereechannel':_0x21d600['transfertargetchannel'],'transfereecalleridnum':_0x21d600['transfertargetcalleridnum'],'transfereecalleridname':_0x21d600[_0x1605('0x17')],'transfereeconnectedlinenum':_0x21d600[_0x1605('0x24')],'transfereeconnectedlinename':_0x21d600['transfertargetconnectedlinename'],'transfereeaccountcode':_0x21d600[_0x1605('0x25')],'transfereecontext':_0x21d600[_0x1605('0x26')],'transfereeexten':_0x21d600[_0x1605('0x27')],'transfereelinkedid':_0x21d600[_0x1605('0x28')]});}writeDB(_0x21d600);}catch(_0x39323b){utils['error'](util['format'](_0x1605('0x13'),_0x21d600[_0x1605('0x7')]),_0x39323b);}};
\ No newline at end of file
+var _0xdfc4=['origtransfererchannel','origtransferercalleridnum','secondtransfererconnectedlinenum','secondtransfererconnectedlinename','origtransfereraccountcode','origtransfererlinkedid','origtransferercontext','origtransfererexten','attended','isNil','transfereechannel','transfertargetcalleridname','transfertargetconnectedlinenum','transfertargetconnectedlinename','transfertargetcontext','transfertargetlinkedid','[%s][transfers][attendedtransfer]','lodash','./utils','info','format','[%s][transfers][writeDB]\x20type:%s','type','request','CreateVoiceTransferReport','debug','[%s][transfers][blindtransfer]','uniqueid','[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','transferercalleridnum','transferercalleridname','transfereecalleridnum','transfereecalleridname','blind','blinds','error','attendedtransfer','origtransfereruniqueid','[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','origtransferercalleridname','transfertargetcalleridnum','assign'];(function(_0x4e3bca,_0x30c989){var _0x54437e=function(_0x526ac8){while(--_0x526ac8){_0x4e3bca['push'](_0x4e3bca['shift']());}};_0x54437e(++_0x30c989);}(_0xdfc4,0x18b));var _0x4dfc=function(_0x30e977,_0x5edc12){_0x30e977=_0x30e977-0x0;var _0x536cb5=_0xdfc4[_0x30e977];return _0x536cb5;};'use strict';var _=require(_0x4dfc('0x0'));var util=require('util');var utils=require(_0x4dfc('0x1'));function writeDB(_0x3f226b){utils[_0x4dfc('0x2')](util[_0x4dfc('0x3')](_0x4dfc('0x4'),_0x3f226b[_0x4dfc('0x5')]==='attended'?_0x3f226b['origtransfereruniqueid']:_0x3f226b['uniqueid'],_0x3f226b[_0x4dfc('0x5')]));utils[_0x4dfc('0x6')](_0x4dfc('0x7'),_0x3f226b);}exports['blinds']={};exports['blindtransfer']=function(_0x42cdf9){try{utils[_0x4dfc('0x8')](util[_0x4dfc('0x3')](_0x4dfc('0x9'),_0x42cdf9[_0x4dfc('0xa')]),_0x42cdf9);utils[_0x4dfc('0x2')](util[_0x4dfc('0x3')](_0x4dfc('0xb'),_0x42cdf9[_0x4dfc('0xa')],_0x42cdf9[_0x4dfc('0xc')],_0x42cdf9[_0x4dfc('0xd')],_0x42cdf9[_0x4dfc('0xe')],_0x42cdf9[_0x4dfc('0xf')]));_0x42cdf9[_0x4dfc('0x5')]=_0x4dfc('0x10');exports[_0x4dfc('0x11')][_0x42cdf9['transfereruniqueid']]=_0x42cdf9;writeDB(_0x42cdf9);}catch(_0x5ecf7b){utils[_0x4dfc('0x12')](util['format'](_0x4dfc('0x9'),_0x42cdf9['uniqueid']),_0x5ecf7b);}};exports[_0x4dfc('0x13')]=function(_0x59b51d){try{utils[_0x4dfc('0x8')](util[_0x4dfc('0x3')]('[%s][transfers][attendedtransfer]',_0x59b51d[_0x4dfc('0x14')]),_0x59b51d);utils[_0x4dfc('0x2')](util[_0x4dfc('0x3')](_0x4dfc('0x15'),_0x59b51d[_0x4dfc('0x14')],_0x59b51d['origtransferercalleridnum'],_0x59b51d[_0x4dfc('0x16')],_0x59b51d[_0x4dfc('0x17')],_0x59b51d['transfertargetcalleridname']));_0x59b51d=_[_0x4dfc('0x18')](_0x59b51d,{'transfererchannel':_0x59b51d[_0x4dfc('0x19')],'transferercalleridnum':_0x59b51d[_0x4dfc('0x1a')],'transferercalleridname':_0x59b51d[_0x4dfc('0x16')],'transfererconnectedlinenum':_0x59b51d[_0x4dfc('0x1b')],'transfererconnectedlinename':_0x59b51d[_0x4dfc('0x1c')],'transfereraccountcode':_0x59b51d[_0x4dfc('0x1d')],'transferercontext':_0x59b51d['secondtransferercontext'],'transfererexten':_0x59b51d['secondtransfererexten'],'transfererlinkedid':_0x59b51d[_0x4dfc('0x1e')],'context':_0x59b51d[_0x4dfc('0x1f')],'extension':_0x59b51d[_0x4dfc('0x20')],'type':_0x4dfc('0x21')});if(_[_0x4dfc('0x22')](_0x59b51d[_0x4dfc('0x23')])){_0x59b51d=_[_0x4dfc('0x18')](_0x59b51d,{'transfereechannel':_0x59b51d['transfertargetchannel'],'transfereecalleridnum':_0x59b51d[_0x4dfc('0x17')],'transfereecalleridname':_0x59b51d[_0x4dfc('0x24')],'transfereeconnectedlinenum':_0x59b51d[_0x4dfc('0x25')],'transfereeconnectedlinename':_0x59b51d[_0x4dfc('0x26')],'transfereeaccountcode':_0x59b51d['transfertargetaccountcode'],'transfereecontext':_0x59b51d[_0x4dfc('0x27')],'transfereeexten':_0x59b51d['transfertargetexten'],'transfereelinkedid':_0x59b51d[_0x4dfc('0x28')]});}writeDB(_0x59b51d);}catch(_0x1f45e6){utils[_0x4dfc('0x12')](util[_0x4dfc('0x3')](_0x4dfc('0x29'),_0x59b51d['origtransfereruniqueid']),_0x1f45e6);}};
\ No newline at end of file