Built motion from commit (unavailable).|2.6.0
[motion2.git] / server / api / faxTransferReport / faxTransferReport.controller.js
index 6e12727..c681d9d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8ccb=['destroy','describe','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','path','sox','to-csv','fs-extra','lodash','squel','jsforce','desk.js','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','limit','count','set','apply','save','update','then','error','stack','send','merge','body','contact','message','interaction','account','index','map','rawAttributes','fieldName','type','key','model','keys','filters','query','attributes','intersection','fields','length','hasOwnProperty','nolimit','sort','where','pick','name','filter','FaxTransferReport','includeAll','include','findAll','rows','show','params','find','catch','create'];(function(_0x4127dc,_0x5558fe){var _0x310070=function(_0x190691){while(--_0x190691){_0x4127dc['push'](_0x4127dc['shift']());}};_0x310070(++_0x5558fe);}(_0x8ccb,0x1c4));var _0xb8cc=function(_0x424357,_0x9ebe3e){_0x424357=_0x424357-0x0;var _0x29c68e=_0x8ccb[_0x424357];return _0x29c68e;};'use strict';var emlformat=require(_0xb8cc('0x0'));var rimraf=require(_0xb8cc('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xb8cc('0x2'));var rp=require(_0xb8cc('0x3'));var moment=require(_0xb8cc('0x4'));var BPromise=require(_0xb8cc('0x5'));var Mustache=require('mustache');var util=require('util');var path=require(_0xb8cc('0x6'));var sox=require(_0xb8cc('0x7'));var csv=require(_0xb8cc('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xb8cc('0x9'));var _=require(_0xb8cc('0xa'));var squel=require(_0xb8cc('0xb'));var crypto=require('crypto');var jsforce=require(_0xb8cc('0xc'));var deskjs=require(_0xb8cc('0xd'));var toCsv=require(_0xb8cc('0x8'));var querystring=require('querystring');var Papa=require(_0xb8cc('0xe'));var Redis=require(_0xb8cc('0xf'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xb8cc('0x10'));var hardwareService=require(_0xb8cc('0x11'));var logger=require('../../config/logger')('api');var utils=require(_0xb8cc('0x12'));var config=require(_0xb8cc('0x13'));var licenseUtil=require('../../config/license/util');var db=require(_0xb8cc('0x14'))['db'];function respondWithStatusCode(_0x2c1cbc,_0xfd89e0){_0xfd89e0=_0xfd89e0||0xcc;return function(_0x2875e0){if(_0x2875e0){return _0x2c1cbc[_0xb8cc('0x15')](_0xfd89e0);}return _0x2c1cbc[_0xb8cc('0x16')](_0xfd89e0)[_0xb8cc('0x17')]();};}function respondWithResult(_0x4983ae,_0x11ecf2){_0x11ecf2=_0x11ecf2||0xc8;return function(_0x5ec8a7){if(_0x5ec8a7){return _0x4983ae[_0xb8cc('0x16')](_0x11ecf2)[_0xb8cc('0x18')](_0x5ec8a7);}};}function respondWithFilteredResult(_0x183056,_0x5f3b91){return function(_0x1f8b8d){if(_0x1f8b8d){var _0x274cab=typeof _0x5f3b91[_0xb8cc('0x19')]==='undefined'&&typeof _0x5f3b91[_0xb8cc('0x1a')]==='undefined';var _0x131c44=_0x1f8b8d['count'];var _0x2ac4cc=_0x274cab?0x0:_0x5f3b91[_0xb8cc('0x19')];var _0x2b7130=_0x274cab?_0x1f8b8d[_0xb8cc('0x1b')]:_0x5f3b91[_0xb8cc('0x19')]+_0x5f3b91['limit'];var _0x1c1022;if(_0x2b7130>=_0x131c44){_0x2b7130=_0x131c44;_0x1c1022=0xc8;}else{_0x1c1022=0xce;}_0x183056[_0xb8cc('0x16')](_0x1c1022);return _0x183056[_0xb8cc('0x1c')]('Content-Range',_0x2ac4cc+'-'+_0x2b7130+'/'+_0x131c44)[_0xb8cc('0x18')](_0x1f8b8d);}return null;};}function patchUpdates(_0x1a81b4){return function(_0x4a7aac){try{jsonpatch[_0xb8cc('0x1d')](_0x4a7aac,_0x1a81b4,!![]);}catch(_0xe5ad50){return BPromise['reject'](_0xe5ad50);}return _0x4a7aac[_0xb8cc('0x1e')]();};}function saveUpdates(_0xdcb33d,_0xd1c676){return function(_0x1d372c){if(_0x1d372c){return _0x1d372c[_0xb8cc('0x1f')](_0xdcb33d)[_0xb8cc('0x20')](function(_0x1a0467){return _0x1a0467;});}return null;};}function removeEntity(_0x59608c,_0x50aa38){return function(_0x8b6b21){if(_0x8b6b21){return _0x8b6b21['destroy']()[_0xb8cc('0x20')](function(){_0x59608c['status'](0xcc)[_0xb8cc('0x17')]();});}};}function handleEntityNotFound(_0xbb1918,_0x335f32){return function(_0x77a162){if(!_0x77a162){_0xbb1918['sendStatus'](0x194);}return _0x77a162;};}function handleError(_0x2c4aa0,_0x2cc7f3){_0x2cc7f3=_0x2cc7f3||0x1f4;return function(_0x400de6){logger[_0xb8cc('0x21')](_0x400de6[_0xb8cc('0x22')]);if(_0x400de6['name']){delete _0x400de6['name'];}_0x2c4aa0[_0xb8cc('0x16')](_0x2cc7f3)[_0xb8cc('0x23')](_0x400de6);};}function getMustacheRender(_0x58dd4c,_0x3e4a37){return Mustache['render'](_0x58dd4c,_[_0xb8cc('0x24')](_0x3e4a37[_0xb8cc('0x25')],{'contact':_0x3e4a37[_0xb8cc('0x26')],'message':_0x3e4a37[_0xb8cc('0x27')],'agent':_0x3e4a37['agent'],'interaction':_0x3e4a37[_0xb8cc('0x28')],'account':_0x3e4a37[_0xb8cc('0x29')]}))||'';}exports[_0xb8cc('0x2a')]=function(_0x52fbb1,_0x2430dd){var _0x59e850={},_0x359ce7={},_0x5c48f3={'count':0x0,'rows':[]};var _0x1716e9=_[_0xb8cc('0x2b')](db['FaxTransferReport'][_0xb8cc('0x2c')],function(_0x25c576){return{'name':_0x25c576[_0xb8cc('0x2d')],'type':_0x25c576[_0xb8cc('0x2e')][_0xb8cc('0x2f')]};});_0x359ce7[_0xb8cc('0x30')]=_[_0xb8cc('0x2b')](_0x1716e9,'name');_0x359ce7['query']=_[_0xb8cc('0x31')](_0x52fbb1['query']);_0x359ce7[_0xb8cc('0x32')]=_['intersection'](_0x359ce7['model'],_0x359ce7[_0xb8cc('0x33')]);_0x59e850[_0xb8cc('0x34')]=_[_0xb8cc('0x35')](_0x359ce7['model'],qs[_0xb8cc('0x36')](_0x52fbb1[_0xb8cc('0x33')][_0xb8cc('0x36')]));_0x59e850[_0xb8cc('0x34')]=_0x59e850[_0xb8cc('0x34')][_0xb8cc('0x37')]?_0x59e850[_0xb8cc('0x34')]:_0x359ce7[_0xb8cc('0x30')];if(!_0x52fbb1[_0xb8cc('0x33')][_0xb8cc('0x38')](_0xb8cc('0x39'))){_0x59e850[_0xb8cc('0x1a')]=qs[_0xb8cc('0x1a')](_0x52fbb1[_0xb8cc('0x33')][_0xb8cc('0x1a')]);_0x59e850[_0xb8cc('0x19')]=qs[_0xb8cc('0x19')](_0x52fbb1[_0xb8cc('0x33')]['offset']);}_0x59e850['order']=qs[_0xb8cc('0x3a')](_0x52fbb1[_0xb8cc('0x33')][_0xb8cc('0x3a')]);_0x59e850[_0xb8cc('0x3b')]=qs[_0xb8cc('0x32')](_[_0xb8cc('0x3c')](_0x52fbb1[_0xb8cc('0x33')],_0x359ce7[_0xb8cc('0x32')]),_0x1716e9);if(_0x52fbb1[_0xb8cc('0x33')]['filter']){_0x59e850['where']=_['merge'](_0x59e850['where'],{'$or':_[_0xb8cc('0x2b')](_0x1716e9,function(_0x5a89be){if(_0x5a89be[_0xb8cc('0x2e')]!=='VIRTUAL'){var _0x361ddf={};_0x361ddf[_0x5a89be[_0xb8cc('0x3d')]]={'$like':'%'+_0x52fbb1[_0xb8cc('0x33')][_0xb8cc('0x3e')]+'%'};return _0x361ddf;}})});}_0x59e850=_[_0xb8cc('0x24')]({},_0x59e850,_0x52fbb1['options']);var _0x323351={'where':_0x59e850[_0xb8cc('0x3b')]};return db[_0xb8cc('0x3f')]['count'](_0x323351)[_0xb8cc('0x20')](function(_0x5bfba3){_0x5c48f3['count']=_0x5bfba3;if(_0x52fbb1['query'][_0xb8cc('0x40')]){_0x59e850[_0xb8cc('0x41')]=[{'all':!![]}];}return db[_0xb8cc('0x3f')][_0xb8cc('0x42')](_0x59e850);})['then'](function(_0x4ba0ae){_0x5c48f3[_0xb8cc('0x43')]=_0x4ba0ae;return _0x5c48f3;})['then'](respondWithFilteredResult(_0x2430dd,_0x59e850))['catch'](handleError(_0x2430dd,null));};exports[_0xb8cc('0x44')]=function(_0xb5ed65,_0x2aab92){var _0xe622a1={'raw':!![],'where':{'id':_0xb5ed65[_0xb8cc('0x45')]['id']}},_0x4ff971={};_0x4ff971[_0xb8cc('0x30')]=_['keys'](db[_0xb8cc('0x3f')][_0xb8cc('0x2c')]);_0x4ff971[_0xb8cc('0x33')]=_[_0xb8cc('0x31')](_0xb5ed65[_0xb8cc('0x33')]);_0x4ff971[_0xb8cc('0x32')]=_[_0xb8cc('0x35')](_0x4ff971['model'],_0x4ff971[_0xb8cc('0x33')]);_0xe622a1[_0xb8cc('0x34')]=_[_0xb8cc('0x35')](_0x4ff971[_0xb8cc('0x30')],qs[_0xb8cc('0x36')](_0xb5ed65[_0xb8cc('0x33')][_0xb8cc('0x36')]));_0xe622a1['attributes']=_0xe622a1[_0xb8cc('0x34')]['length']?_0xe622a1['attributes']:_0x4ff971['model'];if(_0xb5ed65[_0xb8cc('0x33')][_0xb8cc('0x40')]){_0xe622a1[_0xb8cc('0x41')]=[{'all':!![]}];}_0xe622a1=_[_0xb8cc('0x24')]({},_0xe622a1,_0xb5ed65['options']);return db['FaxTransferReport'][_0xb8cc('0x46')](_0xe622a1)[_0xb8cc('0x20')](handleEntityNotFound(_0x2aab92,null))[_0xb8cc('0x20')](respondWithResult(_0x2aab92,null))[_0xb8cc('0x47')](handleError(_0x2aab92,null));};exports[_0xb8cc('0x48')]=function(_0x34a8a5,_0x326038){return db[_0xb8cc('0x3f')][_0xb8cc('0x48')](_0x34a8a5[_0xb8cc('0x25')],{})['then'](respondWithResult(_0x326038,0xc9))[_0xb8cc('0x47')](handleError(_0x326038,null));};exports[_0xb8cc('0x1f')]=function(_0x3b1e24,_0x43ce0d){if(_0x3b1e24['body']['id']){delete _0x3b1e24[_0xb8cc('0x25')]['id'];}return db[_0xb8cc('0x3f')][_0xb8cc('0x46')]({'where':{'id':_0x3b1e24['params']['id']}})[_0xb8cc('0x20')](handleEntityNotFound(_0x43ce0d,null))[_0xb8cc('0x20')](saveUpdates(_0x3b1e24[_0xb8cc('0x25')],null))['then'](respondWithResult(_0x43ce0d,null))[_0xb8cc('0x47')](handleError(_0x43ce0d,null));};exports[_0xb8cc('0x49')]=function(_0x563e4f,_0xaeb76){return db[_0xb8cc('0x3f')][_0xb8cc('0x46')]({'where':{'id':_0x563e4f['params']['id']}})[_0xb8cc('0x20')](handleEntityNotFound(_0xaeb76,null))[_0xb8cc('0x20')](removeEntity(_0xaeb76,null))[_0xb8cc('0x47')](handleError(_0xaeb76,null));};exports[_0xb8cc('0x4a')]=function(_0x5a4d5b,_0x9cb35d){return db[_0xb8cc('0x3f')][_0xb8cc('0x4a')]()['then'](respondWithResult(_0x9cb35d,null))[_0xb8cc('0x47')](handleError(_0x9cb35d,null));};
\ No newline at end of file
+var _0xace0=['hasOwnProperty','nolimit','order','sort','where','pick','filter','VIRTUAL','merge','options','includeAll','findAll','rows','show','params','keys','rawAttributes','fields','find','catch','create','body','destroy','describe','eml-format','rimraf','request-promise','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','undefined','count','limit','set','Content-Range','apply','reject','save','update','then','error','stack','name','send','index','map','FaxTransferReport','fieldName','type','key','model','query','filters','intersection','attributes','length'];(function(_0x5a99db,_0x1cece5){var _0x3aad62=function(_0x334cb7){while(--_0x334cb7){_0x5a99db['push'](_0x5a99db['shift']());}};_0x3aad62(++_0x1cece5);}(_0xace0,0x158));var _0x0ace=function(_0x413426,_0x4f7814){_0x413426=_0x413426-0x0;var _0x5576e2=_0xace0[_0x413426];return _0x5576e2;};'use strict';var emlformat=require(_0x0ace('0x0'));var rimraf=require(_0x0ace('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x0ace('0x2'));var moment=require(_0x0ace('0x3'));var BPromise=require('bluebird');var Mustache=require(_0x0ace('0x4'));var util=require(_0x0ace('0x5'));var path=require(_0x0ace('0x6'));var sox=require(_0x0ace('0x7'));var csv=require(_0x0ace('0x8'));var ejs=require(_0x0ace('0x9'));var fs=require('fs');var fs_extra=require(_0x0ace('0xa'));var _=require(_0x0ace('0xb'));var squel=require(_0x0ace('0xc'));var crypto=require(_0x0ace('0xd'));var jsforce=require(_0x0ace('0xe'));var deskjs=require(_0x0ace('0xf'));var toCsv=require(_0x0ace('0x8'));var querystring=require(_0x0ace('0x10'));var Papa=require(_0x0ace('0x11'));var Redis=require('ioredis');var authService=require(_0x0ace('0x12'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x0ace('0x13'));var logger=require(_0x0ace('0x14'))(_0x0ace('0x15'));var utils=require(_0x0ace('0x16'));var config=require(_0x0ace('0x17'));var licenseUtil=require('../../config/license/util');var db=require(_0x0ace('0x18'))['db'];function respondWithStatusCode(_0x39145f,_0xf147d){_0xf147d=_0xf147d||0xcc;return function(_0x2e8f2f){if(_0x2e8f2f){return _0x39145f[_0x0ace('0x19')](_0xf147d);}return _0x39145f[_0x0ace('0x1a')](_0xf147d)[_0x0ace('0x1b')]();};}function respondWithResult(_0x373208,_0x3622c3){_0x3622c3=_0x3622c3||0xc8;return function(_0x5162f5){if(_0x5162f5){return _0x373208[_0x0ace('0x1a')](_0x3622c3)[_0x0ace('0x1c')](_0x5162f5);}};}function respondWithFilteredResult(_0x713d81,_0x494760){return function(_0x4c5fb3){if(_0x4c5fb3){var _0xf064cb=typeof _0x494760[_0x0ace('0x1d')]===_0x0ace('0x1e')&&typeof _0x494760['limit']===_0x0ace('0x1e');var _0x4ef19b=_0x4c5fb3[_0x0ace('0x1f')];var _0x54a726=_0xf064cb?0x0:_0x494760[_0x0ace('0x1d')];var _0x30ffe=_0xf064cb?_0x4c5fb3[_0x0ace('0x1f')]:_0x494760[_0x0ace('0x1d')]+_0x494760[_0x0ace('0x20')];var _0x50b057;if(_0x30ffe>=_0x4ef19b){_0x30ffe=_0x4ef19b;_0x50b057=0xc8;}else{_0x50b057=0xce;}_0x713d81['status'](_0x50b057);return _0x713d81[_0x0ace('0x21')](_0x0ace('0x22'),_0x54a726+'-'+_0x30ffe+'/'+_0x4ef19b)['json'](_0x4c5fb3);}return null;};}function patchUpdates(_0x3273b7){return function(_0x1bfee3){try{jsonpatch[_0x0ace('0x23')](_0x1bfee3,_0x3273b7,!![]);}catch(_0x7be6d6){return BPromise[_0x0ace('0x24')](_0x7be6d6);}return _0x1bfee3[_0x0ace('0x25')]();};}function saveUpdates(_0x4244aa,_0x2d253e){return function(_0x5e22d4){if(_0x5e22d4){return _0x5e22d4[_0x0ace('0x26')](_0x4244aa)[_0x0ace('0x27')](function(_0xe85aa0){return _0xe85aa0;});}return null;};}function removeEntity(_0x4b435c,_0x40f687){return function(_0x2ecc04){if(_0x2ecc04){return _0x2ecc04['destroy']()['then'](function(){_0x4b435c[_0x0ace('0x1a')](0xcc)['end']();});}};}function handleEntityNotFound(_0x574dee,_0x338320){return function(_0x5a20cf){if(!_0x5a20cf){_0x574dee['sendStatus'](0x194);}return _0x5a20cf;};}function handleError(_0x145e12,_0x47fac3){_0x47fac3=_0x47fac3||0x1f4;return function(_0x319ebc){logger[_0x0ace('0x28')](_0x319ebc[_0x0ace('0x29')]);if(_0x319ebc[_0x0ace('0x2a')]){delete _0x319ebc[_0x0ace('0x2a')];}_0x145e12[_0x0ace('0x1a')](_0x47fac3)[_0x0ace('0x2b')](_0x319ebc);};}exports[_0x0ace('0x2c')]=function(_0x5b2d0c,_0x2d4a0c){var _0x3b2c8b={},_0x2f345d={},_0x2312f9={'count':0x0,'rows':[]};var _0x41599b=_[_0x0ace('0x2d')](db[_0x0ace('0x2e')]['rawAttributes'],function(_0x38647e){return{'name':_0x38647e[_0x0ace('0x2f')],'type':_0x38647e[_0x0ace('0x30')][_0x0ace('0x31')]};});_0x2f345d[_0x0ace('0x32')]=_[_0x0ace('0x2d')](_0x41599b,'name');_0x2f345d[_0x0ace('0x33')]=_['keys'](_0x5b2d0c[_0x0ace('0x33')]);_0x2f345d[_0x0ace('0x34')]=_[_0x0ace('0x35')](_0x2f345d['model'],_0x2f345d[_0x0ace('0x33')]);_0x3b2c8b[_0x0ace('0x36')]=_['intersection'](_0x2f345d[_0x0ace('0x32')],qs['fields'](_0x5b2d0c[_0x0ace('0x33')]['fields']));_0x3b2c8b[_0x0ace('0x36')]=_0x3b2c8b[_0x0ace('0x36')][_0x0ace('0x37')]?_0x3b2c8b[_0x0ace('0x36')]:_0x2f345d[_0x0ace('0x32')];if(!_0x5b2d0c[_0x0ace('0x33')][_0x0ace('0x38')](_0x0ace('0x39'))){_0x3b2c8b[_0x0ace('0x20')]=qs[_0x0ace('0x20')](_0x5b2d0c[_0x0ace('0x33')][_0x0ace('0x20')]);_0x3b2c8b[_0x0ace('0x1d')]=qs[_0x0ace('0x1d')](_0x5b2d0c[_0x0ace('0x33')][_0x0ace('0x1d')]);}_0x3b2c8b[_0x0ace('0x3a')]=qs[_0x0ace('0x3b')](_0x5b2d0c['query'][_0x0ace('0x3b')]);_0x3b2c8b[_0x0ace('0x3c')]=qs[_0x0ace('0x34')](_[_0x0ace('0x3d')](_0x5b2d0c[_0x0ace('0x33')],_0x2f345d[_0x0ace('0x34')]),_0x41599b);if(_0x5b2d0c[_0x0ace('0x33')][_0x0ace('0x3e')]){_0x3b2c8b['where']=_['merge'](_0x3b2c8b[_0x0ace('0x3c')],{'$or':_['map'](_0x41599b,function(_0x3f41eb){if(_0x3f41eb[_0x0ace('0x30')]!==_0x0ace('0x3f')){var _0x48e689={};_0x48e689[_0x3f41eb[_0x0ace('0x2a')]]={'$like':'%'+_0x5b2d0c['query'][_0x0ace('0x3e')]+'%'};return _0x48e689;}})});}_0x3b2c8b=_[_0x0ace('0x40')]({},_0x3b2c8b,_0x5b2d0c[_0x0ace('0x41')]);var _0x2612ce={'where':_0x3b2c8b['where']};return db['FaxTransferReport']['count'](_0x2612ce)[_0x0ace('0x27')](function(_0x5785db){_0x2312f9['count']=_0x5785db;if(_0x5b2d0c['query'][_0x0ace('0x42')]){_0x3b2c8b['include']=[{'all':!![]}];}return db[_0x0ace('0x2e')][_0x0ace('0x43')](_0x3b2c8b);})[_0x0ace('0x27')](function(_0x42f065){_0x2312f9[_0x0ace('0x44')]=_0x42f065;return _0x2312f9;})[_0x0ace('0x27')](respondWithFilteredResult(_0x2d4a0c,_0x3b2c8b))['catch'](handleError(_0x2d4a0c,null));};exports[_0x0ace('0x45')]=function(_0x4e861f,_0x3c4631){var _0x4904b9={'raw':!![],'where':{'id':_0x4e861f[_0x0ace('0x46')]['id']}},_0x261d9b={};_0x261d9b[_0x0ace('0x32')]=_[_0x0ace('0x47')](db[_0x0ace('0x2e')][_0x0ace('0x48')]);_0x261d9b[_0x0ace('0x33')]=_[_0x0ace('0x47')](_0x4e861f[_0x0ace('0x33')]);_0x261d9b[_0x0ace('0x34')]=_[_0x0ace('0x35')](_0x261d9b['model'],_0x261d9b[_0x0ace('0x33')]);_0x4904b9[_0x0ace('0x36')]=_[_0x0ace('0x35')](_0x261d9b[_0x0ace('0x32')],qs[_0x0ace('0x49')](_0x4e861f[_0x0ace('0x33')][_0x0ace('0x49')]));_0x4904b9[_0x0ace('0x36')]=_0x4904b9[_0x0ace('0x36')][_0x0ace('0x37')]?_0x4904b9[_0x0ace('0x36')]:_0x261d9b[_0x0ace('0x32')];if(_0x4e861f[_0x0ace('0x33')][_0x0ace('0x42')]){_0x4904b9['include']=[{'all':!![]}];}_0x4904b9=_[_0x0ace('0x40')]({},_0x4904b9,_0x4e861f[_0x0ace('0x41')]);return db['FaxTransferReport'][_0x0ace('0x4a')](_0x4904b9)[_0x0ace('0x27')](handleEntityNotFound(_0x3c4631,null))[_0x0ace('0x27')](respondWithResult(_0x3c4631,null))[_0x0ace('0x4b')](handleError(_0x3c4631,null));};exports['create']=function(_0x3dd766,_0x2fa8cf){return db[_0x0ace('0x2e')][_0x0ace('0x4c')](_0x3dd766[_0x0ace('0x4d')],{})[_0x0ace('0x27')](respondWithResult(_0x2fa8cf,0xc9))[_0x0ace('0x4b')](handleError(_0x2fa8cf,null));};exports[_0x0ace('0x26')]=function(_0x1da527,_0x2fa070){if(_0x1da527['body']['id']){delete _0x1da527[_0x0ace('0x4d')]['id'];}return db[_0x0ace('0x2e')]['find']({'where':{'id':_0x1da527[_0x0ace('0x46')]['id']}})['then'](handleEntityNotFound(_0x2fa070,null))[_0x0ace('0x27')](saveUpdates(_0x1da527[_0x0ace('0x4d')],null))[_0x0ace('0x27')](respondWithResult(_0x2fa070,null))['catch'](handleError(_0x2fa070,null));};exports[_0x0ace('0x4e')]=function(_0x6e8440,_0x4c6fe0){return db[_0x0ace('0x2e')]['find']({'where':{'id':_0x6e8440[_0x0ace('0x46')]['id']}})[_0x0ace('0x27')](handleEntityNotFound(_0x4c6fe0,null))['then'](removeEntity(_0x4c6fe0,null))[_0x0ace('0x4b')](handleError(_0x4c6fe0,null));};exports[_0x0ace('0x4f')]=function(_0x580240,_0x4fb3e0){return db[_0x0ace('0x2e')]['describe']()[_0x0ace('0x27')](respondWithResult(_0x4fb3e0,null))[_0x0ace('0x4b')](handleError(_0x4fb3e0,null));};
\ No newline at end of file