Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / services / ami / dialer / additionalPhone.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 _0xee8e=['ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','util','lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','campaigntype','queue','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countabandonedretry','countmachineretry','countagentrejectretry','countdropretry','name','calleridnum','number','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid','callbackat','recallme'];(function(_0x9edfd5,_0x286486){var _0x330738=function(_0x4aceb3){while(--_0x4aceb3){_0x9edfd5['push'](_0x9edfd5['shift']());}};_0x330738(++_0x286486);}(_0xee8e,0x15c));var _0xeee8=function(_0x4a98b4,_0x3d7b61){_0x4a98b4=_0x4a98b4-0x0;var _0x4c443a=_0xee8e[_0x4a98b4];return _0x4c443a;};'use strict';var util=require(_0xeee8('0x0'));var _=require(_0xeee8('0x1'));var moment=require(_0xeee8('0x2'));function getSeconds(_0x49580a,_0x1e9fe4){var _0x83551d=moment(_0x49580a)[_0xeee8('0x3')](0x0);var _0x5a3af5=moment(_0x1e9fe4)['milliseconds'](0x0);return _0x83551d[_0xeee8('0x4')](_0x5a3af5,_0xeee8('0x5'));}function AdditionalPhone(_0x404f0a){this[_0xeee8('0x6')]=_0x404f0a[_0xeee8('0x6')];this[_0xeee8('0x7')]=_0x404f0a[_0xeee8('0x7')]||undefined;this[_0xeee8('0x8')]=_0x404f0a['type'];this[_0xeee8('0x9')]=_0x404f0a[_0xeee8('0x8')]==='outbound'?_0xeee8('0xa'):_0x404f0a[_0xeee8('0x8')];this[_0xeee8('0xb')]=_0x404f0a[_0xeee8('0xb')];this[_0xeee8('0xc')]=_0x404f0a[_0xeee8('0xc')];this[_0xeee8('0xd')]=_0x404f0a['countnoanswerretry'];this['countglobal']=_0x404f0a[_0xeee8('0xb')]+_0x404f0a['countcongestionretry']+_0x404f0a[_0xeee8('0xd')]+_0x404f0a[_0xeee8('0xe')]+_0x404f0a['countdropretry']+_0x404f0a[_0xeee8('0xf')]+_0x404f0a[_0xeee8('0x10')]+_0x404f0a[_0xeee8('0x11')];this['countnosuchnumberretry']=_0x404f0a['countnosuchnumberretry'];this[_0xeee8('0x12')]=_0x404f0a[_0xeee8('0x12')];this[_0xeee8('0xf')]=_0x404f0a[_0xeee8('0xf')];this[_0xeee8('0x10')]=_0x404f0a[_0xeee8('0x10')];this['countagentrejectretry']=_0x404f0a[_0xeee8('0x11')];this[_0xeee8('0xa')]=_0x404f0a[_0xeee8('0xa')];this['calleridname']=_0x404f0a[_0xeee8('0x13')];this[_0xeee8('0x14')]=_0x404f0a[_0xeee8('0x15')];this[_0xeee8('0x16')]=_0x404f0a[_0xeee8('0x16')];this['responsetime']=_0x404f0a[_0xeee8('0x17')];this[_0xeee8('0x18')]=_0x404f0a[_0xeee8('0x17')];this[_0xeee8('0x19')]=getSeconds(_0x404f0a[_0xeee8('0x17')],_0x404f0a[_0xeee8('0x16')]);this[_0xeee8('0x1a')]=0x0;this[_0xeee8('0x1b')]=0x0;this[_0xeee8('0x1c')]=_0x404f0a[_0xeee8('0x1c')];this[_0xeee8('0x1d')]=_0x404f0a[_0xeee8('0x1d')];this[_0xeee8('0x1e')]=_0x404f0a[_0xeee8('0x1e')];this[_0xeee8('0x1f')]=_0x404f0a[_0xeee8('0x1f')];this[_0xeee8('0x20')]=_0x404f0a[_0xeee8('0x20')];this[_0xeee8('0x21')]=_0x404f0a[_0xeee8('0x21')];this['UserId']=_0x404f0a[_0xeee8('0x22')];this['VoiceQueueId']=_0x404f0a[_0xeee8('0x23')];this[_0xeee8('0x24')]=_0x404f0a[_0xeee8('0x24')];this[_0xeee8('0x25')]=_0x404f0a[_0xeee8('0x25')]||'';this['originatecalleridname']=_0x404f0a['originatecalleridname']||'';}module['exports']=History;