Built motion from commit 497d3d92.|2.5.43
[motion2.git] / server / services / ami / dialer / queueCallerAbandon.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x0e8a=['originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','name','calleridnum','number','starttime','droptime','ringtime','responsetime','holdtime','membername','reason','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum'];(function(_0x180df8,_0x1c72e2){var _0x5f18ae=function(_0x4bc412){while(--_0x4bc412){_0x180df8['push'](_0x180df8['shift']());}};_0x5f18ae(++_0x1c72e2);}(_0x0e8a,0x1e6));var _0xa0e8=function(_0x1b40b5,_0x25e063){_0x1b40b5=_0x1b40b5-0x0;var _0x5f0a6e=_0x0e8a[_0x1b40b5];return _0x5f0a6e;};'use strict';var util=require(_0xa0e8('0x0'));var _=require(_0xa0e8('0x1'));var moment=require(_0xa0e8('0x2'));function getSeconds(_0x52f67c,_0x216be3){var _0x5a352a=moment(_0x52f67c)['milliseconds'](0x0);var _0x24687c=moment(_0x216be3)[_0xa0e8('0x3')](0x0);return _0x5a352a[_0xa0e8('0x4')](_0x24687c,_0xa0e8('0x5'));}function QueueCallerAbandon(_0x3b6fe0,_0x349e51){this[_0xa0e8('0x6')]=_0x3b6fe0[_0xa0e8('0x6')];this['type']=_0x3b6fe0[_0xa0e8('0x7')];this[_0xa0e8('0x8')]=_0x3b6fe0[_0xa0e8('0x7')]===_0xa0e8('0x9')?_0xa0e8('0xa'):_0x3b6fe0[_0xa0e8('0x7')];this[_0xa0e8('0xb')]=_0x3b6fe0[_0xa0e8('0xb')];this[_0xa0e8('0xc')]=_0x3b6fe0[_0xa0e8('0xc')];this[_0xa0e8('0xd')]=_0x3b6fe0[_0xa0e8('0xd')];this[_0xa0e8('0xe')]=_0x3b6fe0['countbusyretry']+_0x3b6fe0[_0xa0e8('0xc')]+_0x3b6fe0[_0xa0e8('0xd')]+_0x3b6fe0[_0xa0e8('0xf')]+_0x3b6fe0[_0xa0e8('0x10')]+_0x3b6fe0[_0xa0e8('0x11')]+_0x3b6fe0[_0xa0e8('0x12')]+_0x3b6fe0[_0xa0e8('0x13')];this[_0xa0e8('0xf')]=_0x3b6fe0['countnosuchnumberretry'];this[_0xa0e8('0x10')]=_0x3b6fe0[_0xa0e8('0x10')];this[_0xa0e8('0x11')]=_0x3b6fe0[_0xa0e8('0x11')];this[_0xa0e8('0x12')]=_0x3b6fe0[_0xa0e8('0x12')];this[_0xa0e8('0x13')]=_0x3b6fe0['countagentrejectretry'];this['uniqueid']=_0x349e51[_0xa0e8('0x14')];this[_0xa0e8('0x15')]=_0x3b6fe0[_0xa0e8('0x16')];this[_0xa0e8('0x17')]=_0x3b6fe0[_0xa0e8('0x18')];this[_0xa0e8('0x19')]=_0x3b6fe0[_0xa0e8('0x19')];this['responsetime']=_0x3b6fe0['responsetime'];this[_0xa0e8('0x1a')]=_0x3b6fe0[_0xa0e8('0x1a')];this['endtime']=this[_0xa0e8('0x1a')];this[_0xa0e8('0x1b')]=getSeconds(_0x3b6fe0[_0xa0e8('0x1c')],_0x3b6fe0[_0xa0e8('0x19')]);this[_0xa0e8('0x1d')]=getSeconds(this[_0xa0e8('0x1a')],_0x3b6fe0[_0xa0e8('0x1c')]);this['talktime']=0x0;this[_0xa0e8('0xa')]=_0x349e51[_0xa0e8('0xa')];this[_0xa0e8('0x1e')]=_0x349e51['connectedlinename'];this[_0xa0e8('0x1f')]=_0x349e51[_0xa0e8('0x1f')];this[_0xa0e8('0x20')]=_0x3b6fe0[_0xa0e8('0x20')];this[_0xa0e8('0x21')]=_0x3b6fe0[_0xa0e8('0x21')];this[_0xa0e8('0x22')]=_0x3b6fe0[_0xa0e8('0x22')];this[_0xa0e8('0x23')]=_0x3b6fe0[_0xa0e8('0x23')];this['ContactId']=_0x3b6fe0[_0xa0e8('0x24')];this[_0xa0e8('0x25')]=_0x3b6fe0[_0xa0e8('0x25')];this[_0xa0e8('0x26')]=_0x3b6fe0[_0xa0e8('0x26')];this[_0xa0e8('0x27')]=_0x3b6fe0['VoiceQueueId'];this['CampaignId']=_0x3b6fe0[_0xa0e8('0x28')];this[_0xa0e8('0x29')]=_0x3b6fe0[_0xa0e8('0x29')]||'';this[_0xa0e8('0x2a')]=_0x3b6fe0[_0xa0e8('0x2a')]||'';}module[_0xa0e8('0x2b')]=QueueCallerAbandon;