Built motion from commit (unavailable).|2.4.3
[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 _0x97ce=['seconds','uniqueid','scheduledat','type','campaigntype','outbound','countbusyretry','countcongestionretry','countnoanswerretry','queue','calleridname','calleridnum','responsetime','endtime','holdtime','talktime','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','diff'];(function(_0x4854d6,_0x2f1264){var _0x3885c0=function(_0x4d564d){while(--_0x4d564d){_0x4854d6['push'](_0x4854d6['shift']());}};_0x3885c0(++_0x2f1264);}(_0x97ce,0x151));var _0xe97c=function(_0x4a3898,_0x4c9853){_0x4a3898=_0x4a3898-0x0;var _0x25ceb0=_0x97ce[_0x4a3898];return _0x25ceb0;};'use strict';var util=require(_0xe97c('0x0'));var _=require(_0xe97c('0x1'));var moment=require(_0xe97c('0x2'));function getSeconds(_0x31bf3f,_0x4d3faa){var _0x39e994=moment(_0x31bf3f)['milliseconds'](0x0);var _0x3001eb=moment(_0x4d3faa)['milliseconds'](0x0);return _0x39e994[_0xe97c('0x3')](_0x3001eb,_0xe97c('0x4'));}function Final(_0x41d9b0){this[_0xe97c('0x5')]=_0x41d9b0[_0xe97c('0x5')];this[_0xe97c('0x6')]=_0x41d9b0['scheduledat'];this[_0xe97c('0x7')]=_0x41d9b0[_0xe97c('0x7')];this[_0xe97c('0x8')]=_0x41d9b0['type']===_0xe97c('0x9')?'queue':_0x41d9b0[_0xe97c('0x7')];this[_0xe97c('0xa')]=_0x41d9b0[_0xe97c('0xa')];this[_0xe97c('0xb')]=_0x41d9b0[_0xe97c('0xb')];this[_0xe97c('0xc')]=_0x41d9b0[_0xe97c('0xc')];this['countglobal']=_0x41d9b0[_0xe97c('0xa')]+_0x41d9b0[_0xe97c('0xb')]+_0x41d9b0[_0xe97c('0xc')];this[_0xe97c('0xd')]=_0x41d9b0[_0xe97c('0xd')];this[_0xe97c('0xe')]=_0x41d9b0[_0xe97c('0xe')];this[_0xe97c('0xf')]=_0x41d9b0[_0xe97c('0xf')];this['starttime']=_0x41d9b0['starttime'];this[_0xe97c('0x10')]=_0x41d9b0['responsetime'];this[_0xe97c('0x11')]=_0x41d9b0[_0xe97c('0x10')];this['ringtime']=_0x41d9b0['ringtime']||0x0;this[_0xe97c('0x12')]=_0x41d9b0[_0xe97c('0x12')]||0x0;this[_0xe97c('0x13')]=_0x41d9b0[_0xe97c('0x13')]||0x0;this['callback']=_0x41d9b0['callback'];this['callbackuniqueid']=_0x41d9b0[_0xe97c('0x14')];this[_0xe97c('0x15')]=_0x41d9b0[_0xe97c('0x15')];this['recallme']=_0x41d9b0[_0xe97c('0x16')];this[_0xe97c('0x17')]=_0x41d9b0[_0xe97c('0x17')];this[_0xe97c('0x18')]=_0x41d9b0[_0xe97c('0x18')];this['UserId']=_0x41d9b0[_0xe97c('0x19')];this[_0xe97c('0x1a')]=_0x41d9b0[_0xe97c('0x1a')];this[_0xe97c('0x1b')]=_0x41d9b0[_0xe97c('0x1b')];this[_0xe97c('0x1c')]=_0x41d9b0[_0xe97c('0x1c')]||'';this[_0xe97c('0x1d')]=_0x41d9b0[_0xe97c('0x1d')]||'';}module[_0xe97c('0x1e')]=Final;