Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / ami / preview / action.js
index aefd670..e1706d1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x955f=['countabandonedretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridname','prototype','getCaller','\x22%s\x22\x20<%s>','calleridname','exports','util','lodash','moment','isNil','uniqueid','queue','name','type','campaigntype','dialAnswer','Agent','channelAgent','format','membername','Contact','phone','firstName','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countdropretry'];(function(_0x13d130,_0x5c9dc1){var _0x52df35=function(_0x3806a0){while(--_0x3806a0){_0x13d130['push'](_0x13d130['shift']());}};_0x52df35(++_0x5c9dc1);}(_0x955f,0x1eb));var _0xf955=function(_0x4d5408,_0x284bd2){_0x4d5408=_0x4d5408-0x0;var _0x3df6d6=_0x955f[_0x4d5408];return _0x3df6d6;};'use strict';var util=require(_0xf955('0x0'));var _=require(_0xf955('0x1'));var moment=require(_0xf955('0x2'));function checkNameSurname(_0x382225,_0x2834f7,_0x585f6e){var _0xd75c8f='';if(!_['isNil'](_0x2834f7)&&'string'===typeof _0x2834f7){_0xd75c8f+=_0x2834f7;}if(!_[_0xf955('0x3')](_0x585f6e)&&'string'===typeof _0x585f6e){_0xd75c8f+='\x20'+_0x585f6e;}if(_0xd75c8f!==''){return _0xd75c8f;}return _0x382225;}function Action(_0x13b796,_0x2caff2,_0x3fdac2,_0x59d5b3,_0x18432f){this[_0xf955('0x4')]=_0x3fdac2||undefined;this['idContact']=_0x13b796['id'];this[_0xf955('0x5')]=_0x2caff2[_0xf955('0x6')];this[_0xf955('0x7')]=_0x2caff2[_0xf955('0x7')];this[_0xf955('0x8')]=_0xf955('0x5');this[_0xf955('0x9')]=![];this['membername']=_[_0xf955('0x3')](_0x13b796['Agent'])?undefined:_0x13b796[_0xf955('0xa')][_0xf955('0x6')];this[_0xf955('0xb')]=this['membername']?util[_0xf955('0xc')]('SIP/%s',this[_0xf955('0xd')]):_0x59d5b3||undefined;this['calleridname']=checkNameSurname(_0x13b796[_0xf955('0xe')][_0xf955('0xf')],_0x13b796[_0xf955('0xe')][_0xf955('0x10')],_0x13b796[_0xf955('0xe')][_0xf955('0x11')]);this[_0xf955('0x12')]=_0x13b796[_0xf955('0x12')]||![];this[_0xf955('0x13')]=_0x13b796[_0xf955('0xf')];this['scheduledat']=_0x13b796[_0xf955('0x14')];this['countbusyretry']=_0x13b796[_0xf955('0x15')]||0x0;this[_0xf955('0x16')]=_0x13b796[_0xf955('0x16')]||0x0;this[_0xf955('0x17')]=_0x13b796['countnoanswerretry']||0x0;this['countglobal']=(_0x13b796[_0xf955('0x15')]||0x0)+(_0x13b796[_0xf955('0x16')]||0x0)+(_0x13b796[_0xf955('0x17')]||0x0)+(_0x13b796['countnosuchnumberretry']||0x0)+(_0x13b796[_0xf955('0x18')]||0x0)+(_0x13b796[_0xf955('0x19')]||0x0)+(_0x13b796[_0xf955('0x1a')]||0x0)+(_0x13b796[_0xf955('0x1b')]||0x0);this[_0xf955('0x1c')]=_0x13b796['countnosuchnumberretry']||0x0;this[_0xf955('0x18')]=_0x13b796[_0xf955('0x18')]||0x0;this[_0xf955('0x19')]=_0x13b796['countabandonedretry']||0x0;this[_0xf955('0x1a')]=_0x13b796['countmachineretry']||0x0;this[_0xf955('0x1b')]=_0x13b796[_0xf955('0x1b')]||0x0;this[_0xf955('0x1d')]=_0x13b796[_0xf955('0x1d')];this[_0xf955('0x1e')]=_0x13b796['callbackuniqueid'];this[_0xf955('0x1f')]=_0x13b796[_0xf955('0x1f')];this[_0xf955('0x20')]=_0x13b796[_0xf955('0x20')];this[_0xf955('0x21')]=_0x13b796[_0xf955('0x21')];this[_0xf955('0x22')]=_0x13b796['ListId'];this[_0xf955('0x23')]=_[_0xf955('0x3')](_0x13b796[_0xf955('0xa')])?_0x13b796[_0xf955('0x23')]:_0x13b796[_0xf955('0xa')]['id'];this[_0xf955('0x24')]=_0x13b796[_0xf955('0x24')];this['originatecalleridnum']='';this[_0xf955('0x25')]='';}Action[_0xf955('0x26')][_0xf955('0x27')]=function(){return util[_0xf955('0xc')](_0xf955('0x28'),this[_0xf955('0x29')],this['number']);};module[_0xf955('0x2a')]=Action;
\ No newline at end of file
+var _0x6343=['format','SIP/%s','calleridname','Contact','phone','firstName','lastName','active','calleridnum','scheduledat','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countmachineretry','countagentrejectretry','countabandonedretry','callback','callbackuniqueid','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','number','moment','string','isNil','queue','name','type','campaigntype','Agent','channelAgent','membername'];(function(_0x3c896c,_0x1cba86){var _0x44af1c=function(_0x252c14){while(--_0x252c14){_0x3c896c['push'](_0x3c896c['shift']());}};_0x44af1c(++_0x1cba86);}(_0x6343,0x168));var _0x3634=function(_0xfc254a,_0x569cc7){_0xfc254a=_0xfc254a-0x0;var _0x3bfbe3=_0x6343[_0xfc254a];return _0x3bfbe3;};'use strict';var util=require('util');var _=require('lodash');var moment=require(_0x3634('0x0'));function checkNameSurname(_0x26d852,_0x53a78f,_0x518246){var _0x5a4621='';if(!_['isNil'](_0x53a78f)&&_0x3634('0x1')===typeof _0x53a78f){_0x5a4621+=_0x53a78f;}if(!_[_0x3634('0x2')](_0x518246)&&'string'===typeof _0x518246){_0x5a4621+='\x20'+_0x518246;}if(_0x5a4621!==''){return _0x5a4621;}return _0x26d852;}function Action(_0x247964,_0x388c18,_0x4bb496,_0x302828,_0xd40513){this['uniqueid']=_0x4bb496||undefined;this['idContact']=_0x247964['id'];this[_0x3634('0x3')]=_0x388c18[_0x3634('0x4')];this[_0x3634('0x5')]=_0x388c18[_0x3634('0x5')];this[_0x3634('0x6')]=_0x3634('0x3');this['dialAnswer']=![];this['membername']=_[_0x3634('0x2')](_0x247964[_0x3634('0x7')])?undefined:_0x247964['Agent'][_0x3634('0x4')];this[_0x3634('0x8')]=this[_0x3634('0x9')]?util[_0x3634('0xa')](_0x3634('0xb'),this[_0x3634('0x9')]):_0x302828||undefined;this[_0x3634('0xc')]=checkNameSurname(_0x247964[_0x3634('0xd')][_0x3634('0xe')],_0x247964[_0x3634('0xd')][_0x3634('0xf')],_0x247964[_0x3634('0xd')][_0x3634('0x10')]);this[_0x3634('0x11')]=_0x247964['active']||![];this[_0x3634('0x12')]=_0x247964['phone'];this[_0x3634('0x13')]=_0x247964[_0x3634('0x13')];this[_0x3634('0x14')]=_0x247964[_0x3634('0x14')]||0x0;this[_0x3634('0x15')]=_0x247964['countcongestionretry']||0x0;this[_0x3634('0x16')]=_0x247964['countnoanswerretry']||0x0;this['countglobal']=(_0x247964[_0x3634('0x14')]||0x0)+(_0x247964['countcongestionretry']||0x0)+(_0x247964[_0x3634('0x16')]||0x0)+(_0x247964[_0x3634('0x17')]||0x0)+(_0x247964[_0x3634('0x18')]||0x0)+(_0x247964['countabandonedretry']||0x0)+(_0x247964[_0x3634('0x19')]||0x0)+(_0x247964[_0x3634('0x1a')]||0x0);this['countnosuchnumberretry']=_0x247964[_0x3634('0x17')]||0x0;this['countdropretry']=_0x247964[_0x3634('0x18')]||0x0;this[_0x3634('0x1b')]=_0x247964['countabandonedretry']||0x0;this[_0x3634('0x19')]=_0x247964[_0x3634('0x19')]||0x0;this[_0x3634('0x1a')]=_0x247964['countagentrejectretry']||0x0;this[_0x3634('0x1c')]=_0x247964[_0x3634('0x1c')];this['callbackuniqueid']=_0x247964[_0x3634('0x1d')];this['callbackat']=_0x247964['callbackat'];this[_0x3634('0x1e')]=_0x247964[_0x3634('0x1e')];this['ContactId']=_0x247964[_0x3634('0x1f')];this[_0x3634('0x20')]=_0x247964[_0x3634('0x20')];this[_0x3634('0x21')]=_[_0x3634('0x2')](_0x247964[_0x3634('0x7')])?_0x247964[_0x3634('0x21')]:_0x247964[_0x3634('0x7')]['id'];this[_0x3634('0x22')]=_0x247964['VoiceQueueId'];this[_0x3634('0x23')]='';this['originatecalleridname']='';}Action['prototype']['getCaller']=function(){return util[_0x3634('0xa')]('\x22%s\x22\x20<%s>',this[_0x3634('0xc')],this[_0x3634('0x24')]);};module['exports']=Action;
\ No newline at end of file