Built motion from commit (unavailable).|2.3.96
[motion2.git] / server / services / ami / dialer / history.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 _0x6ab0=['callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','countbusyretry','countcongestionretry','countnoanswerretry','queue','calleridname','name','calleridnum','number','starttime','responsetime','endtime','ringtime','holdtime','talktime','callback','callbackuniqueid'];(function(_0xb18b17,_0x121eb1){var _0xd1ff7c=function(_0x3eea6f){while(--_0x3eea6f){_0xb18b17['push'](_0xb18b17['shift']());}};_0xd1ff7c(++_0x121eb1);}(_0x6ab0,0xff));var _0x06ab=function(_0x1a4563,_0x46ff7b){_0x1a4563=_0x1a4563-0x0;var _0x2e613a=_0x6ab0[_0x1a4563];return _0x2e613a;};'use strict';var util=require(_0x06ab('0x0'));var _=require(_0x06ab('0x1'));var moment=require(_0x06ab('0x2'));function getSeconds(_0x2b4419,_0x22daf4){var _0x4916f6=moment(_0x2b4419)[_0x06ab('0x3')](0x0);var _0x55be50=moment(_0x22daf4)['milliseconds'](0x0);return _0x4916f6[_0x06ab('0x4')](_0x55be50,_0x06ab('0x5'));}function History(_0x34441e){this['uniqueid']=_0x34441e[_0x06ab('0x6')];this[_0x06ab('0x7')]=_0x34441e[_0x06ab('0x7')]||undefined;this[_0x06ab('0x8')]=_0x34441e[_0x06ab('0x8')];this['campaigntype']=_0x34441e['type']==='outbound'?'queue':_0x34441e['type'];this[_0x06ab('0x9')]=_0x34441e[_0x06ab('0x9')];this['countcongestionretry']=_0x34441e[_0x06ab('0xa')];this['countnoanswerretry']=_0x34441e['countnoanswerretry'];this['countglobal']=_0x34441e[_0x06ab('0x9')]+_0x34441e[_0x06ab('0xa')]+_0x34441e[_0x06ab('0xb')];this[_0x06ab('0xc')]=_0x34441e[_0x06ab('0xc')];this[_0x06ab('0xd')]=_0x34441e[_0x06ab('0xe')];this[_0x06ab('0xf')]=_0x34441e[_0x06ab('0x10')];this[_0x06ab('0x11')]=_0x34441e['starttime'];this[_0x06ab('0x12')]=_0x34441e['responsetime'];this[_0x06ab('0x13')]=_0x34441e[_0x06ab('0x12')];this[_0x06ab('0x14')]=getSeconds(_0x34441e[_0x06ab('0x12')],_0x34441e[_0x06ab('0x11')]);this[_0x06ab('0x15')]=0x0;this[_0x06ab('0x16')]=0x0;this[_0x06ab('0x17')]=_0x34441e['callback'];this[_0x06ab('0x18')]=_0x34441e[_0x06ab('0x18')];this[_0x06ab('0x19')]=_0x34441e['callbackat'];this['recallme']=_0x34441e[_0x06ab('0x1a')];this[_0x06ab('0x1b')]=_0x34441e['ContactId'];this[_0x06ab('0x1c')]=_0x34441e[_0x06ab('0x1c')];this[_0x06ab('0x1d')]=_0x34441e[_0x06ab('0x1d')];this[_0x06ab('0x1e')]=_0x34441e[_0x06ab('0x1e')];this[_0x06ab('0x1f')]=_0x34441e[_0x06ab('0x1f')];this[_0x06ab('0x20')]=_0x34441e[_0x06ab('0x20')]||'';this[_0x06ab('0x21')]=_0x34441e[_0x06ab('0x21')]||'';}module[_0x06ab('0x22')]=History;