Built motion from commit 0c5f406c.|2.6.29
[motion2.git] / server / api / cmHopperHistory / cmHopperHistory.rpc.js
index 96e51d8..7343ce1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb315=['raw','AvgHandleTime','CmHopperHistory','findAll','where','sequelize','COUNT','predictiveIntervalTotalCalls','literal','`state`\x20=\x204,\x201,\x20null','`state`\x20=\x2010,\x201,\x20null','predictiveIntervalDroppedCallsTimeout','`state`\x20=\x2011,\x201,\x20null','predictiveIntervalDroppedCallsCallersExit','AVG','`state`\x20=\x204,\x20`holdtime`,\x20null','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','stringify','GetVoiceQueueHopperHistory','name','outboundNoSuchCallsDay','`state`\x20=\x203,\x201,\x20null','`state`\x20=\x205,\x201,\x20null','outboundBusyCallsDay','`state`\x20=\x208,\x201,\x20null','outboundCongestionCallsDay','outboundDropCallsDayTimeout','`state`\x20=\x2011\x20,\x201,\x20null','outboundDropCallsDayCallersExit','`state`\x20=\x2012,\x201,\x20null','outboundUnknownCallsDay','outboundBlacklistCallsDay','`state`\x20=\x2014,\x201,\x20null','outboundOriginateFailureCallsDay','outboundRejectCallsDay','`state`\x20=\x2016,\x201,\x20null','outboundAnswerAgiCallsDay','`state`\x20=\x2020,\x201,\x20null','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','outboundReCallsDay','GetCampaignHopperHistory','campaign','ivrAnswerCallsDay','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','CmHopperHistory,\x20%s,\x20%s','request\x20sent','debug','CmHopperHistory,\x20%s,\x20%s,\x20%s','error','message','result','catch','CreateCmHopperHistory','options'];(function(_0x240bed,_0x4b8f05){var _0x3bcdc8=function(_0x4883ec){while(--_0x4883ec){_0x240bed['push'](_0x240bed['shift']());}};_0x3bcdc8(++_0x4b8f05);}(_0xb315,0x6f));var _0x5b31=function(_0x361d3f,_0x3be2aa){_0x361d3f=_0x361d3f-0x0;var _0x320229=_0xb315[_0x361d3f];return _0x320229;};'use strict';var _=require(_0x5b31('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x5b31('0x1'));var rs=require(_0x5b31('0x2'));var fs=require('fs');var Redis=require(_0x5b31('0x3'));var db=require(_0x5b31('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x5b31('0x5'))(_0x5b31('0x6'));var config=require(_0x5b31('0x7'));var jayson=require(_0x5b31('0x8'));var client=jayson['client'][_0x5b31('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x35f8de,_0x23ad2e,_0x533b8a){return new BPromise(function(_0xc60941,_0x53c6ca){return client[_0x5b31('0xa')](_0x35f8de,_0x533b8a)[_0x5b31('0xb')](function(_0x162557){logger[_0x5b31('0xc')](_0x5b31('0xd'),_0x23ad2e,_0x5b31('0xe'));logger[_0x5b31('0xf')](_0x5b31('0x10'),_0x23ad2e,'request\x20sent',JSON['stringify'](_0x162557));if(_0x162557['error']){if(_0x162557[_0x5b31('0x11')]['code']===0x1f4){logger[_0x5b31('0x11')](_0x5b31('0xd'),_0x23ad2e,_0x162557[_0x5b31('0x11')][_0x5b31('0x12')]);return _0x53c6ca(_0x162557[_0x5b31('0x11')][_0x5b31('0x12')]);}logger[_0x5b31('0x11')]('CmHopperHistory,\x20%s,\x20%s',_0x23ad2e,_0x162557[_0x5b31('0x11')][_0x5b31('0x12')]);return _0xc60941(_0x162557[_0x5b31('0x11')][_0x5b31('0x12')]);}else{logger[_0x5b31('0xc')](_0x5b31('0xd'),_0x23ad2e,_0x5b31('0xe'));_0xc60941(_0x162557[_0x5b31('0x13')][_0x5b31('0x12')]);}})[_0x5b31('0x14')](function(_0x2e07cc){logger['error']('CmHopperHistory,\x20%s,\x20%s',_0x23ad2e,_0x2e07cc);_0x53c6ca(_0x2e07cc);});});}exports[_0x5b31('0x15')]=function(_0x10fc3f){var _0xb1d337=this;return new Promise(function(_0xeab57b,_0x3e875b){return db['CmHopperHistory']['create'](_0x10fc3f['body'],{'raw':_0x10fc3f[_0x5b31('0x16')]?_0x10fc3f[_0x5b31('0x16')][_0x5b31('0x17')]===undefined?!![]:![]:!![]})['then'](function(_0x5abf97){logger[_0x5b31('0xc')](_0x5b31('0x15'),_0x10fc3f);logger[_0x5b31('0xf')](_0x5b31('0x15'),_0x10fc3f,JSON['stringify'](_0x5abf97));_0xeab57b(_0x5abf97);})['catch'](function(_0x454cdb){logger[_0x5b31('0x11')]('CreateCmHopperHistory',_0x454cdb[_0x5b31('0x12')],_0x10fc3f);_0x3e875b(_0xb1d337[_0x5b31('0x11')](0x1f4,_0x454cdb[_0x5b31('0x12')]));});});};exports[_0x5b31('0x18')]=function(_0x5a866d){var _0x2893d9=this;return new Promise(function(_0xc8b353,_0x36e27d){return db[_0x5b31('0x19')][_0x5b31('0x1a')]({'raw':_0x5a866d[_0x5b31('0x16')]?_0x5a866d[_0x5b31('0x16')]['raw']===undefined?!![]:![]:!![],'where':_0x5a866d[_0x5b31('0x16')]?_0x5a866d[_0x5b31('0x16')][_0x5b31('0x1b')]||null:null,'attributes':[[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db['sequelize']['col']('id')),_0x5b31('0x1e')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db['sequelize']['fn']('IF',db['sequelize'][_0x5b31('0x1f')](_0x5b31('0x20')))),'predictiveIntervalAnsweredCalls'],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db[_0x5b31('0x1c')]['fn']('IF',db['sequelize'][_0x5b31('0x1f')](_0x5b31('0x21')))),_0x5b31('0x22')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db['sequelize']['fn']('IF',db[_0x5b31('0x1c')]['literal'](_0x5b31('0x23')))),_0x5b31('0x24')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x25'),db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')](_0x5b31('0x26')))),_0x5b31('0x27')],[db[_0x5b31('0x1c')]['fn']('AVG',db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')]('`state`\x20=\x204,\x20`talktime`,\x20null'))),_0x5b31('0x28')]]})[_0x5b31('0xb')](function(_0x192305){logger['info'](_0x5b31('0x18'),_0x5a866d);logger[_0x5b31('0xf')](_0x5b31('0x18'),_0x5a866d,JSON[_0x5b31('0x29')](_0x192305));_0xc8b353(_0x192305);})[_0x5b31('0x14')](function(_0x424047){logger[_0x5b31('0x11')]('AvgHandleTime',_0x424047['message'],_0x5a866d);_0x36e27d(_0x2893d9[_0x5b31('0x11')](0x1f4,_0x424047[_0x5b31('0x12')]));});});};exports[_0x5b31('0x2a')]=function(_0x372ef7){var _0x4b3bdf=this;return new Promise(function(_0x403960,_0x144ac8){return db[_0x5b31('0x19')][_0x5b31('0x1a')]({'raw':_0x372ef7[_0x5b31('0x16')]?_0x372ef7[_0x5b31('0x16')]['raw']===undefined?!![]:![]:!![],'where':_0x372ef7['options']?_0x372ef7[_0x5b31('0x16')][_0x5b31('0x1b')]||null:null,'attributes':[['campaign',_0x5b31('0x2b')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db['sequelize']['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')]('`state`\x20=\x200,\x201,\x20null'))),_0x5b31('0x2c')],[db['sequelize']['fn'](_0x5b31('0x1d'),db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')](_0x5b31('0x2d')))),'outboundNoAnswerCallsDay'],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db[_0x5b31('0x1c')]['fn']('IF',db['sequelize'][_0x5b31('0x1f')](_0x5b31('0x20')))),'outboundAnswerCallsDay'],[db[_0x5b31('0x1c')]['fn']('COUNT',db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')]['literal'](_0x5b31('0x2e')))),_0x5b31('0x2f')],[db['sequelize']['fn']('COUNT',db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')](_0x5b31('0x30')))),_0x5b31('0x31')],[db[_0x5b31('0x1c')]['fn']('COUNT',db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')]['literal']('`state`\x20=\x2010\x20,\x201,\x20null'))),_0x5b31('0x32')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')](_0x5b31('0x33')))),_0x5b31('0x34')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db['sequelize']['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')](_0x5b31('0x35')))),_0x5b31('0x36')],[db[_0x5b31('0x1c')]['fn']('COUNT',db['sequelize']['fn']('IF',db['sequelize'][_0x5b31('0x1f')]('`state`\x20=\x2013,\x201,\x20null'))),_0x5b31('0x37')],[db[_0x5b31('0x1c')]['fn']('COUNT',db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')](_0x5b31('0x38')))),_0x5b31('0x39')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db[_0x5b31('0x1c')]['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')]('`state`\x20=\x2018,\x201,\x20null'))),_0x5b31('0x3a')],[db['sequelize']['fn']('COUNT',db['sequelize']['fn']('IF',db['sequelize'][_0x5b31('0x1f')](_0x5b31('0x3b')))),_0x5b31('0x3c')],[db['sequelize']['fn'](_0x5b31('0x1d'),db['sequelize']['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')](_0x5b31('0x3d')))),_0x5b31('0x3a')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db['sequelize']['fn']('IF',db[_0x5b31('0x1c')][_0x5b31('0x1f')](_0x5b31('0x3e')))),_0x5b31('0x3f')]],'group':['campaign']})[_0x5b31('0xb')](function(_0x583451){logger[_0x5b31('0xc')](_0x5b31('0x2a'),_0x372ef7);logger[_0x5b31('0xf')]('GetVoiceQueueHopperHistory',_0x372ef7,JSON[_0x5b31('0x29')](_0x583451));_0x403960(_0x583451);})[_0x5b31('0x14')](function(_0x5b2230){logger[_0x5b31('0x11')]('GetVoiceQueueHopperHistory',_0x5b2230[_0x5b31('0x12')],_0x372ef7);_0x144ac8(_0x4b3bdf[_0x5b31('0x11')](0x1f4,_0x5b2230['message']));});});};exports[_0x5b31('0x40')]=function(_0x1e3803){var _0xc135af=this;return new Promise(function(_0x607771,_0x51138e){return db[_0x5b31('0x19')][_0x5b31('0x1a')]({'raw':_0x1e3803['options']?_0x1e3803[_0x5b31('0x16')][_0x5b31('0x17')]===undefined?!![]:![]:!![],'where':_0x1e3803[_0x5b31('0x16')]?_0x1e3803['options'][_0x5b31('0x1b')]||null:null,'attributes':[[_0x5b31('0x41'),_0x5b31('0x2b')],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db['sequelize']['col']('id')),'ivrTotalCallsDays'],[db[_0x5b31('0x1c')]['fn'](_0x5b31('0x1d'),db['sequelize']['fn']('IF',db[_0x5b31('0x1c')]['literal'](_0x5b31('0x20')))),_0x5b31('0x42')]],'group':[_0x5b31('0x41')]})[_0x5b31('0xb')](function(_0x4e4ce8){logger[_0x5b31('0xc')](_0x5b31('0x40'),_0x1e3803);logger[_0x5b31('0xf')]('GetCampaignHopperHistory',_0x1e3803,JSON['stringify'](_0x4e4ce8));_0x607771(_0x4e4ce8);})[_0x5b31('0x14')](function(_0x337566){logger['error'](_0x5b31('0x40'),_0x337566[_0x5b31('0x12')],_0x1e3803);_0x51138e(_0xc135af[_0x5b31('0x11')](0x1f4,_0x337566[_0x5b31('0x12')]));});});};
\ No newline at end of file
+var _0x2bc6=['outboundCongestionCallsDay','`state`\x20=\x2010\x20,\x201,\x20null','outboundDropCallsDayTimeout','`state`\x20=\x2011\x20,\x201,\x20null','`state`\x20=\x2012,\x201,\x20null','`state`\x20=\x2013,\x201,\x20null','outboundBlacklistCallsDay','outboundOriginateFailureCallsDay','`state`\x20=\x2018,\x201,\x20null','`state`\x20=\x2016,\x201,\x20null','outboundAnswerAgiCallsDay','`state`\x20=\x2020,\x201,\x20null','outboundRejectCallsDay','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','outboundReCallsDay','campaign','GetVoiceQueueHopperHistory','GetCampaignHopperHistory','col','ivrTotalCallsDays','lodash','util','moment','../../config/utils','rpc','../../config/environment','client','http','request','then','info','request\x20sent','debug','CmHopperHistory,\x20%s,\x20%s,\x20%s','stringify','error','code','CmHopperHistory,\x20%s,\x20%s','message','result','CreateCmHopperHistory','CmHopperHistory','options','raw','catch','AvgHandleTime','sequelize','COUNT','literal','`state`\x20=\x204,\x201,\x20null','predictiveIntervalAnsweredCalls','`state`\x20=\x2010,\x201,\x20null','predictiveIntervalDroppedCallsTimeout','`state`\x20=\x2011,\x201,\x20null','predictiveIntervalDroppedCallsCallersExit','AVG','`state`\x20=\x204,\x20`holdtime`,\x20null','predictiveIntervalAvgHoldtime','findAll','where','name','outboundNoSuchCallsDay','`state`\x20=\x203,\x201,\x20null','outboundNoAnswerCallsDay','outboundAnswerCallsDay','`state`\x20=\x205,\x201,\x20null','`state`\x20=\x208,\x201,\x20null'];(function(_0x5a9fb9,_0xb126c4){var _0x110430=function(_0x5112a1){while(--_0x5112a1){_0x5a9fb9['push'](_0x5a9fb9['shift']());}};_0x110430(++_0xb126c4);}(_0x2bc6,0x163));var _0x62bc=function(_0x263fe7,_0x17d0f7){_0x263fe7=_0x263fe7-0x0;var _0x5377dd=_0x2bc6[_0x263fe7];return _0x5377dd;};'use strict';var _=require(_0x62bc('0x0'));var util=require(_0x62bc('0x1'));var moment=require(_0x62bc('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x62bc('0x3'));var logger=require('../../config/logger')(_0x62bc('0x4'));var config=require(_0x62bc('0x5'));var jayson=require('jayson/promise');var client=jayson[_0x62bc('0x6')][_0x62bc('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x40af10,_0x3f3dc9,_0x3ed6ad){return new BPromise(function(_0x3f625c,_0x5bedeb){return client[_0x62bc('0x8')](_0x40af10,_0x3ed6ad)[_0x62bc('0x9')](function(_0x1917e1){logger[_0x62bc('0xa')]('CmHopperHistory,\x20%s,\x20%s',_0x3f3dc9,_0x62bc('0xb'));logger[_0x62bc('0xc')](_0x62bc('0xd'),_0x3f3dc9,'request\x20sent',JSON[_0x62bc('0xe')](_0x1917e1));if(_0x1917e1[_0x62bc('0xf')]){if(_0x1917e1[_0x62bc('0xf')][_0x62bc('0x10')]===0x1f4){logger[_0x62bc('0xf')](_0x62bc('0x11'),_0x3f3dc9,_0x1917e1[_0x62bc('0xf')]['message']);return _0x5bedeb(_0x1917e1[_0x62bc('0xf')][_0x62bc('0x12')]);}logger['error'](_0x62bc('0x11'),_0x3f3dc9,_0x1917e1[_0x62bc('0xf')][_0x62bc('0x12')]);return _0x3f625c(_0x1917e1['error'][_0x62bc('0x12')]);}else{logger[_0x62bc('0xa')]('CmHopperHistory,\x20%s,\x20%s',_0x3f3dc9,'request\x20sent');_0x3f625c(_0x1917e1[_0x62bc('0x13')][_0x62bc('0x12')]);}})['catch'](function(_0x278893){logger[_0x62bc('0xf')](_0x62bc('0x11'),_0x3f3dc9,_0x278893);_0x5bedeb(_0x278893);});});}exports[_0x62bc('0x14')]=function(_0xc95407){var _0x31dd9f=this;return new Promise(function(_0x1d3d8f,_0x3111ab){return db[_0x62bc('0x15')]['create'](_0xc95407['body'],{'raw':_0xc95407[_0x62bc('0x16')]?_0xc95407[_0x62bc('0x16')][_0x62bc('0x17')]===undefined?!![]:![]:!![]})['then'](function(_0x380621){logger['info'](_0x62bc('0x14'),_0xc95407);logger[_0x62bc('0xc')](_0x62bc('0x14'),_0xc95407,JSON['stringify'](_0x380621));_0x1d3d8f(_0x380621);})[_0x62bc('0x18')](function(_0x28757d){logger[_0x62bc('0xf')](_0x62bc('0x14'),_0x28757d[_0x62bc('0x12')],_0xc95407);_0x3111ab(_0x31dd9f[_0x62bc('0xf')](0x1f4,_0x28757d['message']));});});};exports[_0x62bc('0x19')]=function(_0xb0d0fb){var _0x1fb8f6=this;return new Promise(function(_0x3957c9,_0x117ebc){return db['CmHopperHistory']['findAll']({'raw':_0xb0d0fb[_0x62bc('0x16')]?_0xb0d0fb['options'][_0x62bc('0x17')]===undefined?!![]:![]:!![],'where':_0xb0d0fb[_0x62bc('0x16')]?_0xb0d0fb[_0x62bc('0x16')]['where']||null:null,'attributes':[[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['col']('id')),'predictiveIntervalTotalCalls'],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db['sequelize'][_0x62bc('0x1c')](_0x62bc('0x1d')))),_0x62bc('0x1e')],[db[_0x62bc('0x1a')]['fn']('COUNT',db[_0x62bc('0x1a')]['fn']('IF',db['sequelize'][_0x62bc('0x1c')](_0x62bc('0x1f')))),_0x62bc('0x20')],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x21')))),_0x62bc('0x22')],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x23'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x24')))),_0x62bc('0x25')],[db['sequelize']['fn'](_0x62bc('0x23'),db['sequelize']['fn']('IF',db['sequelize'][_0x62bc('0x1c')]('`state`\x20=\x204,\x20`talktime`,\x20null'))),'predictiveIntervalAvgTalktime']]})['then'](function(_0x3f22c1){logger[_0x62bc('0xa')](_0x62bc('0x19'),_0xb0d0fb);logger['debug']('AvgHandleTime',_0xb0d0fb,JSON['stringify'](_0x3f22c1));_0x3957c9(_0x3f22c1);})[_0x62bc('0x18')](function(_0x2245a7){logger['error']('AvgHandleTime',_0x2245a7[_0x62bc('0x12')],_0xb0d0fb);_0x117ebc(_0x1fb8f6[_0x62bc('0xf')](0x1f4,_0x2245a7[_0x62bc('0x12')]));});});};exports['GetVoiceQueueHopperHistory']=function(_0x47391){var _0x41e2a8=this;return new Promise(function(_0x3ff9e3,_0x9482f7){return db['CmHopperHistory'][_0x62bc('0x26')]({'raw':_0x47391[_0x62bc('0x16')]?_0x47391['options'][_0x62bc('0x17')]===undefined?!![]:![]:!![],'where':_0x47391[_0x62bc('0x16')]?_0x47391[_0x62bc('0x16')][_0x62bc('0x27')]||null:null,'attributes':[['campaign',_0x62bc('0x28')],[db['sequelize']['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')]('`state`\x20=\x200,\x201,\x20null'))),_0x62bc('0x29')],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x2a')))),_0x62bc('0x2b')],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db['sequelize']['literal'](_0x62bc('0x1d')))),_0x62bc('0x2c')],[db['sequelize']['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x2d')))),'outboundBusyCallsDay'],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db['sequelize']['fn']('IF',db['sequelize'][_0x62bc('0x1c')](_0x62bc('0x2e')))),_0x62bc('0x2f')],[db['sequelize']['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x30')))),_0x62bc('0x31')],[db['sequelize']['fn'](_0x62bc('0x1b'),db['sequelize']['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x32')))),'outboundDropCallsDayCallersExit'],[db['sequelize']['fn']('COUNT',db[_0x62bc('0x1a')]['fn']('IF',db['sequelize'][_0x62bc('0x1c')](_0x62bc('0x33')))),'outboundUnknownCallsDay'],[db['sequelize']['fn']('COUNT',db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x34')))),_0x62bc('0x35')],[db['sequelize']['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db['sequelize'][_0x62bc('0x1c')]('`state`\x20=\x2014,\x201,\x20null'))),_0x62bc('0x36')],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x37')))),'outboundRejectCallsDay'],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db['sequelize']['fn']('IF',db[_0x62bc('0x1a')]['literal'](_0x62bc('0x38')))),_0x62bc('0x39')],[db['sequelize']['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')]['literal'](_0x62bc('0x3a')))),_0x62bc('0x3b')],[db[_0x62bc('0x1a')]['fn'](_0x62bc('0x1b'),db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x3c')))),_0x62bc('0x3d')]],'group':[_0x62bc('0x3e')]})[_0x62bc('0x9')](function(_0x601e5d){logger[_0x62bc('0xa')](_0x62bc('0x3f'),_0x47391);logger[_0x62bc('0xc')](_0x62bc('0x3f'),_0x47391,JSON['stringify'](_0x601e5d));_0x3ff9e3(_0x601e5d);})[_0x62bc('0x18')](function(_0x440fd9){logger[_0x62bc('0xf')](_0x62bc('0x3f'),_0x440fd9[_0x62bc('0x12')],_0x47391);_0x9482f7(_0x41e2a8[_0x62bc('0xf')](0x1f4,_0x440fd9[_0x62bc('0x12')]));});});};exports[_0x62bc('0x40')]=function(_0x27020b){var _0x4142dd=this;return new Promise(function(_0x2f2322,_0x2c9ecd){return db['CmHopperHistory'][_0x62bc('0x26')]({'raw':_0x27020b['options']?_0x27020b[_0x62bc('0x16')][_0x62bc('0x17')]===undefined?!![]:![]:!![],'where':_0x27020b[_0x62bc('0x16')]?_0x27020b[_0x62bc('0x16')][_0x62bc('0x27')]||null:null,'attributes':[[_0x62bc('0x3e'),_0x62bc('0x28')],[db[_0x62bc('0x1a')]['fn']('COUNT',db['sequelize'][_0x62bc('0x41')]('id')),_0x62bc('0x42')],[db[_0x62bc('0x1a')]['fn']('COUNT',db[_0x62bc('0x1a')]['fn']('IF',db[_0x62bc('0x1a')][_0x62bc('0x1c')](_0x62bc('0x1d')))),'ivrAnswerCallsDay']],'group':[_0x62bc('0x3e')]})[_0x62bc('0x9')](function(_0x237714){logger[_0x62bc('0xa')](_0x62bc('0x40'),_0x27020b);logger[_0x62bc('0xc')](_0x62bc('0x40'),_0x27020b,JSON['stringify'](_0x237714));_0x2f2322(_0x237714);})[_0x62bc('0x18')](function(_0x27e35c){logger[_0x62bc('0xf')]('GetCampaignHopperHistory',_0x27e35c['message'],_0x27020b);_0x2c9ecd(_0x4142dd[_0x62bc('0xf')](0x1f4,_0x27e35c[_0x62bc('0x12')]));});});};
\ No newline at end of file