Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / preview / action.js
index 1c9d36d..e2fd98d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x20c3=['prototype','getCaller','\x22%s\x22\x20<%s>','number','exports','util','lodash','isNil','string','uniqueid','idContact','name','type','campaigntype','queue','dialAnswer','membername','Agent','channelAgent','SIP/%s','calleridname','Contact','phone','firstName','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname'];(function(_0x17354c,_0x2d8e1d){var _0x4c2414=function(_0x548f39){while(--_0x548f39){_0x17354c['push'](_0x17354c['shift']());}};_0x4c2414(++_0x2d8e1d);}(_0x20c3,0xe6));var _0x320c=function(_0x87a88c,_0xf813bf){_0x87a88c=_0x87a88c-0x0;var _0x1dda70=_0x20c3[_0x87a88c];return _0x1dda70;};'use strict';var util=require(_0x320c('0x0'));var _=require(_0x320c('0x1'));var moment=require('moment');function checkNameSurname(_0x10e0d9,_0x431ce2,_0x5c1f7f){var _0x485cf1='';if(!_[_0x320c('0x2')](_0x431ce2)&&_0x320c('0x3')===typeof _0x431ce2){_0x485cf1+=_0x431ce2;}if(!_[_0x320c('0x2')](_0x5c1f7f)&&_0x320c('0x3')===typeof _0x5c1f7f){_0x485cf1+='\x20'+_0x5c1f7f;}if(_0x485cf1!==''){return _0x485cf1;}return _0x10e0d9;}function Action(_0x42b4e3,_0x1994bd,_0x38d293,_0x357463,_0x16b4ed){this[_0x320c('0x4')]=_0x38d293||undefined;this[_0x320c('0x5')]=_0x42b4e3['id'];this['queue']=_0x1994bd[_0x320c('0x6')];this[_0x320c('0x7')]=_0x1994bd[_0x320c('0x7')];this[_0x320c('0x8')]=_0x320c('0x9');this[_0x320c('0xa')]=![];this[_0x320c('0xb')]=_[_0x320c('0x2')](_0x42b4e3[_0x320c('0xc')])?undefined:_0x42b4e3[_0x320c('0xc')][_0x320c('0x6')];this[_0x320c('0xd')]=this[_0x320c('0xb')]?util['format'](_0x320c('0xe'),this['membername']):_0x357463||undefined;this[_0x320c('0xf')]=checkNameSurname(_0x42b4e3[_0x320c('0x10')][_0x320c('0x11')],_0x42b4e3['Contact'][_0x320c('0x12')],_0x42b4e3[_0x320c('0x10')]['lastName']);this['active']=_0x42b4e3['active']||![];this[_0x320c('0x13')]=_0x42b4e3['Contact'][_0x320c('0x11')];this['scheduledat']=_0x42b4e3[_0x320c('0x14')];this['countbusyretry']=_0x42b4e3[_0x320c('0x15')]||0x0;this[_0x320c('0x16')]=_0x42b4e3[_0x320c('0x16')]||0x0;this[_0x320c('0x17')]=_0x42b4e3['countnoanswerretry']||0x0;this[_0x320c('0x18')]=(_0x42b4e3[_0x320c('0x15')]||0x0)+(_0x42b4e3['countcongestionretry']||0x0)+(_0x42b4e3[_0x320c('0x17')]||0x0)+(_0x42b4e3[_0x320c('0x19')]||0x0)+(_0x42b4e3[_0x320c('0x1a')]||0x0)+(_0x42b4e3[_0x320c('0x1b')]||0x0)+(_0x42b4e3[_0x320c('0x1c')]||0x0)+(_0x42b4e3[_0x320c('0x1d')]||0x0);this[_0x320c('0x19')]=_0x42b4e3['countnosuchnumberretry']||0x0;this[_0x320c('0x1a')]=_0x42b4e3[_0x320c('0x1a')]||0x0;this[_0x320c('0x1b')]=_0x42b4e3['countabandonedretry']||0x0;this['countmachineretry']=_0x42b4e3[_0x320c('0x1c')]||0x0;this[_0x320c('0x1d')]=_0x42b4e3[_0x320c('0x1d')]||0x0;this[_0x320c('0x1e')]=_0x42b4e3[_0x320c('0x1e')];this[_0x320c('0x1f')]=_0x42b4e3[_0x320c('0x1f')];this[_0x320c('0x20')]=_0x42b4e3[_0x320c('0x20')];this[_0x320c('0x21')]=_0x42b4e3[_0x320c('0x21')];this[_0x320c('0x22')]=_0x42b4e3[_0x320c('0x22')];this[_0x320c('0x23')]=_0x42b4e3['ListId'];this[_0x320c('0x24')]=_[_0x320c('0x2')](_0x42b4e3[_0x320c('0xc')])?_0x42b4e3[_0x320c('0x24')]:_0x42b4e3[_0x320c('0xc')]['id'];this[_0x320c('0x25')]=_0x42b4e3[_0x320c('0x25')];this[_0x320c('0x26')]='';this[_0x320c('0x27')]='';}Action[_0x320c('0x28')][_0x320c('0x29')]=function(){return util['format'](_0x320c('0x2a'),this[_0x320c('0xf')],this[_0x320c('0x2b')]);};module[_0x320c('0x2c')]=Action;
\ No newline at end of file
+var _0x1ae1=['countagentrejectretry','countnosuchnumberretry','countabandonedretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','number','util','lodash','moment','isNil','uniqueid','idContact','type','campaigntype','queue','dialAnswer','membername','Agent','name','calleridname','phone','firstName','Contact','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countmachineretry'];(function(_0x23f282,_0x3627dd){var _0x546893=function(_0x364b0a){while(--_0x364b0a){_0x23f282['push'](_0x23f282['shift']());}};_0x546893(++_0x3627dd);}(_0x1ae1,0x136));var _0x11ae=function(_0x1c73ce,_0x2c60c8){_0x1c73ce=_0x1c73ce-0x0;var _0x7e27f1=_0x1ae1[_0x1c73ce];return _0x7e27f1;};'use strict';var util=require(_0x11ae('0x0'));var _=require(_0x11ae('0x1'));var moment=require(_0x11ae('0x2'));function checkNameSurname(_0x2c123f,_0xfad0f9,_0x572788){var _0x31b6fa='';if(!_[_0x11ae('0x3')](_0xfad0f9)&&'string'===typeof _0xfad0f9){_0x31b6fa+=_0xfad0f9;}if(!_[_0x11ae('0x3')](_0x572788)&&'string'===typeof _0x572788){_0x31b6fa+='\x20'+_0x572788;}if(_0x31b6fa!==''){return _0x31b6fa;}return _0x2c123f;}function Action(_0x48c5cd,_0x2d9013,_0x2d1d70,_0x55995b,_0x4e32d7){this[_0x11ae('0x4')]=_0x2d1d70||undefined;this[_0x11ae('0x5')]=_0x48c5cd['id'];this['queue']=_0x2d9013['name'];this[_0x11ae('0x6')]=_0x2d9013[_0x11ae('0x6')];this[_0x11ae('0x7')]=_0x11ae('0x8');this[_0x11ae('0x9')]=![];this[_0x11ae('0xa')]=_['isNil'](_0x48c5cd['Agent'])?undefined:_0x48c5cd[_0x11ae('0xb')][_0x11ae('0xc')];this['channelAgent']=this[_0x11ae('0xa')]?util['format']('SIP/%s',this[_0x11ae('0xa')]):_0x55995b||undefined;this[_0x11ae('0xd')]=checkNameSurname(_0x48c5cd['Contact'][_0x11ae('0xe')],_0x48c5cd['Contact'][_0x11ae('0xf')],_0x48c5cd[_0x11ae('0x10')]['lastName']);this['active']=_0x48c5cd[_0x11ae('0x11')]||![];this[_0x11ae('0x12')]=_0x48c5cd[_0x11ae('0x10')][_0x11ae('0xe')];this[_0x11ae('0x13')]=_0x48c5cd[_0x11ae('0x13')];this[_0x11ae('0x14')]=_0x48c5cd[_0x11ae('0x14')]||0x0;this[_0x11ae('0x15')]=_0x48c5cd[_0x11ae('0x15')]||0x0;this[_0x11ae('0x16')]=_0x48c5cd[_0x11ae('0x16')]||0x0;this[_0x11ae('0x17')]=(_0x48c5cd[_0x11ae('0x14')]||0x0)+(_0x48c5cd[_0x11ae('0x15')]||0x0)+(_0x48c5cd[_0x11ae('0x16')]||0x0)+(_0x48c5cd['countnosuchnumberretry']||0x0)+(_0x48c5cd[_0x11ae('0x18')]||0x0)+(_0x48c5cd['countabandonedretry']||0x0)+(_0x48c5cd[_0x11ae('0x19')]||0x0)+(_0x48c5cd[_0x11ae('0x1a')]||0x0);this[_0x11ae('0x1b')]=_0x48c5cd['countnosuchnumberretry']||0x0;this[_0x11ae('0x18')]=_0x48c5cd[_0x11ae('0x18')]||0x0;this[_0x11ae('0x1c')]=_0x48c5cd['countabandonedretry']||0x0;this[_0x11ae('0x19')]=_0x48c5cd['countmachineretry']||0x0;this[_0x11ae('0x1a')]=_0x48c5cd[_0x11ae('0x1a')]||0x0;this[_0x11ae('0x1d')]=_0x48c5cd[_0x11ae('0x1d')];this[_0x11ae('0x1e')]=_0x48c5cd[_0x11ae('0x1e')];this[_0x11ae('0x1f')]=_0x48c5cd[_0x11ae('0x1f')];this[_0x11ae('0x20')]=_0x48c5cd[_0x11ae('0x20')];this[_0x11ae('0x21')]=_0x48c5cd[_0x11ae('0x21')];this[_0x11ae('0x22')]=_0x48c5cd['ListId'];this[_0x11ae('0x23')]=_[_0x11ae('0x3')](_0x48c5cd[_0x11ae('0xb')])?_0x48c5cd[_0x11ae('0x23')]:_0x48c5cd[_0x11ae('0xb')]['id'];this[_0x11ae('0x24')]=_0x48c5cd[_0x11ae('0x24')];this['originatecalleridnum']='';this[_0x11ae('0x25')]='';}Action[_0x11ae('0x26')][_0x11ae('0x27')]=function(){return util['format'](_0x11ae('0x28'),this[_0x11ae('0xd')],this[_0x11ae('0x29')]);};module['exports']=Action;
\ No newline at end of file