Built motion from commit d69f4380.|2.6.29
[motion2.git] / server / services / ami / dialer / models / hangup.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 _0x12ad=['outbound','queue','amd','countbusyretry','countcongestionretry','countnoanswerretry','countnosuchnumberretry','countdropretry','countabandonedretry','countmachineretry','countagentrejectretry','uniqueid','calleridname','calleridnum','number','starttime','responsetime','format','YYYY-MM-DD\x20HH:mm:ss','ringtime','talktime','getSeconds','endtime','IVR','cause-txt','callback','callbackuniqueid','recallme','ContactId','ListId','UserId','VoiceQueueId','exports','moment','../utils','state','statedesc','Answer','scheduledat','type','campaigntype'];(function(_0x4fca93,_0x3735e4){var _0x57a552=function(_0x1dcc04){while(--_0x1dcc04){_0x4fca93['push'](_0x4fca93['shift']());}};_0x57a552(++_0x3735e4);}(_0x12ad,0x117));var _0xd12a=function(_0xe27035,_0x1f4876){_0xe27035=_0xe27035-0x0;var _0x3745bc=_0x12ad[_0xe27035];return _0x3745bc;};'use strict';var moment=require(_0xd12a('0x0'));var utils=require(_0xd12a('0x1'));function Hangup(_0x2a6654,_0x9fbd90){this[_0xd12a('0x2')]=0x4;this[_0xd12a('0x3')]=_0xd12a('0x4');this['scheduledat']=_0x2a6654[_0xd12a('0x5')];this[_0xd12a('0x6')]=_0x2a6654[_0xd12a('0x6')];this[_0xd12a('0x7')]=_0x2a6654['type']===_0xd12a('0x8')?_0xd12a('0x9'):_0x2a6654['type'];this[_0xd12a('0xa')]=_0x2a6654[_0xd12a('0xa')]||![];this[_0xd12a('0xb')]=_0x2a6654[_0xd12a('0xb')];this[_0xd12a('0xc')]=_0x2a6654[_0xd12a('0xc')];this['countnoanswerretry']=_0x2a6654['countnoanswerretry'];this['countglobal']=_0x2a6654[_0xd12a('0xb')]+_0x2a6654[_0xd12a('0xc')]+_0x2a6654[_0xd12a('0xd')]+_0x2a6654[_0xd12a('0xe')]+_0x2a6654[_0xd12a('0xf')]+_0x2a6654[_0xd12a('0x10')]+_0x2a6654[_0xd12a('0x11')]+_0x2a6654[_0xd12a('0x12')];this[_0xd12a('0xe')]=_0x2a6654['countnosuchnumberretry'];this[_0xd12a('0xf')]=_0x2a6654[_0xd12a('0xf')];this[_0xd12a('0x10')]=_0x2a6654['countabandonedretry'];this[_0xd12a('0x11')]=_0x2a6654[_0xd12a('0x11')];this['countagentrejectretry']=_0x2a6654[_0xd12a('0x12')];this[_0xd12a('0x13')]=_0x9fbd90['uniqueid'];this[_0xd12a('0x14')]=_0x2a6654['name'];this[_0xd12a('0x15')]=_0x2a6654[_0xd12a('0x16')];this['starttime']=_0x2a6654[_0xd12a('0x17')];this['responsetime']=_0x2a6654[_0xd12a('0x18')];this['endtime']=moment()[_0xd12a('0x19')](_0xd12a('0x1a'));this[_0xd12a('0x1b')]=utils['getSeconds'](_0x2a6654[_0xd12a('0x18')],_0x2a6654['starttime']);this['holdtime']=0x0;this[_0xd12a('0x1c')]=utils[_0xd12a('0x1d')](this[_0xd12a('0x1e')],_0x2a6654[_0xd12a('0x18')]);this[_0xd12a('0x9')]=_0x2a6654[_0xd12a('0x9')];this['membername']=_0xd12a('0x1f');this['reason']=_0x9fbd90[_0xd12a('0x20')];this['callback']=_0x2a6654[_0xd12a('0x21')];this[_0xd12a('0x22')]=_0x2a6654[_0xd12a('0x22')];this['callbackat']=_0x2a6654['callbackat'];this[_0xd12a('0x23')]=_0x2a6654[_0xd12a('0x23')];this[_0xd12a('0x24')]=_0x2a6654[_0xd12a('0x24')];this['ListId']=_0x2a6654[_0xd12a('0x25')];this[_0xd12a('0x26')]=_0x2a6654['UserId'];this[_0xd12a('0x27')]=_0x2a6654[_0xd12a('0x27')];this['CampaignId']=_0x2a6654['CampaignId'];}module[_0xd12a('0x28')]=Hangup;