Built motion from commit (unavailable).|2.4.18
[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 _0x225b=['talktime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','VoiceQueueId','originatecalleridnum','originatecalleridname','exports','util','lodash','milliseconds','seconds','uniqueid','scheduledat','type','campaigntype','outbound','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','calleridname','calleridnum','starttime','responsetime','endtime','ringtime','holdtime'];(function(_0x571772,_0x238a92){var _0x12f9f0=function(_0x5a44b5){while(--_0x5a44b5){_0x571772['push'](_0x571772['shift']());}};_0x12f9f0(++_0x238a92);}(_0x225b,0xb1));var _0xb225=function(_0x1ed1b0,_0x190b4c){_0x1ed1b0=_0x1ed1b0-0x0;var _0x1c1ad4=_0x225b[_0x1ed1b0];return _0x1c1ad4;};'use strict';var util=require(_0xb225('0x0'));var _=require(_0xb225('0x1'));var moment=require('moment');function getSeconds(_0x33f65f,_0x23b63e){var _0x47c446=moment(_0x33f65f)[_0xb225('0x2')](0x0);var _0x5aa828=moment(_0x23b63e)[_0xb225('0x2')](0x0);return _0x47c446['diff'](_0x5aa828,_0xb225('0x3'));}function Final(_0x8ea194){this[_0xb225('0x4')]=_0x8ea194[_0xb225('0x4')];this[_0xb225('0x5')]=_0x8ea194[_0xb225('0x5')];this[_0xb225('0x6')]=_0x8ea194['type'];this[_0xb225('0x7')]=_0x8ea194[_0xb225('0x6')]===_0xb225('0x8')?_0xb225('0x9'):_0x8ea194['type'];this[_0xb225('0xa')]=_0x8ea194[_0xb225('0xa')];this[_0xb225('0xb')]=_0x8ea194['countcongestionretry'];this[_0xb225('0xc')]=_0x8ea194[_0xb225('0xc')];this[_0xb225('0xd')]=_0x8ea194[_0xb225('0xa')]+_0x8ea194[_0xb225('0xb')]+_0x8ea194['countnoanswerretry'];this[_0xb225('0x9')]=_0x8ea194[_0xb225('0x9')];this[_0xb225('0xe')]=_0x8ea194[_0xb225('0xe')];this[_0xb225('0xf')]=_0x8ea194['calleridnum'];this['starttime']=_0x8ea194[_0xb225('0x10')];this[_0xb225('0x11')]=_0x8ea194[_0xb225('0x11')];this[_0xb225('0x12')]=_0x8ea194[_0xb225('0x11')];this[_0xb225('0x13')]=_0x8ea194[_0xb225('0x13')]||0x0;this[_0xb225('0x14')]=_0x8ea194[_0xb225('0x14')]||0x0;this[_0xb225('0x15')]=_0x8ea194[_0xb225('0x15')]||0x0;this[_0xb225('0x16')]=_0x8ea194['callback'];this[_0xb225('0x17')]=_0x8ea194[_0xb225('0x17')];this[_0xb225('0x18')]=_0x8ea194[_0xb225('0x18')];this[_0xb225('0x19')]=_0x8ea194[_0xb225('0x19')];this[_0xb225('0x1a')]=_0x8ea194[_0xb225('0x1a')];this[_0xb225('0x1b')]=_0x8ea194['ListId'];this['UserId']=_0x8ea194[_0xb225('0x1c')];this[_0xb225('0x1d')]=_0x8ea194[_0xb225('0x1d')];this['CampaignId']=_0x8ea194['CampaignId'];this[_0xb225('0x1e')]=_0x8ea194[_0xb225('0x1e')]||'';this[_0xb225('0x1f')]=_0x8ea194[_0xb225('0x1f')]||'';}module[_0xb225('0x20')]=Final;