Built motion from commit (unavailable).|2.4.6
[motion2.git] / server / services / ami / preview / action.js
index 83dee42..d3f9eb4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x95ce=['Contact','firstName','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','getCaller','util','lodash','isNil','string','queue','name','type','campaigntype','dialAnswer','membername','Agent','channelAgent','format','SIP/%s','calleridname','phone'];(function(_0x609f23,_0x51a28e){var _0x32cead=function(_0x32068a){while(--_0x32068a){_0x609f23['push'](_0x609f23['shift']());}};_0x32cead(++_0x51a28e);}(_0x95ce,0x158));var _0xe95c=function(_0x4d58f9,_0x288d3d){_0x4d58f9=_0x4d58f9-0x0;var _0x32cd2e=_0x95ce[_0x4d58f9];return _0x32cd2e;};'use strict';var util=require(_0xe95c('0x0'));var _=require(_0xe95c('0x1'));var moment=require('moment');function checkNameSurname(_0x353c16,_0x5b3653,_0x1a226b){var _0x1f2623='';if(!_[_0xe95c('0x2')](_0x5b3653)&&_0xe95c('0x3')===typeof _0x5b3653){_0x1f2623+=_0x5b3653;}if(!_[_0xe95c('0x2')](_0x1a226b)&&_0xe95c('0x3')===typeof _0x1a226b){_0x1f2623+='\x20'+_0x1a226b;}if(_0x1f2623!==''){return _0x1f2623;}return _0x353c16;}function Action(_0x36ef72,_0x2be81d,_0x431fcd,_0x284bb4,_0x428e27){this['uniqueid']=_0x431fcd||undefined;this['idContact']=_0x36ef72['id'];this[_0xe95c('0x4')]=_0x2be81d[_0xe95c('0x5')];this[_0xe95c('0x6')]=_0x2be81d[_0xe95c('0x6')];this[_0xe95c('0x7')]=_0xe95c('0x4');this[_0xe95c('0x8')]=![];this[_0xe95c('0x9')]=_[_0xe95c('0x2')](_0x36ef72[_0xe95c('0xa')])?undefined:_0x36ef72[_0xe95c('0xa')][_0xe95c('0x5')];this[_0xe95c('0xb')]=this[_0xe95c('0x9')]?util[_0xe95c('0xc')](_0xe95c('0xd'),this[_0xe95c('0x9')]):_0x284bb4||undefined;this[_0xe95c('0xe')]=checkNameSurname(_0x36ef72['Contact'][_0xe95c('0xf')],_0x36ef72[_0xe95c('0x10')][_0xe95c('0x11')],_0x36ef72[_0xe95c('0x10')][_0xe95c('0x12')]);this[_0xe95c('0x13')]=_0x36ef72[_0xe95c('0x13')]||![];this[_0xe95c('0x14')]=_0x36ef72['Contact'][_0xe95c('0xf')];this['scheduledat']=_0x36ef72[_0xe95c('0x15')];this[_0xe95c('0x16')]=_0x36ef72[_0xe95c('0x16')]||0x0;this[_0xe95c('0x17')]=_0x36ef72['countcongestionretry']||0x0;this[_0xe95c('0x18')]=_0x36ef72[_0xe95c('0x18')]||0x0;this['countglobal']=(_0x36ef72[_0xe95c('0x16')]||0x0)+(_0x36ef72['countcongestionretry']||0x0)+(_0x36ef72[_0xe95c('0x18')]||0x0);this['callback']=_0x36ef72[_0xe95c('0x19')];this[_0xe95c('0x1a')]=_0x36ef72['callbackuniqueid'];this[_0xe95c('0x1b')]=_0x36ef72[_0xe95c('0x1b')];this[_0xe95c('0x1c')]=_0x36ef72[_0xe95c('0x1c')];this[_0xe95c('0x1d')]=_0x36ef72['ContactId'];this[_0xe95c('0x1e')]=_0x36ef72[_0xe95c('0x1e')];this[_0xe95c('0x1f')]=_[_0xe95c('0x2')](_0x36ef72[_0xe95c('0xa')])?_0x36ef72[_0xe95c('0x1f')]:_0x36ef72[_0xe95c('0xa')]['id'];this[_0xe95c('0x20')]=_0x36ef72[_0xe95c('0x20')];this[_0xe95c('0x21')]='';this[_0xe95c('0x22')]='';}Action['prototype'][_0xe95c('0x23')]=function(){return util['format']('\x22%s\x22\x20<%s>',this[_0xe95c('0xe')],this['number']);};module['exports']=Action;
\ No newline at end of file
+var _0xdafb=['format','SIP/%s','calleridname','phone','active','calleridnum','Contact','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','exports','util','lodash','moment','isNil','string','uniqueid','idContact','queue','name','type','campaigntype','dialAnswer','Agent','channelAgent','membername'];(function(_0x512c83,_0x42a67a){var _0x1f7f25=function(_0x1e656c){while(--_0x1e656c){_0x512c83['push'](_0x512c83['shift']());}};_0x1f7f25(++_0x42a67a);}(_0xdafb,0x159));var _0xbdaf=function(_0x1150ae,_0x297bf2){_0x1150ae=_0x1150ae-0x0;var _0x221882=_0xdafb[_0x1150ae];return _0x221882;};'use strict';var util=require(_0xbdaf('0x0'));var _=require(_0xbdaf('0x1'));var moment=require(_0xbdaf('0x2'));function checkNameSurname(_0x1818f6,_0x22774d,_0x1c0a6c){var _0x44abc5='';if(!_[_0xbdaf('0x3')](_0x22774d)&&_0xbdaf('0x4')===typeof _0x22774d){_0x44abc5+=_0x22774d;}if(!_[_0xbdaf('0x3')](_0x1c0a6c)&&'string'===typeof _0x1c0a6c){_0x44abc5+='\x20'+_0x1c0a6c;}if(_0x44abc5!==''){return _0x44abc5;}return _0x1818f6;}function Action(_0x2c5f06,_0x2ed56c,_0x207188,_0x3f43fb,_0x277e27){this[_0xbdaf('0x5')]=_0x207188||undefined;this[_0xbdaf('0x6')]=_0x2c5f06['id'];this[_0xbdaf('0x7')]=_0x2ed56c[_0xbdaf('0x8')];this[_0xbdaf('0x9')]=_0x2ed56c[_0xbdaf('0x9')];this[_0xbdaf('0xa')]=_0xbdaf('0x7');this[_0xbdaf('0xb')]=![];this['membername']=_['isNil'](_0x2c5f06[_0xbdaf('0xc')])?undefined:_0x2c5f06[_0xbdaf('0xc')][_0xbdaf('0x8')];this[_0xbdaf('0xd')]=this[_0xbdaf('0xe')]?util[_0xbdaf('0xf')](_0xbdaf('0x10'),this['membername']):_0x3f43fb||undefined;this[_0xbdaf('0x11')]=checkNameSurname(_0x2c5f06['Contact'][_0xbdaf('0x12')],_0x2c5f06['Contact']['firstName'],_0x2c5f06['Contact']['lastName']);this['active']=_0x2c5f06[_0xbdaf('0x13')]||![];this[_0xbdaf('0x14')]=_0x2c5f06[_0xbdaf('0x15')]['phone'];this[_0xbdaf('0x16')]=_0x2c5f06[_0xbdaf('0x16')];this[_0xbdaf('0x17')]=_0x2c5f06[_0xbdaf('0x17')]||0x0;this[_0xbdaf('0x18')]=_0x2c5f06[_0xbdaf('0x18')]||0x0;this[_0xbdaf('0x19')]=_0x2c5f06[_0xbdaf('0x19')]||0x0;this[_0xbdaf('0x1a')]=(_0x2c5f06['countbusyretry']||0x0)+(_0x2c5f06[_0xbdaf('0x18')]||0x0)+(_0x2c5f06['countnoanswerretry']||0x0);this[_0xbdaf('0x1b')]=_0x2c5f06[_0xbdaf('0x1b')];this[_0xbdaf('0x1c')]=_0x2c5f06[_0xbdaf('0x1c')];this[_0xbdaf('0x1d')]=_0x2c5f06['callbackat'];this[_0xbdaf('0x1e')]=_0x2c5f06['recallme'];this[_0xbdaf('0x1f')]=_0x2c5f06[_0xbdaf('0x1f')];this[_0xbdaf('0x20')]=_0x2c5f06['ListId'];this[_0xbdaf('0x21')]=_[_0xbdaf('0x3')](_0x2c5f06['Agent'])?_0x2c5f06['UserId']:_0x2c5f06['Agent']['id'];this[_0xbdaf('0x22')]=_0x2c5f06[_0xbdaf('0x22')];this['originatecalleridnum']='';this[_0xbdaf('0x23')]='';}Action[_0xbdaf('0x24')][_0xbdaf('0x25')]=function(){return util[_0xbdaf('0xf')](_0xbdaf('0x26'),this[_0xbdaf('0x11')],this['number']);};module[_0xbdaf('0x27')]=Action;
\ No newline at end of file