Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / services / ami / preview / action.js
index 4458c8c..9888aac 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa652=['isNil','string','uniqueid','idContact','queue','name','type','campaigntype','membername','Agent','channelAgent','format','SIP/%s','Contact','phone','firstName','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','callback','callbackuniqueid','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','getCaller','\x22%s\x22\x20<%s>','calleridname','exports','util','lodash','moment'];(function(_0x27b4c7,_0xd847e6){var _0x3000b9=function(_0x57ef4b){while(--_0x57ef4b){_0x27b4c7['push'](_0x27b4c7['shift']());}};_0x3000b9(++_0xd847e6);}(_0xa652,0x138));var _0x2a65=function(_0x297fd3,_0x115406){_0x297fd3=_0x297fd3-0x0;var _0x2af381=_0xa652[_0x297fd3];return _0x2af381;};'use strict';var util=require(_0x2a65('0x0'));var _=require(_0x2a65('0x1'));var moment=require(_0x2a65('0x2'));function checkNameSurname(_0x3e6f23,_0x3c073f,_0x4953ba){var _0x12dfab='';if(!_[_0x2a65('0x3')](_0x3c073f)&&'string'===typeof _0x3c073f){_0x12dfab+=_0x3c073f;}if(!_['isNil'](_0x4953ba)&&_0x2a65('0x4')===typeof _0x4953ba){_0x12dfab+='\x20'+_0x4953ba;}if(_0x12dfab!==''){return _0x12dfab;}return _0x3e6f23;}function Action(_0xb30dd3,_0x5528d,_0x2f73ba,_0x4be68f,_0x975aa4){this[_0x2a65('0x5')]=_0x2f73ba||undefined;this[_0x2a65('0x6')]=_0xb30dd3['id'];this[_0x2a65('0x7')]=_0x5528d[_0x2a65('0x8')];this[_0x2a65('0x9')]=_0x5528d[_0x2a65('0x9')];this[_0x2a65('0xa')]=_0x2a65('0x7');this['dialAnswer']=![];this[_0x2a65('0xb')]=_[_0x2a65('0x3')](_0xb30dd3[_0x2a65('0xc')])?undefined:_0xb30dd3[_0x2a65('0xc')][_0x2a65('0x8')];this[_0x2a65('0xd')]=this[_0x2a65('0xb')]?util[_0x2a65('0xe')](_0x2a65('0xf'),this['membername']):_0x4be68f||undefined;this['calleridname']=checkNameSurname(_0xb30dd3[_0x2a65('0x10')][_0x2a65('0x11')],_0xb30dd3['Contact'][_0x2a65('0x12')],_0xb30dd3['Contact'][_0x2a65('0x13')]);this[_0x2a65('0x14')]=_0xb30dd3['active']||![];this[_0x2a65('0x15')]=_0xb30dd3[_0x2a65('0x10')][_0x2a65('0x11')];this[_0x2a65('0x16')]=_0xb30dd3['scheduledat'];this[_0x2a65('0x17')]=_0xb30dd3[_0x2a65('0x17')]||0x0;this['countcongestionretry']=_0xb30dd3[_0x2a65('0x18')]||0x0;this[_0x2a65('0x19')]=_0xb30dd3['countnoanswerretry']||0x0;this[_0x2a65('0x1a')]=(_0xb30dd3['countbusyretry']||0x0)+(_0xb30dd3[_0x2a65('0x18')]||0x0)+(_0xb30dd3['countnoanswerretry']||0x0)+(_0xb30dd3[_0x2a65('0x1b')]||0x0)+(_0xb30dd3['countdropretry']||0x0)+(_0xb30dd3[_0x2a65('0x1c')]||0x0)+(_0xb30dd3[_0x2a65('0x1d')]||0x0)+(_0xb30dd3[_0x2a65('0x1e')]||0x0);this[_0x2a65('0x1b')]=_0xb30dd3[_0x2a65('0x1b')]||0x0;this[_0x2a65('0x1f')]=_0xb30dd3[_0x2a65('0x1f')]||0x0;this['countabandonedretry']=_0xb30dd3[_0x2a65('0x1c')]||0x0;this[_0x2a65('0x1d')]=_0xb30dd3[_0x2a65('0x1d')]||0x0;this['countagentrejectretry']=_0xb30dd3[_0x2a65('0x1e')]||0x0;this[_0x2a65('0x20')]=_0xb30dd3['callback'];this[_0x2a65('0x21')]=_0xb30dd3[_0x2a65('0x21')];this['callbackat']=_0xb30dd3['callbackat'];this[_0x2a65('0x22')]=_0xb30dd3[_0x2a65('0x22')];this['ContactId']=_0xb30dd3[_0x2a65('0x23')];this[_0x2a65('0x24')]=_0xb30dd3['ListId'];this[_0x2a65('0x25')]=_[_0x2a65('0x3')](_0xb30dd3['Agent'])?_0xb30dd3[_0x2a65('0x25')]:_0xb30dd3['Agent']['id'];this[_0x2a65('0x26')]=_0xb30dd3[_0x2a65('0x26')];this[_0x2a65('0x27')]='';this[_0x2a65('0x28')]='';}Action['prototype'][_0x2a65('0x29')]=function(){return util[_0x2a65('0xe')](_0x2a65('0x2a'),this[_0x2a65('0x2b')],this['number']);};module[_0x2a65('0x2c')]=Action;
\ No newline at end of file
+var _0x6207=['ListId','UserId','VoiceQueueId','originatecalleridname','prototype','getCaller','util','lodash','moment','isNil','idContact','queue','name','type','campaigntype','dialAnswer','Agent','format','SIP/%s','calleridname','Contact','active','phone','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x6207,0x110));var _0x7620=function(_0x1a317e,_0x1dacc7){_0x1a317e=_0x1a317e-0x0;var _0x280cbd=_0x6207[_0x1a317e];return _0x280cbd;};'use strict';var util=require(_0x7620('0x0'));var _=require(_0x7620('0x1'));var moment=require(_0x7620('0x2'));function checkNameSurname(_0x163533,_0x6e76ed,_0x3f9f06){var _0x8faa9b='';if(!_[_0x7620('0x3')](_0x6e76ed)&&'string'===typeof _0x6e76ed){_0x8faa9b+=_0x6e76ed;}if(!_[_0x7620('0x3')](_0x3f9f06)&&'string'===typeof _0x3f9f06){_0x8faa9b+='\x20'+_0x3f9f06;}if(_0x8faa9b!==''){return _0x8faa9b;}return _0x163533;}function Action(_0x1e40ee,_0x1432b2,_0x530788,_0x2d8f9e,_0x576d4f){this['uniqueid']=_0x530788||undefined;this[_0x7620('0x4')]=_0x1e40ee['id'];this[_0x7620('0x5')]=_0x1432b2[_0x7620('0x6')];this[_0x7620('0x7')]=_0x1432b2[_0x7620('0x7')];this[_0x7620('0x8')]=_0x7620('0x5');this[_0x7620('0x9')]=![];this['membername']=_['isNil'](_0x1e40ee[_0x7620('0xa')])?undefined:_0x1e40ee[_0x7620('0xa')]['name'];this['channelAgent']=this['membername']?util[_0x7620('0xb')](_0x7620('0xc'),this['membername']):_0x2d8f9e||undefined;this[_0x7620('0xd')]=checkNameSurname(_0x1e40ee[_0x7620('0xe')]['phone'],_0x1e40ee['Contact']['firstName'],_0x1e40ee[_0x7620('0xe')]['lastName']);this['active']=_0x1e40ee[_0x7620('0xf')]||![];this['calleridnum']=_0x1e40ee[_0x7620('0xe')][_0x7620('0x10')];this[_0x7620('0x11')]=_0x1e40ee[_0x7620('0x11')];this[_0x7620('0x12')]=_0x1e40ee[_0x7620('0x12')]||0x0;this[_0x7620('0x13')]=_0x1e40ee[_0x7620('0x13')]||0x0;this[_0x7620('0x14')]=_0x1e40ee[_0x7620('0x14')]||0x0;this[_0x7620('0x15')]=(_0x1e40ee[_0x7620('0x12')]||0x0)+(_0x1e40ee[_0x7620('0x13')]||0x0)+(_0x1e40ee[_0x7620('0x14')]||0x0)+(_0x1e40ee[_0x7620('0x16')]||0x0)+(_0x1e40ee[_0x7620('0x17')]||0x0)+(_0x1e40ee[_0x7620('0x18')]||0x0)+(_0x1e40ee[_0x7620('0x19')]||0x0)+(_0x1e40ee[_0x7620('0x1a')]||0x0);this[_0x7620('0x16')]=_0x1e40ee['countnosuchnumberretry']||0x0;this[_0x7620('0x17')]=_0x1e40ee[_0x7620('0x17')]||0x0;this['countabandonedretry']=_0x1e40ee[_0x7620('0x18')]||0x0;this[_0x7620('0x19')]=_0x1e40ee[_0x7620('0x19')]||0x0;this[_0x7620('0x1a')]=_0x1e40ee[_0x7620('0x1a')]||0x0;this[_0x7620('0x1b')]=_0x1e40ee[_0x7620('0x1b')];this[_0x7620('0x1c')]=_0x1e40ee['callbackuniqueid'];this['callbackat']=_0x1e40ee[_0x7620('0x1d')];this[_0x7620('0x1e')]=_0x1e40ee['recallme'];this[_0x7620('0x1f')]=_0x1e40ee[_0x7620('0x1f')];this[_0x7620('0x20')]=_0x1e40ee['ListId'];this[_0x7620('0x21')]=_['isNil'](_0x1e40ee[_0x7620('0xa')])?_0x1e40ee[_0x7620('0x21')]:_0x1e40ee[_0x7620('0xa')]['id'];this[_0x7620('0x22')]=_0x1e40ee[_0x7620('0x22')];this['originatecalleridnum']='';this[_0x7620('0x23')]='';}Action[_0x7620('0x24')][_0x7620('0x25')]=function(){return util['format']('\x22%s\x22\x20<%s>',this['calleridname'],this['number']);};module['exports']=Action;
\ No newline at end of file