e882330b6bc40bc4984c790e74b6d1e4c7825f60
[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 _0x030e=['responsetime','endtime','ringtime','starttime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','uniqueid','type','campaigntype','outbound','queue','countcongestionretry','countnoanswerretry','countbusyretry','countmachineretry','countagentrejectretry','countnosuchnumberretry','countdropretry','countabandonedretry','calleridname','name','calleridnum','number'];(function(_0x4dc3c2,_0x11e73e){var _0x31f644=function(_0x2f501e){while(--_0x2f501e){_0x4dc3c2['push'](_0x4dc3c2['shift']());}};_0x31f644(++_0x11e73e);}(_0x030e,0x1bd));var _0xe030=function(_0x44bb29,_0x41924e){_0x44bb29=_0x44bb29-0x0;var _0x2e34fd=_0x030e[_0x44bb29];return _0x2e34fd;};'use strict';var util=require(_0xe030('0x0'));var _=require(_0xe030('0x1'));var moment=require(_0xe030('0x2'));function getSeconds(_0x25c19f,_0x518ea9){var _0x498190=moment(_0x25c19f)['milliseconds'](0x0);var _0xc68663=moment(_0x518ea9)[_0xe030('0x3')](0x0);return _0x498190[_0xe030('0x4')](_0xc68663,_0xe030('0x5'));}function AdditionalPhone(_0x8be6af){this[_0xe030('0x6')]=_0x8be6af['uniqueid'];this['scheduledat']=_0x8be6af['scheduledat']||undefined;this['type']=_0x8be6af[_0xe030('0x7')];this[_0xe030('0x8')]=_0x8be6af[_0xe030('0x7')]===_0xe030('0x9')?_0xe030('0xa'):_0x8be6af[_0xe030('0x7')];this['countbusyretry']=_0x8be6af['countbusyretry'];this[_0xe030('0xb')]=_0x8be6af['countcongestionretry'];this[_0xe030('0xc')]=_0x8be6af[_0xe030('0xc')];this['countglobal']=_0x8be6af[_0xe030('0xd')]+_0x8be6af[_0xe030('0xb')]+_0x8be6af[_0xe030('0xc')]+_0x8be6af['countnosuchnumberretry']+_0x8be6af['countdropretry']+_0x8be6af['countabandonedretry']+_0x8be6af[_0xe030('0xe')]+_0x8be6af[_0xe030('0xf')];this[_0xe030('0x10')]=_0x8be6af[_0xe030('0x10')];this[_0xe030('0x11')]=_0x8be6af['countdropretry'];this['countabandonedretry']=_0x8be6af[_0xe030('0x12')];this['countmachineretry']=_0x8be6af[_0xe030('0xe')];this[_0xe030('0xf')]=_0x8be6af[_0xe030('0xf')];this['queue']=_0x8be6af['queue'];this[_0xe030('0x13')]=_0x8be6af[_0xe030('0x14')];this[_0xe030('0x15')]=_0x8be6af[_0xe030('0x16')];this['starttime']=_0x8be6af['starttime'];this[_0xe030('0x17')]=_0x8be6af[_0xe030('0x17')];this[_0xe030('0x18')]=_0x8be6af['responsetime'];this[_0xe030('0x19')]=getSeconds(_0x8be6af[_0xe030('0x17')],_0x8be6af[_0xe030('0x1a')]);this['holdtime']=0x0;this['talktime']=0x0;this['callback']=_0x8be6af[_0xe030('0x1b')];this[_0xe030('0x1c')]=_0x8be6af[_0xe030('0x1c')];this[_0xe030('0x1d')]=_0x8be6af[_0xe030('0x1d')];this[_0xe030('0x1e')]=_0x8be6af[_0xe030('0x1e')];this[_0xe030('0x1f')]=_0x8be6af['ContactId'];this['ListId']=_0x8be6af[_0xe030('0x20')];this['UserId']=_0x8be6af[_0xe030('0x21')];this[_0xe030('0x22')]=_0x8be6af['VoiceQueueId'];this['CampaignId']=_0x8be6af[_0xe030('0x23')];this[_0xe030('0x24')]=_0x8be6af['originatecalleridnum']||'';this['originatecalleridname']=_0x8be6af[_0xe030('0x25')]||'';}module[_0xe030('0x26')]=History;