Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / squareMessage / squareMessage.controller.js
index 242ce13..8d2118e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3f4f=['query','filters','intersection','model','attributes','fields','length','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','rows','catch','include','find','create','body','params','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','crypto','jsforce','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','count','offset','limit','Content-Range','reject','update','then','destroy','end','error','stack','name','send','index','SquareMessage','rawAttributes','fieldName','type','key','map','keys'];(function(_0x553afc,_0x4e240b){var _0xbdeae8=function(_0x4fba04){while(--_0x4fba04){_0x553afc['push'](_0x553afc['shift']());}};_0xbdeae8(++_0x4e240b);}(_0x3f4f,0x1c7));var _0xf3f4=function(_0xe69e83,_0x36cf07){_0xe69e83=_0xe69e83-0x0;var _0x179c01=_0x3f4f[_0xe69e83];return _0x179c01;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xf3f4('0x0'));var rimraf=require(_0xf3f4('0x1'));var zipdir=require(_0xf3f4('0x2'));var jsonpatch=require(_0xf3f4('0x3'));var rp=require(_0xf3f4('0x4'));var moment=require('moment');var BPromise=require(_0xf3f4('0x5'));var Mustache=require(_0xf3f4('0x6'));var util=require(_0xf3f4('0x7'));var path=require(_0xf3f4('0x8'));var sox=require(_0xf3f4('0x9'));var csv=require(_0xf3f4('0xa'));var ejs=require(_0xf3f4('0xb'));var fs=require('fs');var _=require(_0xf3f4('0xc'));var squel=require('squel');var crypto=require(_0xf3f4('0xd'));var jsforce=require(_0xf3f4('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xf3f4('0xa'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0xf3f4('0xf'));var authService=require(_0xf3f4('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0xf3f4('0x11'));var hardwareService=require(_0xf3f4('0x12'));var logger=require(_0xf3f4('0x13'))(_0xf3f4('0x14'));var utils=require(_0xf3f4('0x15'));var config=require(_0xf3f4('0x16'));var licenseUtil=require(_0xf3f4('0x17'));var db=require(_0xf3f4('0x18'))['db'];function respondWithStatusCode(_0x24073f,_0x48cfa0){_0x48cfa0=_0x48cfa0||0xcc;return function(_0x49c9bb){if(_0x49c9bb){return _0x24073f[_0xf3f4('0x19')](_0x48cfa0);}return _0x24073f['status'](_0x48cfa0)['end']();};}function respondWithResult(_0x14f181,_0x278d68){_0x278d68=_0x278d68||0xc8;return function(_0x44adec){if(_0x44adec){return _0x14f181[_0xf3f4('0x1a')](_0x278d68)[_0xf3f4('0x1b')](_0x44adec);}};}function respondWithFilteredResult(_0x14567b,_0x812fff){return function(_0x4bd37c){if(_0x4bd37c){var _0x585fe6=_0x4bd37c[_0xf3f4('0x1c')],_0xfc0339=_0x812fff[_0xf3f4('0x1d')],_0x3219c5=_0x812fff[_0xf3f4('0x1d')]+_0x812fff[_0xf3f4('0x1e')],_0x28ef2f;if(_0x3219c5>=_0x585fe6){_0x3219c5=_0x585fe6;_0x28ef2f=0xc8;}else{_0x28ef2f=0xce;}_0x14567b[_0xf3f4('0x1a')](_0x28ef2f);return _0x14567b['set'](_0xf3f4('0x1f'),_0xfc0339+'-'+_0x3219c5+'/'+_0x585fe6)['json'](_0x4bd37c);}return null;};}function patchUpdates(_0x2c1fa3){return function(_0x7e95b2){try{jsonpatch['apply'](_0x7e95b2,_0x2c1fa3,!![]);}catch(_0x325481){return BPromise[_0xf3f4('0x20')](_0x325481);}return _0x7e95b2['save']();};}function saveUpdates(_0x599675,_0x4677e9){return function(_0x1e9537){if(_0x1e9537){return _0x1e9537[_0xf3f4('0x21')](_0x599675)[_0xf3f4('0x22')](function(_0x325fa0){return _0x325fa0;});}return null;};}function removeEntity(_0x450ca4,_0x1e5634){return function(_0x49d091){if(_0x49d091){return _0x49d091[_0xf3f4('0x23')]()['then'](function(){_0x450ca4[_0xf3f4('0x1a')](0xcc)[_0xf3f4('0x24')]();});}};}function handleEntityNotFound(_0x4d16d6,_0x57377a){return function(_0x4224fa){if(!_0x4224fa){_0x4d16d6[_0xf3f4('0x19')](0x194);}return _0x4224fa;};}function handleError(_0x52627f,_0x1e3485){_0x1e3485=_0x1e3485||0x1f4;return function(_0x47a39f){logger[_0xf3f4('0x25')](_0x47a39f[_0xf3f4('0x26')]);if(_0x47a39f[_0xf3f4('0x27')]){delete _0x47a39f[_0xf3f4('0x27')];}_0x52627f[_0xf3f4('0x1a')](_0x1e3485)[_0xf3f4('0x28')](_0x47a39f);};}exports[_0xf3f4('0x29')]=function(_0x558d9d,_0x37f497){var _0x53a240={},_0x490137={},_0x9a4d69={'count':0x0,'rows':[]};var _0x5edc50=_['map'](db[_0xf3f4('0x2a')][_0xf3f4('0x2b')],function(_0x39064c){return{'name':_0x39064c[_0xf3f4('0x2c')],'type':_0x39064c[_0xf3f4('0x2d')][_0xf3f4('0x2e')]};});_0x490137['model']=_[_0xf3f4('0x2f')](_0x5edc50,_0xf3f4('0x27'));_0x490137['query']=_[_0xf3f4('0x30')](_0x558d9d[_0xf3f4('0x31')]);_0x490137[_0xf3f4('0x32')]=_[_0xf3f4('0x33')](_0x490137[_0xf3f4('0x34')],_0x490137[_0xf3f4('0x31')]);_0x53a240[_0xf3f4('0x35')]=_[_0xf3f4('0x33')](_0x490137[_0xf3f4('0x34')],qs[_0xf3f4('0x36')](_0x558d9d[_0xf3f4('0x31')]['fields']));_0x53a240[_0xf3f4('0x35')]=_0x53a240[_0xf3f4('0x35')][_0xf3f4('0x37')]?_0x53a240[_0xf3f4('0x35')]:_0x490137[_0xf3f4('0x34')];if(!_0x558d9d[_0xf3f4('0x31')]['hasOwnProperty']('nolimit')){_0x53a240[_0xf3f4('0x1e')]=qs[_0xf3f4('0x1e')](_0x558d9d[_0xf3f4('0x31')][_0xf3f4('0x1e')]);_0x53a240[_0xf3f4('0x1d')]=qs[_0xf3f4('0x1d')](_0x558d9d[_0xf3f4('0x31')]['offset']);}_0x53a240[_0xf3f4('0x38')]=qs[_0xf3f4('0x39')](_0x558d9d['query'][_0xf3f4('0x39')]);_0x53a240[_0xf3f4('0x3a')]=qs[_0xf3f4('0x32')](_[_0xf3f4('0x3b')](_0x558d9d[_0xf3f4('0x31')],_0x490137[_0xf3f4('0x32')]),_0x5edc50);if(_0x558d9d['query'][_0xf3f4('0x3c')]){_0x53a240[_0xf3f4('0x3a')]=_[_0xf3f4('0x3d')](_0x53a240['where'],{'$or':_[_0xf3f4('0x2f')](_0x5edc50,function(_0x42bfad){if(_0x42bfad['type']!==_0xf3f4('0x3e')){var _0x3f7fbb={};_0x3f7fbb[_0x42bfad[_0xf3f4('0x27')]]={'$like':'%'+_0x558d9d[_0xf3f4('0x31')][_0xf3f4('0x3c')]+'%'};return _0x3f7fbb;}})});}_0x53a240=_[_0xf3f4('0x3d')]({},_0x53a240,_0x558d9d[_0xf3f4('0x3f')]);var _0x4a7a39={'where':_0x53a240['where']};return db[_0xf3f4('0x2a')][_0xf3f4('0x1c')](_0x4a7a39)[_0xf3f4('0x22')](function(_0x4af44b){_0x9a4d69['count']=_0x4af44b;if(_0x558d9d['query'][_0xf3f4('0x40')]){_0x53a240['include']=[{'all':!![]}];}return db[_0xf3f4('0x2a')]['findAll'](_0x53a240);})[_0xf3f4('0x22')](function(_0x4bb0dc){_0x9a4d69[_0xf3f4('0x41')]=_0x4bb0dc;return _0x9a4d69;})[_0xf3f4('0x22')](respondWithFilteredResult(_0x37f497,_0x53a240))[_0xf3f4('0x42')](handleError(_0x37f497,null));};exports['show']=function(_0x186afc,_0x2eead9){var _0x3c093d={'raw':!![],'where':{'id':_0x186afc['params']['id']}},_0x564362={};_0x564362[_0xf3f4('0x34')]=_[_0xf3f4('0x30')](db[_0xf3f4('0x2a')]['rawAttributes']);_0x564362['query']=_[_0xf3f4('0x30')](_0x186afc[_0xf3f4('0x31')]);_0x564362[_0xf3f4('0x32')]=_[_0xf3f4('0x33')](_0x564362[_0xf3f4('0x34')],_0x564362[_0xf3f4('0x31')]);_0x3c093d[_0xf3f4('0x35')]=_[_0xf3f4('0x33')](_0x564362['model'],qs[_0xf3f4('0x36')](_0x186afc[_0xf3f4('0x31')]['fields']));_0x3c093d[_0xf3f4('0x35')]=_0x3c093d[_0xf3f4('0x35')][_0xf3f4('0x37')]?_0x3c093d[_0xf3f4('0x35')]:_0x564362[_0xf3f4('0x34')];if(_0x186afc[_0xf3f4('0x31')][_0xf3f4('0x40')]){_0x3c093d[_0xf3f4('0x43')]=[{'all':!![]}];}_0x3c093d=_[_0xf3f4('0x3d')]({},_0x3c093d,_0x186afc[_0xf3f4('0x3f')]);return db[_0xf3f4('0x2a')][_0xf3f4('0x44')](_0x3c093d)[_0xf3f4('0x22')](handleEntityNotFound(_0x2eead9,null))['then'](respondWithResult(_0x2eead9,null))['catch'](handleError(_0x2eead9,null));};exports[_0xf3f4('0x45')]=function(_0x1b8ad0,_0x3e3f3c){return db[_0xf3f4('0x2a')][_0xf3f4('0x45')](_0x1b8ad0['body'],{})[_0xf3f4('0x22')](respondWithResult(_0x3e3f3c,0xc9))['catch'](handleError(_0x3e3f3c,null));};exports[_0xf3f4('0x21')]=function(_0x100bcc,_0x2201c1){if(_0x100bcc[_0xf3f4('0x46')]['id']){delete _0x100bcc['body']['id'];}return db[_0xf3f4('0x2a')][_0xf3f4('0x44')]({'where':{'id':_0x100bcc['params']['id']}})['then'](handleEntityNotFound(_0x2201c1,null))['then'](saveUpdates(_0x100bcc['body'],null))[_0xf3f4('0x22')](respondWithResult(_0x2201c1,null))[_0xf3f4('0x42')](handleError(_0x2201c1,null));};exports[_0xf3f4('0x23')]=function(_0x2abe95,_0x2b93cc){return db[_0xf3f4('0x2a')][_0xf3f4('0x44')]({'where':{'id':_0x2abe95[_0xf3f4('0x47')]['id']}})[_0xf3f4('0x22')](handleEntityNotFound(_0x2b93cc,null))['then'](removeEntity(_0x2b93cc,null))[_0xf3f4('0x42')](handleError(_0x2b93cc,null));};
\ No newline at end of file
+var _0x7f6f=['json','save','update','then','destroy','stack','send','map','rawAttributes','fieldName','type','key','name','query','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filters','merge','options','SquareMessage','include','rows','show','params','find','catch','create','body','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','undefined','count','offset','limit'];(function(_0x24e680,_0xc2e569){var _0xc7b2b4=function(_0x584cc6){while(--_0x584cc6){_0x24e680['push'](_0x24e680['shift']());}};_0xc7b2b4(++_0xc2e569);}(_0x7f6f,0x6c));var _0xf7f6=function(_0x3734bc,_0xf0ad5f){_0x3734bc=_0x3734bc-0x0;var _0x5d965c=_0x7f6f[_0x3734bc];return _0x5d965c;};'use strict';var emlformat=require(_0xf7f6('0x0'));var rimraf=require(_0xf7f6('0x1'));var zipdir=require(_0xf7f6('0x2'));var jsonpatch=require(_0xf7f6('0x3'));var rp=require(_0xf7f6('0x4'));var moment=require(_0xf7f6('0x5'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0xf7f6('0x6'));var path=require(_0xf7f6('0x7'));var sox=require(_0xf7f6('0x8'));var csv=require(_0xf7f6('0x9'));var ejs=require(_0xf7f6('0xa'));var fs=require('fs');var fs_extra=require(_0xf7f6('0xb'));var _=require(_0xf7f6('0xc'));var squel=require(_0xf7f6('0xd'));var crypto=require(_0xf7f6('0xe'));var jsforce=require(_0xf7f6('0xf'));var deskjs=require(_0xf7f6('0x10'));var toCsv=require('to-csv');var querystring=require(_0xf7f6('0x11'));var Papa=require('papaparse');var Redis=require(_0xf7f6('0x12'));var authService=require(_0xf7f6('0x13'));var qs=require('../../components/parsers/qs');var as=require(_0xf7f6('0x14'));var hardwareService=require(_0xf7f6('0x15'));var logger=require(_0xf7f6('0x16'))(_0xf7f6('0x17'));var utils=require(_0xf7f6('0x18'));var config=require(_0xf7f6('0x19'));var licenseUtil=require(_0xf7f6('0x1a'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0xb5a46f,_0x35601d){_0x35601d=_0x35601d||0xcc;return function(_0xceb207){if(_0xceb207){return _0xb5a46f[_0xf7f6('0x1b')](_0x35601d);}return _0xb5a46f[_0xf7f6('0x1c')](_0x35601d)[_0xf7f6('0x1d')]();};}function respondWithResult(_0xe3a975,_0x52e914){_0x52e914=_0x52e914||0xc8;return function(_0x23115d){if(_0x23115d){return _0xe3a975[_0xf7f6('0x1c')](_0x52e914)['json'](_0x23115d);}};}function respondWithFilteredResult(_0x3892e3,_0x418a5e){return function(_0x3cb4bd){if(_0x3cb4bd){var _0x7c3594=typeof _0x418a5e['offset']===_0xf7f6('0x1e')&&typeof _0x418a5e['limit']==='undefined';var _0x578499=_0x3cb4bd[_0xf7f6('0x1f')];var _0x23794f=_0x7c3594?0x0:_0x418a5e[_0xf7f6('0x20')];var _0x40a530=_0x7c3594?_0x3cb4bd[_0xf7f6('0x1f')]:_0x418a5e[_0xf7f6('0x20')]+_0x418a5e[_0xf7f6('0x21')];var _0x1fa1aa;if(_0x40a530>=_0x578499){_0x40a530=_0x578499;_0x1fa1aa=0xc8;}else{_0x1fa1aa=0xce;}_0x3892e3[_0xf7f6('0x1c')](_0x1fa1aa);return _0x3892e3['set']('Content-Range',_0x23794f+'-'+_0x40a530+'/'+_0x578499)[_0xf7f6('0x22')](_0x3cb4bd);}return null;};}function patchUpdates(_0x2e687e){return function(_0x440a5a){try{jsonpatch['apply'](_0x440a5a,_0x2e687e,!![]);}catch(_0x17c38c){return BPromise['reject'](_0x17c38c);}return _0x440a5a[_0xf7f6('0x23')]();};}function saveUpdates(_0x426a22,_0x3afa02){return function(_0x16aadb){if(_0x16aadb){return _0x16aadb[_0xf7f6('0x24')](_0x426a22)[_0xf7f6('0x25')](function(_0x57576a){return _0x57576a;});}return null;};}function removeEntity(_0x595930,_0x35c008){return function(_0x1539d6){if(_0x1539d6){return _0x1539d6[_0xf7f6('0x26')]()['then'](function(){_0x595930[_0xf7f6('0x1c')](0xcc)['end']();});}};}function handleEntityNotFound(_0x29fe4c,_0x32852b){return function(_0x3ecd51){if(!_0x3ecd51){_0x29fe4c[_0xf7f6('0x1b')](0x194);}return _0x3ecd51;};}function handleError(_0x3cfd36,_0x2f65ef){_0x2f65ef=_0x2f65ef||0x1f4;return function(_0xa29153){logger['error'](_0xa29153[_0xf7f6('0x27')]);if(_0xa29153['name']){delete _0xa29153['name'];}_0x3cfd36[_0xf7f6('0x1c')](_0x2f65ef)[_0xf7f6('0x28')](_0xa29153);};}exports['index']=function(_0x49b232,_0x2fefb6){var _0x5d7fff={},_0x2fdd5f={},_0x52fa6a={'count':0x0,'rows':[]};var _0x2b4f0e=_[_0xf7f6('0x29')](db['SquareMessage'][_0xf7f6('0x2a')],function(_0x2a8a96){return{'name':_0x2a8a96[_0xf7f6('0x2b')],'type':_0x2a8a96[_0xf7f6('0x2c')][_0xf7f6('0x2d')]};});_0x2fdd5f['model']=_[_0xf7f6('0x29')](_0x2b4f0e,_0xf7f6('0x2e'));_0x2fdd5f['query']=_['keys'](_0x49b232[_0xf7f6('0x2f')]);_0x2fdd5f['filters']=_[_0xf7f6('0x30')](_0x2fdd5f[_0xf7f6('0x31')],_0x2fdd5f[_0xf7f6('0x2f')]);_0x5d7fff[_0xf7f6('0x32')]=_[_0xf7f6('0x30')](_0x2fdd5f[_0xf7f6('0x31')],qs[_0xf7f6('0x33')](_0x49b232[_0xf7f6('0x2f')][_0xf7f6('0x33')]));_0x5d7fff[_0xf7f6('0x32')]=_0x5d7fff[_0xf7f6('0x32')][_0xf7f6('0x34')]?_0x5d7fff[_0xf7f6('0x32')]:_0x2fdd5f[_0xf7f6('0x31')];if(!_0x49b232[_0xf7f6('0x2f')][_0xf7f6('0x35')](_0xf7f6('0x36'))){_0x5d7fff['limit']=qs[_0xf7f6('0x21')](_0x49b232['query'][_0xf7f6('0x21')]);_0x5d7fff['offset']=qs['offset'](_0x49b232['query'][_0xf7f6('0x20')]);}_0x5d7fff[_0xf7f6('0x37')]=qs[_0xf7f6('0x38')](_0x49b232[_0xf7f6('0x2f')][_0xf7f6('0x38')]);_0x5d7fff[_0xf7f6('0x39')]=qs['filters'](_[_0xf7f6('0x3a')](_0x49b232[_0xf7f6('0x2f')],_0x2fdd5f[_0xf7f6('0x3b')]),_0x2b4f0e);if(_0x49b232[_0xf7f6('0x2f')]['filter']){_0x5d7fff[_0xf7f6('0x39')]=_[_0xf7f6('0x3c')](_0x5d7fff[_0xf7f6('0x39')],{'$or':_[_0xf7f6('0x29')](_0x2b4f0e,function(_0x34a4a7){if(_0x34a4a7[_0xf7f6('0x2c')]!=='VIRTUAL'){var _0x650d28={};_0x650d28[_0x34a4a7[_0xf7f6('0x2e')]]={'$like':'%'+_0x49b232[_0xf7f6('0x2f')]['filter']+'%'};return _0x650d28;}})});}_0x5d7fff=_[_0xf7f6('0x3c')]({},_0x5d7fff,_0x49b232[_0xf7f6('0x3d')]);var _0x4b495c={'where':_0x5d7fff[_0xf7f6('0x39')]};return db[_0xf7f6('0x3e')][_0xf7f6('0x1f')](_0x4b495c)[_0xf7f6('0x25')](function(_0x1a0e4f){_0x52fa6a[_0xf7f6('0x1f')]=_0x1a0e4f;if(_0x49b232['query']['includeAll']){_0x5d7fff[_0xf7f6('0x3f')]=[{'all':!![]}];}return db[_0xf7f6('0x3e')]['findAll'](_0x5d7fff);})[_0xf7f6('0x25')](function(_0x269dc6){_0x52fa6a[_0xf7f6('0x40')]=_0x269dc6;return _0x52fa6a;})[_0xf7f6('0x25')](respondWithFilteredResult(_0x2fefb6,_0x5d7fff))['catch'](handleError(_0x2fefb6,null));};exports[_0xf7f6('0x41')]=function(_0x1caa88,_0x1c1b6f){var _0x110c57={'raw':!![],'where':{'id':_0x1caa88[_0xf7f6('0x42')]['id']}},_0x25470d={};_0x25470d[_0xf7f6('0x31')]=_['keys'](db[_0xf7f6('0x3e')][_0xf7f6('0x2a')]);_0x25470d[_0xf7f6('0x2f')]=_['keys'](_0x1caa88[_0xf7f6('0x2f')]);_0x25470d[_0xf7f6('0x3b')]=_[_0xf7f6('0x30')](_0x25470d[_0xf7f6('0x31')],_0x25470d[_0xf7f6('0x2f')]);_0x110c57['attributes']=_[_0xf7f6('0x30')](_0x25470d[_0xf7f6('0x31')],qs[_0xf7f6('0x33')](_0x1caa88[_0xf7f6('0x2f')][_0xf7f6('0x33')]));_0x110c57[_0xf7f6('0x32')]=_0x110c57[_0xf7f6('0x32')][_0xf7f6('0x34')]?_0x110c57[_0xf7f6('0x32')]:_0x25470d[_0xf7f6('0x31')];if(_0x1caa88['query']['includeAll']){_0x110c57[_0xf7f6('0x3f')]=[{'all':!![]}];}_0x110c57=_['merge']({},_0x110c57,_0x1caa88[_0xf7f6('0x3d')]);return db[_0xf7f6('0x3e')][_0xf7f6('0x43')](_0x110c57)[_0xf7f6('0x25')](handleEntityNotFound(_0x1c1b6f,null))[_0xf7f6('0x25')](respondWithResult(_0x1c1b6f,null))[_0xf7f6('0x44')](handleError(_0x1c1b6f,null));};exports[_0xf7f6('0x45')]=function(_0x7e5539,_0xe1e644){return db['SquareMessage']['create'](_0x7e5539['body'],{})[_0xf7f6('0x25')](respondWithResult(_0xe1e644,0xc9))[_0xf7f6('0x44')](handleError(_0xe1e644,null));};exports[_0xf7f6('0x24')]=function(_0x551f59,_0x5b34fb){if(_0x551f59['body']['id']){delete _0x551f59['body']['id'];}return db['SquareMessage'][_0xf7f6('0x43')]({'where':{'id':_0x551f59[_0xf7f6('0x42')]['id']}})[_0xf7f6('0x25')](handleEntityNotFound(_0x5b34fb,null))[_0xf7f6('0x25')](saveUpdates(_0x551f59[_0xf7f6('0x46')],null))[_0xf7f6('0x25')](respondWithResult(_0x5b34fb,null))[_0xf7f6('0x44')](handleError(_0x5b34fb,null));};exports[_0xf7f6('0x26')]=function(_0xf19a0a,_0x1d6685){return db['SquareMessage'][_0xf7f6('0x43')]({'where':{'id':_0xf19a0a[_0xf7f6('0x42')]['id']}})[_0xf7f6('0x25')](handleEntityNotFound(_0x1d6685,null))[_0xf7f6('0x25')](removeEntity(_0x1d6685,null))[_0xf7f6('0x44')](handleError(_0x1d6685,null));};
\ No newline at end of file