Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / services / ami / preview / action.js
index 83087d8..179c6bc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8299=['phone','scheduledat','countbusyretry','countnoanswerretry','countcongestionretry','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','callback','callbackuniqueid','callbackat','recallme','ContactId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','number','exports','util','moment','isNil','string','idContact','queue','name','type','campaigntype','dialAnswer','Agent','format','SIP/%s','membername','calleridname','Contact','lastName','active','calleridnum'];(function(_0xf98ec1,_0x4c73b8){var _0x514b6a=function(_0x3dbc32){while(--_0x3dbc32){_0xf98ec1['push'](_0xf98ec1['shift']());}};_0x514b6a(++_0x4c73b8);}(_0x8299,0x1f1));var _0x9829=function(_0x2413b7,_0x4afdd4){_0x2413b7=_0x2413b7-0x0;var _0x526581=_0x8299[_0x2413b7];return _0x526581;};'use strict';var util=require(_0x9829('0x0'));var _=require('lodash');var moment=require(_0x9829('0x1'));function checkNameSurname(_0x420dc6,_0x52ffbc,_0x46a032){var _0xb187d='';if(!_[_0x9829('0x2')](_0x52ffbc)&&_0x9829('0x3')===typeof _0x52ffbc){_0xb187d+=_0x52ffbc;}if(!_[_0x9829('0x2')](_0x46a032)&&_0x9829('0x3')===typeof _0x46a032){_0xb187d+='\x20'+_0x46a032;}if(_0xb187d!==''){return _0xb187d;}return _0x420dc6;}function Action(_0x36dc32,_0x29145d,_0x4b22ec,_0x20061c,_0x237d2e){this['uniqueid']=_0x4b22ec||undefined;this[_0x9829('0x4')]=_0x36dc32['id'];this[_0x9829('0x5')]=_0x29145d[_0x9829('0x6')];this[_0x9829('0x7')]=_0x29145d[_0x9829('0x7')];this[_0x9829('0x8')]=_0x9829('0x5');this[_0x9829('0x9')]=![];this['membername']=_[_0x9829('0x2')](_0x36dc32[_0x9829('0xa')])?undefined:_0x36dc32[_0x9829('0xa')][_0x9829('0x6')];this['channelAgent']=this['membername']?util[_0x9829('0xb')](_0x9829('0xc'),this[_0x9829('0xd')]):_0x20061c||undefined;this[_0x9829('0xe')]=checkNameSurname(_0x36dc32[_0x9829('0xf')]['phone'],_0x36dc32[_0x9829('0xf')]['firstName'],_0x36dc32[_0x9829('0xf')][_0x9829('0x10')]);this[_0x9829('0x11')]=_0x36dc32[_0x9829('0x11')]||![];this[_0x9829('0x12')]=_0x36dc32[_0x9829('0x13')];this[_0x9829('0x14')]=_0x36dc32[_0x9829('0x14')];this[_0x9829('0x15')]=_0x36dc32['countbusyretry']||0x0;this['countcongestionretry']=_0x36dc32['countcongestionretry']||0x0;this['countnoanswerretry']=_0x36dc32[_0x9829('0x16')]||0x0;this['countglobal']=(_0x36dc32[_0x9829('0x15')]||0x0)+(_0x36dc32[_0x9829('0x17')]||0x0)+(_0x36dc32[_0x9829('0x16')]||0x0)+(_0x36dc32[_0x9829('0x18')]||0x0)+(_0x36dc32[_0x9829('0x19')]||0x0)+(_0x36dc32['countabandonedretry']||0x0)+(_0x36dc32[_0x9829('0x1a')]||0x0)+(_0x36dc32[_0x9829('0x1b')]||0x0);this[_0x9829('0x18')]=_0x36dc32[_0x9829('0x18')]||0x0;this['countdropretry']=_0x36dc32[_0x9829('0x19')]||0x0;this['countabandonedretry']=_0x36dc32[_0x9829('0x1c')]||0x0;this['countmachineretry']=_0x36dc32[_0x9829('0x1a')]||0x0;this[_0x9829('0x1b')]=_0x36dc32[_0x9829('0x1b')]||0x0;this['callback']=_0x36dc32[_0x9829('0x1d')];this[_0x9829('0x1e')]=_0x36dc32[_0x9829('0x1e')];this[_0x9829('0x1f')]=_0x36dc32[_0x9829('0x1f')];this[_0x9829('0x20')]=_0x36dc32[_0x9829('0x20')];this[_0x9829('0x21')]=_0x36dc32[_0x9829('0x21')];this['ListId']=_0x36dc32['ListId'];this[_0x9829('0x22')]=_[_0x9829('0x2')](_0x36dc32['Agent'])?_0x36dc32[_0x9829('0x22')]:_0x36dc32[_0x9829('0xa')]['id'];this[_0x9829('0x23')]=_0x36dc32[_0x9829('0x23')];this[_0x9829('0x24')]='';this[_0x9829('0x25')]='';}Action[_0x9829('0x26')][_0x9829('0x27')]=function(){return util[_0x9829('0xb')](_0x9829('0x28'),this[_0x9829('0xe')],this[_0x9829('0x29')]);};module[_0x9829('0x2a')]=Action;
\ No newline at end of file
+var _0x4ad4=['ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','util','lodash','isNil','string','idContact','queue','name','campaigntype','dialAnswer','membername','Agent','channelAgent','format','calleridname','phone','Contact','firstName','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0x4ad4,0x1e2));var _0x44ad=function(_0x45783c,_0x49c56d){_0x45783c=_0x45783c-0x0;var _0x1161da=_0x4ad4[_0x45783c];return _0x1161da;};'use strict';var util=require(_0x44ad('0x0'));var _=require(_0x44ad('0x1'));var moment=require('moment');function checkNameSurname(_0x4efd0f,_0x5e8a5e,_0x12d427){var _0xcf1ac2='';if(!_['isNil'](_0x5e8a5e)&&'string'===typeof _0x5e8a5e){_0xcf1ac2+=_0x5e8a5e;}if(!_[_0x44ad('0x2')](_0x12d427)&&_0x44ad('0x3')===typeof _0x12d427){_0xcf1ac2+='\x20'+_0x12d427;}if(_0xcf1ac2!==''){return _0xcf1ac2;}return _0x4efd0f;}function Action(_0x4a5028,_0x58f1c2,_0x2e07b2,_0x3d9e96,_0x311fc2){this['uniqueid']=_0x2e07b2||undefined;this[_0x44ad('0x4')]=_0x4a5028['id'];this[_0x44ad('0x5')]=_0x58f1c2[_0x44ad('0x6')];this['type']=_0x58f1c2['type'];this[_0x44ad('0x7')]=_0x44ad('0x5');this[_0x44ad('0x8')]=![];this[_0x44ad('0x9')]=_[_0x44ad('0x2')](_0x4a5028[_0x44ad('0xa')])?undefined:_0x4a5028[_0x44ad('0xa')][_0x44ad('0x6')];this[_0x44ad('0xb')]=this[_0x44ad('0x9')]?util[_0x44ad('0xc')]('SIP/%s',this[_0x44ad('0x9')]):_0x3d9e96||undefined;this[_0x44ad('0xd')]=checkNameSurname(_0x4a5028['Contact'][_0x44ad('0xe')],_0x4a5028[_0x44ad('0xf')][_0x44ad('0x10')],_0x4a5028[_0x44ad('0xf')][_0x44ad('0x11')]);this[_0x44ad('0x12')]=_0x4a5028[_0x44ad('0x12')]||![];this[_0x44ad('0x13')]=_0x4a5028[_0x44ad('0xe')];this[_0x44ad('0x14')]=_0x4a5028[_0x44ad('0x14')];this[_0x44ad('0x15')]=_0x4a5028[_0x44ad('0x15')]||0x0;this[_0x44ad('0x16')]=_0x4a5028['countcongestionretry']||0x0;this[_0x44ad('0x17')]=_0x4a5028[_0x44ad('0x17')]||0x0;this[_0x44ad('0x18')]=(_0x4a5028['countbusyretry']||0x0)+(_0x4a5028[_0x44ad('0x16')]||0x0)+(_0x4a5028[_0x44ad('0x17')]||0x0)+(_0x4a5028[_0x44ad('0x19')]||0x0)+(_0x4a5028[_0x44ad('0x1a')]||0x0)+(_0x4a5028[_0x44ad('0x1b')]||0x0)+(_0x4a5028[_0x44ad('0x1c')]||0x0)+(_0x4a5028['countagentrejectretry']||0x0);this[_0x44ad('0x19')]=_0x4a5028[_0x44ad('0x19')]||0x0;this[_0x44ad('0x1a')]=_0x4a5028[_0x44ad('0x1a')]||0x0;this[_0x44ad('0x1b')]=_0x4a5028[_0x44ad('0x1b')]||0x0;this[_0x44ad('0x1c')]=_0x4a5028[_0x44ad('0x1c')]||0x0;this[_0x44ad('0x1d')]=_0x4a5028[_0x44ad('0x1d')]||0x0;this[_0x44ad('0x1e')]=_0x4a5028[_0x44ad('0x1e')];this[_0x44ad('0x1f')]=_0x4a5028[_0x44ad('0x1f')];this[_0x44ad('0x20')]=_0x4a5028[_0x44ad('0x20')];this[_0x44ad('0x21')]=_0x4a5028['recallme'];this[_0x44ad('0x22')]=_0x4a5028[_0x44ad('0x22')];this['ListId']=_0x4a5028[_0x44ad('0x23')];this[_0x44ad('0x24')]=_[_0x44ad('0x2')](_0x4a5028[_0x44ad('0xa')])?_0x4a5028[_0x44ad('0x24')]:_0x4a5028[_0x44ad('0xa')]['id'];this[_0x44ad('0x25')]=_0x4a5028[_0x44ad('0x25')];this[_0x44ad('0x26')]='';this[_0x44ad('0x27')]='';}Action[_0x44ad('0x28')][_0x44ad('0x29')]=function(){return util['format'](_0x44ad('0x2a'),this['calleridname'],this['number']);};module['exports']=Action;
\ No newline at end of file