cf26c43d69046350a221c4c7943931ca45f16053
[motion2.git] / server / api / cmHopper / cmHopper.controller.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 _0x3baf=['then','sendStatus','stack','name','send','index','CmHopper','rawAttributes','type','key','model','map','query','keys','filters','concat','$gt','$gte','$lte','$ne','$between','$notBetween','$notIn','$like','$notLike','$notILike','$contains','$contained','attributes','intersection','fields','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','options','includeAll','include','rows','catch','show','create','body','find','describe','destroy','params','VoiceQueueId','CampaignId','VoiceQueue','omit','dataValues','updatedAt','state','statedesc','deleted','membername','user','UserId','deletedat','YYYY-MM-DD\x20HH:mm:ss','phone','queue','ivr','CmContact','firstName','lastName','isNil','calleridname','finally','CmHopperFinal','CmHopperAdditionalPhone','end','getVoiceQueues','transaction','format','value','direction','prev','isEmpty','hopperIds','priority','ASC','scheduledAt','DESC','sequelize','COALESCE(CmHopper.UserId,\x200)\x20ASC','dialOrderByScheduledAt','literal','COALESCE(CmHopper.UserId,\x200)\x20DESC','findOne','scheduledat','LOCK','Contact','CmCompany','Company','CmList','List','Queue','dialActive','getPreviewRecall','recallme','UPDATE','getOpenContacts','preview','isNumber','error','CmHopper,\x20%s,\x20%s,\x20%s','entity\x20not\x20found','getTimezones','timezones','getTimezone','moment','lodash','../../components/parsers/qs','../../config/logger','api','../../config/environment','../../mysqldb','status','json','limit','count','offset','set','Content-Range','update'];(function(_0x598de7,_0x5306e4){var _0xbc3668=function(_0x4392bc){while(--_0x4392bc){_0x598de7['push'](_0x598de7['shift']());}};_0xbc3668(++_0x5306e4);}(_0x3baf,0xf7));var _0xf3ba=function(_0x2dbbf2,_0x34c336){_0x2dbbf2=_0x2dbbf2-0x0;var _0x2b40ce=_0x3baf[_0x2dbbf2];return _0x2b40ce;};'use strict';var moment=require(_0xf3ba('0x0'));var _=require(_0xf3ba('0x1'));var qs=require(_0xf3ba('0x2'));var logger=require(_0xf3ba('0x3'))(_0xf3ba('0x4'));var shared=require(_0xf3ba('0x5'));var db=require(_0xf3ba('0x6'))['db'];function respondWithResult(_0x306bdd,_0x3e6058){_0x3e6058=_0x3e6058||0xc8;return function(_0x1ae6e6){if(_0x1ae6e6){return _0x306bdd[_0xf3ba('0x7')](_0x3e6058)[_0xf3ba('0x8')](_0x1ae6e6);}};}function respondWithFilteredResult(_0x475268,_0x2e6df2){return function(_0x1284b7){if(_0x1284b7){var _0x4de144=typeof _0x2e6df2['offset']==='undefined'&&typeof _0x2e6df2[_0xf3ba('0x9')]==='undefined';var _0x346f5b=_0x1284b7[_0xf3ba('0xa')];var _0x3ae5fb=_0x4de144?0x0:_0x2e6df2[_0xf3ba('0xb')];var _0x3a5714=_0x4de144?_0x1284b7[_0xf3ba('0xa')]:_0x2e6df2[_0xf3ba('0xb')]+_0x2e6df2[_0xf3ba('0x9')];var _0x32ecd1;if(_0x3a5714>=_0x346f5b){_0x3a5714=_0x346f5b;_0x32ecd1=0xc8;}else{_0x32ecd1=0xce;}_0x475268[_0xf3ba('0x7')](_0x32ecd1);return _0x475268[_0xf3ba('0xc')](_0xf3ba('0xd'),_0x3ae5fb+'-'+_0x3a5714+'/'+_0x346f5b)[_0xf3ba('0x8')](_0x1284b7);}return null;};}function saveUpdates(_0x85939e,_0x26cefe){return function(_0x17673a){if(_0x17673a){return _0x17673a[_0xf3ba('0xe')](_0x85939e)[_0xf3ba('0xf')](function(_0x505b8d){return _0x505b8d;});}return null;};}function handleEntityNotFound(_0x327675,_0x56816b){return function(_0x815037){if(!_0x815037){_0x327675[_0xf3ba('0x10')](0x194);}return _0x815037;};}function handleError(_0x4717be,_0x1e2969){_0x1e2969=_0x1e2969||0x1f4;return function(_0x235c8a){logger['error'](_0x235c8a[_0xf3ba('0x11')]);if(_0x235c8a[_0xf3ba('0x12')]){delete _0x235c8a[_0xf3ba('0x12')];}_0x4717be['status'](_0x1e2969)[_0xf3ba('0x13')](_0x235c8a);};}exports[_0xf3ba('0x14')]=function(_0x430d64,_0x44de40){var _0x4d3c0a={},_0x1e18ed={},_0x3b0d9e={'count':0x0,'rows':[]};var _0x4e601c=_['map'](db[_0xf3ba('0x15')][_0xf3ba('0x16')],function(_0x854fc4){return{'name':_0x854fc4['fieldName'],'type':_0x854fc4[_0xf3ba('0x17')][_0xf3ba('0x18')]};});_0x1e18ed[_0xf3ba('0x19')]=_[_0xf3ba('0x1a')](_0x4e601c,_0xf3ba('0x12'));_0x1e18ed[_0xf3ba('0x1b')]=_[_0xf3ba('0x1c')](_0x430d64['query']);_0x1e18ed['filters']=_['intersection'](_0x1e18ed[_0xf3ba('0x19')],_0x1e18ed[_0xf3ba('0x1b')]);_0x1e18ed[_0xf3ba('0x1d')]=_[_0xf3ba('0x1e')](_0x1e18ed[_0xf3ba('0x1d')],['$and','$or',_0xf3ba('0x1f'),_0xf3ba('0x20'),'$lt',_0xf3ba('0x21'),_0xf3ba('0x22'),'$eq','$not',_0xf3ba('0x23'),_0xf3ba('0x24'),'$in',_0xf3ba('0x25'),_0xf3ba('0x26'),_0xf3ba('0x27'),'$iLike',_0xf3ba('0x28'),'$like','$overlap',_0xf3ba('0x29'),_0xf3ba('0x2a'),'$any']);_0x4d3c0a[_0xf3ba('0x2b')]=_[_0xf3ba('0x2c')](_0x1e18ed['model'],qs['fields'](_0x430d64['query'][_0xf3ba('0x2d')]));_0x4d3c0a[_0xf3ba('0x2b')]=_0x4d3c0a['attributes'][_0xf3ba('0x2e')]?_0x4d3c0a['attributes']:_0x1e18ed['model'];if(!_0x430d64[_0xf3ba('0x1b')][_0xf3ba('0x2f')](_0xf3ba('0x30'))){_0x4d3c0a[_0xf3ba('0x9')]=qs[_0xf3ba('0x9')](_0x430d64[_0xf3ba('0x1b')]['limit']);_0x4d3c0a[_0xf3ba('0xb')]=qs['offset'](_0x430d64[_0xf3ba('0x1b')][_0xf3ba('0xb')]);}_0x4d3c0a['order']=qs[_0xf3ba('0x31')](_0x430d64[_0xf3ba('0x1b')][_0xf3ba('0x31')]);_0x4d3c0a[_0xf3ba('0x32')]=qs['filters'](_[_0xf3ba('0x33')](_0x430d64['query'],_0x1e18ed['filters']),_0x4e601c);if(_0x430d64['query'][_0xf3ba('0x34')]){_0x4d3c0a[_0xf3ba('0x32')]=_[_0xf3ba('0x35')](_0x4d3c0a[_0xf3ba('0x32')],{'$or':_[_0xf3ba('0x1a')](_0x4e601c,function(_0x55b29b){if(_0x55b29b[_0xf3ba('0x17')]!=='VIRTUAL'){var _0x3a927e={};_0x3a927e[_0x55b29b['name']]={'$like':'%'+_0x430d64[_0xf3ba('0x1b')][_0xf3ba('0x34')]+'%'};return _0x3a927e;}})});}_0x4d3c0a=_[_0xf3ba('0x35')]({},_0x4d3c0a,_0x430d64[_0xf3ba('0x36')]);var _0x55d9be={'where':_0x4d3c0a[_0xf3ba('0x32')]};return db[_0xf3ba('0x15')]['count'](_0x55d9be)[_0xf3ba('0xf')](function(_0x2405e5){_0x3b0d9e[_0xf3ba('0xa')]=_0x2405e5;if(_0x430d64[_0xf3ba('0x1b')][_0xf3ba('0x37')]){_0x4d3c0a[_0xf3ba('0x38')]=[{'all':!![]}];}return db[_0xf3ba('0x15')]['findAll'](_0x4d3c0a);})[_0xf3ba('0xf')](function(_0x527092){_0x3b0d9e[_0xf3ba('0x39')]=_0x527092;return _0x3b0d9e;})['then'](respondWithFilteredResult(_0x44de40,_0x4d3c0a))[_0xf3ba('0x3a')](handleError(_0x44de40,null));};exports[_0xf3ba('0x3b')]=function(_0x1251b1,_0x39bbea){var _0x2cbfca={'raw':!![],'where':{'id':_0x1251b1['params']['id']}},_0x5f3dcc={};_0x5f3dcc[_0xf3ba('0x19')]=_[_0xf3ba('0x1c')](db[_0xf3ba('0x15')][_0xf3ba('0x16')]);_0x5f3dcc[_0xf3ba('0x1b')]=_[_0xf3ba('0x1c')](_0x1251b1['query']);_0x5f3dcc[_0xf3ba('0x1d')]=_['intersection'](_0x5f3dcc[_0xf3ba('0x19')],_0x5f3dcc[_0xf3ba('0x1b')]);_0x2cbfca[_0xf3ba('0x2b')]=_[_0xf3ba('0x2c')](_0x5f3dcc[_0xf3ba('0x19')],qs[_0xf3ba('0x2d')](_0x1251b1[_0xf3ba('0x1b')][_0xf3ba('0x2d')]));_0x2cbfca['attributes']=_0x2cbfca[_0xf3ba('0x2b')][_0xf3ba('0x2e')]?_0x2cbfca[_0xf3ba('0x2b')]:_0x5f3dcc[_0xf3ba('0x19')];if(_0x1251b1[_0xf3ba('0x1b')][_0xf3ba('0x37')]){_0x2cbfca[_0xf3ba('0x38')]=[{'all':!![]}];}_0x2cbfca=_['merge']({},_0x2cbfca,_0x1251b1[_0xf3ba('0x36')]);return db[_0xf3ba('0x15')]['find'](_0x2cbfca)[_0xf3ba('0xf')](handleEntityNotFound(_0x39bbea,null))[_0xf3ba('0xf')](respondWithResult(_0x39bbea,null))[_0xf3ba('0x3a')](handleError(_0x39bbea,null));};exports[_0xf3ba('0x3c')]=function(_0x3c454e,_0x6a0ca0){return db[_0xf3ba('0x15')][_0xf3ba('0x3c')](_0x3c454e[_0xf3ba('0x3d')],{})[_0xf3ba('0xf')](respondWithResult(_0x6a0ca0,0xc9))[_0xf3ba('0x3a')](handleError(_0x6a0ca0,null));};exports[_0xf3ba('0xe')]=function(_0x40c152,_0x422655){if(_0x40c152[_0xf3ba('0x3d')]['id']){delete _0x40c152[_0xf3ba('0x3d')]['id'];}return db[_0xf3ba('0x15')][_0xf3ba('0x3e')]({'where':{'id':_0x40c152['params']['id']}})[_0xf3ba('0xf')](handleEntityNotFound(_0x422655,null))[_0xf3ba('0xf')](saveUpdates(_0x40c152['body'],null))[_0xf3ba('0xf')](respondWithResult(_0x422655,null))[_0xf3ba('0x3a')](handleError(_0x422655,null));};exports[_0xf3ba('0x3f')]=function(_0x36f476,_0x52ef61){return db['CmHopper'][_0xf3ba('0x3f')]()[_0xf3ba('0xf')](respondWithResult(_0x52ef61,null))[_0xf3ba('0x3a')](handleError(_0x52ef61,null));};exports[_0xf3ba('0x40')]=function(_0x502483,_0x2d3a0d){var _0xdc71c8;var _0x221050=_0x502483['params']['id'];return db[_0xf3ba('0x15')][_0xf3ba('0x3e')]({'where':{'id':_0x502483[_0xf3ba('0x41')]['id']}})[_0xf3ba('0xf')](handleEntityNotFound(_0x2d3a0d,null))[_0xf3ba('0xf')](function(_0xaaf8b){if(_0xaaf8b){return _0xaaf8b[_0xf3ba('0x40')]()[_0xf3ba('0xf')](function(_0x4620c0){return _0x4620c0;});}})[_0xf3ba('0xf')](function(_0x534426){_0xdc71c8=_0x534426;if(_0x534426){if(_0x534426[_0xf3ba('0x42')]||_0x534426[_0xf3ba('0x43')]){return db[_0x534426[_0xf3ba('0x42')]?_0xf3ba('0x44'):'Campaign'][_0xf3ba('0x3e')]({'where':{'id':_0x534426['VoiceQueueId']?_0x534426['VoiceQueueId']:_0x534426[_0xf3ba('0x43')]},'attributes':['id',_0xf3ba('0x12')],'raw':!![]});}}})[_0xf3ba('0xf')](function(_0x1fc9e6){var _0x410cf6={};if(_0x1fc9e6){_[_0xf3ba('0x35')](_0x410cf6,_[_0xf3ba('0x45')](_0xdc71c8[_0xf3ba('0x46')],['createdAt',_0xf3ba('0x47'),'id']));_0x410cf6[_0xf3ba('0x48')]=0x15;_0x410cf6[_0xf3ba('0x49')]=_0xf3ba('0x4a');_0x410cf6['campaign']=_0x1fc9e6['name'];_0x410cf6[_0xf3ba('0x4b')]=_0x502483[_0xf3ba('0x4c')][_0xf3ba('0x12')];_0x410cf6[_0xf3ba('0x4d')]=_0x502483[_0xf3ba('0x4c')]['id'];_0x410cf6['deleted']=!![];_0x410cf6[_0xf3ba('0x4e')]=moment()['format'](_0xf3ba('0x4f'));_0x410cf6['calleridnum']=_0xdc71c8[_0xf3ba('0x50')];_0x410cf6['campaigntype']=_0xdc71c8[_0xf3ba('0x42')]?_0xf3ba('0x51'):_0xf3ba('0x52');return db[_0xf3ba('0x53')][_0xf3ba('0x3e')]({'where':{'id':_0x410cf6['ContactId']},'attributes':[_0xf3ba('0x54'),_0xf3ba('0x55')]})[_0xf3ba('0xf')](function(_0x494f83){if(!_[_0xf3ba('0x56')](_0x2d3a0d)&&!_['isNil'](_0x494f83[_0xf3ba('0x54')])){_0x410cf6[_0xf3ba('0x57')]=_0x494f83[_0xf3ba('0x54')];if(!_[_0xf3ba('0x56')](_0x494f83[_0xf3ba('0x55')])){_0x410cf6[_0xf3ba('0x57')]+='\x20'+_0x494f83[_0xf3ba('0x55')];}}})[_0xf3ba('0x58')](function(){return db[_0xf3ba('0x59')][_0xf3ba('0x3c')](_0x410cf6);});}})[_0xf3ba('0xf')](function(_0x4f731d){return db[_0xf3ba('0x5a')]['destroy']({'where':{'CmHopperId':_0x221050}});})[_0xf3ba('0xf')](function(){return _0x2d3a0d[_0xf3ba('0x7')](0xcc)[_0xf3ba('0x5b')]();})[_0xf3ba('0x3a')](handleError(_0x2d3a0d,null));};exports['getPreview']=function(_0x26fd3e,_0x307a22){var _0x437458=[];return db[_0xf3ba('0x53')][_0xf3ba('0x3f')]()[_0xf3ba('0xf')](function(_0x3cd4fc){_0x437458=_[_0xf3ba('0x1c')](_0x3cd4fc);return _0x26fd3e[_0xf3ba('0x4c')][_0xf3ba('0x5c')]({'where':{'type':'outbound','dialActive':!![],'dialMethod':'preview'},'attributes':['id','dialOrderByScheduledAt','dialPreviewAutoRecallMe'],'raw':!![]});})[_0xf3ba('0xf')](function(_0x172eb7){if(_0x172eb7&&_0x172eb7[_0xf3ba('0x2e')]){return db['sequelize'][_0xf3ba('0x5d')](function(_0x5797a5){var _0x102adb={'active':![],'recallme':![],'scheduledAt':{'$lte':moment()[_0xf3ba('0x5e')]('YYYY-MM-DD\x20HH:mm:ss')},'VoiceQueueId':{'$in':_['map'](_0x172eb7,'id')},'$or':[{'UserId':null},{'UserId':_0x26fd3e[_0xf3ba('0x4c')]['id']}]};var _0x522e55={'active':![],'recallme':!![],'VoiceQueueId':{'$in':_(_0x172eb7)[_0xf3ba('0x34')](['dialPreviewAutoRecallMe',0x0])[_0xf3ba('0x1a')]('id')[_0xf3ba('0x5f')]()},'$or':[{'UserId':null},{'UserId':_0x26fd3e[_0xf3ba('0x4c')]['id']}]};var _0x44b33f={'$or':[_0x102adb,_0x522e55]};var _0x540228=[];if(_0x26fd3e[_0xf3ba('0x3d')]['direction']&&_0x26fd3e['body'][_0xf3ba('0x60')]===_0xf3ba('0x61')){if(!_[_0xf3ba('0x62')](_0x26fd3e[_0xf3ba('0x3d')][_0xf3ba('0x63')])){_0x44b33f['id']={'$in':_0x26fd3e[_0xf3ba('0x3d')]['hopperIds']};}_0x540228=[[_0xf3ba('0x64'),_0xf3ba('0x65')],[_0xf3ba('0x66'),_0x172eb7[0x0]['dialOrderByScheduledAt']===_0xf3ba('0x65')?_0xf3ba('0x67'):_0xf3ba('0x65')],db[_0xf3ba('0x68')]['literal'](_0xf3ba('0x69')),['id',_0xf3ba('0x67')]];}else{if(!_[_0xf3ba('0x62')](_0x26fd3e[_0xf3ba('0x3d')][_0xf3ba('0x63')])){_0x44b33f['id']={'$notIn':_0x26fd3e['body'][_0xf3ba('0x63')]};}_0x540228=[[_0xf3ba('0x64'),_0xf3ba('0x67')],[_0xf3ba('0x66'),_0x172eb7[0x0][_0xf3ba('0x6a')]],db[_0xf3ba('0x68')][_0xf3ba('0x6b')](_0xf3ba('0x6c')),['id',_0xf3ba('0x65')]];}return db[_0xf3ba('0x15')][_0xf3ba('0x6d')]({'attributes':['id',_0xf3ba('0x6e'),_0xf3ba('0x50'),'recallme'],'where':_0x44b33f,'order':_0x540228,'transaction':_0x5797a5,'lock':_0x5797a5[_0xf3ba('0x6f')]['UPDATE'],'include':[{'model':db[_0xf3ba('0x53')],'as':_0xf3ba('0x70'),'attributes':_0x437458,'include':[{'model':db[_0xf3ba('0x71')],'as':_0xf3ba('0x72'),'attributes':['id',_0xf3ba('0x12')]}]},{'model':db[_0xf3ba('0x73')],'as':_0xf3ba('0x74'),'attributes':['id',_0xf3ba('0x12')]},{'model':db['VoiceQueue'],'as':_0xf3ba('0x75'),'attributes':['id',_0xf3ba('0x12'),_0xf3ba('0x76')]}]})['then'](function(_0x3e1c39){if(_0x3e1c39){return _0x3e1c39[_0xf3ba('0xe')]({'UserId':_0x26fd3e[_0xf3ba('0x4c')]['id']},{'transaction':_0x5797a5});}});});}})[_0xf3ba('0xf')](handleEntityNotFound(_0x307a22,null))[_0xf3ba('0xf')](respondWithResult(_0x307a22,null))[_0xf3ba('0x3a')](handleError(_0x307a22,null));};exports[_0xf3ba('0x77')]=function(_0x3b1d98,_0x3d966b,_0x4b4267){var _0x588ef2=[];var _0x1060e4=_0x3b1d98[_0xf3ba('0x41')]['id'];var _0x4ce3fc=_0x3b1d98[_0xf3ba('0x4c')]['id'];return db['CmContact'][_0xf3ba('0x3f')]()['then'](function(_0x409f1f){_0x588ef2=_[_0xf3ba('0x1c')](_0x409f1f);return db['sequelize'][_0xf3ba('0x5d')](function(_0x57e5a6){const _0x1105d2={'id':_0x1060e4};return db[_0xf3ba('0x15')][_0xf3ba('0x6d')]({'attributes':['id',_0xf3ba('0x6e'),_0xf3ba('0x78')],'where':_0x1105d2,'transaction':_0x57e5a6,'lock':_0x57e5a6[_0xf3ba('0x6f')][_0xf3ba('0x79')],'include':[{'model':db[_0xf3ba('0x53')],'as':_0xf3ba('0x70'),'attributes':_0x588ef2,'include':[{'model':db['CmCompany'],'as':_0xf3ba('0x72'),'attributes':['id',_0xf3ba('0x12')]}]},{'model':db[_0xf3ba('0x73')],'as':_0xf3ba('0x74'),'attributes':['id',_0xf3ba('0x12')]},{'model':db[_0xf3ba('0x44')],'as':'Queue','attributes':['id',_0xf3ba('0x12'),_0xf3ba('0x76')]}]})[_0xf3ba('0xf')](function(_0x521341){if(_0x521341){return _0x521341[_0xf3ba('0xe')]({'UserId':_0x4ce3fc},{'transaction':_0x57e5a6});}});});})[_0xf3ba('0xf')](handleEntityNotFound(_0x3d966b,null))[_0xf3ba('0xf')](respondWithResult(_0x3d966b,null))[_0xf3ba('0x3a')](handleError(_0x3d966b,null));};exports[_0xf3ba('0x7a')]=function(_0x388170,_0x5b3aef){return _0x388170[_0xf3ba('0x4c')]['getVoiceQueues']({'where':{'type':'outbound','dialActive':!![],'dialMethod':_0xf3ba('0x7b')},'attributes':['id'],'raw':!![]})[_0xf3ba('0xf')](function(_0x5c488f){if(_0x5c488f&&_0x5c488f['length']){return db[_0xf3ba('0x15')][_0xf3ba('0xa')]({'where':{'active':![],'recallme':![],'scheduledAt':{'$lte':moment()[_0xf3ba('0x5e')](_0xf3ba('0x4f'))},'VoiceQueueId':{'$in':_[_0xf3ba('0x1a')](_0x5c488f,'id')},'$or':[{'UserId':null},{'UserId':_0x388170[_0xf3ba('0x4c')]['id']}]}});}return 0x0;})[_0xf3ba('0xf')](function(_0x5e78c2){if(!_[_0xf3ba('0x56')](_0x5e78c2)&&_[_0xf3ba('0x7c')](_0x5e78c2)){return _0x5b3aef['status'](0xc8)[_0xf3ba('0x8')]({'contacts':_0x5e78c2});}else{logger[_0xf3ba('0x7d')](_0xf3ba('0x7e'),_0xf3ba('0x7a'),0x194,_0xf3ba('0x7f'));_0x5b3aef[_0xf3ba('0x10')](0x194);}})[_0xf3ba('0x3a')](handleError(_0x5b3aef,null));};exports[_0xf3ba('0x80')]=function(_0x499ac3,_0x504e6a){var _0x5626a1=shared[_0xf3ba('0x81')];var _0x299fab=[];_['map'](_0x5626a1,function(_0x591fb1){_0x299fab['push']({'id':_0x591fb1[_0xf3ba('0x12')],'name':_0x591fb1[_0xf3ba('0x12')],'utcOffset':_0x591fb1['utcOffset']});});return _0x504e6a[_0xf3ba('0x7')](0xc8)[_0xf3ba('0x8')]({'tz':_0x299fab});};exports[_0xf3ba('0x82')]=function(_0x3de094,_0x41eb6b){var _0x2cd284=shared[_0xf3ba('0x81')];var _0x3bc463={};if(!_[_0xf3ba('0x56')](_0x2cd284[_0x3de094['body']['id']]))_0x3bc463=_0x2cd284[_0x3de094[_0xf3ba('0x3d')]['id']];return _0x41eb6b[_0xf3ba('0x7')](0xc8)[_0xf3ba('0x8')](_0x3bc463);};