Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / services / ami / preview / action.js
index 925ecb5..1399bbd 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9e0e=['isNil','string','uniqueid','idContact','queue','name','type','Agent','channelAgent','format','SIP/%s','membername','calleridname','Contact','phone','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countmachineretry','countabandonedretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridname','prototype','getCaller','exports','util','moment'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x9e0e,0x166));var _0xe9e0=function(_0x175b18,_0x4cc1f3){_0x175b18=_0x175b18-0x0;var _0x1e0702=_0x9e0e[_0x175b18];return _0x1e0702;};'use strict';var util=require(_0xe9e0('0x0'));var _=require('lodash');var moment=require(_0xe9e0('0x1'));function checkNameSurname(_0x1365c3,_0x117c4f,_0x41e1e2){var _0x10a76d='';if(!_[_0xe9e0('0x2')](_0x117c4f)&&_0xe9e0('0x3')===typeof _0x117c4f){_0x10a76d+=_0x117c4f;}if(!_[_0xe9e0('0x2')](_0x41e1e2)&&_0xe9e0('0x3')===typeof _0x41e1e2){_0x10a76d+='\x20'+_0x41e1e2;}if(_0x10a76d!==''){return _0x10a76d;}return _0x1365c3;}function Action(_0x4b50ee,_0x59f795,_0x3e6180,_0x3b253a,_0xdadefd){this[_0xe9e0('0x4')]=_0x3e6180||undefined;this[_0xe9e0('0x5')]=_0x4b50ee['id'];this[_0xe9e0('0x6')]=_0x59f795[_0xe9e0('0x7')];this[_0xe9e0('0x8')]=_0x59f795[_0xe9e0('0x8')];this['campaigntype']=_0xe9e0('0x6');this['dialAnswer']=![];this['membername']=_['isNil'](_0x4b50ee[_0xe9e0('0x9')])?undefined:_0x4b50ee[_0xe9e0('0x9')]['name'];this[_0xe9e0('0xa')]=this['membername']?util[_0xe9e0('0xb')](_0xe9e0('0xc'),this[_0xe9e0('0xd')]):_0x3b253a||undefined;this[_0xe9e0('0xe')]=checkNameSurname(_0x4b50ee[_0xe9e0('0xf')][_0xe9e0('0x10')],_0x4b50ee[_0xe9e0('0xf')]['firstName'],_0x4b50ee[_0xe9e0('0xf')]['lastName']);this[_0xe9e0('0x11')]=_0x4b50ee['active']||![];this[_0xe9e0('0x12')]=_0x4b50ee['phone'];this['scheduledat']=_0x4b50ee[_0xe9e0('0x13')];this['countbusyretry']=_0x4b50ee[_0xe9e0('0x14')]||0x0;this['countcongestionretry']=_0x4b50ee[_0xe9e0('0x15')]||0x0;this[_0xe9e0('0x16')]=_0x4b50ee[_0xe9e0('0x16')]||0x0;this['countglobal']=(_0x4b50ee[_0xe9e0('0x14')]||0x0)+(_0x4b50ee[_0xe9e0('0x15')]||0x0)+(_0x4b50ee[_0xe9e0('0x16')]||0x0)+(_0x4b50ee[_0xe9e0('0x17')]||0x0)+(_0x4b50ee[_0xe9e0('0x18')]||0x0)+(_0x4b50ee['countabandonedretry']||0x0)+(_0x4b50ee[_0xe9e0('0x19')]||0x0)+(_0x4b50ee['countagentrejectretry']||0x0);this[_0xe9e0('0x17')]=_0x4b50ee['countnosuchnumberretry']||0x0;this[_0xe9e0('0x18')]=_0x4b50ee['countdropretry']||0x0;this[_0xe9e0('0x1a')]=_0x4b50ee[_0xe9e0('0x1a')]||0x0;this[_0xe9e0('0x19')]=_0x4b50ee[_0xe9e0('0x19')]||0x0;this[_0xe9e0('0x1b')]=_0x4b50ee[_0xe9e0('0x1b')]||0x0;this[_0xe9e0('0x1c')]=_0x4b50ee['callback'];this[_0xe9e0('0x1d')]=_0x4b50ee[_0xe9e0('0x1d')];this[_0xe9e0('0x1e')]=_0x4b50ee['callbackat'];this[_0xe9e0('0x1f')]=_0x4b50ee[_0xe9e0('0x1f')];this[_0xe9e0('0x20')]=_0x4b50ee['ContactId'];this['ListId']=_0x4b50ee[_0xe9e0('0x21')];this[_0xe9e0('0x22')]=_[_0xe9e0('0x2')](_0x4b50ee['Agent'])?_0x4b50ee[_0xe9e0('0x22')]:_0x4b50ee[_0xe9e0('0x9')]['id'];this[_0xe9e0('0x23')]=_0x4b50ee[_0xe9e0('0x23')];this['originatecalleridnum']='';this[_0xe9e0('0x24')]='';}Action[_0xe9e0('0x25')][_0xe9e0('0x26')]=function(){return util[_0xe9e0('0xb')]('\x22%s\x22\x20<%s>',this[_0xe9e0('0xe')],this['number']);};module[_0xe9e0('0x27')]=Action;
\ No newline at end of file
+var _0xc8d7=['countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','prototype','number','exports','util','lodash','isNil','string','uniqueid','idContact','queue','type','campaigntype','dialAnswer','Agent','name','channelAgent','membername','format','SIP/%s','calleridname','Contact','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry'];(function(_0x47042b,_0x33c1d7){var _0x2904f1=function(_0x4b94f5){while(--_0x4b94f5){_0x47042b['push'](_0x47042b['shift']());}};_0x2904f1(++_0x33c1d7);}(_0xc8d7,0x168));var _0x7c8d=function(_0x2c3d63,_0x333486){_0x2c3d63=_0x2c3d63-0x0;var _0x48c465=_0xc8d7[_0x2c3d63];return _0x48c465;};'use strict';var util=require(_0x7c8d('0x0'));var _=require(_0x7c8d('0x1'));var moment=require('moment');function checkNameSurname(_0x447b9b,_0x36e66e,_0x60d273){var _0x28fa71='';if(!_[_0x7c8d('0x2')](_0x36e66e)&&_0x7c8d('0x3')===typeof _0x36e66e){_0x28fa71+=_0x36e66e;}if(!_[_0x7c8d('0x2')](_0x60d273)&&_0x7c8d('0x3')===typeof _0x60d273){_0x28fa71+='\x20'+_0x60d273;}if(_0x28fa71!==''){return _0x28fa71;}return _0x447b9b;}function Action(_0x1b4c4a,_0x182003,_0x8df957,_0x3ea2e8,_0x446422){this[_0x7c8d('0x4')]=_0x8df957||undefined;this[_0x7c8d('0x5')]=_0x1b4c4a['id'];this[_0x7c8d('0x6')]=_0x182003['name'];this[_0x7c8d('0x7')]=_0x182003[_0x7c8d('0x7')];this[_0x7c8d('0x8')]=_0x7c8d('0x6');this[_0x7c8d('0x9')]=![];this['membername']=_[_0x7c8d('0x2')](_0x1b4c4a[_0x7c8d('0xa')])?undefined:_0x1b4c4a['Agent'][_0x7c8d('0xb')];this[_0x7c8d('0xc')]=this[_0x7c8d('0xd')]?util[_0x7c8d('0xe')](_0x7c8d('0xf'),this['membername']):_0x3ea2e8||undefined;this[_0x7c8d('0x10')]=checkNameSurname(_0x1b4c4a[_0x7c8d('0x11')]['phone'],_0x1b4c4a['Contact']['firstName'],_0x1b4c4a['Contact'][_0x7c8d('0x12')]);this[_0x7c8d('0x13')]=_0x1b4c4a[_0x7c8d('0x13')]||![];this[_0x7c8d('0x14')]=_0x1b4c4a['phone'];this[_0x7c8d('0x15')]=_0x1b4c4a['scheduledat'];this[_0x7c8d('0x16')]=_0x1b4c4a[_0x7c8d('0x16')]||0x0;this['countcongestionretry']=_0x1b4c4a[_0x7c8d('0x17')]||0x0;this[_0x7c8d('0x18')]=_0x1b4c4a[_0x7c8d('0x18')]||0x0;this[_0x7c8d('0x19')]=(_0x1b4c4a['countbusyretry']||0x0)+(_0x1b4c4a[_0x7c8d('0x17')]||0x0)+(_0x1b4c4a['countnoanswerretry']||0x0)+(_0x1b4c4a['countnosuchnumberretry']||0x0)+(_0x1b4c4a[_0x7c8d('0x1a')]||0x0)+(_0x1b4c4a[_0x7c8d('0x1b')]||0x0)+(_0x1b4c4a[_0x7c8d('0x1c')]||0x0)+(_0x1b4c4a[_0x7c8d('0x1d')]||0x0);this[_0x7c8d('0x1e')]=_0x1b4c4a['countnosuchnumberretry']||0x0;this[_0x7c8d('0x1a')]=_0x1b4c4a[_0x7c8d('0x1a')]||0x0;this[_0x7c8d('0x1b')]=_0x1b4c4a['countabandonedretry']||0x0;this[_0x7c8d('0x1c')]=_0x1b4c4a['countmachineretry']||0x0;this[_0x7c8d('0x1d')]=_0x1b4c4a[_0x7c8d('0x1d')]||0x0;this[_0x7c8d('0x1f')]=_0x1b4c4a['callback'];this[_0x7c8d('0x20')]=_0x1b4c4a[_0x7c8d('0x20')];this[_0x7c8d('0x21')]=_0x1b4c4a['callbackat'];this['recallme']=_0x1b4c4a[_0x7c8d('0x22')];this[_0x7c8d('0x23')]=_0x1b4c4a[_0x7c8d('0x23')];this[_0x7c8d('0x24')]=_0x1b4c4a[_0x7c8d('0x24')];this[_0x7c8d('0x25')]=_[_0x7c8d('0x2')](_0x1b4c4a[_0x7c8d('0xa')])?_0x1b4c4a[_0x7c8d('0x25')]:_0x1b4c4a[_0x7c8d('0xa')]['id'];this[_0x7c8d('0x26')]=_0x1b4c4a[_0x7c8d('0x26')];this[_0x7c8d('0x27')]='';this['originatecalleridname']='';}Action[_0x7c8d('0x28')]['getCaller']=function(){return util[_0x7c8d('0xe')]('\x22%s\x22\x20<%s>',this[_0x7c8d('0x10')],this[_0x7c8d('0x29')]);};module[_0x7c8d('0x2a')]=Action;
\ No newline at end of file