Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / services / ami / preview / action.js
index 0e63987..136c490 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7140=['idContact','queue','name','type','campaigntype','dialAnswer','membername','Agent','format','SIP/%s','calleridname','phone','Contact','active','calleridnum','scheduledat','countbusyretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','exports','util','moment','isNil','string','uniqueid'];(function(_0x4446dc,_0x316e68){var _0x4fe0a9=function(_0xb9c0c){while(--_0xb9c0c){_0x4446dc['push'](_0x4446dc['shift']());}};_0x4fe0a9(++_0x316e68);}(_0x7140,0x128));var _0x0714=function(_0x28e2cd,_0x153b42){_0x28e2cd=_0x28e2cd-0x0;var _0x11fd46=_0x7140[_0x28e2cd];return _0x11fd46;};'use strict';var util=require(_0x0714('0x0'));var _=require('lodash');var moment=require(_0x0714('0x1'));function checkNameSurname(_0x27e611,_0x2ea0c5,_0x18431b){var _0x49384c='';if(!_[_0x0714('0x2')](_0x2ea0c5)&&_0x0714('0x3')===typeof _0x2ea0c5){_0x49384c+=_0x2ea0c5;}if(!_['isNil'](_0x18431b)&&_0x0714('0x3')===typeof _0x18431b){_0x49384c+='\x20'+_0x18431b;}if(_0x49384c!==''){return _0x49384c;}return _0x27e611;}function Action(_0x285cc4,_0x48e262,_0x2ec3ea,_0x166dbd,_0x367c7b){this[_0x0714('0x4')]=_0x2ec3ea||undefined;this[_0x0714('0x5')]=_0x285cc4['id'];this[_0x0714('0x6')]=_0x48e262[_0x0714('0x7')];this[_0x0714('0x8')]=_0x48e262[_0x0714('0x8')];this[_0x0714('0x9')]='queue';this[_0x0714('0xa')]=![];this[_0x0714('0xb')]=_[_0x0714('0x2')](_0x285cc4[_0x0714('0xc')])?undefined:_0x285cc4[_0x0714('0xc')][_0x0714('0x7')];this['channelAgent']=this['membername']?util[_0x0714('0xd')](_0x0714('0xe'),this[_0x0714('0xb')]):_0x166dbd||undefined;this[_0x0714('0xf')]=checkNameSurname(_0x285cc4['Contact'][_0x0714('0x10')],_0x285cc4[_0x0714('0x11')]['firstName'],_0x285cc4['Contact']['lastName']);this['active']=_0x285cc4[_0x0714('0x12')]||![];this[_0x0714('0x13')]=_0x285cc4[_0x0714('0x11')][_0x0714('0x10')];this['scheduledat']=_0x285cc4[_0x0714('0x14')];this[_0x0714('0x15')]=_0x285cc4['countbusyretry']||0x0;this['countcongestionretry']=_0x285cc4['countcongestionretry']||0x0;this[_0x0714('0x16')]=_0x285cc4[_0x0714('0x16')]||0x0;this[_0x0714('0x17')]=(_0x285cc4['countbusyretry']||0x0)+(_0x285cc4['countcongestionretry']||0x0)+(_0x285cc4[_0x0714('0x16')]||0x0)+(_0x285cc4[_0x0714('0x18')]||0x0)+(_0x285cc4[_0x0714('0x19')]||0x0)+(_0x285cc4[_0x0714('0x1a')]||0x0)+(_0x285cc4[_0x0714('0x1b')]||0x0)+(_0x285cc4[_0x0714('0x1c')]||0x0);this[_0x0714('0x18')]=_0x285cc4[_0x0714('0x18')]||0x0;this[_0x0714('0x19')]=_0x285cc4[_0x0714('0x19')]||0x0;this[_0x0714('0x1a')]=_0x285cc4[_0x0714('0x1a')]||0x0;this[_0x0714('0x1b')]=_0x285cc4[_0x0714('0x1b')]||0x0;this['countagentrejectretry']=_0x285cc4[_0x0714('0x1c')]||0x0;this[_0x0714('0x1d')]=_0x285cc4['callback'];this[_0x0714('0x1e')]=_0x285cc4[_0x0714('0x1e')];this['callbackat']=_0x285cc4[_0x0714('0x1f')];this[_0x0714('0x20')]=_0x285cc4[_0x0714('0x20')];this[_0x0714('0x21')]=_0x285cc4[_0x0714('0x21')];this[_0x0714('0x22')]=_0x285cc4['ListId'];this[_0x0714('0x23')]=_[_0x0714('0x2')](_0x285cc4[_0x0714('0xc')])?_0x285cc4['UserId']:_0x285cc4[_0x0714('0xc')]['id'];this[_0x0714('0x24')]=_0x285cc4['VoiceQueueId'];this[_0x0714('0x25')]='';this[_0x0714('0x26')]='';}Action[_0x0714('0x27')][_0x0714('0x28')]=function(){return util[_0x0714('0xd')](_0x0714('0x29'),this[_0x0714('0xf')],this['number']);};module[_0x0714('0x2a')]=Action;
\ No newline at end of file
+var _0x15df=['originatecalleridnum','originatecalleridname','\x22%s\x22\x20<%s>','number','exports','util','moment','isNil','string','uniqueid','idContact','queue','type','campaigntype','dialAnswer','Agent','channelAgent','SIP/%s','membername','calleridname','Contact','phone','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','UserId','VoiceQueueId'];(function(_0x3b8f2e,_0x5a99a8){var _0x1433d5=function(_0x5e0353){while(--_0x5e0353){_0x3b8f2e['push'](_0x3b8f2e['shift']());}};_0x1433d5(++_0x5a99a8);}(_0x15df,0xf5));var _0xf15d=function(_0xddc74a,_0x4dc8f2){_0xddc74a=_0xddc74a-0x0;var _0x12ae14=_0x15df[_0xddc74a];return _0x12ae14;};'use strict';var util=require(_0xf15d('0x0'));var _=require('lodash');var moment=require(_0xf15d('0x1'));function checkNameSurname(_0x1a8cba,_0x54f72f,_0x132d16){var _0xad0639='';if(!_[_0xf15d('0x2')](_0x54f72f)&&'string'===typeof _0x54f72f){_0xad0639+=_0x54f72f;}if(!_['isNil'](_0x132d16)&&_0xf15d('0x3')===typeof _0x132d16){_0xad0639+='\x20'+_0x132d16;}if(_0xad0639!==''){return _0xad0639;}return _0x1a8cba;}function Action(_0x1a35a5,_0x51b48d,_0x1ba544,_0x2b8d32,_0x1289aa){this[_0xf15d('0x4')]=_0x1ba544||undefined;this[_0xf15d('0x5')]=_0x1a35a5['id'];this[_0xf15d('0x6')]=_0x51b48d['name'];this[_0xf15d('0x7')]=_0x51b48d[_0xf15d('0x7')];this[_0xf15d('0x8')]=_0xf15d('0x6');this[_0xf15d('0x9')]=![];this['membername']=_[_0xf15d('0x2')](_0x1a35a5[_0xf15d('0xa')])?undefined:_0x1a35a5[_0xf15d('0xa')]['name'];this[_0xf15d('0xb')]=this['membername']?util['format'](_0xf15d('0xc'),this[_0xf15d('0xd')]):_0x2b8d32||undefined;this[_0xf15d('0xe')]=checkNameSurname(_0x1a35a5[_0xf15d('0xf')][_0xf15d('0x10')],_0x1a35a5[_0xf15d('0xf')]['firstName'],_0x1a35a5[_0xf15d('0xf')]['lastName']);this[_0xf15d('0x11')]=_0x1a35a5[_0xf15d('0x11')]||![];this[_0xf15d('0x12')]=_0x1a35a5[_0xf15d('0xf')]['phone'];this[_0xf15d('0x13')]=_0x1a35a5['scheduledat'];this[_0xf15d('0x14')]=_0x1a35a5[_0xf15d('0x14')]||0x0;this[_0xf15d('0x15')]=_0x1a35a5[_0xf15d('0x15')]||0x0;this[_0xf15d('0x16')]=_0x1a35a5[_0xf15d('0x16')]||0x0;this['countglobal']=(_0x1a35a5['countbusyretry']||0x0)+(_0x1a35a5[_0xf15d('0x15')]||0x0)+(_0x1a35a5[_0xf15d('0x16')]||0x0)+(_0x1a35a5[_0xf15d('0x17')]||0x0)+(_0x1a35a5[_0xf15d('0x18')]||0x0)+(_0x1a35a5[_0xf15d('0x19')]||0x0)+(_0x1a35a5[_0xf15d('0x1a')]||0x0)+(_0x1a35a5[_0xf15d('0x1b')]||0x0);this['countnosuchnumberretry']=_0x1a35a5['countnosuchnumberretry']||0x0;this[_0xf15d('0x18')]=_0x1a35a5[_0xf15d('0x18')]||0x0;this[_0xf15d('0x19')]=_0x1a35a5['countabandonedretry']||0x0;this[_0xf15d('0x1a')]=_0x1a35a5[_0xf15d('0x1a')]||0x0;this[_0xf15d('0x1b')]=_0x1a35a5[_0xf15d('0x1b')]||0x0;this['callback']=_0x1a35a5[_0xf15d('0x1c')];this['callbackuniqueid']=_0x1a35a5[_0xf15d('0x1d')];this[_0xf15d('0x1e')]=_0x1a35a5['callbackat'];this[_0xf15d('0x1f')]=_0x1a35a5[_0xf15d('0x1f')];this[_0xf15d('0x20')]=_0x1a35a5[_0xf15d('0x20')];this['ListId']=_0x1a35a5['ListId'];this['UserId']=_[_0xf15d('0x2')](_0x1a35a5[_0xf15d('0xa')])?_0x1a35a5[_0xf15d('0x21')]:_0x1a35a5[_0xf15d('0xa')]['id'];this[_0xf15d('0x22')]=_0x1a35a5['VoiceQueueId'];this[_0xf15d('0x23')]='';this[_0xf15d('0x24')]='';}Action['prototype']['getCaller']=function(){return util['format'](_0xf15d('0x25'),this[_0xf15d('0xe')],this[_0xf15d('0x26')]);};module[_0xf15d('0x27')]=Action;
\ No newline at end of file