Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / intVtigerConfiguration / intVtigerConfiguration.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 _0x17b6=['lodash','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','api','../../config/environment','../../mysqldb','client','http','ValidationError','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','then','info','VtigerConfiguration,\x20%s,\x20%s','request\x20sent','VtigerConfiguration,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','status','json','count','offset','limit','set','Content-Range','apply','reject','save','update','destroy','sendStatus','stack','name','send','index','map','type','key','model','query','keys','filters','intersection','attributes','fields','length','nolimit','order','sort','filter','merge','where','VIRTUAL','VtigerConfiguration','include','findAll','rows','show','params','rawAttributes','create','body','findOne','VtigerField','getFields','hasOwnProperty','getSubjects','options','getDescriptions','html-pdf','eml-format','moment','bluebird','mustache','path','sox','ejs'];(function(_0x5b8919,_0x3d2103){var _0x5baa5b=function(_0x406c5e){while(--_0x406c5e){_0x5b8919['push'](_0x5b8919['shift']());}};_0x5baa5b(++_0x3d2103);}(_0x17b6,0xf7));var _0x617b=function(_0x5b2123,_0x3989ed){_0x5b2123=_0x5b2123-0x0;var _0x59bb71=_0x17b6[_0x5b2123];return _0x59bb71;};'use strict';var pdf=require(_0x617b('0x0'));var emlformat=require(_0x617b('0x1'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0x617b('0x2'));var BPromise=require(_0x617b('0x3'));var Mustache=require(_0x617b('0x4'));var util=require('util');var path=require(_0x617b('0x5'));var sox=require(_0x617b('0x6'));var csv=require('to-csv');var ejs=require(_0x617b('0x7'));var fs=require('fs');var _=require(_0x617b('0x8'));var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0x617b('0x9'));var deskjs=require(_0x617b('0xa'));var toCsv=require('to-csv');var querystring=require(_0x617b('0xb'));var Papa=require(_0x617b('0xc'));var Redis=require(_0x617b('0xd'));var authService=require(_0x617b('0xe'));var qs=require(_0x617b('0xf'));var as=require(_0x617b('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x617b('0x11'));var utils=require('../../config/utils');var config=require(_0x617b('0x12'));var db=require(_0x617b('0x13'))['db'];var jayson=require('jayson/promise');var client=jayson[_0x617b('0x14')][_0x617b('0x15')]({'port':0x232a});function checkPasswordPattern(_0x196ba6,_0x282ce9,_0x25b756){if(_0x25b756){var _0x35b8a7=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x35b8a7['test'](_0x282ce9)){return _0x196ba6;}else{throw new db['Sequelize'][(_0x617b('0x16'))](_0x617b('0x17'));}}else{return _0x196ba6;}}function respondWithRpcPromise(_0xbc1203,_0x3eda14,_0xfc8565,_0x80279d){return new BPromise(function(_0xea2332,_0x47b826){var _0xd785ba=_0x80279d||client;return _0xd785ba['request'](_0xbc1203,_0xfc8565)[_0x617b('0x18')](function(_0x130a90){logger[_0x617b('0x19')](_0x617b('0x1a'),_0x3eda14,_0x617b('0x1b'));logger['debug'](_0x617b('0x1c'),_0x3eda14,_0x617b('0x1b'),JSON['stringify'](_0x130a90));if(_0x130a90[_0x617b('0x1d')]){if(_0x130a90[_0x617b('0x1d')][_0x617b('0x1e')]===0x1f4){logger['error'](_0x617b('0x1a'),_0x3eda14,_0x130a90[_0x617b('0x1d')][_0x617b('0x1f')]);return _0x47b826(_0x130a90[_0x617b('0x1d')][_0x617b('0x1f')]);}logger[_0x617b('0x1d')](_0x617b('0x1a'),_0x3eda14,_0x130a90[_0x617b('0x1d')][_0x617b('0x1f')]);return _0xea2332(_0x130a90['error'][_0x617b('0x1f')]);}else{logger[_0x617b('0x19')](_0x617b('0x1a'),_0x3eda14,_0x617b('0x1b'));_0xea2332(_0x130a90[_0x617b('0x20')][_0x617b('0x1f')]);}})[_0x617b('0x21')](function(_0x57fdca){logger[_0x617b('0x1d')](_0x617b('0x1a'),_0x3eda14,_0x57fdca);_0x47b826(_0x57fdca);});});}function respondWithStatusCode(_0x39698c,_0xdff26c){_0xdff26c=_0xdff26c||0xcc;return function(_0x2674bc){if(_0x2674bc){return _0x39698c['sendStatus'](_0xdff26c);}return _0x39698c['status'](_0xdff26c)['end']();};}function respondWithResult(_0x1bc467,_0x5a50fc){_0x5a50fc=_0x5a50fc||0xc8;return function(_0x50b652){if(_0x50b652){return _0x1bc467[_0x617b('0x22')](_0x5a50fc)[_0x617b('0x23')](_0x50b652);}};}function respondWithFilteredResult(_0x5f0503,_0x23c14b){return function(_0x4a36d1){if(_0x4a36d1){var _0x2f9542=_0x4a36d1[_0x617b('0x24')],_0x21f896=_0x23c14b[_0x617b('0x25')],_0x437ba7=_0x23c14b[_0x617b('0x25')]+_0x23c14b[_0x617b('0x26')],_0x2697f1;if(_0x437ba7>=_0x2f9542){_0x437ba7=_0x2f9542;_0x2697f1=0xc8;}else{_0x2697f1=0xce;}_0x5f0503[_0x617b('0x22')](_0x2697f1);return _0x5f0503[_0x617b('0x27')](_0x617b('0x28'),_0x21f896+'-'+_0x437ba7+'/'+_0x2f9542)[_0x617b('0x23')](_0x4a36d1);}return null;};}function patchUpdates(_0x262253){return function(_0x469d7f){try{jsonpatch[_0x617b('0x29')](_0x469d7f,_0x262253,!![]);}catch(_0x11f40f){return BPromise[_0x617b('0x2a')](_0x11f40f);}return _0x469d7f[_0x617b('0x2b')]();};}function saveUpdates(_0xf8d7ab,_0x503d03){return function(_0x2fc367){if(_0x2fc367){return _0x2fc367[_0x617b('0x2c')](_0xf8d7ab)[_0x617b('0x18')](function(_0x94f206){return _0x94f206;});}return null;};}function removeEntity(_0x2c4941,_0x185b70){return function(_0x46e8ba){if(_0x46e8ba){return _0x46e8ba[_0x617b('0x2d')]()[_0x617b('0x18')](function(){_0x2c4941[_0x617b('0x22')](0xcc)['end']();});}};}function handleEntityNotFound(_0x7a0cc,_0xc1d7f0){return function(_0x540f95){if(!_0x540f95){_0x7a0cc[_0x617b('0x2e')](0x194);}return _0x540f95;};}function handleError(_0x2ad51c,_0x1bb840){_0x1bb840=_0x1bb840||0x1f4;return function(_0x3d98b5){logger[_0x617b('0x1d')](_0x3d98b5[_0x617b('0x2f')]);if(_0x3d98b5[_0x617b('0x30')]){delete _0x3d98b5[_0x617b('0x30')];}_0x2ad51c[_0x617b('0x22')](_0x1bb840)[_0x617b('0x31')](_0x3d98b5);};}exports[_0x617b('0x32')]=function(_0x2b35b9,_0x9fd5e){var _0x2af8fa={},_0x11dedd={},_0x20d5fd={'count':0x0,'rows':[]};var _0x19ef5e=_[_0x617b('0x33')](db['VtigerConfiguration']['rawAttributes'],function(_0x25054b){return{'name':_0x25054b['fieldName'],'type':_0x25054b[_0x617b('0x34')][_0x617b('0x35')]};});_0x11dedd[_0x617b('0x36')]=_[_0x617b('0x33')](_0x19ef5e,_0x617b('0x30'));_0x11dedd[_0x617b('0x37')]=_[_0x617b('0x38')](_0x2b35b9[_0x617b('0x37')]);_0x11dedd[_0x617b('0x39')]=_[_0x617b('0x3a')](_0x11dedd[_0x617b('0x36')],_0x11dedd[_0x617b('0x37')]);_0x2af8fa[_0x617b('0x3b')]=_[_0x617b('0x3a')](_0x11dedd[_0x617b('0x36')],qs[_0x617b('0x3c')](_0x2b35b9[_0x617b('0x37')][_0x617b('0x3c')]));_0x2af8fa[_0x617b('0x3b')]=_0x2af8fa['attributes'][_0x617b('0x3d')]?_0x2af8fa['attributes']:_0x11dedd[_0x617b('0x36')];if(!_0x2b35b9[_0x617b('0x37')]['hasOwnProperty'](_0x617b('0x3e'))){_0x2af8fa['limit']=qs[_0x617b('0x26')](_0x2b35b9[_0x617b('0x37')][_0x617b('0x26')]);_0x2af8fa[_0x617b('0x25')]=qs[_0x617b('0x25')](_0x2b35b9[_0x617b('0x37')][_0x617b('0x25')]);}_0x2af8fa[_0x617b('0x3f')]=qs[_0x617b('0x40')](_0x2b35b9[_0x617b('0x37')]['sort']);_0x2af8fa['where']=qs[_0x617b('0x39')](_['pick'](_0x2b35b9[_0x617b('0x37')],_0x11dedd[_0x617b('0x39')]),_0x19ef5e);if(_0x2b35b9[_0x617b('0x37')][_0x617b('0x41')]){_0x2af8fa['where']=_[_0x617b('0x42')](_0x2af8fa[_0x617b('0x43')],{'$or':_['map'](_0x19ef5e,function(_0x4199dd){if(_0x4199dd[_0x617b('0x34')]!==_0x617b('0x44')){var _0xcfa5ef={};_0xcfa5ef[_0x4199dd[_0x617b('0x30')]]={'$like':'%'+_0x2b35b9[_0x617b('0x37')][_0x617b('0x41')]+'%'};return _0xcfa5ef;}})});}_0x2af8fa=_[_0x617b('0x42')]({},_0x2af8fa,_0x2b35b9['options']);var _0x433cdf={'where':_0x2af8fa[_0x617b('0x43')]};return db[_0x617b('0x45')][_0x617b('0x24')](_0x433cdf)[_0x617b('0x18')](function(_0xaef51){_0x20d5fd[_0x617b('0x24')]=_0xaef51;if(_0x2b35b9['query']['includeAll']){_0x2af8fa[_0x617b('0x46')]=[{'all':!![]}];}return db['VtigerConfiguration'][_0x617b('0x47')](_0x2af8fa);})['then'](function(_0x7ee064){_0x20d5fd[_0x617b('0x48')]=_0x7ee064;return _0x20d5fd;})[_0x617b('0x18')](respondWithFilteredResult(_0x9fd5e,_0x2af8fa))[_0x617b('0x21')](handleError(_0x9fd5e,null));};exports[_0x617b('0x49')]=function(_0x4d3360,_0x4ee4d7){var _0x151eb8={'raw':![],'where':{'id':_0x4d3360[_0x617b('0x4a')]['id']}},_0x5c7713={};_0x5c7713[_0x617b('0x36')]=_[_0x617b('0x38')](db[_0x617b('0x45')][_0x617b('0x4b')]);_0x5c7713['query']=_[_0x617b('0x38')](_0x4d3360['query']);_0x5c7713[_0x617b('0x39')]=_[_0x617b('0x3a')](_0x5c7713[_0x617b('0x36')],_0x5c7713['query']);_0x151eb8[_0x617b('0x3b')]=_[_0x617b('0x3a')](_0x5c7713[_0x617b('0x36')],qs['fields'](_0x4d3360[_0x617b('0x37')][_0x617b('0x3c')]));_0x151eb8['attributes']=_0x151eb8[_0x617b('0x3b')][_0x617b('0x3d')]?_0x151eb8[_0x617b('0x3b')]:_0x5c7713[_0x617b('0x36')];if(_0x4d3360['query']['includeAll']){_0x151eb8[_0x617b('0x46')]=[{'all':!![]}];}_0x151eb8=_['merge']({},_0x151eb8,_0x4d3360['options']);return db[_0x617b('0x45')]['find'](_0x151eb8)[_0x617b('0x18')](handleEntityNotFound(_0x4ee4d7,null))[_0x617b('0x18')](respondWithResult(_0x4ee4d7,null))[_0x617b('0x21')](handleError(_0x4ee4d7,null));};exports[_0x617b('0x4c')]=function(_0x5e76ee,_0x4116ce){return db[_0x617b('0x45')][_0x617b('0x4c')](_0x5e76ee['body'],{})[_0x617b('0x18')](respondWithResult(_0x4116ce,0xc9))[_0x617b('0x21')](handleError(_0x4116ce,null));};exports[_0x617b('0x2c')]=function(_0x1a71a3,_0x5f49dd){if(_0x1a71a3['body']['id']){delete _0x1a71a3[_0x617b('0x4d')]['id'];}return db[_0x617b('0x45')]['find']({'where':{'id':_0x1a71a3[_0x617b('0x4a')]['id']}})[_0x617b('0x18')](handleEntityNotFound(_0x5f49dd,null))[_0x617b('0x18')](saveUpdates(_0x1a71a3[_0x617b('0x4d')],null))[_0x617b('0x18')](respondWithResult(_0x5f49dd,null))[_0x617b('0x21')](handleError(_0x5f49dd,null));};exports['destroy']=function(_0x40c6c1,_0x4e4934){return db['VtigerConfiguration']['find']({'where':{'id':_0x40c6c1['params']['id']}})['then'](handleEntityNotFound(_0x4e4934,null))[_0x617b('0x18')](removeEntity(_0x4e4934,null))[_0x617b('0x21')](handleError(_0x4e4934,null));};exports['getFields']=function(_0x2b6658,_0x3ed728,_0x43f0bc){var _0x4d0a8a={};var _0x71f7f4={};var _0x43fcaf;var _0x40c82a;return db[_0x617b('0x45')][_0x617b('0x4e')]({'where':{'id':_0x2b6658[_0x617b('0x4a')]['id']}})['then'](handleEntityNotFound(_0x3ed728,null))[_0x617b('0x18')](function(_0x480e78){if(_0x480e78){_0x43fcaf=_0x480e78;_0x71f7f4[_0x617b('0x36')]=_['keys'](db[_0x617b('0x4f')][_0x617b('0x4b')]);_0x71f7f4['query']=_[_0x617b('0x38')](_0x2b6658['query']);_0x71f7f4[_0x617b('0x39')]=_['intersection'](_0x71f7f4[_0x617b('0x36')],_0x71f7f4[_0x617b('0x37')]);_0x4d0a8a[_0x617b('0x3b')]=_[_0x617b('0x3a')](_0x71f7f4['model'],qs[_0x617b('0x3c')](_0x2b6658[_0x617b('0x37')][_0x617b('0x3c')]));_0x4d0a8a[_0x617b('0x3b')]=_0x4d0a8a[_0x617b('0x3b')][_0x617b('0x3d')]?_0x4d0a8a['attributes']:_0x71f7f4[_0x617b('0x36')];_0x4d0a8a[_0x617b('0x3f')]=qs[_0x617b('0x40')](_0x2b6658[_0x617b('0x37')][_0x617b('0x40')]);_0x4d0a8a[_0x617b('0x43')]=qs[_0x617b('0x39')](_['pick'](_0x2b6658['query'],_0x71f7f4['filters']));if(_0x2b6658['query'][_0x617b('0x41')]){_0x4d0a8a['where']=_['merge'](_0x4d0a8a[_0x617b('0x43')],{'$or':_[_0x617b('0x33')](_0x4d0a8a[_0x617b('0x3b')],function(_0xe94d68){var _0x18b0cc={};_0x18b0cc[_0xe94d68]={'$like':'%'+_0x2b6658[_0x617b('0x37')]['filter']+'%'};return _0x18b0cc;})});}_0x4d0a8a=_[_0x617b('0x42')]({},_0x4d0a8a,_0x2b6658['options']);return _0x43fcaf[_0x617b('0x50')](_0x4d0a8a);}})[_0x617b('0x18')](function(_0x52b84f){if(_0x52b84f){_0x40c82a=_0x52b84f['length'];if(!_0x2b6658[_0x617b('0x37')][_0x617b('0x51')]('nolimit')){_0x4d0a8a['limit']=qs['limit'](_0x2b6658[_0x617b('0x37')][_0x617b('0x26')]);_0x4d0a8a[_0x617b('0x25')]=qs['offset'](_0x2b6658[_0x617b('0x37')]['offset']);}return _0x43fcaf[_0x617b('0x50')](_0x4d0a8a);}})['then'](function(_0x1461a9){if(_0x1461a9){return _0x1461a9?{'count':_0x40c82a,'rows':_0x1461a9}:null;}})[_0x617b('0x18')](respondWithResult(_0x3ed728,null))[_0x617b('0x21')](handleError(_0x3ed728,null));};exports[_0x617b('0x52')]=function(_0x291279,_0x248b4a,_0x20e3df){var _0x2b411e={};var _0xeb18de={};var _0x2cc756;var _0x1f6b12;return db['VtigerConfiguration']['findOne']({'where':{'id':_0x291279[_0x617b('0x4a')]['id']}})['then'](handleEntityNotFound(_0x248b4a,null))[_0x617b('0x18')](function(_0x23c4e2){if(_0x23c4e2){_0x2cc756=_0x23c4e2;_0xeb18de[_0x617b('0x36')]=_['keys'](db['VtigerField']['rawAttributes']);_0xeb18de['query']=_[_0x617b('0x38')](_0x291279[_0x617b('0x37')]);_0xeb18de['filters']=_[_0x617b('0x3a')](_0xeb18de[_0x617b('0x36')],_0xeb18de[_0x617b('0x37')]);_0x2b411e['attributes']=_[_0x617b('0x3a')](_0xeb18de[_0x617b('0x36')],qs[_0x617b('0x3c')](_0x291279['query'][_0x617b('0x3c')]));_0x2b411e[_0x617b('0x3b')]=_0x2b411e[_0x617b('0x3b')][_0x617b('0x3d')]?_0x2b411e[_0x617b('0x3b')]:_0xeb18de[_0x617b('0x36')];_0x2b411e[_0x617b('0x3f')]=qs['sort'](_0x291279[_0x617b('0x37')]['sort']);_0x2b411e[_0x617b('0x43')]=qs[_0x617b('0x39')](_['pick'](_0x291279[_0x617b('0x37')],_0xeb18de[_0x617b('0x39')]));if(_0x291279[_0x617b('0x37')][_0x617b('0x41')]){_0x2b411e[_0x617b('0x43')]=_[_0x617b('0x42')](_0x2b411e[_0x617b('0x43')],{'$or':_[_0x617b('0x33')](_0x2b411e[_0x617b('0x3b')],function(_0x4dd9df){var _0x50506f={};_0x50506f[_0x4dd9df]={'$like':'%'+_0x291279[_0x617b('0x37')]['filter']+'%'};return _0x50506f;})});}_0x2b411e=_[_0x617b('0x42')]({},_0x2b411e,_0x291279[_0x617b('0x53')]);return _0x2cc756[_0x617b('0x52')](_0x2b411e);}})[_0x617b('0x18')](function(_0x39d867){if(_0x39d867){_0x1f6b12=_0x39d867[_0x617b('0x3d')];if(!_0x291279[_0x617b('0x37')][_0x617b('0x51')](_0x617b('0x3e'))){_0x2b411e[_0x617b('0x26')]=qs[_0x617b('0x26')](_0x291279[_0x617b('0x37')][_0x617b('0x26')]);_0x2b411e[_0x617b('0x25')]=qs[_0x617b('0x25')](_0x291279['query']['offset']);}return _0x2cc756[_0x617b('0x52')](_0x2b411e);}})[_0x617b('0x18')](function(_0x33938d){if(_0x33938d){return _0x33938d?{'count':_0x1f6b12,'rows':_0x33938d}:null;}})[_0x617b('0x18')](respondWithResult(_0x248b4a,null))[_0x617b('0x21')](handleError(_0x248b4a,null));};exports['getDescriptions']=function(_0x3d2099,_0x44b800,_0x3ba9c6){var _0x4a1581={};var _0x4c6da8={};var _0x34a759;var _0xea071;return db[_0x617b('0x45')][_0x617b('0x4e')]({'where':{'id':_0x3d2099['params']['id']}})[_0x617b('0x18')](handleEntityNotFound(_0x44b800,null))[_0x617b('0x18')](function(_0x293ec5){if(_0x293ec5){_0x34a759=_0x293ec5;_0x4c6da8[_0x617b('0x36')]=_['keys'](db[_0x617b('0x4f')][_0x617b('0x4b')]);_0x4c6da8[_0x617b('0x37')]=_[_0x617b('0x38')](_0x3d2099['query']);_0x4c6da8[_0x617b('0x39')]=_[_0x617b('0x3a')](_0x4c6da8[_0x617b('0x36')],_0x4c6da8['query']);_0x4a1581[_0x617b('0x3b')]=_[_0x617b('0x3a')](_0x4c6da8[_0x617b('0x36')],qs[_0x617b('0x3c')](_0x3d2099[_0x617b('0x37')][_0x617b('0x3c')]));_0x4a1581['attributes']=_0x4a1581[_0x617b('0x3b')][_0x617b('0x3d')]?_0x4a1581[_0x617b('0x3b')]:_0x4c6da8['model'];_0x4a1581[_0x617b('0x3f')]=qs[_0x617b('0x40')](_0x3d2099[_0x617b('0x37')][_0x617b('0x40')]);_0x4a1581[_0x617b('0x43')]=qs[_0x617b('0x39')](_['pick'](_0x3d2099[_0x617b('0x37')],_0x4c6da8['filters']));if(_0x3d2099[_0x617b('0x37')]['filter']){_0x4a1581[_0x617b('0x43')]=_[_0x617b('0x42')](_0x4a1581[_0x617b('0x43')],{'$or':_[_0x617b('0x33')](_0x4a1581['attributes'],function(_0x383742){var _0x3f4087={};_0x3f4087[_0x383742]={'$like':'%'+_0x3d2099['query'][_0x617b('0x41')]+'%'};return _0x3f4087;})});}_0x4a1581=_['merge']({},_0x4a1581,_0x3d2099['options']);return _0x34a759[_0x617b('0x54')](_0x4a1581);}})[_0x617b('0x18')](function(_0x2310e7){if(_0x2310e7){_0xea071=_0x2310e7[_0x617b('0x3d')];if(!_0x3d2099[_0x617b('0x37')][_0x617b('0x51')](_0x617b('0x3e'))){_0x4a1581['limit']=qs[_0x617b('0x26')](_0x3d2099[_0x617b('0x37')][_0x617b('0x26')]);_0x4a1581['offset']=qs[_0x617b('0x25')](_0x3d2099[_0x617b('0x37')]['offset']);}return _0x34a759[_0x617b('0x54')](_0x4a1581);}})[_0x617b('0x18')](function(_0x3c7cd3){if(_0x3c7cd3){return _0x3c7cd3?{'count':_0xea071,'rows':_0x3c7cd3}:null;}})[_0x617b('0x18')](respondWithResult(_0x44b800,null))[_0x617b('0x21')](handleError(_0x44b800,null));};