Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / whatsappInteraction / whatsappInteraction.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 _0xd8d3=['unix','toString','root','server','files','join','attachments','transcript-%d-%s.zip','User','fullname','push','CmContact','Contact','firstName','lastName','Attachment','createdAt','direction','secret','read','Account','Owner','get','mkdirSync','Whatsapp','N.A.','closedAt','disposition','Messages','createReadStream','pipe','basename','out','renderFile','views','downloadInteraction.ejs','transcript-','.pdf','createPdfFromHTML','log','err','rimraf','moment','bluebird','util','path','ioredis','../../components/interaction/service','../../components/parsers/qs','../../components/export/pdf','../../config/logger','api','../../config/environment','../../mysqldb','redis','defaults','localhost','./whatsappInteraction.socket','register','sendStatus','status','json','offset','undefined','limit','count','set','Content-Range','then','destroy','end','error','send','index','WhatsappInteraction','rawAttributes','fieldName','type','key','findAll','whatsapp','query','user','catch','show','params','model','keys','filters','intersection','fields','attributes','length','includeAll','include','merge','find','create','body','describe','addMessage','WhatsappMessage','ids','omit','getMessages','findOne','hasOwnProperty','nolimit','sort','where','WhatsappInteractionId','filter','map','$gte','split','format','YYYY-MM-DD\x20HH:mm:ss','rows','addTags','spread','Tag','name','color','emit','whatsappInteractionTags:save','removeTags','download'];(function(_0x5a1d97,_0x265b5a){var _0x401646=function(_0x4dd898){while(--_0x4dd898){_0x5a1d97['push'](_0x5a1d97['shift']());}};_0x401646(++_0x265b5a);}(_0xd8d3,0xa8));var _0x3d8d=function(_0x579ea9,_0x57d133){_0x579ea9=_0x579ea9-0x0;var _0x4e043d=_0xd8d3[_0x579ea9];return _0x4e043d;};'use strict';var rimraf=require(_0x3d8d('0x0'));var zipdir=require('zip-dir');var moment=require(_0x3d8d('0x1'));var BPromise=require(_0x3d8d('0x2'));var util=require(_0x3d8d('0x3'));var path=require(_0x3d8d('0x4'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var Redis=require(_0x3d8d('0x5'));var interaction=require(_0x3d8d('0x6'));var qs=require(_0x3d8d('0x7'));var pdf=require(_0x3d8d('0x8'));var logger=require(_0x3d8d('0x9'))(_0x3d8d('0xa'));var config=require(_0x3d8d('0xb'));var db=require(_0x3d8d('0xc'))['db'];config[_0x3d8d('0xd')]=_[_0x3d8d('0xe')](config[_0x3d8d('0xd')],{'host':_0x3d8d('0xf'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config['redis']));require(_0x3d8d('0x10'))[_0x3d8d('0x11')](socket);function respondWithStatusCode(_0x1ed2f0,_0x350e40){_0x350e40=_0x350e40||0xcc;return function(_0x1e3785){if(_0x1e3785){return _0x1ed2f0[_0x3d8d('0x12')](_0x350e40);}return _0x1ed2f0[_0x3d8d('0x13')](_0x350e40)['end']();};}function respondWithResult(_0x12e0dd,_0x358cf5){_0x358cf5=_0x358cf5||0xc8;return function(_0x597c73){if(_0x597c73){return _0x12e0dd[_0x3d8d('0x13')](_0x358cf5)[_0x3d8d('0x14')](_0x597c73);}};}function respondWithFilteredResult(_0x4e2f1b,_0x55e4c3){return function(_0x1e26cb){if(_0x1e26cb){var _0x482a55=typeof _0x55e4c3[_0x3d8d('0x15')]===_0x3d8d('0x16')&&typeof _0x55e4c3[_0x3d8d('0x17')]==='undefined';var _0x1017b6=_0x1e26cb[_0x3d8d('0x18')];var _0x52ef40=_0x482a55?0x0:_0x55e4c3[_0x3d8d('0x15')];var _0xe7a124=_0x482a55?_0x1e26cb[_0x3d8d('0x18')]:_0x55e4c3[_0x3d8d('0x15')]+_0x55e4c3[_0x3d8d('0x17')];var _0x509052;if(_0xe7a124>=_0x1017b6){_0xe7a124=_0x1017b6;_0x509052=0xc8;}else{_0x509052=0xce;}_0x4e2f1b['status'](_0x509052);return _0x4e2f1b[_0x3d8d('0x19')](_0x3d8d('0x1a'),_0x52ef40+'-'+_0xe7a124+'/'+_0x1017b6)['json'](_0x1e26cb);}return null;};}function saveUpdates(_0x3318e0){return function(_0x4be6dd){if(_0x4be6dd){return _0x4be6dd['update'](_0x3318e0)[_0x3d8d('0x1b')](function(_0x29eacc){return _0x29eacc;});}return null;};}function removeEntity(_0xd6bc81){return function(_0x54a995){if(_0x54a995){return _0x54a995[_0x3d8d('0x1c')]()[_0x3d8d('0x1b')](function(){_0xd6bc81[_0x3d8d('0x13')](0xcc)[_0x3d8d('0x1d')]();});}};}function handleEntityNotFound(_0xdd07){return function(_0x42ea5e){if(!_0x42ea5e){_0xdd07[_0x3d8d('0x12')](0x194);}return _0x42ea5e;};}function handleError(_0x505176,_0x17b57c){_0x17b57c=_0x17b57c||0x1f4;return function(_0x3c3af4){logger[_0x3d8d('0x1e')](_0x3c3af4['stack']);if(_0x3c3af4['name']){delete _0x3c3af4['name'];}_0x505176['status'](_0x17b57c)[_0x3d8d('0x1f')](_0x3c3af4);};}exports[_0x3d8d('0x20')]=function(_0x152c68,_0x11ead4){var _0x1ae9b6={};var _0x364086=_['map'](db[_0x3d8d('0x21')][_0x3d8d('0x22')],function(_0x2d6f9c){return{'name':_0x2d6f9c[_0x3d8d('0x23')],'type':_0x2d6f9c[_0x3d8d('0x24')][_0x3d8d('0x25')]};});_0x1ae9b6=qs['getOptions'](_0x364086,_0x152c68);return interaction[_0x3d8d('0x26')](_0x3d8d('0x27'),_0x152c68[_0x3d8d('0x28')],_0x152c68[_0x3d8d('0x29')],_0x1ae9b6,_0x364086)[_0x3d8d('0x1b')](respondWithFilteredResult(_0x11ead4,_0x1ae9b6))[_0x3d8d('0x2a')](handleError(_0x11ead4,null));};exports[_0x3d8d('0x2b')]=function(_0x43ce8f,_0x271283){var _0x2a0741={'raw':![],'where':{'id':_0x43ce8f[_0x3d8d('0x2c')]['id']}},_0xf855e4={};_0xf855e4[_0x3d8d('0x2d')]=_['keys'](db[_0x3d8d('0x21')][_0x3d8d('0x22')]);_0xf855e4['query']=_[_0x3d8d('0x2e')](_0x43ce8f[_0x3d8d('0x28')]);_0xf855e4[_0x3d8d('0x2f')]=_[_0x3d8d('0x30')](_0xf855e4[_0x3d8d('0x2d')],_0xf855e4['query']);_0x2a0741['attributes']=_[_0x3d8d('0x30')](_0xf855e4[_0x3d8d('0x2d')],qs[_0x3d8d('0x31')](_0x43ce8f[_0x3d8d('0x28')][_0x3d8d('0x31')]));_0x2a0741[_0x3d8d('0x32')]=_0x2a0741[_0x3d8d('0x32')][_0x3d8d('0x33')]?_0x2a0741[_0x3d8d('0x32')]:_0xf855e4[_0x3d8d('0x2d')];if(_0x43ce8f[_0x3d8d('0x28')][_0x3d8d('0x34')]){_0x2a0741[_0x3d8d('0x35')]=[{'all':!![]}];}_0x2a0741=_[_0x3d8d('0x36')]({},_0x2a0741,_0x43ce8f['options']);return db[_0x3d8d('0x21')][_0x3d8d('0x37')](_0x2a0741)['then'](handleEntityNotFound(_0x271283,null))[_0x3d8d('0x1b')](respondWithResult(_0x271283,null))[_0x3d8d('0x2a')](handleError(_0x271283,null));};exports[_0x3d8d('0x38')]=function(_0x2aefc6,_0x6c5105){return db[_0x3d8d('0x21')][_0x3d8d('0x38')](_0x2aefc6[_0x3d8d('0x39')],{})[_0x3d8d('0x1b')](respondWithResult(_0x6c5105,0xc9))[_0x3d8d('0x2a')](handleError(_0x6c5105,null));};exports['update']=function(_0x19ba2f,_0x4334b6){if(_0x19ba2f[_0x3d8d('0x39')]['id']){delete _0x19ba2f[_0x3d8d('0x39')]['id'];}return db[_0x3d8d('0x21')][_0x3d8d('0x37')]({'where':{'id':_0x19ba2f['params']['id']}})[_0x3d8d('0x1b')](handleEntityNotFound(_0x4334b6,null))[_0x3d8d('0x1b')](saveUpdates(_0x19ba2f['body'],null))[_0x3d8d('0x1b')](respondWithResult(_0x4334b6,null))[_0x3d8d('0x2a')](handleError(_0x4334b6,null));};exports['destroy']=function(_0x375840,_0x48cdbf){return db[_0x3d8d('0x21')][_0x3d8d('0x37')]({'where':{'id':_0x375840[_0x3d8d('0x2c')]['id']}})[_0x3d8d('0x1b')](handleEntityNotFound(_0x48cdbf,null))[_0x3d8d('0x1b')](removeEntity(_0x48cdbf,null))[_0x3d8d('0x2a')](handleError(_0x48cdbf,null));};exports[_0x3d8d('0x3a')]=function(_0x343508,_0x3a88e1){return db[_0x3d8d('0x21')][_0x3d8d('0x3a')]()[_0x3d8d('0x1b')](respondWithResult(_0x3a88e1,null))[_0x3d8d('0x2a')](handleError(_0x3a88e1,null));};exports[_0x3d8d('0x3b')]=function(_0x296412,_0x10b9ee){return db[_0x3d8d('0x3c')][_0x3d8d('0x37')]({'where':{'id':_0x296412['params']['id']}})[_0x3d8d('0x1b')](handleEntityNotFound(_0x10b9ee,null))[_0x3d8d('0x1b')](function(_0x3dbcd1){if(_0x3dbcd1){return _0x3dbcd1['addMessage'](_0x296412[_0x3d8d('0x39')][_0x3d8d('0x3d')],_[_0x3d8d('0x3e')](_0x296412[_0x3d8d('0x39')],['ids','id'])||{});}})[_0x3d8d('0x1b')](respondWithResult(_0x10b9ee,null))[_0x3d8d('0x2a')](handleError(_0x10b9ee,null));};exports[_0x3d8d('0x3f')]=function(_0x98c948,_0xc83921){var _0x51c862={'raw':![],'where':{}};var _0x290f5c={};var _0x1432cd={'count':0x0,'rows':[]};return db['WhatsappInteraction'][_0x3d8d('0x40')]({'where':{'id':_0x98c948[_0x3d8d('0x2c')]['id']}})[_0x3d8d('0x1b')](handleEntityNotFound(_0xc83921,null))[_0x3d8d('0x1b')](function(_0x3f3181){if(_0x3f3181){_0x290f5c[_0x3d8d('0x2d')]=_[_0x3d8d('0x2e')](db[_0x3d8d('0x3c')]['rawAttributes']);_0x290f5c['query']=_['keys'](_0x98c948[_0x3d8d('0x28')]);_0x290f5c['filters']=_['intersection'](_0x290f5c[_0x3d8d('0x2d')],_0x290f5c[_0x3d8d('0x28')]);_0x51c862[_0x3d8d('0x32')]=_[_0x3d8d('0x30')](_0x290f5c[_0x3d8d('0x2d')],qs[_0x3d8d('0x31')](_0x98c948[_0x3d8d('0x28')][_0x3d8d('0x31')]));_0x51c862[_0x3d8d('0x32')]=_0x51c862[_0x3d8d('0x32')][_0x3d8d('0x33')]?_0x51c862[_0x3d8d('0x32')]:_0x290f5c[_0x3d8d('0x2d')];if(!_0x98c948[_0x3d8d('0x28')][_0x3d8d('0x41')](_0x3d8d('0x42'))){_0x51c862[_0x3d8d('0x17')]=qs[_0x3d8d('0x17')](_0x98c948[_0x3d8d('0x28')]['limit']);_0x51c862[_0x3d8d('0x15')]=qs[_0x3d8d('0x15')](_0x98c948['query'][_0x3d8d('0x15')]);}_0x51c862['order']=qs[_0x3d8d('0x43')](_0x98c948[_0x3d8d('0x28')][_0x3d8d('0x43')]);_0x51c862[_0x3d8d('0x44')]=qs[_0x3d8d('0x2f')](_['pick'](_0x98c948[_0x3d8d('0x28')],_0x290f5c[_0x3d8d('0x2f')]));_0x51c862[_0x3d8d('0x44')][_0x3d8d('0x45')]=_0x3f3181['id'];if(_0x98c948[_0x3d8d('0x28')][_0x3d8d('0x46')]){_0x51c862[_0x3d8d('0x44')]=_[_0x3d8d('0x36')](_0x51c862['where'],{'$or':_[_0x3d8d('0x47')](_0x51c862[_0x3d8d('0x32')],function(_0x59665a){var _0x36a8df={};_0x36a8df[_0x59665a]={'$like':'%'+_0x98c948['query'][_0x3d8d('0x46')]+'%'};return _0x36a8df;})});}if(_0x98c948[_0x3d8d('0x28')][_0x3d8d('0x48')]){var _0x1128f5=_0x98c948[_0x3d8d('0x28')]['$gte'][_0x3d8d('0x49')](',');var _0x5317be={};_0x5317be[_0x1128f5[0x0]]={'$gte':moment(_0x1128f5[0x1])[_0x3d8d('0x4a')](_0x3d8d('0x4b'))};_0x51c862['where']=_['merge'](_0x51c862[_0x3d8d('0x44')],_0x5317be);}_0x51c862=_[_0x3d8d('0x36')]({},_0x51c862,_0x98c948['options']);return db[_0x3d8d('0x3c')][_0x3d8d('0x18')]({'where':_0x51c862['where']})[_0x3d8d('0x1b')](function(_0x168f90){_0x1432cd[_0x3d8d('0x18')]=_0x168f90;if(_0x98c948[_0x3d8d('0x28')][_0x3d8d('0x34')]){_0x51c862[_0x3d8d('0x35')]=[{'all':!![]}];}return db['WhatsappMessage'][_0x3d8d('0x26')](_0x51c862);})[_0x3d8d('0x1b')](function(_0x1f71b4){_0x1432cd[_0x3d8d('0x4c')]=_0x1f71b4;return _0x1432cd;});}})[_0x3d8d('0x1b')](respondWithFilteredResult(_0xc83921,_0x51c862))['catch'](handleError(_0xc83921,null));};exports[_0x3d8d('0x4d')]=function(_0x46dd5d,_0x560924){return db[_0x3d8d('0x21')][_0x3d8d('0x37')]({'where':{'id':_0x46dd5d[_0x3d8d('0x2c')]['id']}})[_0x3d8d('0x1b')](handleEntityNotFound(_0x560924,null))[_0x3d8d('0x1b')](function(_0x69e1ff){if(_0x69e1ff){return _0x69e1ff['setTags'](_0x46dd5d[_0x3d8d('0x39')][_0x3d8d('0x3d')],_[_0x3d8d('0x3e')](_0x46dd5d[_0x3d8d('0x39')],[_0x3d8d('0x3d'),'id'])||{})[_0x3d8d('0x4e')](function(){return db[_0x3d8d('0x4f')][_0x3d8d('0x26')]({'attributes':['id',_0x3d8d('0x50'),_0x3d8d('0x51')],'where':{'id':_0x46dd5d[_0x3d8d('0x39')][_0x3d8d('0x3d')]}});})[_0x3d8d('0x1b')](function(_0x288e3f){socket[_0x3d8d('0x52')](_0x3d8d('0x53'),{'id':Number(_0x46dd5d[_0x3d8d('0x2c')]['id']),'tags':_0x288e3f||[]});return{'id':Number(_0x46dd5d[_0x3d8d('0x2c')]['id']),'tags':_0x288e3f||[]};});}})['then'](respondWithResult(_0x560924,null))[_0x3d8d('0x2a')](handleError(_0x560924,null));};exports[_0x3d8d('0x54')]=function(_0x3625fa,_0x4eca0e){return db[_0x3d8d('0x21')]['find']({'where':{'id':_0x3625fa[_0x3d8d('0x2c')]['id']}})[_0x3d8d('0x1b')](handleEntityNotFound(_0x4eca0e,null))[_0x3d8d('0x1b')](function(_0x45e742){if(_0x45e742){return _0x45e742[_0x3d8d('0x54')](_0x3625fa[_0x3d8d('0x28')]['ids']);}})[_0x3d8d('0x1b')](respondWithStatusCode(_0x4eca0e,null))[_0x3d8d('0x2a')](handleError(_0x4eca0e,null));};exports[_0x3d8d('0x55')]=function(_0x298b53,_0x1ccc9d){var _0x16a0d5=moment()[_0x3d8d('0x56')]()[_0x3d8d('0x57')]();var _0x365d67=path['join'](config[_0x3d8d('0x58')],_0x3d8d('0x59'),_0x3d8d('0x5a'),'tmp');var _0x121451=path[_0x3d8d('0x5b')](config['root'],_0x3d8d('0x59'),'files',_0x3d8d('0x5c'));var _0x5a5dff=path[_0x3d8d('0x5b')](_0x365d67,_0x16a0d5);var _0x16398a=util[_0x3d8d('0x4a')](_0x3d8d('0x5d'),_0x298b53[_0x3d8d('0x2c')]['id'],_0x16a0d5);var _0x2c66d1=path[_0x3d8d('0x5b')](_0x365d67,_0x16398a);var _0x3b89e8=[];_0x3b89e8['push']({'model':db[_0x3d8d('0x5e')],'as':_0x3d8d('0x5e'),'attributes':['id',_0x3d8d('0x5f')],'raw':!![]});_0x3b89e8[_0x3d8d('0x60')]({'model':db[_0x3d8d('0x61')],'as':_0x3d8d('0x62'),'attributes':['id',_0x3d8d('0x63'),_0x3d8d('0x64')],'raw':!![]});if(_0x298b53[_0x3d8d('0x28')][_0x3d8d('0x5c')]){_0x3b89e8['push']({'model':db[_0x3d8d('0x65')],'as':'Attachment','raw':!![]});}var _0x2b5209=[{'model':db['WhatsappMessage'],'as':'Messages','attributes':['id','body',_0x3d8d('0x66'),_0x3d8d('0x67'),_0x3d8d('0x68'),_0x3d8d('0x69')],'include':_0x3b89e8}];_0x2b5209[_0x3d8d('0x60')]({'model':db['WhatsappAccount'],'as':_0x3d8d('0x6a'),'attributes':['id','name']});_0x2b5209[_0x3d8d('0x60')]({'model':db['User'],'as':_0x3d8d('0x6b'),'attributes':['id',_0x3d8d('0x5f')]});return db['WhatsappInteraction'][_0x3d8d('0x37')]({'where':{'id':_0x298b53[_0x3d8d('0x2c')]['id']},'include':_0x2b5209})[_0x3d8d('0x1b')](handleEntityNotFound(_0x1ccc9d,null))[_0x3d8d('0x1b')](function(_0xe5cfda){if(_0xe5cfda){var _0x5ed0ac=_0xe5cfda[_0x3d8d('0x6c')]({'plain':!![]});fs[_0x3d8d('0x6d')](_0x5a5dff);var _0xcca167={'channel':_0x3d8d('0x6e'),'account':_0x5ed0ac['Account'][_0x3d8d('0x50')],'agent':_0x5ed0ac[_0x3d8d('0x6b')]?_0x5ed0ac['Owner']['fullname']:_0x3d8d('0x6f'),'createdAt':moment(_0x5ed0ac[_0x3d8d('0x66')])[_0x3d8d('0x4a')](_0x3d8d('0x4b'))['toString'](),'closedAt':_0x5ed0ac['closed']?moment(_0x5ed0ac[_0x3d8d('0x70')])[_0x3d8d('0x4a')]('YYYY-MM-DD\x20HH:mm:ss')['toString']():'','disposition':_0x5ed0ac[_0x3d8d('0x71')],'messages':_(_0x5ed0ac[_0x3d8d('0x72')])[_0x3d8d('0x46')]({'secret':![]})[_0x3d8d('0x47')](function(_0xa65128){if(_0xa65128[_0x3d8d('0x65')]){var _0x27fa31=path[_0x3d8d('0x5b')](_0x121451,_0xa65128[_0x3d8d('0x65')]['basename']);if(fs['existsSync'](_0x27fa31)){fs[_0x3d8d('0x73')](_0x27fa31)[_0x3d8d('0x74')](fs['createWriteStream'](path[_0x3d8d('0x5b')](_0x5a5dff,_0xa65128[_0x3d8d('0x65')][_0x3d8d('0x75')])));}}return{'date':moment(_0xa65128['createdAt'])['format'](_0x3d8d('0x4b'))['toString'](),'sender':_0xa65128[_0x3d8d('0x67')]==='out'?_0xa65128[_0x3d8d('0x5e')]?_0xa65128[_0x3d8d('0x5e')][_0x3d8d('0x5f')]:'System':_0xa65128[_0x3d8d('0x62')][_0x3d8d('0x63')]+(_0xa65128['Contact'][_0x3d8d('0x64')]?'\x20'+_0xa65128[_0x3d8d('0x62')][_0x3d8d('0x64')]:''),'body':_0xa65128[_0x3d8d('0x65')]?_0xa65128['Attachment'][_0x3d8d('0x75')]:_0xa65128[_0x3d8d('0x39')],'direction':_0xa65128['direction']===_0x3d8d('0x76')?'A':'C','secret':_0xa65128[_0x3d8d('0x68')],'read':_0xa65128[_0x3d8d('0x69')],'attachment':_0xa65128[_0x3d8d('0x65')]};})['value']()};return ejs[_0x3d8d('0x77')](path[_0x3d8d('0x5b')](config[_0x3d8d('0x58')],_0x3d8d('0x59'),_0x3d8d('0x78'),_0x3d8d('0x79')),{'interaction':_0xcca167})[_0x3d8d('0x1b')](function(_0x1e8ed6){var _0x29ec4c=path[_0x3d8d('0x5b')](_0x5a5dff,_0x3d8d('0x7a')+_0x5ed0ac['id']+'-'+_0x16a0d5+_0x3d8d('0x7b'));var _0x579bdb={'path':_0x29ec4c,'channel':_0x3d8d('0x6e'),'interactionId':_0x5ed0ac['id']};return pdf[_0x3d8d('0x7c')](_0x1e8ed6,_0x579bdb);})['then'](function(){return new BPromise(function(_0x43284d,_0x57f2c0){zipdir(_0x5a5dff,{'saveTo':_0x2c66d1},function(_0x47f608,_0x1a1836){if(_0x47f608)return _0x57f2c0(_0x47f608);return _0x43284d(_0x1a1836);});})[_0x3d8d('0x1b')](function(){return new BPromise(function(_0x35a642,_0x596788){rimraf(_0x5a5dff,function(_0x386fed){if(_0x386fed)_0x596788(_0x386fed);return _0x35a642();});});})[_0x3d8d('0x1b')](function(){return _0x1ccc9d[_0x3d8d('0x55')](_0x2c66d1,_0x16398a,function(_0x210e9c){if(_0x210e9c){console[_0x3d8d('0x7d')](_0x3d8d('0x7e'),_0x210e9c);}else{fs['unlinkSync'](_0x2c66d1);}});});});}else{return _0x1ccc9d[_0x3d8d('0x12')](0xc8);}})[_0x3d8d('0x2a')](handleError(_0x1ccc9d,null));};