Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / services / ami / preview / action.js
index f65184e..fc87c56 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa386=['countabandonedretry','countagentrejectretry','countmachineretry','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','VoiceQueueId','prototype','getCaller','\x22%s\x22\x20<%s>','calleridname','number','exports','lodash','moment','isNil','string','uniqueid','queue','name','type','campaigntype','dialAnswer','membername','Agent','channelAgent','format','SIP/%s','firstName','Contact','active','calleridnum','phone','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry'];(function(_0x1f5baf,_0x782936){var _0x32301c=function(_0x5cc916){while(--_0x5cc916){_0x1f5baf['push'](_0x1f5baf['shift']());}};_0x32301c(++_0x782936);}(_0xa386,0xbc));var _0x6a38=function(_0x5e9689,_0x48e034){_0x5e9689=_0x5e9689-0x0;var _0x2fac94=_0xa386[_0x5e9689];return _0x2fac94;};'use strict';var util=require('util');var _=require(_0x6a38('0x0'));var moment=require(_0x6a38('0x1'));function checkNameSurname(_0x41dcff,_0x423f7f,_0x543d53){var _0x452af7='';if(!_[_0x6a38('0x2')](_0x423f7f)&&'string'===typeof _0x423f7f){_0x452af7+=_0x423f7f;}if(!_[_0x6a38('0x2')](_0x543d53)&&_0x6a38('0x3')===typeof _0x543d53){_0x452af7+='\x20'+_0x543d53;}if(_0x452af7!==''){return _0x452af7;}return _0x41dcff;}function Action(_0x43f2c1,_0x2394f3,_0x17d0e5,_0x1284c6,_0x7d25de){this[_0x6a38('0x4')]=_0x17d0e5||undefined;this['idContact']=_0x43f2c1['id'];this[_0x6a38('0x5')]=_0x2394f3[_0x6a38('0x6')];this[_0x6a38('0x7')]=_0x2394f3['type'];this[_0x6a38('0x8')]='queue';this[_0x6a38('0x9')]=![];this[_0x6a38('0xa')]=_['isNil'](_0x43f2c1[_0x6a38('0xb')])?undefined:_0x43f2c1[_0x6a38('0xb')][_0x6a38('0x6')];this[_0x6a38('0xc')]=this['membername']?util[_0x6a38('0xd')](_0x6a38('0xe'),this[_0x6a38('0xa')]):_0x1284c6||undefined;this['calleridname']=checkNameSurname(_0x43f2c1['Contact']['phone'],_0x43f2c1['Contact'][_0x6a38('0xf')],_0x43f2c1[_0x6a38('0x10')]['lastName']);this[_0x6a38('0x11')]=_0x43f2c1[_0x6a38('0x11')]||![];this[_0x6a38('0x12')]=_0x43f2c1[_0x6a38('0x10')][_0x6a38('0x13')];this[_0x6a38('0x14')]=_0x43f2c1['scheduledat'];this[_0x6a38('0x15')]=_0x43f2c1[_0x6a38('0x15')]||0x0;this[_0x6a38('0x16')]=_0x43f2c1[_0x6a38('0x16')]||0x0;this[_0x6a38('0x17')]=_0x43f2c1[_0x6a38('0x17')]||0x0;this[_0x6a38('0x18')]=(_0x43f2c1[_0x6a38('0x15')]||0x0)+(_0x43f2c1[_0x6a38('0x16')]||0x0)+(_0x43f2c1['countnoanswerretry']||0x0)+(_0x43f2c1[_0x6a38('0x19')]||0x0)+(_0x43f2c1[_0x6a38('0x1a')]||0x0)+(_0x43f2c1[_0x6a38('0x1b')]||0x0)+(_0x43f2c1['countmachineretry']||0x0)+(_0x43f2c1[_0x6a38('0x1c')]||0x0);this['countnosuchnumberretry']=_0x43f2c1[_0x6a38('0x19')]||0x0;this[_0x6a38('0x1a')]=_0x43f2c1[_0x6a38('0x1a')]||0x0;this[_0x6a38('0x1b')]=_0x43f2c1[_0x6a38('0x1b')]||0x0;this[_0x6a38('0x1d')]=_0x43f2c1['countmachineretry']||0x0;this[_0x6a38('0x1c')]=_0x43f2c1['countagentrejectretry']||0x0;this[_0x6a38('0x1e')]=_0x43f2c1['callback'];this['callbackuniqueid']=_0x43f2c1[_0x6a38('0x1f')];this[_0x6a38('0x20')]=_0x43f2c1[_0x6a38('0x20')];this[_0x6a38('0x21')]=_0x43f2c1['recallme'];this['ContactId']=_0x43f2c1['ContactId'];this[_0x6a38('0x22')]=_0x43f2c1['ListId'];this[_0x6a38('0x23')]=_[_0x6a38('0x2')](_0x43f2c1[_0x6a38('0xb')])?_0x43f2c1[_0x6a38('0x23')]:_0x43f2c1[_0x6a38('0xb')]['id'];this[_0x6a38('0x24')]=_0x43f2c1[_0x6a38('0x24')];this['originatecalleridnum']='';this['originatecalleridname']='';}Action[_0x6a38('0x25')][_0x6a38('0x26')]=function(){return util['format'](_0x6a38('0x27'),this[_0x6a38('0x28')],this[_0x6a38('0x29')]);};module[_0x6a38('0x2a')]=Action;
\ No newline at end of file
+var _0x3300=['Contact','firstName','lastName','active','calleridnum','scheduledat','countcongestionretry','countnoanswerretry','countglobal','countbusyretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','number','lodash','string','isNil','uniqueid','type','campaigntype','queue','Agent','name','channelAgent','membername','format','SIP/%s','calleridname'];(function(_0x248afc,_0x52cd90){var _0x38a4ce=function(_0x14bcec){while(--_0x14bcec){_0x248afc['push'](_0x248afc['shift']());}};_0x38a4ce(++_0x52cd90);}(_0x3300,0x13a));var _0x0330=function(_0x10b48a,_0x1a0a3f){_0x10b48a=_0x10b48a-0x0;var _0x2c4533=_0x3300[_0x10b48a];return _0x2c4533;};'use strict';var util=require('util');var _=require(_0x0330('0x0'));var moment=require('moment');function checkNameSurname(_0x4670f9,_0x4adbdb,_0x4622cb){var _0x49bd5a='';if(!_['isNil'](_0x4adbdb)&&_0x0330('0x1')===typeof _0x4adbdb){_0x49bd5a+=_0x4adbdb;}if(!_[_0x0330('0x2')](_0x4622cb)&&_0x0330('0x1')===typeof _0x4622cb){_0x49bd5a+='\x20'+_0x4622cb;}if(_0x49bd5a!==''){return _0x49bd5a;}return _0x4670f9;}function Action(_0x2ed80e,_0x565cbd,_0x582870,_0x3038d8,_0x17b146){this[_0x0330('0x3')]=_0x582870||undefined;this['idContact']=_0x2ed80e['id'];this['queue']=_0x565cbd['name'];this[_0x0330('0x4')]=_0x565cbd[_0x0330('0x4')];this[_0x0330('0x5')]=_0x0330('0x6');this['dialAnswer']=![];this['membername']=_['isNil'](_0x2ed80e['Agent'])?undefined:_0x2ed80e[_0x0330('0x7')][_0x0330('0x8')];this[_0x0330('0x9')]=this[_0x0330('0xa')]?util[_0x0330('0xb')](_0x0330('0xc'),this[_0x0330('0xa')]):_0x3038d8||undefined;this[_0x0330('0xd')]=checkNameSurname(_0x2ed80e[_0x0330('0xe')]['phone'],_0x2ed80e[_0x0330('0xe')][_0x0330('0xf')],_0x2ed80e['Contact'][_0x0330('0x10')]);this[_0x0330('0x11')]=_0x2ed80e[_0x0330('0x11')]||![];this[_0x0330('0x12')]=_0x2ed80e[_0x0330('0xe')]['phone'];this[_0x0330('0x13')]=_0x2ed80e[_0x0330('0x13')];this['countbusyretry']=_0x2ed80e['countbusyretry']||0x0;this[_0x0330('0x14')]=_0x2ed80e['countcongestionretry']||0x0;this[_0x0330('0x15')]=_0x2ed80e[_0x0330('0x15')]||0x0;this[_0x0330('0x16')]=(_0x2ed80e[_0x0330('0x17')]||0x0)+(_0x2ed80e['countcongestionretry']||0x0)+(_0x2ed80e[_0x0330('0x15')]||0x0)+(_0x2ed80e[_0x0330('0x18')]||0x0)+(_0x2ed80e[_0x0330('0x19')]||0x0)+(_0x2ed80e[_0x0330('0x1a')]||0x0)+(_0x2ed80e[_0x0330('0x1b')]||0x0)+(_0x2ed80e['countagentrejectretry']||0x0);this['countnosuchnumberretry']=_0x2ed80e[_0x0330('0x18')]||0x0;this[_0x0330('0x19')]=_0x2ed80e[_0x0330('0x19')]||0x0;this[_0x0330('0x1a')]=_0x2ed80e[_0x0330('0x1a')]||0x0;this[_0x0330('0x1b')]=_0x2ed80e[_0x0330('0x1b')]||0x0;this[_0x0330('0x1c')]=_0x2ed80e[_0x0330('0x1c')]||0x0;this[_0x0330('0x1d')]=_0x2ed80e['callback'];this[_0x0330('0x1e')]=_0x2ed80e[_0x0330('0x1e')];this[_0x0330('0x1f')]=_0x2ed80e['callbackat'];this[_0x0330('0x20')]=_0x2ed80e[_0x0330('0x20')];this['ContactId']=_0x2ed80e[_0x0330('0x21')];this['ListId']=_0x2ed80e[_0x0330('0x22')];this['UserId']=_[_0x0330('0x2')](_0x2ed80e['Agent'])?_0x2ed80e[_0x0330('0x23')]:_0x2ed80e['Agent']['id'];this['VoiceQueueId']=_0x2ed80e['VoiceQueueId'];this['originatecalleridnum']='';this[_0x0330('0x24')]='';}Action[_0x0330('0x25')][_0x0330('0x26')]=function(){return util['format'](_0x0330('0x27'),this[_0x0330('0xd')],this[_0x0330('0x28')]);};module['exports']=Action;
\ No newline at end of file