Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / preview / action.js
index 0e46192..71cb041 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x74f9=['prototype','getCaller','\x22%s\x22\x20<%s>','number','exports','util','lodash','moment','isNil','string','uniqueid','idContact','queue','name','type','campaigntype','membername','Agent','format','SIP/%s','calleridname','Contact','phone','firstName','lastName','active','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','callback','callbackat','recallme','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname'];(function(_0x57ed68,_0x13cab4){var _0x5a46f9=function(_0x40d889){while(--_0x40d889){_0x57ed68['push'](_0x57ed68['shift']());}};_0x5a46f9(++_0x13cab4);}(_0x74f9,0x1e9));var _0x974f=function(_0x1377d9,_0x37642e){_0x1377d9=_0x1377d9-0x0;var _0x24691f=_0x74f9[_0x1377d9];return _0x24691f;};'use strict';var util=require(_0x974f('0x0'));var _=require(_0x974f('0x1'));var moment=require(_0x974f('0x2'));function checkNameSurname(_0x30343a,_0xb5f43d,_0x3f09f3){var _0xaf3524='';if(!_[_0x974f('0x3')](_0xb5f43d)&&_0x974f('0x4')===typeof _0xb5f43d){_0xaf3524+=_0xb5f43d;}if(!_['isNil'](_0x3f09f3)&&_0x974f('0x4')===typeof _0x3f09f3){_0xaf3524+='\x20'+_0x3f09f3;}if(_0xaf3524!==''){return _0xaf3524;}return _0x30343a;}function Action(_0x247b5e,_0x5b3596,_0xae17b8,_0x560f47,_0x59d771){this[_0x974f('0x5')]=_0xae17b8||undefined;this[_0x974f('0x6')]=_0x247b5e['id'];this[_0x974f('0x7')]=_0x5b3596[_0x974f('0x8')];this['type']=_0x5b3596[_0x974f('0x9')];this[_0x974f('0xa')]='queue';this['dialAnswer']=![];this[_0x974f('0xb')]=_[_0x974f('0x3')](_0x247b5e[_0x974f('0xc')])?undefined:_0x247b5e[_0x974f('0xc')][_0x974f('0x8')];this['channelAgent']=this[_0x974f('0xb')]?util[_0x974f('0xd')](_0x974f('0xe'),this['membername']):_0x560f47||undefined;this[_0x974f('0xf')]=checkNameSurname(_0x247b5e[_0x974f('0x10')][_0x974f('0x11')],_0x247b5e[_0x974f('0x10')][_0x974f('0x12')],_0x247b5e[_0x974f('0x10')][_0x974f('0x13')]);this[_0x974f('0x14')]=_0x247b5e[_0x974f('0x14')]||![];this['calleridnum']=_0x247b5e[_0x974f('0x10')][_0x974f('0x11')];this[_0x974f('0x15')]=_0x247b5e['scheduledat'];this[_0x974f('0x16')]=_0x247b5e[_0x974f('0x16')]||0x0;this[_0x974f('0x17')]=_0x247b5e[_0x974f('0x17')]||0x0;this['countnoanswerretry']=_0x247b5e[_0x974f('0x18')]||0x0;this[_0x974f('0x19')]=(_0x247b5e[_0x974f('0x16')]||0x0)+(_0x247b5e[_0x974f('0x17')]||0x0)+(_0x247b5e['countnoanswerretry']||0x0)+(_0x247b5e[_0x974f('0x1a')]||0x0)+(_0x247b5e[_0x974f('0x1b')]||0x0)+(_0x247b5e[_0x974f('0x1c')]||0x0)+(_0x247b5e[_0x974f('0x1d')]||0x0)+(_0x247b5e[_0x974f('0x1e')]||0x0);this[_0x974f('0x1a')]=_0x247b5e[_0x974f('0x1a')]||0x0;this[_0x974f('0x1b')]=_0x247b5e['countdropretry']||0x0;this[_0x974f('0x1c')]=_0x247b5e['countabandonedretry']||0x0;this['countmachineretry']=_0x247b5e[_0x974f('0x1d')]||0x0;this[_0x974f('0x1e')]=_0x247b5e[_0x974f('0x1e')]||0x0;this[_0x974f('0x1f')]=_0x247b5e[_0x974f('0x1f')];this['callbackuniqueid']=_0x247b5e['callbackuniqueid'];this[_0x974f('0x20')]=_0x247b5e[_0x974f('0x20')];this[_0x974f('0x21')]=_0x247b5e[_0x974f('0x21')];this['ContactId']=_0x247b5e['ContactId'];this[_0x974f('0x22')]=_0x247b5e[_0x974f('0x22')];this[_0x974f('0x23')]=_['isNil'](_0x247b5e[_0x974f('0xc')])?_0x247b5e['UserId']:_0x247b5e['Agent']['id'];this[_0x974f('0x24')]=_0x247b5e[_0x974f('0x24')];this[_0x974f('0x25')]='';this[_0x974f('0x26')]='';}Action[_0x974f('0x27')][_0x974f('0x28')]=function(){return util[_0x974f('0xd')](_0x974f('0x29'),this[_0x974f('0xf')],this[_0x974f('0x2a')]);};module[_0x974f('0x2b')]=Action;
\ No newline at end of file
+var _0xcf50=['dialAnswer','Agent','channelAgent','membername','SIP/%s','Contact','phone','firstName','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','originatecalleridnum','prototype','getCaller','format','number','exports','util','lodash','moment','isNil','string','uniqueid','idContact','queue','name','type','campaigntype'];(function(_0x4327fe,_0x4f8040){var _0x138651=function(_0x418acc){while(--_0x418acc){_0x4327fe['push'](_0x4327fe['shift']());}};_0x138651(++_0x4f8040);}(_0xcf50,0x1e4));var _0x0cf5=function(_0x5f281a,_0x1863fa){_0x5f281a=_0x5f281a-0x0;var _0x4dbb73=_0xcf50[_0x5f281a];return _0x4dbb73;};'use strict';var util=require(_0x0cf5('0x0'));var _=require(_0x0cf5('0x1'));var moment=require(_0x0cf5('0x2'));function checkNameSurname(_0x4f0072,_0x36202c,_0x13a97d){var _0x51a426='';if(!_[_0x0cf5('0x3')](_0x36202c)&&_0x0cf5('0x4')===typeof _0x36202c){_0x51a426+=_0x36202c;}if(!_[_0x0cf5('0x3')](_0x13a97d)&&_0x0cf5('0x4')===typeof _0x13a97d){_0x51a426+='\x20'+_0x13a97d;}if(_0x51a426!==''){return _0x51a426;}return _0x4f0072;}function Action(_0x585395,_0x84cef7,_0x50a327,_0x55d130,_0x29e4c7){this[_0x0cf5('0x5')]=_0x50a327||undefined;this[_0x0cf5('0x6')]=_0x585395['id'];this[_0x0cf5('0x7')]=_0x84cef7[_0x0cf5('0x8')];this[_0x0cf5('0x9')]=_0x84cef7[_0x0cf5('0x9')];this[_0x0cf5('0xa')]='queue';this[_0x0cf5('0xb')]=![];this['membername']=_[_0x0cf5('0x3')](_0x585395['Agent'])?undefined:_0x585395[_0x0cf5('0xc')][_0x0cf5('0x8')];this[_0x0cf5('0xd')]=this[_0x0cf5('0xe')]?util['format'](_0x0cf5('0xf'),this['membername']):_0x55d130||undefined;this['calleridname']=checkNameSurname(_0x585395[_0x0cf5('0x10')][_0x0cf5('0x11')],_0x585395[_0x0cf5('0x10')][_0x0cf5('0x12')],_0x585395[_0x0cf5('0x10')][_0x0cf5('0x13')]);this['active']=_0x585395[_0x0cf5('0x14')]||![];this[_0x0cf5('0x15')]=_0x585395[_0x0cf5('0x10')]['phone'];this[_0x0cf5('0x16')]=_0x585395['scheduledat'];this[_0x0cf5('0x17')]=_0x585395[_0x0cf5('0x17')]||0x0;this[_0x0cf5('0x18')]=_0x585395['countcongestionretry']||0x0;this['countnoanswerretry']=_0x585395[_0x0cf5('0x19')]||0x0;this[_0x0cf5('0x1a')]=(_0x585395[_0x0cf5('0x17')]||0x0)+(_0x585395['countcongestionretry']||0x0)+(_0x585395[_0x0cf5('0x19')]||0x0)+(_0x585395['countnosuchnumberretry']||0x0)+(_0x585395[_0x0cf5('0x1b')]||0x0)+(_0x585395[_0x0cf5('0x1c')]||0x0)+(_0x585395[_0x0cf5('0x1d')]||0x0)+(_0x585395[_0x0cf5('0x1e')]||0x0);this['countnosuchnumberretry']=_0x585395[_0x0cf5('0x1f')]||0x0;this['countdropretry']=_0x585395['countdropretry']||0x0;this[_0x0cf5('0x1c')]=_0x585395[_0x0cf5('0x1c')]||0x0;this['countmachineretry']=_0x585395['countmachineretry']||0x0;this[_0x0cf5('0x1e')]=_0x585395['countagentrejectretry']||0x0;this['callback']=_0x585395[_0x0cf5('0x20')];this[_0x0cf5('0x21')]=_0x585395[_0x0cf5('0x21')];this[_0x0cf5('0x22')]=_0x585395[_0x0cf5('0x22')];this[_0x0cf5('0x23')]=_0x585395[_0x0cf5('0x23')];this[_0x0cf5('0x24')]=_0x585395['ContactId'];this[_0x0cf5('0x25')]=_0x585395[_0x0cf5('0x25')];this['UserId']=_[_0x0cf5('0x3')](_0x585395[_0x0cf5('0xc')])?_0x585395['UserId']:_0x585395[_0x0cf5('0xc')]['id'];this[_0x0cf5('0x26')]=_0x585395[_0x0cf5('0x26')];this[_0x0cf5('0x27')]='';this['originatecalleridname']='';}Action[_0x0cf5('0x28')][_0x0cf5('0x29')]=function(){return util[_0x0cf5('0x2a')]('\x22%s\x22\x20<%s>',this['calleridname'],this[_0x0cf5('0x2b')]);};module[_0x0cf5('0x2c')]=Action;
\ No newline at end of file