Built motion from commit (unavailable).|2.4.4
[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 _0x55c3=['queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','calleridname','calleridnum','starttime','responsetime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','campaigntype','outbound'];(function(_0x42cd36,_0x4c94b2){var _0x4de41c=function(_0x39717e){while(--_0x39717e){_0x42cd36['push'](_0x42cd36['shift']());}};_0x4de41c(++_0x4c94b2);}(_0x55c3,0x189));var _0x355c=function(_0x355f3c,_0x397435){_0x355f3c=_0x355f3c-0x0;var _0x6bf586=_0x55c3[_0x355f3c];return _0x6bf586;};'use strict';var util=require('util');var _=require(_0x355c('0x0'));var moment=require(_0x355c('0x1'));function getSeconds(_0x44f332,_0x13a884){var _0x1ff944=moment(_0x44f332)[_0x355c('0x2')](0x0);var _0x1f5257=moment(_0x13a884)[_0x355c('0x2')](0x0);return _0x1ff944[_0x355c('0x3')](_0x1f5257,_0x355c('0x4'));}function Final(_0x2b8a56){this[_0x355c('0x5')]=_0x2b8a56[_0x355c('0x5')];this[_0x355c('0x6')]=_0x2b8a56['scheduledat'];this['type']=_0x2b8a56[_0x355c('0x7')];this[_0x355c('0x8')]=_0x2b8a56[_0x355c('0x7')]===_0x355c('0x9')?_0x355c('0xa'):_0x2b8a56[_0x355c('0x7')];this[_0x355c('0xb')]=_0x2b8a56[_0x355c('0xb')];this[_0x355c('0xc')]=_0x2b8a56[_0x355c('0xc')];this[_0x355c('0xd')]=_0x2b8a56[_0x355c('0xd')];this[_0x355c('0xe')]=_0x2b8a56[_0x355c('0xb')]+_0x2b8a56['countcongestionretry']+_0x2b8a56[_0x355c('0xd')];this[_0x355c('0xa')]=_0x2b8a56['queue'];this[_0x355c('0xf')]=_0x2b8a56['calleridname'];this[_0x355c('0x10')]=_0x2b8a56[_0x355c('0x10')];this[_0x355c('0x11')]=_0x2b8a56[_0x355c('0x11')];this['responsetime']=_0x2b8a56[_0x355c('0x12')];this['endtime']=_0x2b8a56['responsetime'];this[_0x355c('0x13')]=_0x2b8a56[_0x355c('0x13')]||0x0;this[_0x355c('0x14')]=_0x2b8a56[_0x355c('0x14')]||0x0;this[_0x355c('0x15')]=_0x2b8a56[_0x355c('0x15')]||0x0;this[_0x355c('0x16')]=_0x2b8a56[_0x355c('0x16')];this[_0x355c('0x17')]=_0x2b8a56['callbackuniqueid'];this[_0x355c('0x18')]=_0x2b8a56[_0x355c('0x18')];this['recallme']=_0x2b8a56['recallme'];this['ContactId']=_0x2b8a56['ContactId'];this[_0x355c('0x19')]=_0x2b8a56[_0x355c('0x19')];this[_0x355c('0x1a')]=_0x2b8a56['UserId'];this[_0x355c('0x1b')]=_0x2b8a56[_0x355c('0x1b')];this[_0x355c('0x1c')]=_0x2b8a56[_0x355c('0x1c')];this[_0x355c('0x1d')]=_0x2b8a56[_0x355c('0x1d')]||'';this[_0x355c('0x1e')]=_0x2b8a56[_0x355c('0x1e')]||'';}module['exports']=Final;