Built motion from commit efa66e19.|2.6.22
[motion2.git] / server / services / ami / preview / action.js
index 237989a..6abaecd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe2cf=['countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','prototype','getCaller','\x22%s\x22\x20<%s>','calleridname','number','exports','lodash','isNil','string','queue','name','type','dialAnswer','Agent','channelAgent','membername','format','phone','Contact','lastName','active','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry'];(function(_0x1f4b8b,_0x5fcb3c){var _0x2f0df0=function(_0x356025){while(--_0x356025){_0x1f4b8b['push'](_0x1f4b8b['shift']());}};_0x2f0df0(++_0x5fcb3c);}(_0xe2cf,0x1a1));var _0xfe2c=function(_0xdf5452,_0x19af67){_0xdf5452=_0xdf5452-0x0;var _0xf35e7b=_0xe2cf[_0xdf5452];return _0xf35e7b;};'use strict';var util=require('util');var _=require(_0xfe2c('0x0'));var moment=require('moment');function checkNameSurname(_0x11c3a4,_0x5a6259,_0xa644a2){var _0x1f39d3='';if(!_[_0xfe2c('0x1')](_0x5a6259)&&_0xfe2c('0x2')===typeof _0x5a6259){_0x1f39d3+=_0x5a6259;}if(!_['isNil'](_0xa644a2)&&_0xfe2c('0x2')===typeof _0xa644a2){_0x1f39d3+='\x20'+_0xa644a2;}if(_0x1f39d3!==''){return _0x1f39d3;}return _0x11c3a4;}function Action(_0x14674d,_0x55bb12,_0x4fa079,_0x4e0b97,_0x417bc4){this['uniqueid']=_0x4fa079||undefined;this['idContact']=_0x14674d['id'];this[_0xfe2c('0x3')]=_0x55bb12[_0xfe2c('0x4')];this[_0xfe2c('0x5')]=_0x55bb12['type'];this['campaigntype']=_0xfe2c('0x3');this[_0xfe2c('0x6')]=![];this['membername']=_[_0xfe2c('0x1')](_0x14674d[_0xfe2c('0x7')])?undefined:_0x14674d[_0xfe2c('0x7')][_0xfe2c('0x4')];this[_0xfe2c('0x8')]=this[_0xfe2c('0x9')]?util[_0xfe2c('0xa')]('SIP/%s',this['membername']):_0x4e0b97||undefined;this['calleridname']=checkNameSurname(_0x14674d['Contact'][_0xfe2c('0xb')],_0x14674d['Contact']['firstName'],_0x14674d[_0xfe2c('0xc')][_0xfe2c('0xd')]);this[_0xfe2c('0xe')]=_0x14674d[_0xfe2c('0xe')]||![];this['calleridnum']=_0x14674d['phone'];this[_0xfe2c('0xf')]=_0x14674d[_0xfe2c('0xf')];this[_0xfe2c('0x10')]=_0x14674d[_0xfe2c('0x10')]||0x0;this['countcongestionretry']=_0x14674d[_0xfe2c('0x11')]||0x0;this[_0xfe2c('0x12')]=_0x14674d[_0xfe2c('0x12')]||0x0;this[_0xfe2c('0x13')]=(_0x14674d[_0xfe2c('0x10')]||0x0)+(_0x14674d[_0xfe2c('0x11')]||0x0)+(_0x14674d['countnoanswerretry']||0x0)+(_0x14674d[_0xfe2c('0x14')]||0x0)+(_0x14674d[_0xfe2c('0x15')]||0x0)+(_0x14674d[_0xfe2c('0x16')]||0x0)+(_0x14674d[_0xfe2c('0x17')]||0x0)+(_0x14674d['countagentrejectretry']||0x0);this[_0xfe2c('0x14')]=_0x14674d['countnosuchnumberretry']||0x0;this['countdropretry']=_0x14674d[_0xfe2c('0x15')]||0x0;this[_0xfe2c('0x16')]=_0x14674d['countabandonedretry']||0x0;this[_0xfe2c('0x17')]=_0x14674d[_0xfe2c('0x17')]||0x0;this['countagentrejectretry']=_0x14674d[_0xfe2c('0x18')]||0x0;this['callback']=_0x14674d[_0xfe2c('0x19')];this[_0xfe2c('0x1a')]=_0x14674d[_0xfe2c('0x1a')];this[_0xfe2c('0x1b')]=_0x14674d[_0xfe2c('0x1b')];this[_0xfe2c('0x1c')]=_0x14674d['recallme'];this[_0xfe2c('0x1d')]=_0x14674d[_0xfe2c('0x1d')];this[_0xfe2c('0x1e')]=_0x14674d[_0xfe2c('0x1e')];this[_0xfe2c('0x1f')]=_[_0xfe2c('0x1')](_0x14674d['Agent'])?_0x14674d[_0xfe2c('0x1f')]:_0x14674d['Agent']['id'];this[_0xfe2c('0x20')]=_0x14674d[_0xfe2c('0x20')];this[_0xfe2c('0x21')]='';this['originatecalleridname']='';}Action[_0xfe2c('0x22')][_0xfe2c('0x23')]=function(){return util['format'](_0xfe2c('0x24'),this[_0xfe2c('0x25')],this[_0xfe2c('0x26')]);};module[_0xfe2c('0x27')]=Action;
\ No newline at end of file
+var _0x4cf8=['countcongestionretry','countnoanswerretry','countglobal','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','countdropretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','number','exports','util','lodash','moment','isNil','string','uniqueid','idContact','name','type','campaigntype','queue','dialAnswer','membername','Agent','format','SIP/%s','calleridname','Contact','phone','firstName','lastName','active','calleridnum','scheduledat','countbusyretry'];(function(_0x3f2228,_0x3b27d5){var _0x285ae4=function(_0x5e1f23){while(--_0x5e1f23){_0x3f2228['push'](_0x3f2228['shift']());}};_0x285ae4(++_0x3b27d5);}(_0x4cf8,0x1e1));var _0x84cf=function(_0x59e862,_0x477bf2){_0x59e862=_0x59e862-0x0;var _0x1a25ee=_0x4cf8[_0x59e862];return _0x1a25ee;};'use strict';var util=require(_0x84cf('0x0'));var _=require(_0x84cf('0x1'));var moment=require(_0x84cf('0x2'));function checkNameSurname(_0x2125ed,_0xae953,_0x28455b){var _0x36b912='';if(!_[_0x84cf('0x3')](_0xae953)&&_0x84cf('0x4')===typeof _0xae953){_0x36b912+=_0xae953;}if(!_[_0x84cf('0x3')](_0x28455b)&&_0x84cf('0x4')===typeof _0x28455b){_0x36b912+='\x20'+_0x28455b;}if(_0x36b912!==''){return _0x36b912;}return _0x2125ed;}function Action(_0x2c613d,_0x50ade2,_0x4af3f1,_0x455345,_0x56c5cc){this[_0x84cf('0x5')]=_0x4af3f1||undefined;this[_0x84cf('0x6')]=_0x2c613d['id'];this['queue']=_0x50ade2[_0x84cf('0x7')];this[_0x84cf('0x8')]=_0x50ade2['type'];this[_0x84cf('0x9')]=_0x84cf('0xa');this[_0x84cf('0xb')]=![];this[_0x84cf('0xc')]=_['isNil'](_0x2c613d[_0x84cf('0xd')])?undefined:_0x2c613d[_0x84cf('0xd')]['name'];this['channelAgent']=this[_0x84cf('0xc')]?util[_0x84cf('0xe')](_0x84cf('0xf'),this[_0x84cf('0xc')]):_0x455345||undefined;this[_0x84cf('0x10')]=checkNameSurname(_0x2c613d[_0x84cf('0x11')][_0x84cf('0x12')],_0x2c613d[_0x84cf('0x11')][_0x84cf('0x13')],_0x2c613d[_0x84cf('0x11')][_0x84cf('0x14')]);this[_0x84cf('0x15')]=_0x2c613d[_0x84cf('0x15')]||![];this[_0x84cf('0x16')]=_0x2c613d[_0x84cf('0x12')];this[_0x84cf('0x17')]=_0x2c613d[_0x84cf('0x17')];this[_0x84cf('0x18')]=_0x2c613d[_0x84cf('0x18')]||0x0;this['countcongestionretry']=_0x2c613d[_0x84cf('0x19')]||0x0;this[_0x84cf('0x1a')]=_0x2c613d[_0x84cf('0x1a')]||0x0;this[_0x84cf('0x1b')]=(_0x2c613d[_0x84cf('0x18')]||0x0)+(_0x2c613d[_0x84cf('0x19')]||0x0)+(_0x2c613d[_0x84cf('0x1a')]||0x0)+(_0x2c613d['countnosuchnumberretry']||0x0)+(_0x2c613d['countdropretry']||0x0)+(_0x2c613d[_0x84cf('0x1c')]||0x0)+(_0x2c613d[_0x84cf('0x1d')]||0x0)+(_0x2c613d[_0x84cf('0x1e')]||0x0);this[_0x84cf('0x1f')]=_0x2c613d[_0x84cf('0x1f')]||0x0;this['countdropretry']=_0x2c613d[_0x84cf('0x20')]||0x0;this[_0x84cf('0x1c')]=_0x2c613d[_0x84cf('0x1c')]||0x0;this[_0x84cf('0x1d')]=_0x2c613d[_0x84cf('0x1d')]||0x0;this['countagentrejectretry']=_0x2c613d[_0x84cf('0x1e')]||0x0;this[_0x84cf('0x21')]=_0x2c613d[_0x84cf('0x21')];this[_0x84cf('0x22')]=_0x2c613d[_0x84cf('0x22')];this[_0x84cf('0x23')]=_0x2c613d[_0x84cf('0x23')];this['recallme']=_0x2c613d[_0x84cf('0x24')];this[_0x84cf('0x25')]=_0x2c613d[_0x84cf('0x25')];this[_0x84cf('0x26')]=_0x2c613d[_0x84cf('0x26')];this[_0x84cf('0x27')]=_[_0x84cf('0x3')](_0x2c613d[_0x84cf('0xd')])?_0x2c613d[_0x84cf('0x27')]:_0x2c613d[_0x84cf('0xd')]['id'];this['VoiceQueueId']=_0x2c613d[_0x84cf('0x28')];this[_0x84cf('0x29')]='';this[_0x84cf('0x2a')]='';}Action[_0x84cf('0x2b')]['getCaller']=function(){return util[_0x84cf('0xe')]('\x22%s\x22\x20<%s>',this[_0x84cf('0x10')],this[_0x84cf('0x2c')]);};module[_0x84cf('0x2d')]=Action;
\ No newline at end of file