Built motion from commit (unavailable).|2.4.10
[motion2.git] / server / services / ami / dialer / agentComplete.js
index c161e82..6a603d5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x32f0=['diff','seconds','state','statedesc','Answer','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','uniqueid','number','starttime','responsetime','answertime','endtime','format','YYYY-MM-DD\x20HH:mm:ss','holdtime','talktime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ListId','UserId','CampaignId','originatecalleridnum','originatecalleridname','lodash','milliseconds'];(function(_0x3adba3,_0x55942d){var _0x146460=function(_0x9d967d){while(--_0x9d967d){_0x3adba3['push'](_0x3adba3['shift']());}};_0x146460(++_0x55942d);}(_0x32f0,0x67));var _0x032f=function(_0x29db36,_0x410ae9){_0x29db36=_0x29db36-0x0;var _0x234e87=_0x32f0[_0x29db36];return _0x234e87;};'use strict';var util=require('util');var _=require(_0x032f('0x0'));var moment=require('moment');function getSeconds(_0x3f1433,_0x5c1484){var _0xf7838e=moment(_0x3f1433)[_0x032f('0x1')](0x0);var _0x9e26a8=moment(_0x5c1484)['milliseconds'](0x0);return _0xf7838e[_0x032f('0x2')](_0x9e26a8,_0x032f('0x3'));}function AgentComplete(_0x4315e3,_0x392a60){this[_0x032f('0x4')]=0x4;this[_0x032f('0x5')]=_0x032f('0x6');this[_0x032f('0x7')]=_0x4315e3[_0x032f('0x7')];this[_0x032f('0x8')]=_0x4315e3['type'];this[_0x032f('0x9')]=_0x4315e3[_0x032f('0x8')]==='outbound'?_0x032f('0xa'):_0x4315e3[_0x032f('0x8')];this[_0x032f('0xb')]=_0x4315e3[_0x032f('0xb')];this[_0x032f('0xc')]=_0x4315e3['countcongestionretry'];this[_0x032f('0xd')]=_0x4315e3[_0x032f('0xd')];this['countglobal']=_0x4315e3[_0x032f('0xb')]+_0x4315e3[_0x032f('0xc')]+_0x4315e3[_0x032f('0xd')];this[_0x032f('0xe')]=_0x392a60[_0x032f('0xe')];this['calleridname']=_0x4315e3['name'];this['calleridnum']=_0x4315e3[_0x032f('0xf')];this['starttime']=_0x4315e3[_0x032f('0x10')];this['responsetime']=_0x4315e3[_0x032f('0x11')];this[_0x032f('0x12')]=_0x4315e3[_0x032f('0x12')];this[_0x032f('0x13')]=moment()[_0x032f('0x14')](_0x032f('0x15'));this['ringtime']=getSeconds(_0x4315e3[_0x032f('0x11')],_0x4315e3['starttime']);this[_0x032f('0x16')]=getSeconds(_0x4315e3[_0x032f('0x12')],_0x4315e3[_0x032f('0x11')]);this[_0x032f('0x17')]=getSeconds(this['endtime'],_0x4315e3[_0x032f('0x12')]);this[_0x032f('0xa')]=_0x392a60[_0x032f('0xa')];this[_0x032f('0x18')]=_0x392a60[_0x032f('0x18')];this[_0x032f('0x19')]=_0x392a60[_0x032f('0x19')];this[_0x032f('0x1a')]=_0x4315e3[_0x032f('0x1a')];this['callbackuniqueid']=_0x4315e3[_0x032f('0x1b')];this[_0x032f('0x1c')]=_0x4315e3['callbackat'];this[_0x032f('0x1d')]=_0x4315e3['recallme'];this['ContactId']=_0x4315e3['ContactId'];this[_0x032f('0x1e')]=_0x4315e3['ListId'];this[_0x032f('0x1f')]=_0x4315e3[_0x032f('0x1f')];this['VoiceQueueId']=_0x4315e3['VoiceQueueId'];this[_0x032f('0x20')]=_0x4315e3[_0x032f('0x20')];this[_0x032f('0x21')]=_0x4315e3[_0x032f('0x21')]||'';this[_0x032f('0x22')]=_0x4315e3['originatecalleridname']||'';}module['exports']=AgentComplete;
\ No newline at end of file
+var _0xc2e4=['seconds','state','statedesc','Answer','scheduledat','type','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','uniqueid','calleridname','calleridnum','number','starttime','responsetime','answertime','YYYY-MM-DD\x20HH:mm:ss','ringtime','holdtime','talktime','endtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','VoiceQueueId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff'];(function(_0x2315c2,_0x42a052){var _0x5ead85=function(_0x49639e){while(--_0x49639e){_0x2315c2['push'](_0x2315c2['shift']());}};_0x5ead85(++_0x42a052);}(_0xc2e4,0x1be));var _0x4c2e=function(_0x88001a,_0x3b22c7){_0x88001a=_0x88001a-0x0;var _0xe14b7e=_0xc2e4[_0x88001a];return _0xe14b7e;};'use strict';var util=require(_0x4c2e('0x0'));var _=require(_0x4c2e('0x1'));var moment=require(_0x4c2e('0x2'));function getSeconds(_0x2a7a8e,_0x18f764){var _0x1f017e=moment(_0x2a7a8e)[_0x4c2e('0x3')](0x0);var _0x76f015=moment(_0x18f764)[_0x4c2e('0x3')](0x0);return _0x1f017e[_0x4c2e('0x4')](_0x76f015,_0x4c2e('0x5'));}function AgentComplete(_0x4ea02c,_0x298138){this[_0x4c2e('0x6')]=0x4;this[_0x4c2e('0x7')]=_0x4c2e('0x8');this['scheduledat']=_0x4ea02c[_0x4c2e('0x9')];this[_0x4c2e('0xa')]=_0x4ea02c[_0x4c2e('0xa')];this['campaigntype']=_0x4ea02c['type']===_0x4c2e('0xb')?_0x4c2e('0xc'):_0x4ea02c[_0x4c2e('0xa')];this['countbusyretry']=_0x4ea02c[_0x4c2e('0xd')];this['countcongestionretry']=_0x4ea02c[_0x4c2e('0xe')];this[_0x4c2e('0xf')]=_0x4ea02c['countnoanswerretry'];this[_0x4c2e('0x10')]=_0x4ea02c[_0x4c2e('0xd')]+_0x4ea02c[_0x4c2e('0xe')]+_0x4ea02c[_0x4c2e('0xf')];this[_0x4c2e('0x11')]=_0x298138[_0x4c2e('0x11')];this[_0x4c2e('0x12')]=_0x4ea02c['name'];this[_0x4c2e('0x13')]=_0x4ea02c[_0x4c2e('0x14')];this[_0x4c2e('0x15')]=_0x4ea02c[_0x4c2e('0x15')];this['responsetime']=_0x4ea02c[_0x4c2e('0x16')];this[_0x4c2e('0x17')]=_0x4ea02c[_0x4c2e('0x17')];this['endtime']=moment()['format'](_0x4c2e('0x18'));this[_0x4c2e('0x19')]=getSeconds(_0x4ea02c[_0x4c2e('0x16')],_0x4ea02c[_0x4c2e('0x15')]);this[_0x4c2e('0x1a')]=getSeconds(_0x4ea02c[_0x4c2e('0x17')],_0x4ea02c[_0x4c2e('0x16')]);this[_0x4c2e('0x1b')]=getSeconds(this[_0x4c2e('0x1c')],_0x4ea02c[_0x4c2e('0x17')]);this['queue']=_0x298138[_0x4c2e('0xc')];this[_0x4c2e('0x1d')]=_0x298138[_0x4c2e('0x1d')];this[_0x4c2e('0x1e')]=_0x298138[_0x4c2e('0x1e')];this[_0x4c2e('0x1f')]=_0x4ea02c[_0x4c2e('0x1f')];this[_0x4c2e('0x20')]=_0x4ea02c[_0x4c2e('0x20')];this['callbackat']=_0x4ea02c[_0x4c2e('0x21')];this[_0x4c2e('0x22')]=_0x4ea02c[_0x4c2e('0x22')];this[_0x4c2e('0x23')]=_0x4ea02c['ContactId'];this[_0x4c2e('0x24')]=_0x4ea02c[_0x4c2e('0x24')];this['UserId']=_0x4ea02c['UserId'];this[_0x4c2e('0x25')]=_0x4ea02c['VoiceQueueId'];this['CampaignId']=_0x4ea02c['CampaignId'];this[_0x4c2e('0x26')]=_0x4ea02c[_0x4c2e('0x26')]||'';this[_0x4c2e('0x27')]=_0x4ea02c['originatecalleridname']||'';}module[_0x4c2e('0x28')]=AgentComplete;
\ No newline at end of file