Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / cmHopperHistory / cmHopperHistory.rpc.js
index 931bba2..336cedc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x38b6=['error','code','message','info','catch','CreateCmHopperHistory','CmHopperHistory','options','raw','AvgHandleTime','findAll','sequelize','COUNT','col','predictiveIntervalTotalCalls','literal','`state`\x20=\x204,\x201,\x20null','predictiveIntervalAnsweredCalls','`state`\x20=\x2010,\x201,\x20null','`state`\x20=\x2011,\x201,\x20null','predictiveIntervalDroppedCallsCallersExit','predictiveIntervalAvgHoldtime','`state`\x20=\x204,\x20`talktime`,\x20null','GetVoiceQueueHopperHistory','campaign','name','`state`\x20=\x200,\x201,\x20null','`state`\x20=\x203,\x201,\x20null','outboundNoAnswerCallsDay','`state`\x20=\x205,\x201,\x20null','`state`\x20=\x208,\x201,\x20null','outboundCongestionCallsDay','`state`\x20=\x2010\x20,\x201,\x20null','outboundDropCallsDayTimeout','`state`\x20=\x2012,\x201,\x20null','`state`\x20=\x2013,\x201,\x20null','outboundBlacklistCallsDay','`state`\x20=\x2014,\x201,\x20null','outboundOriginateFailureCallsDay','`state`\x20=\x2018,\x201,\x20null','outboundAnswerAgiCallsDay','outboundRejectCallsDay','outboundReCallsDay','GetCampaignHopperHistory','ivrAnswerCallsDay','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','CmHopperHistory,\x20%s,\x20%s','debug','CmHopperHistory,\x20%s,\x20%s,\x20%s','request\x20sent','stringify'];(function(_0x256662,_0xcbc858){var _0x2a7aaa=function(_0x5d40ca){while(--_0x5d40ca){_0x256662['push'](_0x256662['shift']());}};_0x2a7aaa(++_0xcbc858);}(_0x38b6,0x177));var _0x638b=function(_0x1595ae,_0x18356c){_0x1595ae=_0x1595ae-0x0;var _0x47e6e2=_0x38b6[_0x1595ae];return _0x47e6e2;};'use strict';var _=require(_0x638b('0x0'));var util=require(_0x638b('0x1'));var moment=require(_0x638b('0x2'));var BPromise=require(_0x638b('0x3'));var rs=require(_0x638b('0x4'));var fs=require('fs');var Redis=require(_0x638b('0x5'));var db=require(_0x638b('0x6'))['db'];var utils=require(_0x638b('0x7'));var logger=require(_0x638b('0x8'))(_0x638b('0x9'));var config=require(_0x638b('0xa'));var jayson=require(_0x638b('0xb'));var client=jayson[_0x638b('0xc')][_0x638b('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x34a362,_0x3d8c49,_0x57388c){return new BPromise(function(_0x4dffae,_0x401498){return client[_0x638b('0xe')](_0x34a362,_0x57388c)[_0x638b('0xf')](function(_0x510a9d){logger['info'](_0x638b('0x10'),_0x3d8c49,'request\x20sent');logger[_0x638b('0x11')](_0x638b('0x12'),_0x3d8c49,_0x638b('0x13'),JSON[_0x638b('0x14')](_0x510a9d));if(_0x510a9d['error']){if(_0x510a9d[_0x638b('0x15')][_0x638b('0x16')]===0x1f4){logger['error'](_0x638b('0x10'),_0x3d8c49,_0x510a9d['error'][_0x638b('0x17')]);return _0x401498(_0x510a9d[_0x638b('0x15')][_0x638b('0x17')]);}logger[_0x638b('0x15')](_0x638b('0x10'),_0x3d8c49,_0x510a9d[_0x638b('0x15')][_0x638b('0x17')]);return _0x4dffae(_0x510a9d[_0x638b('0x15')][_0x638b('0x17')]);}else{logger[_0x638b('0x18')](_0x638b('0x10'),_0x3d8c49,_0x638b('0x13'));_0x4dffae(_0x510a9d['result']['message']);}})[_0x638b('0x19')](function(_0x52eedb){logger[_0x638b('0x15')](_0x638b('0x10'),_0x3d8c49,_0x52eedb);_0x401498(_0x52eedb);});});}exports[_0x638b('0x1a')]=function(_0x5c86a9){var _0x3bb367=this;return new Promise(function(_0x53cef7,_0x332cf1){return db[_0x638b('0x1b')]['create'](_0x5c86a9['body'],{'raw':_0x5c86a9['options']?_0x5c86a9[_0x638b('0x1c')][_0x638b('0x1d')]===undefined?!![]:![]:!![]})[_0x638b('0xf')](function(_0x5218d9){logger[_0x638b('0x18')](_0x638b('0x1a'),_0x5c86a9);logger[_0x638b('0x11')](_0x638b('0x1a'),_0x5c86a9,JSON[_0x638b('0x14')](_0x5218d9));_0x53cef7(_0x5218d9);})['catch'](function(_0x11fdb8){logger['error'](_0x638b('0x1a'),_0x11fdb8[_0x638b('0x17')],_0x5c86a9);_0x332cf1(_0x3bb367[_0x638b('0x15')](0x1f4,_0x11fdb8['message']));});});};exports[_0x638b('0x1e')]=function(_0x1e3fb7){var _0x56f3b9=this;return new Promise(function(_0x15a6e8,_0x2b5ef4){return db['CmHopperHistory'][_0x638b('0x1f')]({'raw':_0x1e3fb7['options']?_0x1e3fb7['options'][_0x638b('0x1d')]===undefined?!![]:![]:!![],'where':_0x1e3fb7[_0x638b('0x1c')]?_0x1e3fb7['options']['where']||null:null,'attributes':[[db[_0x638b('0x20')]['fn'](_0x638b('0x21'),db[_0x638b('0x20')][_0x638b('0x22')]('id')),_0x638b('0x23')],[db[_0x638b('0x20')]['fn']('COUNT',db[_0x638b('0x20')]['fn']('IF',db['sequelize'][_0x638b('0x24')](_0x638b('0x25')))),_0x638b('0x26')],[db[_0x638b('0x20')]['fn']('COUNT',db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x27')))),'predictiveIntervalDroppedCallsTimeout'],[db[_0x638b('0x20')]['fn'](_0x638b('0x21'),db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x28')))),_0x638b('0x29')],[db[_0x638b('0x20')]['fn']('AVG',db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')]('`state`\x20=\x204,\x20`holdtime`,\x20null'))),_0x638b('0x2a')],[db[_0x638b('0x20')]['fn']('AVG',db['sequelize']['fn']('IF',db['sequelize'][_0x638b('0x24')](_0x638b('0x2b')))),'predictiveIntervalAvgTalktime']]})[_0x638b('0xf')](function(_0x17414c){logger[_0x638b('0x18')](_0x638b('0x1e'),_0x1e3fb7);logger[_0x638b('0x11')]('AvgHandleTime',_0x1e3fb7,JSON['stringify'](_0x17414c));_0x15a6e8(_0x17414c);})[_0x638b('0x19')](function(_0x50c9fa){logger[_0x638b('0x15')](_0x638b('0x1e'),_0x50c9fa[_0x638b('0x17')],_0x1e3fb7);_0x2b5ef4(_0x56f3b9[_0x638b('0x15')](0x1f4,_0x50c9fa[_0x638b('0x17')]));});});};exports[_0x638b('0x2c')]=function(_0x33cf15){var _0x108b30=this;return new Promise(function(_0xeb54ee,_0x54e1ce){return db[_0x638b('0x1b')][_0x638b('0x1f')]({'raw':_0x33cf15[_0x638b('0x1c')]?_0x33cf15[_0x638b('0x1c')]['raw']===undefined?!![]:![]:!![],'where':_0x33cf15[_0x638b('0x1c')]?_0x33cf15[_0x638b('0x1c')]['where']||null:null,'attributes':[[_0x638b('0x2d'),_0x638b('0x2e')],[db[_0x638b('0x20')]['fn'](_0x638b('0x21'),db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')]['literal'](_0x638b('0x2f')))),'outboundNoSuchCallsDay'],[db[_0x638b('0x20')]['fn'](_0x638b('0x21'),db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x30')))),_0x638b('0x31')],[db[_0x638b('0x20')]['fn']('COUNT',db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x25')))),'outboundAnswerCallsDay'],[db[_0x638b('0x20')]['fn'](_0x638b('0x21'),db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x32')))),'outboundBusyCallsDay'],[db[_0x638b('0x20')]['fn']('COUNT',db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')]['literal'](_0x638b('0x33')))),_0x638b('0x34')],[db[_0x638b('0x20')]['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x35')))),_0x638b('0x36')],[db[_0x638b('0x20')]['fn'](_0x638b('0x21'),db[_0x638b('0x20')]['fn']('IF',db['sequelize']['literal']('`state`\x20=\x2011\x20,\x201,\x20null'))),'outboundDropCallsDayCallersExit'],[db['sequelize']['fn'](_0x638b('0x21'),db['sequelize']['fn']('IF',db['sequelize']['literal'](_0x638b('0x37')))),'outboundUnknownCallsDay'],[db['sequelize']['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x38')))),_0x638b('0x39')],[db[_0x638b('0x20')]['fn']('COUNT',db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x3a')))),_0x638b('0x3b')],[db[_0x638b('0x20')]['fn'](_0x638b('0x21'),db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x3c')))),'outboundRejectCallsDay'],[db['sequelize']['fn']('COUNT',db['sequelize']['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')]('`state`\x20=\x2016,\x201,\x20null'))),_0x638b('0x3d')],[db[_0x638b('0x20')]['fn']('COUNT',db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')]['literal']('`state`\x20=\x2020,\x201,\x20null'))),_0x638b('0x3e')],[db[_0x638b('0x20')]['fn'](_0x638b('0x21'),db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')]('`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null'))),_0x638b('0x3f')]],'group':['campaign']})[_0x638b('0xf')](function(_0x2eeb19){logger[_0x638b('0x18')](_0x638b('0x2c'),_0x33cf15);logger[_0x638b('0x11')]('GetVoiceQueueHopperHistory',_0x33cf15,JSON['stringify'](_0x2eeb19));_0xeb54ee(_0x2eeb19);})[_0x638b('0x19')](function(_0x2b8975){logger[_0x638b('0x15')]('GetVoiceQueueHopperHistory',_0x2b8975[_0x638b('0x17')],_0x33cf15);_0x54e1ce(_0x108b30[_0x638b('0x15')](0x1f4,_0x2b8975[_0x638b('0x17')]));});});};exports[_0x638b('0x40')]=function(_0x47f844){var _0x43efdf=this;return new Promise(function(_0x5d25e2,_0x5d27f8){return db['CmHopperHistory'][_0x638b('0x1f')]({'raw':_0x47f844[_0x638b('0x1c')]?_0x47f844[_0x638b('0x1c')][_0x638b('0x1d')]===undefined?!![]:![]:!![],'where':_0x47f844[_0x638b('0x1c')]?_0x47f844[_0x638b('0x1c')]['where']||null:null,'attributes':[['campaign',_0x638b('0x2e')],[db['sequelize']['fn'](_0x638b('0x21'),db[_0x638b('0x20')]['col']('id')),'ivrTotalCallsDays'],[db[_0x638b('0x20')]['fn']('COUNT',db[_0x638b('0x20')]['fn']('IF',db[_0x638b('0x20')][_0x638b('0x24')](_0x638b('0x25')))),_0x638b('0x41')]],'group':[_0x638b('0x2d')]})[_0x638b('0xf')](function(_0x58d859){logger['info']('GetCampaignHopperHistory',_0x47f844);logger[_0x638b('0x11')](_0x638b('0x40'),_0x47f844,JSON[_0x638b('0x14')](_0x58d859));_0x5d25e2(_0x58d859);})['catch'](function(_0x225fba){logger[_0x638b('0x15')](_0x638b('0x40'),_0x225fba[_0x638b('0x17')],_0x47f844);_0x5d27f8(_0x43efdf[_0x638b('0x15')](0x1f4,_0x225fba[_0x638b('0x17')]));});});};
\ No newline at end of file
+var _0xb75e=['predictiveIntervalAnsweredCalls','literal','predictiveIntervalDroppedCallsTimeout','`state`\x20=\x2011,\x201,\x20null','AVG','predictiveIntervalAvgHoldtime','`state`\x20=\x204,\x20`talktime`,\x20null','predictiveIntervalAvgTalktime','catch','findAll','where','`state`\x20=\x200,\x201,\x20null','outboundNoSuchCallsDay','`state`\x20=\x203,\x201,\x20null','outboundAnswerCallsDay','`state`\x20=\x205,\x201,\x20null','outboundBusyCallsDay','outboundCongestionCallsDay','`state`\x20=\x2010\x20,\x201,\x20null','outboundDropCallsDayTimeout','outboundDropCallsDayCallersExit','`state`\x20=\x2012,\x201,\x20null','outboundUnknownCallsDay','`state`\x20=\x2013,\x201,\x20null','outboundBlacklistCallsDay','`state`\x20=\x2014,\x201,\x20null','outboundOriginateFailureCallsDay','`state`\x20=\x2018,\x201,\x20null','outboundRejectCallsDay','`state`\x20=\x2016,\x201,\x20null','outboundAnswerAgiCallsDay','`state`\x20=\x2020,\x201,\x20null','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','campaign','GetVoiceQueueHopperHistory','GetCampaignHopperHistory','name','ivrTotalCallsDays','ivrAnswerCallsDay','lodash','util','moment','bluebird','randomstring','../../config/logger','rpc','jayson/promise','client','http','request','then','CmHopperHistory,\x20%s,\x20%s','debug','request\x20sent','error','code','message','result','CmHopperHistory','create','body','options','raw','info','CreateCmHopperHistory','stringify','AvgHandleTime','sequelize','COUNT','col','`state`\x20=\x204,\x201,\x20null'];(function(_0x5e96e8,_0x3a9dad){var _0x489e49=function(_0x3f2685){while(--_0x3f2685){_0x5e96e8['push'](_0x5e96e8['shift']());}};_0x489e49(++_0x3a9dad);}(_0xb75e,0xfc));var _0xeb75=function(_0x6e0ebb,_0x415056){_0x6e0ebb=_0x6e0ebb-0x0;var _0x110839=_0xb75e[_0x6e0ebb];return _0x110839;};'use strict';var _=require(_0xeb75('0x0'));var util=require(_0xeb75('0x1'));var moment=require(_0xeb75('0x2'));var BPromise=require(_0xeb75('0x3'));var rs=require(_0xeb75('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xeb75('0x5'))(_0xeb75('0x6'));var config=require('../../config/environment');var jayson=require(_0xeb75('0x7'));var client=jayson[_0xeb75('0x8')][_0xeb75('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x72e4b,_0x2fc6de,_0x363ef2){return new BPromise(function(_0x2d2aa2,_0x12cd1e){return client[_0xeb75('0xa')](_0x72e4b,_0x363ef2)[_0xeb75('0xb')](function(_0xcc13e3){logger['info'](_0xeb75('0xc'),_0x2fc6de,'request\x20sent');logger[_0xeb75('0xd')]('CmHopperHistory,\x20%s,\x20%s,\x20%s',_0x2fc6de,_0xeb75('0xe'),JSON['stringify'](_0xcc13e3));if(_0xcc13e3['error']){if(_0xcc13e3[_0xeb75('0xf')][_0xeb75('0x10')]===0x1f4){logger[_0xeb75('0xf')](_0xeb75('0xc'),_0x2fc6de,_0xcc13e3['error'][_0xeb75('0x11')]);return _0x12cd1e(_0xcc13e3[_0xeb75('0xf')][_0xeb75('0x11')]);}logger['error'](_0xeb75('0xc'),_0x2fc6de,_0xcc13e3['error']['message']);return _0x2d2aa2(_0xcc13e3[_0xeb75('0xf')]['message']);}else{logger['info'](_0xeb75('0xc'),_0x2fc6de,'request\x20sent');_0x2d2aa2(_0xcc13e3[_0xeb75('0x12')][_0xeb75('0x11')]);}})['catch'](function(_0x56e142){logger[_0xeb75('0xf')](_0xeb75('0xc'),_0x2fc6de,_0x56e142);_0x12cd1e(_0x56e142);});});}exports['CreateCmHopperHistory']=function(_0x3571b2){var _0x415460=this;return new Promise(function(_0x425253,_0x216320){return db[_0xeb75('0x13')][_0xeb75('0x14')](_0x3571b2[_0xeb75('0x15')],{'raw':_0x3571b2[_0xeb75('0x16')]?_0x3571b2[_0xeb75('0x16')][_0xeb75('0x17')]===undefined?!![]:![]:!![]})[_0xeb75('0xb')](function(_0x5d7cbb){logger[_0xeb75('0x18')](_0xeb75('0x19'),_0x3571b2);logger['debug'](_0xeb75('0x19'),_0x3571b2,JSON[_0xeb75('0x1a')](_0x5d7cbb));_0x425253(_0x5d7cbb);})['catch'](function(_0x1815c5){logger[_0xeb75('0xf')](_0xeb75('0x19'),_0x1815c5[_0xeb75('0x11')],_0x3571b2);_0x216320(_0x415460['error'](0x1f4,_0x1815c5[_0xeb75('0x11')]));});});};exports[_0xeb75('0x1b')]=function(_0x1e5f5e){var _0x52e696=this;return new Promise(function(_0x22e24d,_0x2397ee){return db[_0xeb75('0x13')]['findAll']({'raw':_0x1e5f5e[_0xeb75('0x16')]?_0x1e5f5e[_0xeb75('0x16')][_0xeb75('0x17')]===undefined?!![]:![]:!![],'where':_0x1e5f5e[_0xeb75('0x16')]?_0x1e5f5e[_0xeb75('0x16')]['where']||null:null,'attributes':[[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x1d'),db[_0xeb75('0x1c')][_0xeb75('0x1e')]('id')),'predictiveIntervalTotalCalls'],[db[_0xeb75('0x1c')]['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db['sequelize']['literal'](_0xeb75('0x1f')))),_0xeb75('0x20')],[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x1d'),db['sequelize']['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')]('`state`\x20=\x2010,\x201,\x20null'))),_0xeb75('0x22')],[db['sequelize']['fn'](_0xeb75('0x1d'),db['sequelize']['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')](_0xeb75('0x23')))),'predictiveIntervalDroppedCallsCallersExit'],[db['sequelize']['fn'](_0xeb75('0x24'),db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')]['literal']('`state`\x20=\x204,\x20`holdtime`,\x20null'))),_0xeb75('0x25')],[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x24'),db[_0xeb75('0x1c')]['fn']('IF',db['sequelize']['literal'](_0xeb75('0x26')))),_0xeb75('0x27')]]})[_0xeb75('0xb')](function(_0x20886e){logger[_0xeb75('0x18')](_0xeb75('0x1b'),_0x1e5f5e);logger[_0xeb75('0xd')](_0xeb75('0x1b'),_0x1e5f5e,JSON[_0xeb75('0x1a')](_0x20886e));_0x22e24d(_0x20886e);})[_0xeb75('0x28')](function(_0x5c6aa4){logger[_0xeb75('0xf')]('AvgHandleTime',_0x5c6aa4[_0xeb75('0x11')],_0x1e5f5e);_0x2397ee(_0x52e696[_0xeb75('0xf')](0x1f4,_0x5c6aa4[_0xeb75('0x11')]));});});};exports['GetVoiceQueueHopperHistory']=function(_0x5d8cac){var _0x4a74ba=this;return new Promise(function(_0x3ff256,_0x485311){return db[_0xeb75('0x13')][_0xeb75('0x29')]({'raw':_0x5d8cac['options']?_0x5d8cac[_0xeb75('0x16')][_0xeb75('0x17')]===undefined?!![]:![]:!![],'where':_0x5d8cac[_0xeb75('0x16')]?_0x5d8cac[_0xeb75('0x16')][_0xeb75('0x2a')]||null:null,'attributes':[['campaign','name'],[db[_0xeb75('0x1c')]['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')](_0xeb75('0x2b')))),_0xeb75('0x2c')],[db[_0xeb75('0x1c')]['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')](_0xeb75('0x2d')))),'outboundNoAnswerCallsDay'],[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x1d'),db[_0xeb75('0x1c')]['fn']('IF',db['sequelize'][_0xeb75('0x21')](_0xeb75('0x1f')))),_0xeb75('0x2e')],[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x1d'),db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')]['literal'](_0xeb75('0x2f')))),_0xeb75('0x30')],[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x1d'),db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')]('`state`\x20=\x208,\x201,\x20null'))),_0xeb75('0x31')],[db['sequelize']['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')]['literal'](_0xeb75('0x32')))),_0xeb75('0x33')],[db[_0xeb75('0x1c')]['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')]['literal']('`state`\x20=\x2011\x20,\x201,\x20null'))),_0xeb75('0x34')],[db['sequelize']['fn'](_0xeb75('0x1d'),db['sequelize']['fn']('IF',db['sequelize'][_0xeb75('0x21')](_0xeb75('0x35')))),_0xeb75('0x36')],[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x1d'),db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')](_0xeb75('0x37')))),_0xeb75('0x38')],[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x1d'),db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')]['literal'](_0xeb75('0x39')))),_0xeb75('0x3a')],[db[_0xeb75('0x1c')]['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')]['literal'](_0xeb75('0x3b')))),_0xeb75('0x3c')],[db[_0xeb75('0x1c')]['fn'](_0xeb75('0x1d'),db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')](_0xeb75('0x3d')))),_0xeb75('0x3e')],[db[_0xeb75('0x1c')]['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')](_0xeb75('0x3f')))),'outboundRejectCallsDay'],[db[_0xeb75('0x1c')]['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')](_0xeb75('0x40')))),'outboundReCallsDay']],'group':[_0xeb75('0x41')]})[_0xeb75('0xb')](function(_0x4d8854){logger[_0xeb75('0x18')](_0xeb75('0x42'),_0x5d8cac);logger[_0xeb75('0xd')](_0xeb75('0x42'),_0x5d8cac,JSON[_0xeb75('0x1a')](_0x4d8854));_0x3ff256(_0x4d8854);})[_0xeb75('0x28')](function(_0x4beff1){logger[_0xeb75('0xf')]('GetVoiceQueueHopperHistory',_0x4beff1[_0xeb75('0x11')],_0x5d8cac);_0x485311(_0x4a74ba[_0xeb75('0xf')](0x1f4,_0x4beff1[_0xeb75('0x11')]));});});};exports[_0xeb75('0x43')]=function(_0x4892ea){var _0x54f6b1=this;return new Promise(function(_0x204ffb,_0x92a7cd){return db[_0xeb75('0x13')]['findAll']({'raw':_0x4892ea[_0xeb75('0x16')]?_0x4892ea[_0xeb75('0x16')]['raw']===undefined?!![]:![]:!![],'where':_0x4892ea[_0xeb75('0x16')]?_0x4892ea[_0xeb75('0x16')][_0xeb75('0x2a')]||null:null,'attributes':[[_0xeb75('0x41'),_0xeb75('0x44')],[db[_0xeb75('0x1c')]['fn']('COUNT',db[_0xeb75('0x1c')][_0xeb75('0x1e')]('id')),_0xeb75('0x45')],[db['sequelize']['fn']('COUNT',db[_0xeb75('0x1c')]['fn']('IF',db[_0xeb75('0x1c')][_0xeb75('0x21')](_0xeb75('0x1f')))),_0xeb75('0x46')]],'group':[_0xeb75('0x41')]})[_0xeb75('0xb')](function(_0x460940){logger['info'](_0xeb75('0x43'),_0x4892ea);logger[_0xeb75('0xd')](_0xeb75('0x43'),_0x4892ea,JSON[_0xeb75('0x1a')](_0x460940));_0x204ffb(_0x460940);})[_0xeb75('0x28')](function(_0x3b9fa7){logger[_0xeb75('0xf')](_0xeb75('0x43'),_0x3b9fa7[_0xeb75('0x11')],_0x4892ea);_0x92a7cd(_0x54f6b1[_0xeb75('0xf')](0x1f4,_0x3b9fa7[_0xeb75('0x11')]));});});};
\ No newline at end of file