Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / services / ami / preview / action.js
index 24d1789..1805e74 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc849=['countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','UserId','VoiceQueueId','originatecalleridname','prototype','number','exports','util','lodash','moment','string','isNil','idContact','queue','name','type','dialAnswer','membername','Agent','channelAgent','format','SIP/%s','calleridname','Contact','firstName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry'];(function(_0x463553,_0xdff963){var _0x4576df=function(_0x4cd44a){while(--_0x4cd44a){_0x463553['push'](_0x463553['shift']());}};_0x4576df(++_0xdff963);}(_0xc849,0x1f1));var _0x9c84=function(_0x529c3c,_0x89d0a6){_0x529c3c=_0x529c3c-0x0;var _0x354f8b=_0xc849[_0x529c3c];return _0x354f8b;};'use strict';var util=require(_0x9c84('0x0'));var _=require(_0x9c84('0x1'));var moment=require(_0x9c84('0x2'));function checkNameSurname(_0x2c5ce5,_0x3574e9,_0x2dbc48){var _0x1a27b5='';if(!_['isNil'](_0x3574e9)&&_0x9c84('0x3')===typeof _0x3574e9){_0x1a27b5+=_0x3574e9;}if(!_[_0x9c84('0x4')](_0x2dbc48)&&_0x9c84('0x3')===typeof _0x2dbc48){_0x1a27b5+='\x20'+_0x2dbc48;}if(_0x1a27b5!==''){return _0x1a27b5;}return _0x2c5ce5;}function Action(_0x1ba922,_0x290750,_0x7bd3f1,_0x40d6e3,_0x1c008d){this['uniqueid']=_0x7bd3f1||undefined;this[_0x9c84('0x5')]=_0x1ba922['id'];this[_0x9c84('0x6')]=_0x290750[_0x9c84('0x7')];this[_0x9c84('0x8')]=_0x290750['type'];this['campaigntype']='queue';this[_0x9c84('0x9')]=![];this[_0x9c84('0xa')]=_[_0x9c84('0x4')](_0x1ba922[_0x9c84('0xb')])?undefined:_0x1ba922[_0x9c84('0xb')][_0x9c84('0x7')];this[_0x9c84('0xc')]=this['membername']?util[_0x9c84('0xd')](_0x9c84('0xe'),this[_0x9c84('0xa')]):_0x40d6e3||undefined;this[_0x9c84('0xf')]=checkNameSurname(_0x1ba922[_0x9c84('0x10')]['phone'],_0x1ba922['Contact'][_0x9c84('0x11')],_0x1ba922[_0x9c84('0x10')]['lastName']);this[_0x9c84('0x12')]=_0x1ba922[_0x9c84('0x12')]||![];this[_0x9c84('0x13')]=_0x1ba922[_0x9c84('0x10')]['phone'];this[_0x9c84('0x14')]=_0x1ba922['scheduledat'];this[_0x9c84('0x15')]=_0x1ba922['countbusyretry']||0x0;this[_0x9c84('0x16')]=_0x1ba922[_0x9c84('0x16')]||0x0;this[_0x9c84('0x17')]=_0x1ba922[_0x9c84('0x17')]||0x0;this['countglobal']=(_0x1ba922[_0x9c84('0x15')]||0x0)+(_0x1ba922['countcongestionretry']||0x0)+(_0x1ba922[_0x9c84('0x17')]||0x0)+(_0x1ba922[_0x9c84('0x18')]||0x0)+(_0x1ba922[_0x9c84('0x19')]||0x0)+(_0x1ba922[_0x9c84('0x1a')]||0x0)+(_0x1ba922[_0x9c84('0x1b')]||0x0)+(_0x1ba922[_0x9c84('0x1c')]||0x0);this['countnosuchnumberretry']=_0x1ba922[_0x9c84('0x18')]||0x0;this[_0x9c84('0x19')]=_0x1ba922[_0x9c84('0x19')]||0x0;this[_0x9c84('0x1a')]=_0x1ba922[_0x9c84('0x1a')]||0x0;this[_0x9c84('0x1b')]=_0x1ba922[_0x9c84('0x1b')]||0x0;this['countagentrejectretry']=_0x1ba922[_0x9c84('0x1c')]||0x0;this[_0x9c84('0x1d')]=_0x1ba922[_0x9c84('0x1d')];this[_0x9c84('0x1e')]=_0x1ba922[_0x9c84('0x1e')];this[_0x9c84('0x1f')]=_0x1ba922['callbackat'];this[_0x9c84('0x20')]=_0x1ba922['recallme'];this[_0x9c84('0x21')]=_0x1ba922['ContactId'];this['ListId']=_0x1ba922['ListId'];this['UserId']=_[_0x9c84('0x4')](_0x1ba922[_0x9c84('0xb')])?_0x1ba922[_0x9c84('0x22')]:_0x1ba922['Agent']['id'];this[_0x9c84('0x23')]=_0x1ba922[_0x9c84('0x23')];this['originatecalleridnum']='';this[_0x9c84('0x24')]='';}Action[_0x9c84('0x25')]['getCaller']=function(){return util[_0x9c84('0xd')]('\x22%s\x22\x20<%s>',this[_0x9c84('0xf')],this[_0x9c84('0x26')]);};module[_0x9c84('0x27')]=Action;
\ No newline at end of file
+var _0x7069=['format','calleridname','phone','Contact','firstName','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','getCaller','number','exports','moment','isNil','string','uniqueid','queue','name','type','campaigntype','dialAnswer','membername','Agent','channelAgent'];(function(_0x35baec,_0x3e17b7){var _0x8779e9=function(_0x56b6a8){while(--_0x56b6a8){_0x35baec['push'](_0x35baec['shift']());}};_0x8779e9(++_0x3e17b7);}(_0x7069,0x1cd));var _0x9706=function(_0x14d69c,_0x4c072d){_0x14d69c=_0x14d69c-0x0;var _0x5c0ee0=_0x7069[_0x14d69c];return _0x5c0ee0;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x9706('0x0'));function checkNameSurname(_0x4140ac,_0x2239b5,_0xab301f){var _0x39ed70='';if(!_[_0x9706('0x1')](_0x2239b5)&&_0x9706('0x2')===typeof _0x2239b5){_0x39ed70+=_0x2239b5;}if(!_['isNil'](_0xab301f)&&'string'===typeof _0xab301f){_0x39ed70+='\x20'+_0xab301f;}if(_0x39ed70!==''){return _0x39ed70;}return _0x4140ac;}function Action(_0x44122a,_0x46d910,_0x123f29,_0x4ae453,_0x1f852c){this[_0x9706('0x3')]=_0x123f29||undefined;this['idContact']=_0x44122a['id'];this[_0x9706('0x4')]=_0x46d910[_0x9706('0x5')];this['type']=_0x46d910[_0x9706('0x6')];this[_0x9706('0x7')]=_0x9706('0x4');this[_0x9706('0x8')]=![];this[_0x9706('0x9')]=_[_0x9706('0x1')](_0x44122a['Agent'])?undefined:_0x44122a[_0x9706('0xa')]['name'];this[_0x9706('0xb')]=this[_0x9706('0x9')]?util[_0x9706('0xc')]('SIP/%s',this[_0x9706('0x9')]):_0x4ae453||undefined;this[_0x9706('0xd')]=checkNameSurname(_0x44122a['Contact'][_0x9706('0xe')],_0x44122a[_0x9706('0xf')][_0x9706('0x10')],_0x44122a['Contact'][_0x9706('0x11')]);this[_0x9706('0x12')]=_0x44122a[_0x9706('0x12')]||![];this[_0x9706('0x13')]=_0x44122a[_0x9706('0xf')][_0x9706('0xe')];this[_0x9706('0x14')]=_0x44122a[_0x9706('0x14')];this[_0x9706('0x15')]=_0x44122a[_0x9706('0x15')]||0x0;this[_0x9706('0x16')]=_0x44122a[_0x9706('0x16')]||0x0;this[_0x9706('0x17')]=_0x44122a['countnoanswerretry']||0x0;this[_0x9706('0x18')]=(_0x44122a[_0x9706('0x15')]||0x0)+(_0x44122a[_0x9706('0x16')]||0x0)+(_0x44122a[_0x9706('0x17')]||0x0)+(_0x44122a[_0x9706('0x19')]||0x0)+(_0x44122a['countdropretry']||0x0)+(_0x44122a[_0x9706('0x1a')]||0x0)+(_0x44122a[_0x9706('0x1b')]||0x0)+(_0x44122a[_0x9706('0x1c')]||0x0);this[_0x9706('0x19')]=_0x44122a[_0x9706('0x19')]||0x0;this[_0x9706('0x1d')]=_0x44122a[_0x9706('0x1d')]||0x0;this['countabandonedretry']=_0x44122a[_0x9706('0x1a')]||0x0;this['countmachineretry']=_0x44122a[_0x9706('0x1b')]||0x0;this[_0x9706('0x1c')]=_0x44122a['countagentrejectretry']||0x0;this['callback']=_0x44122a['callback'];this['callbackuniqueid']=_0x44122a[_0x9706('0x1e')];this['callbackat']=_0x44122a[_0x9706('0x1f')];this['recallme']=_0x44122a[_0x9706('0x20')];this[_0x9706('0x21')]=_0x44122a['ContactId'];this['ListId']=_0x44122a[_0x9706('0x22')];this[_0x9706('0x23')]=_[_0x9706('0x1')](_0x44122a['Agent'])?_0x44122a['UserId']:_0x44122a[_0x9706('0xa')]['id'];this[_0x9706('0x24')]=_0x44122a['VoiceQueueId'];this[_0x9706('0x25')]='';this[_0x9706('0x26')]='';}Action[_0x9706('0x27')][_0x9706('0x28')]=function(){return util[_0x9706('0xc')]('\x22%s\x22\x20<%s>',this[_0x9706('0xd')],this[_0x9706('0x29')]);};module[_0x9706('0x2a')]=Action;
\ No newline at end of file