2ee204282f4d3fa6e5d711f6dbee2a8466c11b59
[motion2.git] / server / api / user / user.rpc.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 _0x9fcf=['stringify','User','find','ShowUser','PauseUser','name','role','internal','interface','UserVoiceQueueRt','update','MemberReport','findAll','length','format','YYYY-MM-DD\x20HH:mm:ss','isNil','SIP/%s','body','DEFAULT\x20PAUSE','uniqueid','bulkCreate','type','findOne','channel','isValidChannel','voice','system','mail','fax','sms','openchannel','whatsapp','PAUSE','set','%s%s','Pause','forEach','push','all','LogoutUser','destroy','loginInPause','count','agent','getLicense','agents','getVoiceQueues','upsert','UserVoiceQueue.penalty','getChannels','LOGIN','callysquare','merge','LOGININPAUSE','lodash','util','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','redis','defaults','localhost','socket.io-emitter','./user.socket','register','User,\x20%s,\x20%s','request\x20sent','debug','User,\x20%s,\x20%s,\x20%s','error','message','info','result','catch','GetUser','options','raw','where','attributes','map','include','model','then'];(function(_0x4709c0,_0x3396c7){var _0x13348b=function(_0x426235){while(--_0x426235){_0x4709c0['push'](_0x4709c0['shift']());}};_0x13348b(++_0x3396c7);}(_0x9fcf,0xe9));var _0xf9fc=function(_0x4ed520,_0x21be63){_0x4ed520=_0x4ed520-0x0;var _0x4415a6=_0x9fcf[_0x4ed520];return _0x4415a6;};'use strict';var _=require(_0xf9fc('0x0'));var util=require(_0xf9fc('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xf9fc('0x2'));var fs=require('fs');var Redis=require(_0xf9fc('0x3'));var db=require(_0xf9fc('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xf9fc('0x5'))(_0xf9fc('0x6'));var config=require(_0xf9fc('0x7'));var jayson=require(_0xf9fc('0x8'));var client=jayson['client'][_0xf9fc('0x9')]({'port':0x232a});config[_0xf9fc('0xa')]=_[_0xf9fc('0xb')](config[_0xf9fc('0xa')],{'host':_0xf9fc('0xc'),'port':0x18eb});var socket=require(_0xf9fc('0xd'))(new Redis(config[_0xf9fc('0xa')]));require(_0xf9fc('0xe'))[_0xf9fc('0xf')](socket);function respondWithRpcPromise(_0x56397c,_0x32a7cc,_0x4174c1){return new BPromise(function(_0xd0244a,_0x13c66b){return client['request'](_0x56397c,_0x4174c1)['then'](function(_0x1c1f63){logger['info'](_0xf9fc('0x10'),_0x32a7cc,_0xf9fc('0x11'));logger[_0xf9fc('0x12')](_0xf9fc('0x13'),_0x32a7cc,_0xf9fc('0x11'),JSON['stringify'](_0x1c1f63));if(_0x1c1f63[_0xf9fc('0x14')]){if(_0x1c1f63[_0xf9fc('0x14')]['code']===0x1f4){logger[_0xf9fc('0x14')](_0xf9fc('0x10'),_0x32a7cc,_0x1c1f63[_0xf9fc('0x14')][_0xf9fc('0x15')]);return _0x13c66b(_0x1c1f63[_0xf9fc('0x14')][_0xf9fc('0x15')]);}logger[_0xf9fc('0x14')](_0xf9fc('0x10'),_0x32a7cc,_0x1c1f63['error'][_0xf9fc('0x15')]);return _0xd0244a(_0x1c1f63['error']['message']);}else{logger[_0xf9fc('0x16')](_0xf9fc('0x10'),_0x32a7cc,_0xf9fc('0x11'));_0xd0244a(_0x1c1f63[_0xf9fc('0x17')]['message']);}})[_0xf9fc('0x18')](function(_0x21dc13){logger[_0xf9fc('0x14')](_0xf9fc('0x10'),_0x32a7cc,_0x21dc13);_0x13c66b(_0x21dc13);});});}exports[_0xf9fc('0x19')]=function(_0x24ea8a){var _0x100f16=this;return new Promise(function(_0x330348,_0x506a71){return db['User']['findAll']({'raw':_0x24ea8a[_0xf9fc('0x1a')]?_0x24ea8a[_0xf9fc('0x1a')][_0xf9fc('0x1b')]===undefined?!![]:![]:!![],'where':_0x24ea8a['options']?_0x24ea8a[_0xf9fc('0x1a')][_0xf9fc('0x1c')]||null:null,'attributes':_0x24ea8a[_0xf9fc('0x1a')]?_0x24ea8a[_0xf9fc('0x1a')][_0xf9fc('0x1d')]||null:null,'limit':_0x24ea8a[_0xf9fc('0x1a')]?_0x24ea8a[_0xf9fc('0x1a')]['limit']||null:null,'include':_0x24ea8a['options']?_0x24ea8a[_0xf9fc('0x1a')]['include']?_[_0xf9fc('0x1e')](_0x24ea8a[_0xf9fc('0x1a')][_0xf9fc('0x1f')],function(_0x3d13fa){return{'model':db[_0x3d13fa[_0xf9fc('0x20')]],'as':_0x3d13fa['as'],'attributes':_0x3d13fa['attributes'],'include':_0x3d13fa['include']?_[_0xf9fc('0x1e')](_0x3d13fa[_0xf9fc('0x1f')],function(_0x3b705b){return{'model':db[_0x3b705b[_0xf9fc('0x20')]],'as':_0x3b705b['as'],'attributes':_0x3b705b[_0xf9fc('0x1d')],'include':_0x3b705b[_0xf9fc('0x1f')]?_[_0xf9fc('0x1e')](_0x3b705b[_0xf9fc('0x1f')],function(_0x42274e){return{'model':db[_0x42274e['model']],'as':_0x42274e['as'],'attributes':_0x42274e['attributes']};}):[]};}):[]};}):[]:[]})[_0xf9fc('0x21')](function(_0x22badd){logger[_0xf9fc('0x16')](_0xf9fc('0x19'),_0x24ea8a);logger[_0xf9fc('0x12')](_0xf9fc('0x19'),_0x24ea8a,JSON[_0xf9fc('0x22')](_0x22badd));_0x330348(_0x22badd);})[_0xf9fc('0x18')](function(_0x52c93e){logger[_0xf9fc('0x14')](_0xf9fc('0x19'),_0x52c93e[_0xf9fc('0x15')],_0x24ea8a);_0x506a71(_0x100f16['error'](0x1f4,_0x52c93e[_0xf9fc('0x15')]));});});};exports['ShowUser']=function(_0x1bc166){var _0x3ee729=this;return new Promise(function(_0x304ebb,_0x146139){return db[_0xf9fc('0x23')][_0xf9fc('0x24')]({'raw':_0x1bc166[_0xf9fc('0x1a')]?_0x1bc166['options']['raw']===undefined?!![]:![]:!![],'where':_0x1bc166[_0xf9fc('0x1a')]?_0x1bc166[_0xf9fc('0x1a')][_0xf9fc('0x1c')]||null:null,'attributes':_0x1bc166[_0xf9fc('0x1a')]?_0x1bc166[_0xf9fc('0x1a')]['attributes']||null:null,'include':_0x1bc166['options']?_0x1bc166[_0xf9fc('0x1a')][_0xf9fc('0x1f')]?_['map'](_0x1bc166[_0xf9fc('0x1a')][_0xf9fc('0x1f')],function(_0x5bad3f){return{'model':db[_0x5bad3f[_0xf9fc('0x20')]],'as':_0x5bad3f['as'],'attributes':_0x5bad3f['attributes'],'include':_0x5bad3f['include']?_['map'](_0x5bad3f['include'],function(_0x4756b7){return{'model':db[_0x4756b7[_0xf9fc('0x20')]],'as':_0x4756b7['as'],'attributes':_0x4756b7['attributes'],'include':_0x4756b7[_0xf9fc('0x1f')]?_[_0xf9fc('0x1e')](_0x4756b7[_0xf9fc('0x1f')],function(_0x207dd7){return{'model':db[_0x207dd7[_0xf9fc('0x20')]],'as':_0x207dd7['as'],'attributes':_0x207dd7['attributes']};}):[]};}):[]};}):[]:[]})[_0xf9fc('0x21')](function(_0x204473){logger['info']('ShowUser',_0x1bc166);logger['debug'](_0xf9fc('0x25'),_0x1bc166,JSON[_0xf9fc('0x22')](_0x204473));_0x304ebb(_0x204473);})[_0xf9fc('0x18')](function(_0x379e90){logger['error'](_0xf9fc('0x25'),_0x379e90[_0xf9fc('0x15')],_0x1bc166);_0x146139(_0x3ee729['error'](0x1f4,_0x379e90['message']));});});};exports[_0xf9fc('0x26')]=function(_0x35cd77){var _0x438b3c=this;return new Promise(function(_0x3d688f,_0x50d071){var _0x46ebd3;return db[_0xf9fc('0x23')][_0xf9fc('0x24')]({'where':_0x35cd77[_0xf9fc('0x1a')]['where']||{},'attributes':['id',_0xf9fc('0x27'),_0xf9fc('0x28'),_0xf9fc('0x29'),_0xf9fc('0x2a')]})[_0xf9fc('0x21')](function(_0x533b42){if(_0x533b42){_0x46ebd3=_0x533b42;return db[_0xf9fc('0x2b')][_0xf9fc('0x2c')]({'paused':0x1},{'where':{'UserId':_0x46ebd3['id']},'individualHooks':!![]});}})['then'](function(){if(_0x46ebd3){return db[_0xf9fc('0x2d')][_0xf9fc('0x2e')]({'where':{'membername':_0x46ebd3['name'],'type':'PAUSE','exitAt':null}});}})[_0xf9fc('0x21')](function(_0x43e2a0){if(_0x46ebd3){if(_0x43e2a0&&_0x43e2a0[_0xf9fc('0x2f')]){var _0x55f6a1=moment()[_0xf9fc('0x30')](_0xf9fc('0x31'));for(var _0x560446=0x0,_0x5a569f=_0x43e2a0[_0xf9fc('0x2f')];_0x560446<_0x5a569f;_0x560446++){_0x43e2a0[_0x560446]['updateAttributes']({'exitAt':_0x55f6a1});}}}})['then'](function(){if(_0x46ebd3){var _0x4e88ba=[];var _0x541500=utils['getChannels']();_0x541500['forEach'](function(_0x160284){_0x4e88ba['push']({'channel':_0x160284,'membername':_0x46ebd3[_0xf9fc('0x27')],'interface':_[_0xf9fc('0x32')](_0x46ebd3[_0xf9fc('0x2a')])?util[_0xf9fc('0x30')](_0xf9fc('0x33'),_0x46ebd3[_0xf9fc('0x27')]):_0x46ebd3[_0xf9fc('0x2a')],'type':'PAUSE','enterAt':moment()[_0xf9fc('0x30')](_0xf9fc('0x31')),'data1':_0x35cd77[_0xf9fc('0x34')]['type']||_0xf9fc('0x35'),'role':_0x46ebd3[_0xf9fc('0x28')],'internal':_0x46ebd3[_0xf9fc('0x29')],'uniqueid':_0x35cd77[_0xf9fc('0x34')][_0xf9fc('0x36')]||null});});return db[_0xf9fc('0x2d')][_0xf9fc('0x37')](_0x4e88ba,{'individualHooks':!![]});}})[_0xf9fc('0x21')](function(){if(_0x46ebd3){return _0x46ebd3[_0xf9fc('0x2c')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'whatsappPause':!![],'pauseType':_0x35cd77[_0xf9fc('0x34')][_0xf9fc('0x38')]||_0xf9fc('0x35'),'lastPauseAt':moment()['format'](_0xf9fc('0x31'))});}})[_0xf9fc('0x21')](function(_0x16c0ab){_0x3d688f(_0x16c0ab);})['catch'](function(_0x51ae6f){_0x50d071(_0x438b3c['error'](0x1f4,_0x51ae6f[_0xf9fc('0x15')]));});});};exports['UnpauseUser']=function(_0x5bec74){var _0x597ba5=this;return new Promise(function(_0xaca88a,_0x50acbe){var _0x27218c;return db['User'][_0xf9fc('0x39')]({'where':_0x5bec74[_0xf9fc('0x1a')][_0xf9fc('0x1c')]||{},'attributes':['id',_0xf9fc('0x27')]})[_0xf9fc('0x21')](function(_0x29fdf9){if(_0x29fdf9){_0x27218c=_0x29fdf9;if(_0x5bec74[_0xf9fc('0x34')][_0xf9fc('0x3a')]&&!utils[_0xf9fc('0x3b')](_0x5bec74['body'][_0xf9fc('0x3a')])){throw new Error('Unknown\x20channel');}switch(_0x5bec74[_0xf9fc('0x34')]['channel']){case _0xf9fc('0x3c'):return db['UserVoiceQueueRt'][_0xf9fc('0x2c')]({'paused':0x0},{'where':{'UserId':_0x27218c['id']}})['then'](function(){return db[_0xf9fc('0x2d')][_0xf9fc('0x24')]({'where':{'channel':_0x5bec74[_0xf9fc('0x34')]['channel'],'membername':_0x27218c[_0xf9fc('0x27')],'type':'PAUSE','exitAt':null}});})[_0xf9fc('0x21')](function(_0x50edf5){if(_0x50edf5){return _0x50edf5['update']({'exitAt':moment()[_0xf9fc('0x30')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0xf9fc('0x3d')},{'individualHooks':!![]});}return null;})[_0xf9fc('0x21')](function(){return _0x27218c[_0xf9fc('0x2c')]({'voicePause':![]});});case _0xf9fc('0x3e'):case'chat':case _0xf9fc('0x3f'):case _0xf9fc('0x40'):case _0xf9fc('0x41'):case _0xf9fc('0x42'):return db[_0xf9fc('0x2d')]['find']({'where':{'channel':_0x5bec74['body'][_0xf9fc('0x3a')],'membername':_0x27218c['name'],'type':_0xf9fc('0x43'),'exitAt':null}})[_0xf9fc('0x21')](function(_0x64f671){return _0x64f671['update']({'exitAt':moment()[_0xf9fc('0x30')](_0xf9fc('0x31')),'data2':'system'},{'individualHooks':!![]});})[_0xf9fc('0x21')](function(){var _0x421c54={};_[_0xf9fc('0x44')](_0x421c54,util[_0xf9fc('0x30')](_0xf9fc('0x45'),_0x5bec74[_0xf9fc('0x34')][_0xf9fc('0x3a')],_0xf9fc('0x46')),![]);return _0x27218c[_0xf9fc('0x2c')](_0x421c54);});default:return db[_0xf9fc('0x2b')][_0xf9fc('0x2c')]({'paused':0x0},{'where':{'UserId':_0x27218c['id']}})[_0xf9fc('0x21')](function(){return db[_0xf9fc('0x2d')][_0xf9fc('0x2e')]({'where':{'membername':_0x27218c[_0xf9fc('0x27')],'type':_0xf9fc('0x43'),'exitAt':null}});})[_0xf9fc('0x21')](function(_0x4b0696){var _0x185f88=[];_0x4b0696[_0xf9fc('0x47')](function(_0x4d2ce3){_0x185f88[_0xf9fc('0x48')](_0x4d2ce3['update']({'exitAt':moment()[_0xf9fc('0x30')](_0xf9fc('0x31')),'data2':_0xf9fc('0x3d')}));});return BPromise[_0xf9fc('0x49')](_0x185f88);})['then'](function(){return _0x27218c['update']({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![]});});}}})[_0xf9fc('0x21')](function(_0x22bcb1){_0xaca88a(_0x22bcb1);})[_0xf9fc('0x18')](function(_0x4c1a1c){_0x50acbe(_0x597ba5[_0xf9fc('0x14')](0x1f4,_0x4c1a1c[_0xf9fc('0x15')]));});});};exports[_0xf9fc('0x4a')]=function(_0x48e96d){var _0xa07cbc=this;return new Promise(function(_0x1e0021,_0x5d5f98){var _0x43fa26;return db[_0xf9fc('0x23')][_0xf9fc('0x39')]({'where':_0x48e96d[_0xf9fc('0x1a')]['where']||{},'attributes':['id',_0xf9fc('0x27')]})[_0xf9fc('0x21')](function(_0x372193){if(_0x372193){_0x43fa26=_0x372193;return db[_0xf9fc('0x2b')][_0xf9fc('0x4b')]({'where':{'membername':_0x43fa26[_0xf9fc('0x27')]},'individualHooks':!![]});}})[_0xf9fc('0x21')](function(){if(_0x43fa26){return db[_0xf9fc('0x2d')][_0xf9fc('0x2e')]({'where':{'membername':_0x43fa26[_0xf9fc('0x27')],'exitAt':null}});}})['then'](function(_0x4b1a9b){if(_0x43fa26){if(_0x4b1a9b&&_0x4b1a9b[_0xf9fc('0x2f')]){var _0x5e2c0c=[];_0x4b1a9b[_0xf9fc('0x47')](function(_0x310225){_0x5e2c0c[_0xf9fc('0x48')](_0x310225['update']({'exitAt':moment()[_0xf9fc('0x30')](_0xf9fc('0x31'))}));});return BPromise['all'](_0x5e2c0c);}}})['then'](function(){if(_0x43fa26){return _0x43fa26['update']({'online':![],'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});}})['then'](function(_0x48b7f5){_0x1e0021(_0x48b7f5);})[_0xf9fc('0x18')](function(_0xfa626c){_0x5d5f98(_0xa07cbc[_0xf9fc('0x14')](0x1f4,_0xfa626c[_0xf9fc('0x15')]));});});};exports['LoginUser']=function(_0x73297){var _0x20b88=this;return new Promise(function(_0x1cdd5a,_0x4ac259){var _0x58e9f2;var _0x3b5675;var _0x45e474;var _0x25d910;return db[_0xf9fc('0x23')][_0xf9fc('0x39')]({'where':_0x73297[_0xf9fc('0x1a')]['where']||{},'attributes':['id',_0xf9fc('0x27'),_0xf9fc('0x28'),'mobile','phone','internal',_0xf9fc('0x4c'),_0xf9fc('0x2a')]})[_0xf9fc('0x21')](function(_0x449293){if(_0x449293){_0x58e9f2=_0x449293;_0x25d910=_0x73297[_0xf9fc('0x34')]['interface']?_0x73297[_0xf9fc('0x34')][_0xf9fc('0x2a')]:util['format'](_0xf9fc('0x33'),_0x58e9f2[_0xf9fc('0x27')]);return db[_0xf9fc('0x23')][_0xf9fc('0x4d')]({'where':{'role':_0xf9fc('0x4e'),'online':!![],'id':{'$ne':_0x58e9f2['id']}}});}})['then'](function(_0xa54f3a){if(_0xa54f3a){_0x45e474=_0xa54f3a;return require('../../config/license/util')[_0xf9fc('0x4f')]();}})[_0xf9fc('0x21')](function(_0x185897){if(_0x185897&&_0x185897['agents']&&_0x45e474>=_0x185897[_0xf9fc('0x50')]){throw new Error('Maximum\x20login\x20has\x20been\x20reached');}})['then'](function(){if(_0x58e9f2){return db[_0xf9fc('0x2b')]['destroy']({'where':{'membername':_0x58e9f2[_0xf9fc('0x27')]},'individualHooks':!![]});}})[_0xf9fc('0x21')](function(){if(_0x58e9f2){return _0x58e9f2[_0xf9fc('0x51')]({'raw':!![]});}})[_0xf9fc('0x21')](function(_0x287204){if(_0x58e9f2){if(_0x287204){var _0x342a3e=[];_0x3b5675=_0x287204;if(_0x3b5675[_0xf9fc('0x2f')]){for(var _0x3a4272=0x0;_0x3a4272<_0x3b5675[_0xf9fc('0x2f')];_0x3a4272++){_0x342a3e['push'](db['UserVoiceQueueRt'][_0xf9fc('0x52')]({'membername':_0x58e9f2[_0xf9fc('0x27')],'UserId':_0x58e9f2['id'],'queue_name':_0x3b5675[_0x3a4272][_0xf9fc('0x27')],'VoiceQueueId':_0x3b5675[_0x3a4272]['id'],'interface':_0x25d910,'paused':_0x58e9f2[_0xf9fc('0x4c')]||![],'penalty':_0x3b5675[_0x3a4272][_0xf9fc('0x53')]||0x0}));}return BPromise[_0xf9fc('0x49')](_0x342a3e);}}}})[_0xf9fc('0x21')](function(){if(_0x58e9f2){return db[_0xf9fc('0x2d')][_0xf9fc('0x2e')]({'where':{'membername':_0x58e9f2[_0xf9fc('0x27')],'exitAt':null}});}})[_0xf9fc('0x21')](function(_0x5872f2){if(_0x58e9f2){if(_0x5872f2&&_0x5872f2['length']){var _0x101d78=[];_0x5872f2[_0xf9fc('0x47')](function(_0x1acba8){_0x101d78[_0xf9fc('0x48')](_0x1acba8['update']({'exitAt':moment()[_0xf9fc('0x30')](_0xf9fc('0x31'))}));});return BPromise['all'](_0x101d78);}}})[_0xf9fc('0x21')](function(_0x14e625){if(_0x58e9f2){var _0x191bfe=[];var _0x3e3ff0=[];var _0x2ac1ff=utils[_0xf9fc('0x54')]();var _0x197a2e={'membername':_0x58e9f2['name'],'interface':_0x25d910,'enterAt':moment()[_0xf9fc('0x30')]('YYYY-MM-DD\x20HH:mm:ss'),'role':_0x58e9f2[_0xf9fc('0x28')],'internal':_0x58e9f2[_0xf9fc('0x29')]};_0x2ac1ff[_0xf9fc('0x47')](function(_0x217758){_0x191bfe[_0xf9fc('0x48')](_['merge']({'channel':_0x217758,'type':_0xf9fc('0x55'),'data1':_0xf9fc('0x56'),'data2':_0x25d910},_0x197a2e));if(_0x58e9f2[_0xf9fc('0x4c')]){_0x3e3ff0[_0xf9fc('0x48')](_[_0xf9fc('0x57')]({'channel':_0x217758,'type':_0xf9fc('0x43'),'data1':_0xf9fc('0x58')},_0x197a2e));}});return db[_0xf9fc('0x2d')][_0xf9fc('0x37')](_0x191bfe['concat'](_0x3e3ff0),{'individualHooks':!![]});}})[_0xf9fc('0x21')](function(){if(_0x58e9f2){return _0x58e9f2[_0xf9fc('0x2c')]({'online':!![],'lastLoginAt':moment()[_0xf9fc('0x30')](_0xf9fc('0x31')),'voicePause':_0x58e9f2[_0xf9fc('0x4c')]||![],'mailPause':_0x58e9f2['loginInPause']||![],'chatPause':_0x58e9f2[_0xf9fc('0x4c')]||![],'faxPause':_0x58e9f2[_0xf9fc('0x4c')]||![],'smsPause':_0x58e9f2[_0xf9fc('0x4c')]||![],'openchannelPause':_0x58e9f2[_0xf9fc('0x4c')]||![],'pauseType':_0x58e9f2[_0xf9fc('0x4c')]?_0xf9fc('0x58'):null,'lastPauseAt':moment()[_0xf9fc('0x30')](_0xf9fc('0x31')),'interface':_0x25d910});}})[_0xf9fc('0x21')](function(_0x2ba3f8){_0x1cdd5a(_0x2ba3f8);})[_0xf9fc('0x18')](function(_0x3c5082){_0x4ac259(_0x20b88[_0xf9fc('0x14')](0x1f4,_0x3c5082[_0xf9fc('0x15')]));});});};