Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / services / ami / dialer / final.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 _0x064d=['endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','calleridname','calleridnum','starttime','responsetime'];(function(_0x1050ba,_0x5ad911){var _0x5a99a5=function(_0x30e240){while(--_0x30e240){_0x1050ba['push'](_0x1050ba['shift']());}};_0x5a99a5(++_0x5ad911);}(_0x064d,0x178));var _0xd064=function(_0x1854ba,_0x109e2){_0x1854ba=_0x1854ba-0x0;var _0xafcdba=_0x064d[_0x1854ba];return _0xafcdba;};'use strict';var util=require(_0xd064('0x0'));var _=require(_0xd064('0x1'));var moment=require(_0xd064('0x2'));function getSeconds(_0x1e912b,_0xd98497){var _0x1a859a=moment(_0x1e912b)[_0xd064('0x3')](0x0);var _0x21a183=moment(_0xd98497)[_0xd064('0x3')](0x0);return _0x1a859a[_0xd064('0x4')](_0x21a183,_0xd064('0x5'));}function Final(_0x57c12a){this[_0xd064('0x6')]=_0x57c12a[_0xd064('0x6')];this[_0xd064('0x7')]=_0x57c12a[_0xd064('0x7')];this[_0xd064('0x8')]=_0x57c12a[_0xd064('0x8')];this[_0xd064('0x9')]=_0x57c12a[_0xd064('0x8')]===_0xd064('0xa')?_0xd064('0xb'):_0x57c12a[_0xd064('0x8')];this[_0xd064('0xc')]=_0x57c12a[_0xd064('0xc')];this[_0xd064('0xd')]=_0x57c12a[_0xd064('0xd')];this['countnoanswerretry']=_0x57c12a[_0xd064('0xe')];this['countglobal']=_0x57c12a[_0xd064('0xc')]+_0x57c12a['countcongestionretry']+_0x57c12a[_0xd064('0xe')]+_0x57c12a[_0xd064('0xf')]+_0x57c12a['countdropretry']+_0x57c12a[_0xd064('0x10')]+_0x57c12a[_0xd064('0x11')]+_0x57c12a[_0xd064('0x12')];this[_0xd064('0xf')]=_0x57c12a[_0xd064('0xf')];this['countdropretry']=_0x57c12a[_0xd064('0x13')];this[_0xd064('0x10')]=_0x57c12a[_0xd064('0x10')];this[_0xd064('0x11')]=_0x57c12a['countmachineretry'];this[_0xd064('0x12')]=_0x57c12a[_0xd064('0x12')];this[_0xd064('0xb')]=_0x57c12a['queue'];this['calleridname']=_0x57c12a[_0xd064('0x14')];this[_0xd064('0x15')]=_0x57c12a[_0xd064('0x15')];this[_0xd064('0x16')]=_0x57c12a['starttime'];this['responsetime']=_0x57c12a[_0xd064('0x17')];this[_0xd064('0x18')]=_0x57c12a[_0xd064('0x17')];this[_0xd064('0x19')]=_0x57c12a[_0xd064('0x19')]||0x0;this[_0xd064('0x1a')]=_0x57c12a[_0xd064('0x1a')]||0x0;this['talktime']=_0x57c12a[_0xd064('0x1b')]||0x0;this[_0xd064('0x1c')]=_0x57c12a[_0xd064('0x1c')];this[_0xd064('0x1d')]=_0x57c12a[_0xd064('0x1d')];this[_0xd064('0x1e')]=_0x57c12a[_0xd064('0x1e')];this['recallme']=_0x57c12a[_0xd064('0x1f')];this[_0xd064('0x20')]=_0x57c12a[_0xd064('0x20')];this[_0xd064('0x21')]=_0x57c12a[_0xd064('0x21')];this[_0xd064('0x22')]=_0x57c12a[_0xd064('0x22')];this[_0xd064('0x23')]=_0x57c12a['VoiceQueueId'];this[_0xd064('0x24')]=_0x57c12a[_0xd064('0x24')];this[_0xd064('0x25')]=_0x57c12a[_0xd064('0x25')]||'';this[_0xd064('0x26')]=_0x57c12a[_0xd064('0x26')]||'';}module[_0xd064('0x27')]=Final;