Built motion from commit (unavailable).|2.4.3
[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 _0xbc61=['recallme','ContactId','ListId','UserId','VoiceQueueId','CampaignId','originatecalleridnum','originatecalleridname','exports','util','lodash','moment','milliseconds','diff','seconds','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','calleridname','name','calleridnum','number','starttime','responsetime','endtime','holdtime','talktime','callback','callbackat'];(function(_0x243b59,_0x3f9495){var _0x3e1676=function(_0x354052){while(--_0x354052){_0x243b59['push'](_0x243b59['shift']());}};_0x3e1676(++_0x3f9495);}(_0xbc61,0x1ad));var _0x1bc6=function(_0xc5bf4b,_0x17a413){_0xc5bf4b=_0xc5bf4b-0x0;var _0x3f8f9b=_0xbc61[_0xc5bf4b];return _0x3f8f9b;};'use strict';var util=require(_0x1bc6('0x0'));var _=require(_0x1bc6('0x1'));var moment=require(_0x1bc6('0x2'));function getSeconds(_0x459a15,_0x19d422){var _0x4fa90a=moment(_0x459a15)[_0x1bc6('0x3')](0x0);var _0x402316=moment(_0x19d422)[_0x1bc6('0x3')](0x0);return _0x4fa90a[_0x1bc6('0x4')](_0x402316,_0x1bc6('0x5'));}function History(_0xc8ad37){this[_0x1bc6('0x6')]=_0xc8ad37[_0x1bc6('0x6')];this[_0x1bc6('0x7')]=_0xc8ad37['scheduledat']||undefined;this[_0x1bc6('0x8')]=_0xc8ad37[_0x1bc6('0x8')];this[_0x1bc6('0x9')]=_0xc8ad37[_0x1bc6('0x8')]===_0x1bc6('0xa')?_0x1bc6('0xb'):_0xc8ad37[_0x1bc6('0x8')];this[_0x1bc6('0xc')]=_0xc8ad37[_0x1bc6('0xc')];this[_0x1bc6('0xd')]=_0xc8ad37[_0x1bc6('0xd')];this[_0x1bc6('0xe')]=_0xc8ad37['countnoanswerretry'];this['countglobal']=_0xc8ad37[_0x1bc6('0xc')]+_0xc8ad37[_0x1bc6('0xd')]+_0xc8ad37[_0x1bc6('0xe')];this['queue']=_0xc8ad37[_0x1bc6('0xb')];this[_0x1bc6('0xf')]=_0xc8ad37[_0x1bc6('0x10')];this[_0x1bc6('0x11')]=_0xc8ad37[_0x1bc6('0x12')];this[_0x1bc6('0x13')]=_0xc8ad37[_0x1bc6('0x13')];this['responsetime']=_0xc8ad37[_0x1bc6('0x14')];this[_0x1bc6('0x15')]=_0xc8ad37[_0x1bc6('0x14')];this['ringtime']=getSeconds(_0xc8ad37[_0x1bc6('0x14')],_0xc8ad37[_0x1bc6('0x13')]);this[_0x1bc6('0x16')]=0x0;this[_0x1bc6('0x17')]=0x0;this['callback']=_0xc8ad37[_0x1bc6('0x18')];this['callbackuniqueid']=_0xc8ad37['callbackuniqueid'];this['callbackat']=_0xc8ad37[_0x1bc6('0x19')];this[_0x1bc6('0x1a')]=_0xc8ad37[_0x1bc6('0x1a')];this['ContactId']=_0xc8ad37[_0x1bc6('0x1b')];this['ListId']=_0xc8ad37[_0x1bc6('0x1c')];this[_0x1bc6('0x1d')]=_0xc8ad37[_0x1bc6('0x1d')];this[_0x1bc6('0x1e')]=_0xc8ad37['VoiceQueueId'];this[_0x1bc6('0x1f')]=_0xc8ad37['CampaignId'];this[_0x1bc6('0x20')]=_0xc8ad37[_0x1bc6('0x20')]||'';this[_0x1bc6('0x21')]=_0xc8ad37[_0x1bc6('0x21')]||'';}module[_0x1bc6('0x22')]=History;