Built motion from commit 37e1ed56.|2.6.29
[motion2.git] / server / services / ami / preview / action.js
index 027f831..9de283a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1eba=['channelAgent','format','SIP/%s','calleridname','Contact','lastName','active','calleridnum','phone','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridname','getCaller','number','exports','util','lodash','moment','isNil','string','uniqueid','idContact','queue','type','campaigntype','dialAnswer','Agent','name'];(function(_0x4b3fcc,_0x19137b){var _0x344201=function(_0x5adb31){while(--_0x5adb31){_0x4b3fcc['push'](_0x4b3fcc['shift']());}};_0x344201(++_0x19137b);}(_0x1eba,0x1d7));var _0xa1eb=function(_0x5c3c0b,_0x4ee35e){_0x5c3c0b=_0x5c3c0b-0x0;var _0x52ecd2=_0x1eba[_0x5c3c0b];return _0x52ecd2;};'use strict';var util=require(_0xa1eb('0x0'));var _=require(_0xa1eb('0x1'));var moment=require(_0xa1eb('0x2'));function checkNameSurname(_0x2158d5,_0x3ef7ee,_0x5865fc){var _0x56c5f2='';if(!_[_0xa1eb('0x3')](_0x3ef7ee)&&_0xa1eb('0x4')===typeof _0x3ef7ee){_0x56c5f2+=_0x3ef7ee;}if(!_[_0xa1eb('0x3')](_0x5865fc)&&_0xa1eb('0x4')===typeof _0x5865fc){_0x56c5f2+='\x20'+_0x5865fc;}if(_0x56c5f2!==''){return _0x56c5f2;}return _0x2158d5;}function Action(_0x138789,_0x2933d0,_0x1d0d67,_0x2bfbb0,_0x39a5a3){this[_0xa1eb('0x5')]=_0x1d0d67||undefined;this[_0xa1eb('0x6')]=_0x138789['id'];this[_0xa1eb('0x7')]=_0x2933d0['name'];this[_0xa1eb('0x8')]=_0x2933d0['type'];this[_0xa1eb('0x9')]='queue';this[_0xa1eb('0xa')]=![];this['membername']=_[_0xa1eb('0x3')](_0x138789['Agent'])?undefined:_0x138789[_0xa1eb('0xb')][_0xa1eb('0xc')];this[_0xa1eb('0xd')]=this['membername']?util[_0xa1eb('0xe')](_0xa1eb('0xf'),this['membername']):_0x2bfbb0||undefined;this[_0xa1eb('0x10')]=checkNameSurname(_0x138789['Contact']['phone'],_0x138789[_0xa1eb('0x11')]['firstName'],_0x138789[_0xa1eb('0x11')][_0xa1eb('0x12')]);this[_0xa1eb('0x13')]=_0x138789[_0xa1eb('0x13')]||![];this[_0xa1eb('0x14')]=_0x138789[_0xa1eb('0x15')];this[_0xa1eb('0x16')]=_0x138789[_0xa1eb('0x16')];this[_0xa1eb('0x17')]=_0x138789['countbusyretry']||0x0;this[_0xa1eb('0x18')]=_0x138789['countcongestionretry']||0x0;this[_0xa1eb('0x19')]=_0x138789[_0xa1eb('0x19')]||0x0;this[_0xa1eb('0x1a')]=(_0x138789[_0xa1eb('0x17')]||0x0)+(_0x138789['countcongestionretry']||0x0)+(_0x138789[_0xa1eb('0x19')]||0x0)+(_0x138789[_0xa1eb('0x1b')]||0x0)+(_0x138789[_0xa1eb('0x1c')]||0x0)+(_0x138789[_0xa1eb('0x1d')]||0x0)+(_0x138789[_0xa1eb('0x1e')]||0x0)+(_0x138789[_0xa1eb('0x1f')]||0x0);this[_0xa1eb('0x1b')]=_0x138789[_0xa1eb('0x1b')]||0x0;this['countdropretry']=_0x138789[_0xa1eb('0x1c')]||0x0;this['countabandonedretry']=_0x138789[_0xa1eb('0x1d')]||0x0;this[_0xa1eb('0x1e')]=_0x138789[_0xa1eb('0x1e')]||0x0;this[_0xa1eb('0x1f')]=_0x138789['countagentrejectretry']||0x0;this['callback']=_0x138789[_0xa1eb('0x20')];this[_0xa1eb('0x21')]=_0x138789['callbackuniqueid'];this[_0xa1eb('0x22')]=_0x138789[_0xa1eb('0x22')];this[_0xa1eb('0x23')]=_0x138789[_0xa1eb('0x23')];this[_0xa1eb('0x24')]=_0x138789[_0xa1eb('0x24')];this[_0xa1eb('0x25')]=_0x138789[_0xa1eb('0x25')];this[_0xa1eb('0x26')]=_[_0xa1eb('0x3')](_0x138789[_0xa1eb('0xb')])?_0x138789[_0xa1eb('0x26')]:_0x138789['Agent']['id'];this[_0xa1eb('0x27')]=_0x138789[_0xa1eb('0x27')];this['originatecalleridnum']='';this[_0xa1eb('0x28')]='';}Action['prototype'][_0xa1eb('0x29')]=function(){return util[_0xa1eb('0xe')]('\x22%s\x22\x20<%s>',this[_0xa1eb('0x10')],this[_0xa1eb('0x2a')]);};module[_0xa1eb('0x2b')]=Action;
\ No newline at end of file
+var _0x430c=['UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','prototype','\x22%s\x22\x20<%s>','number','util','string','uniqueid','idContact','queue','name','type','campaigntype','membername','isNil','Agent','channelAgent','format','SIP/%s','calleridname','Contact','phone','lastName','active','calleridnum','scheduledat','countcongestionretry','countnoanswerretry','countbusyretry','countabandonedretry','countagentrejectretry','countnosuchnumberretry','countdropretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId'];(function(_0x2bf141,_0x31eac7){var _0x48277b=function(_0x9fe560){while(--_0x9fe560){_0x2bf141['push'](_0x2bf141['shift']());}};_0x48277b(++_0x31eac7);}(_0x430c,0x1a1));var _0xc430=function(_0x2136a6,_0x35af63){_0x2136a6=_0x2136a6-0x0;var _0x55b948=_0x430c[_0x2136a6];return _0x55b948;};'use strict';var util=require(_0xc430('0x0'));var _=require('lodash');var moment=require('moment');function checkNameSurname(_0x426596,_0xe2d084,_0x1d5b5e){var _0x503988='';if(!_['isNil'](_0xe2d084)&&'string'===typeof _0xe2d084){_0x503988+=_0xe2d084;}if(!_['isNil'](_0x1d5b5e)&&_0xc430('0x1')===typeof _0x1d5b5e){_0x503988+='\x20'+_0x1d5b5e;}if(_0x503988!==''){return _0x503988;}return _0x426596;}function Action(_0x2408f5,_0x50b256,_0x42aa9c,_0x4de44f,_0x212354){this[_0xc430('0x2')]=_0x42aa9c||undefined;this[_0xc430('0x3')]=_0x2408f5['id'];this[_0xc430('0x4')]=_0x50b256[_0xc430('0x5')];this[_0xc430('0x6')]=_0x50b256[_0xc430('0x6')];this[_0xc430('0x7')]=_0xc430('0x4');this['dialAnswer']=![];this[_0xc430('0x8')]=_[_0xc430('0x9')](_0x2408f5['Agent'])?undefined:_0x2408f5[_0xc430('0xa')]['name'];this[_0xc430('0xb')]=this['membername']?util[_0xc430('0xc')](_0xc430('0xd'),this[_0xc430('0x8')]):_0x4de44f||undefined;this[_0xc430('0xe')]=checkNameSurname(_0x2408f5[_0xc430('0xf')][_0xc430('0x10')],_0x2408f5[_0xc430('0xf')]['firstName'],_0x2408f5['Contact'][_0xc430('0x11')]);this[_0xc430('0x12')]=_0x2408f5[_0xc430('0x12')]||![];this[_0xc430('0x13')]=_0x2408f5[_0xc430('0x10')];this['scheduledat']=_0x2408f5[_0xc430('0x14')];this['countbusyretry']=_0x2408f5['countbusyretry']||0x0;this[_0xc430('0x15')]=_0x2408f5[_0xc430('0x15')]||0x0;this[_0xc430('0x16')]=_0x2408f5['countnoanswerretry']||0x0;this['countglobal']=(_0x2408f5[_0xc430('0x17')]||0x0)+(_0x2408f5['countcongestionretry']||0x0)+(_0x2408f5[_0xc430('0x16')]||0x0)+(_0x2408f5['countnosuchnumberretry']||0x0)+(_0x2408f5['countdropretry']||0x0)+(_0x2408f5[_0xc430('0x18')]||0x0)+(_0x2408f5['countmachineretry']||0x0)+(_0x2408f5[_0xc430('0x19')]||0x0);this[_0xc430('0x1a')]=_0x2408f5[_0xc430('0x1a')]||0x0;this[_0xc430('0x1b')]=_0x2408f5[_0xc430('0x1b')]||0x0;this['countabandonedretry']=_0x2408f5[_0xc430('0x18')]||0x0;this['countmachineretry']=_0x2408f5['countmachineretry']||0x0;this[_0xc430('0x19')]=_0x2408f5[_0xc430('0x19')]||0x0;this[_0xc430('0x1c')]=_0x2408f5['callback'];this[_0xc430('0x1d')]=_0x2408f5['callbackuniqueid'];this[_0xc430('0x1e')]=_0x2408f5[_0xc430('0x1e')];this['recallme']=_0x2408f5[_0xc430('0x1f')];this[_0xc430('0x20')]=_0x2408f5['ContactId'];this[_0xc430('0x21')]=_0x2408f5['ListId'];this[_0xc430('0x22')]=_['isNil'](_0x2408f5[_0xc430('0xa')])?_0x2408f5[_0xc430('0x22')]:_0x2408f5['Agent']['id'];this[_0xc430('0x23')]=_0x2408f5[_0xc430('0x23')];this[_0xc430('0x24')]='';this[_0xc430('0x25')]='';}Action[_0xc430('0x26')]['getCaller']=function(){return util[_0xc430('0xc')](_0xc430('0x27'),this[_0xc430('0xe')],this[_0xc430('0x28')]);};module['exports']=Action;
\ No newline at end of file