Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / intSugarcrmConfiguration / intSugarcrmConfiguration.controller.js
index f819021..7c0c4f8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2f7b=['Content-Range','apply','reject','save','then','destroy','stack','name','send','index','map','SugarcrmConfiguration','fieldName','type','key','model','query','filters','intersection','fields','attributes','length','nolimit','limit','order','sort','where','filter','merge','VIRTUAL','include','rows','show','params','keys','includeAll','options','find','create','body','update','getFields','findOne','SugarcrmField','pick','getSubjects','hasOwnProperty','rawAttributes','getDescriptions','html-pdf','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','squel','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','jayson/promise','client','http','request','info','request\x20sent','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','SugarcrmConfiguration,\x20%s,\x20%s','result','catch','sendStatus','status','end','json','count','offset','set'];(function(_0x15dbb6,_0x3752a1){var _0x17490b=function(_0x2fecab){while(--_0x2fecab){_0x15dbb6['push'](_0x15dbb6['shift']());}};_0x17490b(++_0x3752a1);}(_0x2f7b,0x1b5));var _0xb2f7=function(_0x24ee4b,_0x32b79e){_0x24ee4b=_0x24ee4b-0x0;var _0x56014c=_0x2f7b[_0x24ee4b];return _0x56014c;};'use strict';var pdf=require(_0xb2f7('0x0'));var emlformat=require(_0xb2f7('0x1'));var rimraf=require('rimraf');var zipdir=require(_0xb2f7('0x2'));var jsonpatch=require(_0xb2f7('0x3'));var rp=require(_0xb2f7('0x4'));var moment=require(_0xb2f7('0x5'));var BPromise=require(_0xb2f7('0x6'));var Mustache=require(_0xb2f7('0x7'));var util=require('util');var path=require(_0xb2f7('0x8'));var sox=require(_0xb2f7('0x9'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require(_0xb2f7('0xa'));var crypto=require('crypto');var jsforce=require(_0xb2f7('0xb'));var deskjs=require(_0xb2f7('0xc'));var toCsv=require(_0xb2f7('0xd'));var querystring=require(_0xb2f7('0xe'));var Papa=require(_0xb2f7('0xf'));var Redis=require(_0xb2f7('0x10'));var authService=require(_0xb2f7('0x11'));var qs=require(_0xb2f7('0x12'));var as=require(_0xb2f7('0x13'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xb2f7('0x14'))(_0xb2f7('0x15'));var utils=require(_0xb2f7('0x16'));var config=require(_0xb2f7('0x17'));var licenseUtil=require(_0xb2f7('0x18'));var db=require(_0xb2f7('0x19'))['db'];var jayson=require(_0xb2f7('0x1a'));var client=jayson[_0xb2f7('0x1b')][_0xb2f7('0x1c')]({'port':0x232a});function respondWithRpcPromise(_0x5cdfc4,_0x4858e9,_0x42225c,_0x4aa9c1){return new BPromise(function(_0x269496,_0x3019d3){var _0x83669b=_0x4aa9c1||client;return _0x83669b[_0xb2f7('0x1d')](_0x5cdfc4,_0x42225c)['then'](function(_0x25b472){logger[_0xb2f7('0x1e')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x4858e9,_0xb2f7('0x1f'));logger[_0xb2f7('0x20')](_0xb2f7('0x21'),_0x4858e9,_0xb2f7('0x1f'),JSON[_0xb2f7('0x22')](_0x25b472));if(_0x25b472[_0xb2f7('0x23')]){if(_0x25b472[_0xb2f7('0x23')][_0xb2f7('0x24')]===0x1f4){logger[_0xb2f7('0x23')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x4858e9,_0x25b472['error'][_0xb2f7('0x25')]);return _0x3019d3(_0x25b472[_0xb2f7('0x23')][_0xb2f7('0x25')]);}logger[_0xb2f7('0x23')](_0xb2f7('0x26'),_0x4858e9,_0x25b472[_0xb2f7('0x23')]['message']);return _0x269496(_0x25b472['error'][_0xb2f7('0x25')]);}else{logger['info'](_0xb2f7('0x26'),_0x4858e9,'request\x20sent');_0x269496(_0x25b472[_0xb2f7('0x27')]['message']);}})[_0xb2f7('0x28')](function(_0x309fe5){logger[_0xb2f7('0x23')](_0xb2f7('0x26'),_0x4858e9,_0x309fe5);_0x3019d3(_0x309fe5);});});}function respondWithStatusCode(_0x1716b0,_0x55b2a6){_0x55b2a6=_0x55b2a6||0xcc;return function(_0x870018){if(_0x870018){return _0x1716b0[_0xb2f7('0x29')](_0x55b2a6);}return _0x1716b0[_0xb2f7('0x2a')](_0x55b2a6)[_0xb2f7('0x2b')]();};}function respondWithResult(_0x10dc7b,_0x37c67e){_0x37c67e=_0x37c67e||0xc8;return function(_0x300b58){if(_0x300b58){return _0x10dc7b[_0xb2f7('0x2a')](_0x37c67e)[_0xb2f7('0x2c')](_0x300b58);}};}function respondWithFilteredResult(_0x412c82,_0x470282){return function(_0x3a951b){if(_0x3a951b){var _0x7578a=_0x3a951b[_0xb2f7('0x2d')],_0x3a9d96=_0x470282[_0xb2f7('0x2e')],_0x3023e0=_0x470282[_0xb2f7('0x2e')]+_0x470282['limit'],_0x13d992;if(_0x3023e0>=_0x7578a){_0x3023e0=_0x7578a;_0x13d992=0xc8;}else{_0x13d992=0xce;}_0x412c82['status'](_0x13d992);return _0x412c82[_0xb2f7('0x2f')](_0xb2f7('0x30'),_0x3a9d96+'-'+_0x3023e0+'/'+_0x7578a)['json'](_0x3a951b);}return null;};}function patchUpdates(_0x1f7e21){return function(_0x16574f){try{jsonpatch[_0xb2f7('0x31')](_0x16574f,_0x1f7e21,!![]);}catch(_0x2893e9){return BPromise[_0xb2f7('0x32')](_0x2893e9);}return _0x16574f[_0xb2f7('0x33')]();};}function saveUpdates(_0x5e28ec,_0x322252){return function(_0x2f1113){if(_0x2f1113){return _0x2f1113['update'](_0x5e28ec)[_0xb2f7('0x34')](function(_0x59bdd8){return _0x59bdd8;});}return null;};}function removeEntity(_0x28201f,_0x5329cc){return function(_0x4126d2){if(_0x4126d2){return _0x4126d2[_0xb2f7('0x35')]()['then'](function(){_0x28201f['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x45018a,_0x2b7964){return function(_0x171894){if(!_0x171894){_0x45018a['sendStatus'](0x194);}return _0x171894;};}function handleError(_0x236106,_0x2b0168){_0x2b0168=_0x2b0168||0x1f4;return function(_0x1fca95){logger[_0xb2f7('0x23')](_0x1fca95[_0xb2f7('0x36')]);if(_0x1fca95[_0xb2f7('0x37')]){delete _0x1fca95[_0xb2f7('0x37')];}_0x236106['status'](_0x2b0168)[_0xb2f7('0x38')](_0x1fca95);};}exports[_0xb2f7('0x39')]=function(_0xa93c79,_0xbf05d){var _0x4fd2e6={},_0x4d9adb={},_0x4fba0d={'count':0x0,'rows':[]};var _0x51e906=_[_0xb2f7('0x3a')](db[_0xb2f7('0x3b')]['rawAttributes'],function(_0x1aac29){return{'name':_0x1aac29[_0xb2f7('0x3c')],'type':_0x1aac29[_0xb2f7('0x3d')][_0xb2f7('0x3e')]};});_0x4d9adb[_0xb2f7('0x3f')]=_[_0xb2f7('0x3a')](_0x51e906,_0xb2f7('0x37'));_0x4d9adb[_0xb2f7('0x40')]=_['keys'](_0xa93c79[_0xb2f7('0x40')]);_0x4d9adb[_0xb2f7('0x41')]=_[_0xb2f7('0x42')](_0x4d9adb[_0xb2f7('0x3f')],_0x4d9adb[_0xb2f7('0x40')]);_0x4fd2e6['attributes']=_['intersection'](_0x4d9adb[_0xb2f7('0x3f')],qs[_0xb2f7('0x43')](_0xa93c79[_0xb2f7('0x40')][_0xb2f7('0x43')]));_0x4fd2e6[_0xb2f7('0x44')]=_0x4fd2e6[_0xb2f7('0x44')][_0xb2f7('0x45')]?_0x4fd2e6[_0xb2f7('0x44')]:_0x4d9adb[_0xb2f7('0x3f')];if(!_0xa93c79[_0xb2f7('0x40')]['hasOwnProperty'](_0xb2f7('0x46'))){_0x4fd2e6[_0xb2f7('0x47')]=qs['limit'](_0xa93c79['query'][_0xb2f7('0x47')]);_0x4fd2e6['offset']=qs[_0xb2f7('0x2e')](_0xa93c79[_0xb2f7('0x40')][_0xb2f7('0x2e')]);}_0x4fd2e6[_0xb2f7('0x48')]=qs[_0xb2f7('0x49')](_0xa93c79['query'][_0xb2f7('0x49')]);_0x4fd2e6[_0xb2f7('0x4a')]=qs[_0xb2f7('0x41')](_['pick'](_0xa93c79['query'],_0x4d9adb[_0xb2f7('0x41')]),_0x51e906);if(_0xa93c79[_0xb2f7('0x40')][_0xb2f7('0x4b')]){_0x4fd2e6[_0xb2f7('0x4a')]=_[_0xb2f7('0x4c')](_0x4fd2e6[_0xb2f7('0x4a')],{'$or':_[_0xb2f7('0x3a')](_0x51e906,function(_0x20fe03){if(_0x20fe03[_0xb2f7('0x3d')]!==_0xb2f7('0x4d')){var _0x199375={};_0x199375[_0x20fe03['name']]={'$like':'%'+_0xa93c79['query'][_0xb2f7('0x4b')]+'%'};return _0x199375;}})});}_0x4fd2e6=_['merge']({},_0x4fd2e6,_0xa93c79['options']);var _0x37fa62={'where':_0x4fd2e6[_0xb2f7('0x4a')]};return db['SugarcrmConfiguration'][_0xb2f7('0x2d')](_0x37fa62)[_0xb2f7('0x34')](function(_0x1dfa4e){_0x4fba0d[_0xb2f7('0x2d')]=_0x1dfa4e;if(_0xa93c79[_0xb2f7('0x40')]['includeAll']){_0x4fd2e6[_0xb2f7('0x4e')]=[{'all':!![]}];}return db[_0xb2f7('0x3b')]['findAll'](_0x4fd2e6);})[_0xb2f7('0x34')](function(_0x17db0b){_0x4fba0d[_0xb2f7('0x4f')]=_0x17db0b;return _0x4fba0d;})[_0xb2f7('0x34')](respondWithFilteredResult(_0xbf05d,_0x4fd2e6))[_0xb2f7('0x28')](handleError(_0xbf05d,null));};exports[_0xb2f7('0x50')]=function(_0x41bafc,_0x28cc7c){var _0x54a089={'raw':![],'where':{'id':_0x41bafc[_0xb2f7('0x51')]['id']}},_0x1398a7={};_0x1398a7[_0xb2f7('0x3f')]=_[_0xb2f7('0x52')](db[_0xb2f7('0x3b')]['rawAttributes']);_0x1398a7['query']=_['keys'](_0x41bafc[_0xb2f7('0x40')]);_0x1398a7[_0xb2f7('0x41')]=_[_0xb2f7('0x42')](_0x1398a7[_0xb2f7('0x3f')],_0x1398a7['query']);_0x54a089[_0xb2f7('0x44')]=_[_0xb2f7('0x42')](_0x1398a7[_0xb2f7('0x3f')],qs['fields'](_0x41bafc[_0xb2f7('0x40')]['fields']));_0x54a089[_0xb2f7('0x44')]=_0x54a089[_0xb2f7('0x44')][_0xb2f7('0x45')]?_0x54a089[_0xb2f7('0x44')]:_0x1398a7[_0xb2f7('0x3f')];if(_0x41bafc[_0xb2f7('0x40')][_0xb2f7('0x53')]){_0x54a089['include']=[{'all':!![]}];}_0x54a089=_[_0xb2f7('0x4c')]({},_0x54a089,_0x41bafc[_0xb2f7('0x54')]);return db[_0xb2f7('0x3b')][_0xb2f7('0x55')](_0x54a089)[_0xb2f7('0x34')](handleEntityNotFound(_0x28cc7c,null))[_0xb2f7('0x34')](respondWithResult(_0x28cc7c,null))['catch'](handleError(_0x28cc7c,null));};exports[_0xb2f7('0x56')]=function(_0x48ea41,_0xe8e96e){return db[_0xb2f7('0x3b')]['create'](_0x48ea41[_0xb2f7('0x57')],{})[_0xb2f7('0x34')](respondWithResult(_0xe8e96e,0xc9))[_0xb2f7('0x28')](handleError(_0xe8e96e,null));};exports[_0xb2f7('0x58')]=function(_0x336a90,_0x5274ed){if(_0x336a90[_0xb2f7('0x57')]['id']){delete _0x336a90['body']['id'];}return db[_0xb2f7('0x3b')][_0xb2f7('0x55')]({'where':{'id':_0x336a90[_0xb2f7('0x51')]['id']}})[_0xb2f7('0x34')](handleEntityNotFound(_0x5274ed,null))[_0xb2f7('0x34')](saveUpdates(_0x336a90[_0xb2f7('0x57')],null))[_0xb2f7('0x34')](respondWithResult(_0x5274ed,null))[_0xb2f7('0x28')](handleError(_0x5274ed,null));};exports['destroy']=function(_0x9679b4,_0x3d2991){return db[_0xb2f7('0x3b')]['find']({'where':{'id':_0x9679b4[_0xb2f7('0x51')]['id']}})[_0xb2f7('0x34')](handleEntityNotFound(_0x3d2991,null))[_0xb2f7('0x34')](removeEntity(_0x3d2991,null))[_0xb2f7('0x28')](handleError(_0x3d2991,null));};exports[_0xb2f7('0x59')]=function(_0x5a24e6,_0x51a29e,_0x277af2){var _0x5461a2={};var _0x315f63={};var _0x31f09b;var _0xadd34a;return db[_0xb2f7('0x3b')][_0xb2f7('0x5a')]({'where':{'id':_0x5a24e6['params']['id']}})[_0xb2f7('0x34')](handleEntityNotFound(_0x51a29e,null))[_0xb2f7('0x34')](function(_0x58bcbc){if(_0x58bcbc){_0x31f09b=_0x58bcbc;_0x315f63[_0xb2f7('0x3f')]=_['keys'](db[_0xb2f7('0x5b')]['rawAttributes']);_0x315f63[_0xb2f7('0x40')]=_['keys'](_0x5a24e6[_0xb2f7('0x40')]);_0x315f63[_0xb2f7('0x41')]=_['intersection'](_0x315f63[_0xb2f7('0x3f')],_0x315f63[_0xb2f7('0x40')]);_0x5461a2[_0xb2f7('0x44')]=_[_0xb2f7('0x42')](_0x315f63[_0xb2f7('0x3f')],qs[_0xb2f7('0x43')](_0x5a24e6[_0xb2f7('0x40')]['fields']));_0x5461a2['attributes']=_0x5461a2[_0xb2f7('0x44')][_0xb2f7('0x45')]?_0x5461a2[_0xb2f7('0x44')]:_0x315f63['model'];_0x5461a2[_0xb2f7('0x48')]=qs[_0xb2f7('0x49')](_0x5a24e6[_0xb2f7('0x40')][_0xb2f7('0x49')]);_0x5461a2[_0xb2f7('0x4a')]=qs[_0xb2f7('0x41')](_[_0xb2f7('0x5c')](_0x5a24e6[_0xb2f7('0x40')],_0x315f63[_0xb2f7('0x41')]));if(_0x5a24e6[_0xb2f7('0x40')]['filter']){_0x5461a2[_0xb2f7('0x4a')]=_[_0xb2f7('0x4c')](_0x5461a2[_0xb2f7('0x4a')],{'$or':_[_0xb2f7('0x3a')](_0x5461a2[_0xb2f7('0x44')],function(_0x10c792){var _0x111c77={};_0x111c77[_0x10c792]={'$like':'%'+_0x5a24e6[_0xb2f7('0x40')][_0xb2f7('0x4b')]+'%'};return _0x111c77;})});}_0x5461a2=_[_0xb2f7('0x4c')]({},_0x5461a2,_0x5a24e6[_0xb2f7('0x54')]);return _0x31f09b['getFields'](_0x5461a2);}})[_0xb2f7('0x34')](function(_0x35e1de){if(_0x35e1de){_0xadd34a=_0x35e1de[_0xb2f7('0x45')];if(!_0x5a24e6[_0xb2f7('0x40')]['hasOwnProperty'](_0xb2f7('0x46'))){_0x5461a2[_0xb2f7('0x47')]=qs[_0xb2f7('0x47')](_0x5a24e6[_0xb2f7('0x40')][_0xb2f7('0x47')]);_0x5461a2[_0xb2f7('0x2e')]=qs['offset'](_0x5a24e6['query'][_0xb2f7('0x2e')]);}return _0x31f09b[_0xb2f7('0x59')](_0x5461a2);}})['then'](function(_0x3a8513){if(_0x3a8513){return _0x3a8513?{'count':_0xadd34a,'rows':_0x3a8513}:null;}})[_0xb2f7('0x34')](respondWithResult(_0x51a29e,null))['catch'](handleError(_0x51a29e,null));};exports['getSubjects']=function(_0x4b8e92,_0xae33d0,_0x14ddf3){var _0x1d2cce={};var _0x367043={};var _0x592f2a;var _0x231e7c;return db[_0xb2f7('0x3b')][_0xb2f7('0x5a')]({'where':{'id':_0x4b8e92['params']['id']}})[_0xb2f7('0x34')](handleEntityNotFound(_0xae33d0,null))[_0xb2f7('0x34')](function(_0x38c783){if(_0x38c783){_0x592f2a=_0x38c783;_0x367043[_0xb2f7('0x3f')]=_[_0xb2f7('0x52')](db[_0xb2f7('0x5b')]['rawAttributes']);_0x367043[_0xb2f7('0x40')]=_[_0xb2f7('0x52')](_0x4b8e92[_0xb2f7('0x40')]);_0x367043['filters']=_[_0xb2f7('0x42')](_0x367043[_0xb2f7('0x3f')],_0x367043[_0xb2f7('0x40')]);_0x1d2cce[_0xb2f7('0x44')]=_[_0xb2f7('0x42')](_0x367043[_0xb2f7('0x3f')],qs[_0xb2f7('0x43')](_0x4b8e92[_0xb2f7('0x40')][_0xb2f7('0x43')]));_0x1d2cce[_0xb2f7('0x44')]=_0x1d2cce[_0xb2f7('0x44')]['length']?_0x1d2cce[_0xb2f7('0x44')]:_0x367043[_0xb2f7('0x3f')];_0x1d2cce[_0xb2f7('0x48')]=qs['sort'](_0x4b8e92[_0xb2f7('0x40')][_0xb2f7('0x49')]);_0x1d2cce[_0xb2f7('0x4a')]=qs[_0xb2f7('0x41')](_['pick'](_0x4b8e92[_0xb2f7('0x40')],_0x367043['filters']));if(_0x4b8e92[_0xb2f7('0x40')][_0xb2f7('0x4b')]){_0x1d2cce[_0xb2f7('0x4a')]=_['merge'](_0x1d2cce[_0xb2f7('0x4a')],{'$or':_[_0xb2f7('0x3a')](_0x1d2cce[_0xb2f7('0x44')],function(_0x13cf4c){var _0x438143={};_0x438143[_0x13cf4c]={'$like':'%'+_0x4b8e92['query'][_0xb2f7('0x4b')]+'%'};return _0x438143;})});}_0x1d2cce=_['merge']({},_0x1d2cce,_0x4b8e92[_0xb2f7('0x54')]);return _0x592f2a[_0xb2f7('0x5d')](_0x1d2cce);}})[_0xb2f7('0x34')](function(_0x54ea48){if(_0x54ea48){_0x231e7c=_0x54ea48[_0xb2f7('0x45')];if(!_0x4b8e92['query'][_0xb2f7('0x5e')](_0xb2f7('0x46'))){_0x1d2cce['limit']=qs[_0xb2f7('0x47')](_0x4b8e92[_0xb2f7('0x40')][_0xb2f7('0x47')]);_0x1d2cce[_0xb2f7('0x2e')]=qs['offset'](_0x4b8e92['query'][_0xb2f7('0x2e')]);}return _0x592f2a['getSubjects'](_0x1d2cce);}})[_0xb2f7('0x34')](function(_0x272eae){if(_0x272eae){return _0x272eae?{'count':_0x231e7c,'rows':_0x272eae}:null;}})[_0xb2f7('0x34')](respondWithResult(_0xae33d0,null))[_0xb2f7('0x28')](handleError(_0xae33d0,null));};exports['getDescriptions']=function(_0x17a1b9,_0x4d567a,_0x33ae8f){var _0x545b7e={};var _0x1a3853={};var _0x3d247d;var _0x4cc617;return db[_0xb2f7('0x3b')][_0xb2f7('0x5a')]({'where':{'id':_0x17a1b9[_0xb2f7('0x51')]['id']}})[_0xb2f7('0x34')](handleEntityNotFound(_0x4d567a,null))[_0xb2f7('0x34')](function(_0x10c1b0){if(_0x10c1b0){_0x3d247d=_0x10c1b0;_0x1a3853[_0xb2f7('0x3f')]=_[_0xb2f7('0x52')](db[_0xb2f7('0x5b')][_0xb2f7('0x5f')]);_0x1a3853[_0xb2f7('0x40')]=_[_0xb2f7('0x52')](_0x17a1b9['query']);_0x1a3853['filters']=_[_0xb2f7('0x42')](_0x1a3853[_0xb2f7('0x3f')],_0x1a3853[_0xb2f7('0x40')]);_0x545b7e[_0xb2f7('0x44')]=_[_0xb2f7('0x42')](_0x1a3853[_0xb2f7('0x3f')],qs[_0xb2f7('0x43')](_0x17a1b9[_0xb2f7('0x40')][_0xb2f7('0x43')]));_0x545b7e[_0xb2f7('0x44')]=_0x545b7e['attributes'][_0xb2f7('0x45')]?_0x545b7e[_0xb2f7('0x44')]:_0x1a3853[_0xb2f7('0x3f')];_0x545b7e[_0xb2f7('0x48')]=qs['sort'](_0x17a1b9[_0xb2f7('0x40')][_0xb2f7('0x49')]);_0x545b7e[_0xb2f7('0x4a')]=qs[_0xb2f7('0x41')](_[_0xb2f7('0x5c')](_0x17a1b9['query'],_0x1a3853[_0xb2f7('0x41')]));if(_0x17a1b9[_0xb2f7('0x40')]['filter']){_0x545b7e[_0xb2f7('0x4a')]=_['merge'](_0x545b7e[_0xb2f7('0x4a')],{'$or':_['map'](_0x545b7e[_0xb2f7('0x44')],function(_0x2c8304){var _0x31082c={};_0x31082c[_0x2c8304]={'$like':'%'+_0x17a1b9['query']['filter']+'%'};return _0x31082c;})});}_0x545b7e=_[_0xb2f7('0x4c')]({},_0x545b7e,_0x17a1b9[_0xb2f7('0x54')]);return _0x3d247d[_0xb2f7('0x60')](_0x545b7e);}})['then'](function(_0x560ed9){if(_0x560ed9){_0x4cc617=_0x560ed9[_0xb2f7('0x45')];if(!_0x17a1b9[_0xb2f7('0x40')][_0xb2f7('0x5e')](_0xb2f7('0x46'))){_0x545b7e[_0xb2f7('0x47')]=qs[_0xb2f7('0x47')](_0x17a1b9['query'][_0xb2f7('0x47')]);_0x545b7e[_0xb2f7('0x2e')]=qs[_0xb2f7('0x2e')](_0x17a1b9['query'][_0xb2f7('0x2e')]);}return _0x3d247d[_0xb2f7('0x60')](_0x545b7e);}})[_0xb2f7('0x34')](function(_0x3a6d98){if(_0x3a6d98){return _0x3a6d98?{'count':_0x4cc617,'rows':_0x3a6d98}:null;}})[_0xb2f7('0x34')](respondWithResult(_0x4d567a,null))[_0xb2f7('0x28')](handleError(_0x4d567a,null));};
\ No newline at end of file
+var _0x8ac0=['papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/environment','../../config/license/util','../../mysqldb','jayson/promise','http','request','info','SugarcrmConfiguration,\x20%s,\x20%s','request\x20sent','debug','SugarcrmConfiguration,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','reject','save','destroy','then','stack','name','map','SugarcrmConfiguration','rawAttributes','type','key','query','intersection','model','attributes','fields','length','nolimit','order','sort','filters','filter','where','merge','VIRTUAL','options','includeAll','include','findAll','rows','show','params','keys','find','create','body','getFields','findOne','SugarcrmField','pick','hasOwnProperty','getSubjects','getDescriptions','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','sox','ejs','squel','jsforce','desk.js','to-csv','querystring'];(function(_0x3e8643,_0x18d174){var _0x18198f=function(_0x3677ad){while(--_0x3677ad){_0x3e8643['push'](_0x3e8643['shift']());}};_0x18198f(++_0x18d174);}(_0x8ac0,0xfe));var _0x08ac=function(_0x454207,_0xe465c3){_0x454207=_0x454207-0x0;var _0x10e6b0=_0x8ac0[_0x454207];return _0x10e6b0;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x08ac('0x0'));var rimraf=require(_0x08ac('0x1'));var zipdir=require(_0x08ac('0x2'));var jsonpatch=require(_0x08ac('0x3'));var rp=require(_0x08ac('0x4'));var moment=require(_0x08ac('0x5'));var BPromise=require(_0x08ac('0x6'));var Mustache=require(_0x08ac('0x7'));var util=require(_0x08ac('0x8'));var path=require('path');var sox=require(_0x08ac('0x9'));var csv=require('to-csv');var ejs=require(_0x08ac('0xa'));var fs=require('fs');var _=require('lodash');var squel=require(_0x08ac('0xb'));var crypto=require('crypto');var jsforce=require(_0x08ac('0xc'));var deskjs=require(_0x08ac('0xd'));var toCsv=require(_0x08ac('0xe'));var querystring=require(_0x08ac('0xf'));var Papa=require(_0x08ac('0x10'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x08ac('0x11'));var as=require(_0x08ac('0x12'));var hardwareService=require(_0x08ac('0x13'));var logger=require('../../config/logger')(_0x08ac('0x14'));var utils=require('../../config/utils');var config=require(_0x08ac('0x15'));var licenseUtil=require(_0x08ac('0x16'));var db=require(_0x08ac('0x17'))['db'];var jayson=require(_0x08ac('0x18'));var client=jayson['client'][_0x08ac('0x19')]({'port':0x232a});function respondWithRpcPromise(_0x37fbab,_0x4f8de0,_0x380532,_0x420c54){return new BPromise(function(_0x256ff0,_0x43e74f){var _0x53f958=_0x420c54||client;return _0x53f958[_0x08ac('0x1a')](_0x37fbab,_0x380532)['then'](function(_0x996c81){logger[_0x08ac('0x1b')](_0x08ac('0x1c'),_0x4f8de0,_0x08ac('0x1d'));logger[_0x08ac('0x1e')](_0x08ac('0x1f'),_0x4f8de0,_0x08ac('0x1d'),JSON['stringify'](_0x996c81));if(_0x996c81[_0x08ac('0x20')]){if(_0x996c81[_0x08ac('0x20')][_0x08ac('0x21')]===0x1f4){logger[_0x08ac('0x20')](_0x08ac('0x1c'),_0x4f8de0,_0x996c81['error']['message']);return _0x43e74f(_0x996c81[_0x08ac('0x20')][_0x08ac('0x22')]);}logger[_0x08ac('0x20')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x4f8de0,_0x996c81[_0x08ac('0x20')][_0x08ac('0x22')]);return _0x256ff0(_0x996c81['error'][_0x08ac('0x22')]);}else{logger[_0x08ac('0x1b')]('SugarcrmConfiguration,\x20%s,\x20%s',_0x4f8de0,'request\x20sent');_0x256ff0(_0x996c81[_0x08ac('0x23')][_0x08ac('0x22')]);}})[_0x08ac('0x24')](function(_0x51c60f){logger[_0x08ac('0x20')](_0x08ac('0x1c'),_0x4f8de0,_0x51c60f);_0x43e74f(_0x51c60f);});});}function respondWithStatusCode(_0x2cd274,_0x1bb590){_0x1bb590=_0x1bb590||0xcc;return function(_0x29e1bf){if(_0x29e1bf){return _0x2cd274[_0x08ac('0x25')](_0x1bb590);}return _0x2cd274[_0x08ac('0x26')](_0x1bb590)[_0x08ac('0x27')]();};}function respondWithResult(_0xd99234,_0x2a52d9){_0x2a52d9=_0x2a52d9||0xc8;return function(_0x71cc6d){if(_0x71cc6d){return _0xd99234['status'](_0x2a52d9)[_0x08ac('0x28')](_0x71cc6d);}};}function respondWithFilteredResult(_0x395d49,_0x5b82c6){return function(_0x287faa){if(_0x287faa){var _0x297902=_0x287faa[_0x08ac('0x29')],_0x5c7444=_0x5b82c6['offset'],_0x150ab2=_0x5b82c6[_0x08ac('0x2a')]+_0x5b82c6[_0x08ac('0x2b')],_0x77c937;if(_0x150ab2>=_0x297902){_0x150ab2=_0x297902;_0x77c937=0xc8;}else{_0x77c937=0xce;}_0x395d49[_0x08ac('0x26')](_0x77c937);return _0x395d49[_0x08ac('0x2c')](_0x08ac('0x2d'),_0x5c7444+'-'+_0x150ab2+'/'+_0x297902)[_0x08ac('0x28')](_0x287faa);}return null;};}function patchUpdates(_0x58af97){return function(_0x11680b){try{jsonpatch[_0x08ac('0x2e')](_0x11680b,_0x58af97,!![]);}catch(_0x550f8c){return BPromise[_0x08ac('0x2f')](_0x550f8c);}return _0x11680b[_0x08ac('0x30')]();};}function saveUpdates(_0x3aa227,_0x3890c7){return function(_0x1b739a){if(_0x1b739a){return _0x1b739a['update'](_0x3aa227)['then'](function(_0x5b6420){return _0x5b6420;});}return null;};}function removeEntity(_0x1f6eba,_0x185a1f){return function(_0x23985e){if(_0x23985e){return _0x23985e[_0x08ac('0x31')]()[_0x08ac('0x32')](function(){_0x1f6eba['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x284925,_0x2d42e8){return function(_0x3c1124){if(!_0x3c1124){_0x284925[_0x08ac('0x25')](0x194);}return _0x3c1124;};}function handleError(_0x3cd7b5,_0x49d29f){_0x49d29f=_0x49d29f||0x1f4;return function(_0x35553d){logger['error'](_0x35553d[_0x08ac('0x33')]);if(_0x35553d['name']){delete _0x35553d[_0x08ac('0x34')];}_0x3cd7b5[_0x08ac('0x26')](_0x49d29f)['send'](_0x35553d);};}exports['index']=function(_0x24d268,_0x1d0630){var _0x57957e={},_0xb898c={},_0x40d846={'count':0x0,'rows':[]};var _0x38c5fc=_[_0x08ac('0x35')](db[_0x08ac('0x36')][_0x08ac('0x37')],function(_0x46cd41){return{'name':_0x46cd41['fieldName'],'type':_0x46cd41[_0x08ac('0x38')][_0x08ac('0x39')]};});_0xb898c['model']=_[_0x08ac('0x35')](_0x38c5fc,_0x08ac('0x34'));_0xb898c[_0x08ac('0x3a')]=_['keys'](_0x24d268['query']);_0xb898c['filters']=_[_0x08ac('0x3b')](_0xb898c[_0x08ac('0x3c')],_0xb898c[_0x08ac('0x3a')]);_0x57957e[_0x08ac('0x3d')]=_[_0x08ac('0x3b')](_0xb898c[_0x08ac('0x3c')],qs[_0x08ac('0x3e')](_0x24d268[_0x08ac('0x3a')][_0x08ac('0x3e')]));_0x57957e[_0x08ac('0x3d')]=_0x57957e['attributes'][_0x08ac('0x3f')]?_0x57957e[_0x08ac('0x3d')]:_0xb898c[_0x08ac('0x3c')];if(!_0x24d268[_0x08ac('0x3a')]['hasOwnProperty'](_0x08ac('0x40'))){_0x57957e['limit']=qs['limit'](_0x24d268[_0x08ac('0x3a')]['limit']);_0x57957e[_0x08ac('0x2a')]=qs['offset'](_0x24d268[_0x08ac('0x3a')][_0x08ac('0x2a')]);}_0x57957e[_0x08ac('0x41')]=qs['sort'](_0x24d268[_0x08ac('0x3a')][_0x08ac('0x42')]);_0x57957e['where']=qs[_0x08ac('0x43')](_['pick'](_0x24d268[_0x08ac('0x3a')],_0xb898c[_0x08ac('0x43')]),_0x38c5fc);if(_0x24d268[_0x08ac('0x3a')][_0x08ac('0x44')]){_0x57957e[_0x08ac('0x45')]=_[_0x08ac('0x46')](_0x57957e[_0x08ac('0x45')],{'$or':_[_0x08ac('0x35')](_0x38c5fc,function(_0x3f29cb){if(_0x3f29cb[_0x08ac('0x38')]!==_0x08ac('0x47')){var _0x5e7483={};_0x5e7483[_0x3f29cb[_0x08ac('0x34')]]={'$like':'%'+_0x24d268[_0x08ac('0x3a')][_0x08ac('0x44')]+'%'};return _0x5e7483;}})});}_0x57957e=_[_0x08ac('0x46')]({},_0x57957e,_0x24d268[_0x08ac('0x48')]);var _0x50588f={'where':_0x57957e[_0x08ac('0x45')]};return db['SugarcrmConfiguration']['count'](_0x50588f)[_0x08ac('0x32')](function(_0x2cf23c){_0x40d846['count']=_0x2cf23c;if(_0x24d268[_0x08ac('0x3a')][_0x08ac('0x49')]){_0x57957e[_0x08ac('0x4a')]=[{'all':!![]}];}return db[_0x08ac('0x36')][_0x08ac('0x4b')](_0x57957e);})['then'](function(_0x1f0bad){_0x40d846[_0x08ac('0x4c')]=_0x1f0bad;return _0x40d846;})[_0x08ac('0x32')](respondWithFilteredResult(_0x1d0630,_0x57957e))[_0x08ac('0x24')](handleError(_0x1d0630,null));};exports[_0x08ac('0x4d')]=function(_0x28e9ad,_0x189f11){var _0x437fba={'raw':![],'where':{'id':_0x28e9ad[_0x08ac('0x4e')]['id']}},_0x5ea634={};_0x5ea634[_0x08ac('0x3c')]=_[_0x08ac('0x4f')](db[_0x08ac('0x36')][_0x08ac('0x37')]);_0x5ea634['query']=_['keys'](_0x28e9ad[_0x08ac('0x3a')]);_0x5ea634[_0x08ac('0x43')]=_[_0x08ac('0x3b')](_0x5ea634['model'],_0x5ea634[_0x08ac('0x3a')]);_0x437fba[_0x08ac('0x3d')]=_['intersection'](_0x5ea634[_0x08ac('0x3c')],qs[_0x08ac('0x3e')](_0x28e9ad[_0x08ac('0x3a')][_0x08ac('0x3e')]));_0x437fba['attributes']=_0x437fba[_0x08ac('0x3d')][_0x08ac('0x3f')]?_0x437fba[_0x08ac('0x3d')]:_0x5ea634[_0x08ac('0x3c')];if(_0x28e9ad[_0x08ac('0x3a')][_0x08ac('0x49')]){_0x437fba['include']=[{'all':!![]}];}_0x437fba=_['merge']({},_0x437fba,_0x28e9ad[_0x08ac('0x48')]);return db[_0x08ac('0x36')][_0x08ac('0x50')](_0x437fba)[_0x08ac('0x32')](handleEntityNotFound(_0x189f11,null))[_0x08ac('0x32')](respondWithResult(_0x189f11,null))[_0x08ac('0x24')](handleError(_0x189f11,null));};exports[_0x08ac('0x51')]=function(_0x4d8f41,_0xb0a9b5){return db['SugarcrmConfiguration'][_0x08ac('0x51')](_0x4d8f41[_0x08ac('0x52')],{})[_0x08ac('0x32')](respondWithResult(_0xb0a9b5,0xc9))[_0x08ac('0x24')](handleError(_0xb0a9b5,null));};exports['update']=function(_0x4a93c6,_0x3a7a2f){if(_0x4a93c6[_0x08ac('0x52')]['id']){delete _0x4a93c6[_0x08ac('0x52')]['id'];}return db['SugarcrmConfiguration'][_0x08ac('0x50')]({'where':{'id':_0x4a93c6[_0x08ac('0x4e')]['id']}})[_0x08ac('0x32')](handleEntityNotFound(_0x3a7a2f,null))[_0x08ac('0x32')](saveUpdates(_0x4a93c6[_0x08ac('0x52')],null))[_0x08ac('0x32')](respondWithResult(_0x3a7a2f,null))[_0x08ac('0x24')](handleError(_0x3a7a2f,null));};exports['destroy']=function(_0x43f194,_0x24766a){return db[_0x08ac('0x36')]['find']({'where':{'id':_0x43f194[_0x08ac('0x4e')]['id']}})[_0x08ac('0x32')](handleEntityNotFound(_0x24766a,null))[_0x08ac('0x32')](removeEntity(_0x24766a,null))['catch'](handleError(_0x24766a,null));};exports[_0x08ac('0x53')]=function(_0x1b6328,_0x5ca564,_0x4b4279){var _0x5e3958={};var _0x45979a={};var _0x58352e;var _0x7d703;return db['SugarcrmConfiguration'][_0x08ac('0x54')]({'where':{'id':_0x1b6328['params']['id']}})['then'](handleEntityNotFound(_0x5ca564,null))[_0x08ac('0x32')](function(_0xc51a90){if(_0xc51a90){_0x58352e=_0xc51a90;_0x45979a['model']=_[_0x08ac('0x4f')](db[_0x08ac('0x55')]['rawAttributes']);_0x45979a['query']=_[_0x08ac('0x4f')](_0x1b6328[_0x08ac('0x3a')]);_0x45979a[_0x08ac('0x43')]=_[_0x08ac('0x3b')](_0x45979a[_0x08ac('0x3c')],_0x45979a['query']);_0x5e3958[_0x08ac('0x3d')]=_[_0x08ac('0x3b')](_0x45979a[_0x08ac('0x3c')],qs[_0x08ac('0x3e')](_0x1b6328['query'][_0x08ac('0x3e')]));_0x5e3958[_0x08ac('0x3d')]=_0x5e3958[_0x08ac('0x3d')][_0x08ac('0x3f')]?_0x5e3958[_0x08ac('0x3d')]:_0x45979a['model'];_0x5e3958[_0x08ac('0x41')]=qs[_0x08ac('0x42')](_0x1b6328[_0x08ac('0x3a')][_0x08ac('0x42')]);_0x5e3958['where']=qs[_0x08ac('0x43')](_[_0x08ac('0x56')](_0x1b6328[_0x08ac('0x3a')],_0x45979a[_0x08ac('0x43')]));if(_0x1b6328[_0x08ac('0x3a')][_0x08ac('0x44')]){_0x5e3958['where']=_[_0x08ac('0x46')](_0x5e3958[_0x08ac('0x45')],{'$or':_[_0x08ac('0x35')](_0x5e3958[_0x08ac('0x3d')],function(_0x3494fc){var _0x20af9e={};_0x20af9e[_0x3494fc]={'$like':'%'+_0x1b6328[_0x08ac('0x3a')]['filter']+'%'};return _0x20af9e;})});}_0x5e3958=_['merge']({},_0x5e3958,_0x1b6328[_0x08ac('0x48')]);return _0x58352e[_0x08ac('0x53')](_0x5e3958);}})[_0x08ac('0x32')](function(_0x1e0672){if(_0x1e0672){_0x7d703=_0x1e0672[_0x08ac('0x3f')];if(!_0x1b6328['query'][_0x08ac('0x57')](_0x08ac('0x40'))){_0x5e3958['limit']=qs[_0x08ac('0x2b')](_0x1b6328[_0x08ac('0x3a')]['limit']);_0x5e3958[_0x08ac('0x2a')]=qs[_0x08ac('0x2a')](_0x1b6328['query']['offset']);}return _0x58352e['getFields'](_0x5e3958);}})[_0x08ac('0x32')](function(_0xd74d3f){if(_0xd74d3f){return _0xd74d3f?{'count':_0x7d703,'rows':_0xd74d3f}:null;}})['then'](respondWithResult(_0x5ca564,null))[_0x08ac('0x24')](handleError(_0x5ca564,null));};exports[_0x08ac('0x58')]=function(_0x22e856,_0x5b48e4,_0x1a6665){var _0x550fd9={};var _0x5e35d7={};var _0x12a60d;var _0x55694d;return db['SugarcrmConfiguration'][_0x08ac('0x54')]({'where':{'id':_0x22e856[_0x08ac('0x4e')]['id']}})['then'](handleEntityNotFound(_0x5b48e4,null))[_0x08ac('0x32')](function(_0x4a0d1e){if(_0x4a0d1e){_0x12a60d=_0x4a0d1e;_0x5e35d7[_0x08ac('0x3c')]=_[_0x08ac('0x4f')](db[_0x08ac('0x55')]['rawAttributes']);_0x5e35d7[_0x08ac('0x3a')]=_[_0x08ac('0x4f')](_0x22e856['query']);_0x5e35d7[_0x08ac('0x43')]=_[_0x08ac('0x3b')](_0x5e35d7[_0x08ac('0x3c')],_0x5e35d7[_0x08ac('0x3a')]);_0x550fd9[_0x08ac('0x3d')]=_[_0x08ac('0x3b')](_0x5e35d7['model'],qs[_0x08ac('0x3e')](_0x22e856[_0x08ac('0x3a')][_0x08ac('0x3e')]));_0x550fd9[_0x08ac('0x3d')]=_0x550fd9[_0x08ac('0x3d')][_0x08ac('0x3f')]?_0x550fd9[_0x08ac('0x3d')]:_0x5e35d7[_0x08ac('0x3c')];_0x550fd9[_0x08ac('0x41')]=qs[_0x08ac('0x42')](_0x22e856[_0x08ac('0x3a')]['sort']);_0x550fd9[_0x08ac('0x45')]=qs[_0x08ac('0x43')](_[_0x08ac('0x56')](_0x22e856[_0x08ac('0x3a')],_0x5e35d7['filters']));if(_0x22e856[_0x08ac('0x3a')][_0x08ac('0x44')]){_0x550fd9[_0x08ac('0x45')]=_[_0x08ac('0x46')](_0x550fd9['where'],{'$or':_[_0x08ac('0x35')](_0x550fd9[_0x08ac('0x3d')],function(_0x174299){var _0x175436={};_0x175436[_0x174299]={'$like':'%'+_0x22e856[_0x08ac('0x3a')]['filter']+'%'};return _0x175436;})});}_0x550fd9=_['merge']({},_0x550fd9,_0x22e856[_0x08ac('0x48')]);return _0x12a60d['getSubjects'](_0x550fd9);}})[_0x08ac('0x32')](function(_0x310518){if(_0x310518){_0x55694d=_0x310518['length'];if(!_0x22e856[_0x08ac('0x3a')]['hasOwnProperty']('nolimit')){_0x550fd9[_0x08ac('0x2b')]=qs[_0x08ac('0x2b')](_0x22e856[_0x08ac('0x3a')][_0x08ac('0x2b')]);_0x550fd9['offset']=qs[_0x08ac('0x2a')](_0x22e856[_0x08ac('0x3a')][_0x08ac('0x2a')]);}return _0x12a60d[_0x08ac('0x58')](_0x550fd9);}})['then'](function(_0x125202){if(_0x125202){return _0x125202?{'count':_0x55694d,'rows':_0x125202}:null;}})['then'](respondWithResult(_0x5b48e4,null))[_0x08ac('0x24')](handleError(_0x5b48e4,null));};exports[_0x08ac('0x59')]=function(_0x4049cf,_0x20b339,_0x363577){var _0x512e56={};var _0x53a733={};var _0x2d9507;var _0x368af2;return db[_0x08ac('0x36')][_0x08ac('0x54')]({'where':{'id':_0x4049cf[_0x08ac('0x4e')]['id']}})[_0x08ac('0x32')](handleEntityNotFound(_0x20b339,null))[_0x08ac('0x32')](function(_0x2e87bf){if(_0x2e87bf){_0x2d9507=_0x2e87bf;_0x53a733[_0x08ac('0x3c')]=_[_0x08ac('0x4f')](db[_0x08ac('0x55')][_0x08ac('0x37')]);_0x53a733[_0x08ac('0x3a')]=_[_0x08ac('0x4f')](_0x4049cf[_0x08ac('0x3a')]);_0x53a733[_0x08ac('0x43')]=_[_0x08ac('0x3b')](_0x53a733['model'],_0x53a733[_0x08ac('0x3a')]);_0x512e56[_0x08ac('0x3d')]=_['intersection'](_0x53a733[_0x08ac('0x3c')],qs['fields'](_0x4049cf[_0x08ac('0x3a')]['fields']));_0x512e56[_0x08ac('0x3d')]=_0x512e56[_0x08ac('0x3d')][_0x08ac('0x3f')]?_0x512e56[_0x08ac('0x3d')]:_0x53a733[_0x08ac('0x3c')];_0x512e56[_0x08ac('0x41')]=qs[_0x08ac('0x42')](_0x4049cf[_0x08ac('0x3a')]['sort']);_0x512e56[_0x08ac('0x45')]=qs['filters'](_['pick'](_0x4049cf[_0x08ac('0x3a')],_0x53a733[_0x08ac('0x43')]));if(_0x4049cf[_0x08ac('0x3a')][_0x08ac('0x44')]){_0x512e56[_0x08ac('0x45')]=_[_0x08ac('0x46')](_0x512e56[_0x08ac('0x45')],{'$or':_['map'](_0x512e56['attributes'],function(_0xafe9c9){var _0x1bba82={};_0x1bba82[_0xafe9c9]={'$like':'%'+_0x4049cf['query'][_0x08ac('0x44')]+'%'};return _0x1bba82;})});}_0x512e56=_[_0x08ac('0x46')]({},_0x512e56,_0x4049cf[_0x08ac('0x48')]);return _0x2d9507[_0x08ac('0x59')](_0x512e56);}})['then'](function(_0x42a7ee){if(_0x42a7ee){_0x368af2=_0x42a7ee[_0x08ac('0x3f')];if(!_0x4049cf[_0x08ac('0x3a')][_0x08ac('0x57')]('nolimit')){_0x512e56[_0x08ac('0x2b')]=qs[_0x08ac('0x2b')](_0x4049cf[_0x08ac('0x3a')][_0x08ac('0x2b')]);_0x512e56[_0x08ac('0x2a')]=qs['offset'](_0x4049cf[_0x08ac('0x3a')][_0x08ac('0x2a')]);}return _0x2d9507[_0x08ac('0x59')](_0x512e56);}})[_0x08ac('0x32')](function(_0x176368){if(_0x176368){return _0x176368?{'count':_0x368af2,'rows':_0x176368}:null;}})[_0x08ac('0x32')](respondWithResult(_0x20b339,null))[_0x08ac('0x24')](handleError(_0x20b339,null));};
\ No newline at end of file