Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / services / xdr / transfers.controller.js
index 0947c1f..8e53d97 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xed0f=['request','CreateVoiceTransferReport','blinds','transferercalleridnum','transferercalleridname','transfereecalleridname','blind','transfereruniqueid','error','[%s][transfers][blindtransfer]','debug','[%s][transfers][attendedtransfer]','[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','origtransferercalleridnum','origtransferercalleridname','transfertargetcalleridnum','transfertargetcalleridname','assign','secondtransfererconnectedlinenum','secondtransfererconnectedlinename','origtransfereraccountcode','origtransferercontext','origtransfererexten','isNil','transfertargetchannel','transfertargetconnectedlinenum','transfertargetaccountcode','transfertargetcontext','transfertargetexten','transfertargetlinkedid','util','info','format','[%s][transfers][writeDB]\x20type:%s','type','attended','origtransfereruniqueid','uniqueid'];(function(_0xbe9b5d,_0x5d411b){var _0x3459c2=function(_0xb31f1){while(--_0xb31f1){_0xbe9b5d['push'](_0xbe9b5d['shift']());}};_0x3459c2(++_0x5d411b);}(_0xed0f,0x102));var _0xfed0=function(_0x5a0a2b,_0x16c32e){_0x5a0a2b=_0x5a0a2b-0x0;var _0x50e505=_0xed0f[_0x5a0a2b];return _0x50e505;};'use strict';var _=require('lodash');var util=require(_0xfed0('0x0'));var utils=require('./utils');function writeDB(_0x142e76){utils[_0xfed0('0x1')](util[_0xfed0('0x2')](_0xfed0('0x3'),_0x142e76[_0xfed0('0x4')]===_0xfed0('0x5')?_0x142e76[_0xfed0('0x6')]:_0x142e76[_0xfed0('0x7')],_0x142e76[_0xfed0('0x4')]));utils[_0xfed0('0x8')](_0xfed0('0x9'),_0x142e76);}exports[_0xfed0('0xa')]={};exports['blindtransfer']=function(_0x5835e3){try{utils['debug'](util['format']('[%s][transfers][blindtransfer]',_0x5835e3['uniqueid']),_0x5835e3);utils[_0xfed0('0x1')](util[_0xfed0('0x2')]('[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s',_0x5835e3['uniqueid'],_0x5835e3[_0xfed0('0xb')],_0x5835e3[_0xfed0('0xc')],_0x5835e3['transfereecalleridnum'],_0x5835e3[_0xfed0('0xd')]));_0x5835e3[_0xfed0('0x4')]=_0xfed0('0xe');exports[_0xfed0('0xa')][_0x5835e3[_0xfed0('0xf')]]=_0x5835e3;writeDB(_0x5835e3);}catch(_0xe69143){utils[_0xfed0('0x10')](util[_0xfed0('0x2')](_0xfed0('0x11'),_0x5835e3[_0xfed0('0x7')]),_0xe69143);}};exports['attendedtransfer']=function(_0x13bc70){try{utils[_0xfed0('0x12')](util['format'](_0xfed0('0x13'),_0x13bc70[_0xfed0('0x6')]),_0x13bc70);utils['info'](util['format'](_0xfed0('0x14'),_0x13bc70['origtransfereruniqueid'],_0x13bc70[_0xfed0('0x15')],_0x13bc70[_0xfed0('0x16')],_0x13bc70[_0xfed0('0x17')],_0x13bc70[_0xfed0('0x18')]));_0x13bc70=_[_0xfed0('0x19')](_0x13bc70,{'transfererchannel':_0x13bc70['origtransfererchannel'],'transferercalleridnum':_0x13bc70[_0xfed0('0x15')],'transferercalleridname':_0x13bc70[_0xfed0('0x16')],'transfererconnectedlinenum':_0x13bc70[_0xfed0('0x1a')],'transfererconnectedlinename':_0x13bc70[_0xfed0('0x1b')],'transfereraccountcode':_0x13bc70[_0xfed0('0x1c')],'transferercontext':_0x13bc70['secondtransferercontext'],'transfererexten':_0x13bc70['secondtransfererexten'],'transfererlinkedid':_0x13bc70['origtransfererlinkedid'],'context':_0x13bc70[_0xfed0('0x1d')],'extension':_0x13bc70[_0xfed0('0x1e')],'type':_0xfed0('0x5')});if(_[_0xfed0('0x1f')](_0x13bc70['transfereechannel'])){_0x13bc70=_[_0xfed0('0x19')](_0x13bc70,{'transfereechannel':_0x13bc70[_0xfed0('0x20')],'transfereecalleridnum':_0x13bc70[_0xfed0('0x17')],'transfereecalleridname':_0x13bc70[_0xfed0('0x18')],'transfereeconnectedlinenum':_0x13bc70[_0xfed0('0x21')],'transfereeconnectedlinename':_0x13bc70['transfertargetconnectedlinename'],'transfereeaccountcode':_0x13bc70[_0xfed0('0x22')],'transfereecontext':_0x13bc70[_0xfed0('0x23')],'transfereeexten':_0x13bc70[_0xfed0('0x24')],'transfereelinkedid':_0x13bc70[_0xfed0('0x25')]});}writeDB(_0x13bc70);}catch(_0xa18d0c){utils[_0xfed0('0x10')](util[_0xfed0('0x2')](_0xfed0('0x13'),_0x13bc70[_0xfed0('0x6')]),_0xa18d0c);}};
\ No newline at end of file
+var _0x2035=['transfereecalleridnum','transfereecalleridname','error','attendedtransfer','debug','[%s][transfers][attendedtransfer]','origtransferercalleridnum','assign','origtransfererchannel','origtransferercalleridname','secondtransfererconnectedlinename','origtransfereraccountcode','secondtransferercontext','secondtransfererexten','origtransfererlinkedid','origtransferercontext','origtransfererexten','isNil','transfereechannel','transfertargetchannel','transfertargetcalleridname','transfertargetconnectedlinenum','transfertargetconnectedlinename','transfertargetaccountcode','transfertargetexten','transfertargetlinkedid','lodash','util','./utils','info','format','[%s][transfers][writeDB]\x20type:%s','type','attended','origtransfereruniqueid','uniqueid','request','blindtransfer','[%s][transfers][blindtransfer]','[%s][transfers][blindtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s','transferercalleridname'];(function(_0x551cb6,_0x4615fb){var _0x418004=function(_0x599124){while(--_0x599124){_0x551cb6['push'](_0x551cb6['shift']());}};_0x418004(++_0x4615fb);}(_0x2035,0x162));var _0x5203=function(_0x28a8b0,_0x37cb89){_0x28a8b0=_0x28a8b0-0x0;var _0x3c628d=_0x2035[_0x28a8b0];return _0x3c628d;};'use strict';var _=require(_0x5203('0x0'));var util=require(_0x5203('0x1'));var utils=require(_0x5203('0x2'));function writeDB(_0x1282b0){utils[_0x5203('0x3')](util[_0x5203('0x4')](_0x5203('0x5'),_0x1282b0[_0x5203('0x6')]===_0x5203('0x7')?_0x1282b0[_0x5203('0x8')]:_0x1282b0[_0x5203('0x9')],_0x1282b0[_0x5203('0x6')]));utils[_0x5203('0xa')]('CreateVoiceTransferReport',_0x1282b0);}exports[_0x5203('0xb')]=function(_0x429306){try{utils['debug'](util['format'](_0x5203('0xc'),_0x429306['uniqueid']),_0x429306);utils[_0x5203('0x3')](util['format'](_0x5203('0xd'),_0x429306[_0x5203('0x9')],_0x429306['transferercalleridnum'],_0x429306[_0x5203('0xe')],_0x429306[_0x5203('0xf')],_0x429306[_0x5203('0x10')]));_0x429306['type']='blind';writeDB(_0x429306);}catch(_0x19da77){utils[_0x5203('0x11')](util['format'](_0x5203('0xc'),_0x429306[_0x5203('0x9')]),_0x19da77);}};exports[_0x5203('0x12')]=function(_0x7efb70){try{utils[_0x5203('0x13')](util[_0x5203('0x4')](_0x5203('0x14'),_0x7efb70[_0x5203('0x8')]),_0x7efb70);utils[_0x5203('0x3')](util[_0x5203('0x4')]('[%s][transfers][attendedtransfer]\x20transferercalleridnum:%s\x20transferercalleridname:%s\x20transfereecalleridnum:%s\x20transfereecalleridname:%s',_0x7efb70['origtransfereruniqueid'],_0x7efb70[_0x5203('0x15')],_0x7efb70['origtransferercalleridname'],_0x7efb70['transfertargetcalleridnum'],_0x7efb70['transfertargetcalleridname']));_0x7efb70=_[_0x5203('0x16')](_0x7efb70,{'transfererchannel':_0x7efb70[_0x5203('0x17')],'transferercalleridnum':_0x7efb70[_0x5203('0x15')],'transferercalleridname':_0x7efb70[_0x5203('0x18')],'transfererconnectedlinenum':_0x7efb70['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x7efb70[_0x5203('0x19')],'transfereraccountcode':_0x7efb70[_0x5203('0x1a')],'transferercontext':_0x7efb70[_0x5203('0x1b')],'transfererexten':_0x7efb70[_0x5203('0x1c')],'transfererlinkedid':_0x7efb70[_0x5203('0x1d')],'context':_0x7efb70[_0x5203('0x1e')],'extension':_0x7efb70[_0x5203('0x1f')],'type':'attended'});if(_[_0x5203('0x20')](_0x7efb70[_0x5203('0x21')])){_0x7efb70=_[_0x5203('0x16')](_0x7efb70,{'transfereechannel':_0x7efb70[_0x5203('0x22')],'transfereecalleridnum':_0x7efb70['transfertargetcalleridnum'],'transfereecalleridname':_0x7efb70[_0x5203('0x23')],'transfereeconnectedlinenum':_0x7efb70[_0x5203('0x24')],'transfereeconnectedlinename':_0x7efb70[_0x5203('0x25')],'transfereeaccountcode':_0x7efb70[_0x5203('0x26')],'transfereecontext':_0x7efb70['transfertargetcontext'],'transfereeexten':_0x7efb70[_0x5203('0x27')],'transfereelinkedid':_0x7efb70[_0x5203('0x28')]});}writeDB(_0x7efb70);}catch(_0x2f22a2){utils[_0x5203('0x11')](util['format']('[%s][transfers][attendedtransfer]',_0x7efb70['origtransfereruniqueid']),_0x2f22a2);}};
\ No newline at end of file