b3a6d88362d8b7372dfec17e14b0a50e50ef4489
[motion2.git] / server / services / ami / dialer / models / 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 _0x95b1=['originatecalleridnum','originatecalleridname','state','statedesc','exports','uniqueid','scheduledat','type','queue','countbusyretry','countcongestionretry','countnoanswerretry','countglobal','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','calleridname','calleridnum','starttime','responsetime','endtime','ringtime','holdtime','callback','callbackuniqueid','callbackat','recallme','ContactId','ListId','UserId','CampaignId'];(function(_0x36eaaa,_0x326732){var _0x461349=function(_0x4e4180){while(--_0x4e4180){_0x36eaaa['push'](_0x36eaaa['shift']());}};_0x461349(++_0x326732);}(_0x95b1,0x191));var _0x195b=function(_0xaad528,_0x22d08d){_0xaad528=_0xaad528-0x0;var _0x545adb=_0x95b1[_0xaad528];return _0x545adb;};'use strict';function Final(_0x2213bb){this[_0x195b('0x0')]=_0x2213bb[_0x195b('0x0')];this[_0x195b('0x1')]=_0x2213bb[_0x195b('0x1')];this[_0x195b('0x2')]=_0x2213bb[_0x195b('0x2')];this['campaigntype']=_0x2213bb['type']==='outbound'?_0x195b('0x3'):_0x2213bb[_0x195b('0x2')];this['countbusyretry']=_0x2213bb[_0x195b('0x4')];this[_0x195b('0x5')]=_0x2213bb[_0x195b('0x5')];this[_0x195b('0x6')]=_0x2213bb['countnoanswerretry'];this[_0x195b('0x7')]=_0x2213bb[_0x195b('0x4')]+_0x2213bb[_0x195b('0x5')]+_0x2213bb['countnoanswerretry']+_0x2213bb[_0x195b('0x8')]+_0x2213bb[_0x195b('0x9')]+_0x2213bb[_0x195b('0xa')]+_0x2213bb[_0x195b('0xb')]+_0x2213bb[_0x195b('0xc')];this[_0x195b('0x8')]=_0x2213bb[_0x195b('0x8')];this['countdropretry']=_0x2213bb[_0x195b('0x9')];this[_0x195b('0xa')]=_0x2213bb[_0x195b('0xa')];this[_0x195b('0xb')]=_0x2213bb['countmachineretry'];this[_0x195b('0xc')]=_0x2213bb[_0x195b('0xc')];this[_0x195b('0x3')]=_0x2213bb[_0x195b('0x3')];this[_0x195b('0xd')]=_0x2213bb['calleridname'];this[_0x195b('0xe')]=_0x2213bb['calleridnum'];this[_0x195b('0xf')]=_0x2213bb[_0x195b('0xf')];this[_0x195b('0x10')]=_0x2213bb[_0x195b('0x10')];this[_0x195b('0x11')]=_0x2213bb[_0x195b('0x10')];this[_0x195b('0x12')]=_0x2213bb[_0x195b('0x12')]||0x0;this[_0x195b('0x13')]=_0x2213bb['holdtime']||0x0;this['talktime']=_0x2213bb['talktime']||0x0;this[_0x195b('0x14')]=_0x2213bb[_0x195b('0x14')];this[_0x195b('0x15')]=_0x2213bb[_0x195b('0x15')];this[_0x195b('0x16')]=_0x2213bb['callbackat'];this['recallme']=_0x2213bb[_0x195b('0x17')];this[_0x195b('0x18')]=_0x2213bb[_0x195b('0x18')];this[_0x195b('0x19')]=_0x2213bb[_0x195b('0x19')];this['UserId']=_0x2213bb[_0x195b('0x1a')];this['VoiceQueueId']=_0x2213bb['VoiceQueueId'];this[_0x195b('0x1b')]=_0x2213bb[_0x195b('0x1b')];this['originatecalleridnum']=_0x2213bb[_0x195b('0x1c')]||'';this[_0x195b('0x1d')]=_0x2213bb[_0x195b('0x1d')]||'';this['state']=_0x2213bb[_0x195b('0x1e')];this[_0x195b('0x1f')]=_0x2213bb[_0x195b('0x1f')];}module[_0x195b('0x20')]=Final;