101a234dc69d20e7a388e997933707a3f74f768a
[motion-next.git] / server / api / intZendeskConfiguration / intZendeskConfiguration.controller.js
1 const a338_0x1282=['like','sort','stack','pick','model','getSubjects','fields','type','findAll','order','end','count','catch','map','ZendeskConfiguration','lodash','rows','error','index','rawAttributes','../../config/logger','getFields','options','send','query','api','Content-Range','update','sendStatus','Tag','key','../../components/parsers/qs','getTags','name','undefined','params','body','include','attributes','create','ZendeskField','../../mysqldb','merge','limit','then','length','sequelize','VIRTUAL','filter','filters','destroy','offset','setTags','where','keys','findOne','nolimit','json','status','intersection','getDescriptions'];(function(_0x5781dd,_0x12821e){const _0x463b52=function(_0x2d1d45){while(--_0x2d1d45){_0x5781dd['push'](_0x5781dd['shift']());}};_0x463b52(++_0x12821e);}(a338_0x1282,0x101));const a338_0x463b=function(_0x5781dd,_0x12821e){_0x5781dd=_0x5781dd-0x0;let _0x463b52=a338_0x1282[_0x5781dd];return _0x463b52;};const _0x30fdc5=a338_0x463b;'use strict';const _=require(_0x30fdc5('0x2')),qs=require(_0x30fdc5('0x12')),logger=require(_0x30fdc5('0x7'))(_0x30fdc5('0xc')),db=require(_0x30fdc5('0x1c'))['db'],{Op}=require(_0x30fdc5('0x21'));function respondWithResult(_0x2d1d45,_0x2ebfdf){return _0x2ebfdf=_0x2ebfdf||0xc8,function(_0x2f373){if(_0x2f373)return _0x2d1d45['status'](_0x2ebfdf)['json'](_0x2f373);};}function respondWithFilteredResult(_0x54af8c,_0x36937c){return function(_0x5cf294){const _0x379a79=a338_0x463b;if(_0x5cf294){const _0x40ff87=_0x5cf294[_0x379a79('0x3b')],_0x319859=_0x36937c[_0x379a79('0x26')];let _0x269b00=_0x36937c[_0x379a79('0x26')]+_0x36937c[_0x379a79('0x1e')],_0x5c5b4f;return _0x269b00>=_0x40ff87?(_0x269b00=_0x40ff87,_0x5c5b4f=0xc8):_0x5c5b4f=0xce,_0x54af8c[_0x379a79('0x2d')](_0x5c5b4f),_0x54af8c['set'](_0x379a79('0xd'),_0x319859+'-'+_0x269b00+'/'+_0x40ff87)[_0x379a79('0x2c')](_0x5cf294);}return null;};}function saveUpdates(_0x4563a8){return function(_0x2ae1a6){const _0x458097=a338_0x463b;if(_0x2ae1a6)return _0x2ae1a6['update'](_0x4563a8)[_0x458097('0x1f')](function(_0x239b88){return _0x239b88;});return null;};}function removeEntity(_0x3a4684){return function(_0x47f415){const _0x23247e=a338_0x463b;if(_0x47f415)return _0x47f415[_0x23247e('0x25')]()['then'](function(){const _0xf28dbc=_0x23247e;_0x3a4684['status'](0xcc)[_0xf28dbc('0x3a')]();});};}function handleEntityNotFound(_0x4c81e6){return function(_0x3ab2fa){const _0x4225a8=a338_0x463b;return!_0x3ab2fa&&_0x4c81e6[_0x4225a8('0xf')](0x194),_0x3ab2fa;};}function handleError(_0x174f46,_0x2bc48b){return _0x2bc48b=_0x2bc48b||0x1f4,function(_0x4f2958){const _0x34ebf8=a338_0x463b;logger[_0x34ebf8('0x4')](_0x4f2958[_0x34ebf8('0x32')]),_0x4f2958[_0x34ebf8('0x14')]&&delete _0x4f2958[_0x34ebf8('0x14')],_0x174f46[_0x34ebf8('0x2d')](_0x2bc48b)[_0x34ebf8('0xa')](_0x4f2958);};}exports[_0x30fdc5('0x5')]=function(_0x245805,_0x306ecb){const _0x3ba67c=_0x30fdc5;let _0x28b8b3={};const _0x1bae0c={},_0x562f26={'count':0x0,'rows':[]},_0x155051=_[_0x3ba67c('0x0')](db[_0x3ba67c('0x1')][_0x3ba67c('0x6')],function(_0x40bd8a){const _0xae405=_0x3ba67c;return{'name':_0x40bd8a['fieldName'],'type':_0x40bd8a[_0xae405('0x37')][_0xae405('0x11')]};});_0x1bae0c[_0x3ba67c('0x34')]=_[_0x3ba67c('0x0')](_0x155051,_0x3ba67c('0x14')),_0x1bae0c['query']=_['keys'](_0x245805[_0x3ba67c('0xb')]),_0x1bae0c['filters']=_[_0x3ba67c('0x2e')](_0x1bae0c[_0x3ba67c('0x34')],_0x1bae0c[_0x3ba67c('0xb')]),_0x28b8b3['attributes']=_[_0x3ba67c('0x2e')](_0x1bae0c[_0x3ba67c('0x34')],qs[_0x3ba67c('0x36')](_0x245805['query'][_0x3ba67c('0x36')])),_0x28b8b3[_0x3ba67c('0x19')]=_0x28b8b3['attributes'][_0x3ba67c('0x20')]?_0x28b8b3[_0x3ba67c('0x19')]:_0x1bae0c[_0x3ba67c('0x34')];typeof _0x245805['query'][_0x3ba67c('0x2b')]===_0x3ba67c('0x15')&&(_0x28b8b3[_0x3ba67c('0x1e')]=qs['limit'](_0x245805[_0x3ba67c('0xb')][_0x3ba67c('0x1e')]),_0x28b8b3[_0x3ba67c('0x26')]=qs['offset'](_0x245805[_0x3ba67c('0xb')][_0x3ba67c('0x26')]));_0x28b8b3[_0x3ba67c('0x39')]=qs[_0x3ba67c('0x31')](_0x245805[_0x3ba67c('0xb')][_0x3ba67c('0x31')]),_0x28b8b3['where']=qs['filters'](_[_0x3ba67c('0x33')](_0x245805[_0x3ba67c('0xb')],_0x1bae0c['filters']),_0x155051);_0x245805[_0x3ba67c('0xb')][_0x3ba67c('0x23')]&&(_0x28b8b3[_0x3ba67c('0x28')]=_['merge'](_0x28b8b3[_0x3ba67c('0x28')],{[Op['or']]:_['map'](_0x155051,function(_0x538e68){const _0xcb0161=_0x3ba67c;if(_0x538e68[_0xcb0161('0x37')]!==_0xcb0161('0x22')){const _0x372be8={};return _0x372be8[_0x538e68['name']]={[Op[_0xcb0161('0x30')]]:'%'+_0x245805['query']['filter']+'%'},_0x372be8;}})}));_0x28b8b3=_[_0x3ba67c('0x1d')]({},_0x28b8b3,_0x245805[_0x3ba67c('0x9')]);const _0x4ef8e8={'where':_0x28b8b3['where']};return db[_0x3ba67c('0x1')][_0x3ba67c('0x3b')](_0x4ef8e8)[_0x3ba67c('0x1f')](function(_0x28da60){const _0x4ce182=_0x3ba67c;return _0x562f26[_0x4ce182('0x3b')]=_0x28da60,_0x245805[_0x4ce182('0xb')]['includeAll']&&(_0x28b8b3[_0x4ce182('0x18')]=[{'all':!![]}]),db[_0x4ce182('0x1')][_0x4ce182('0x38')](_0x28b8b3);})['then'](function(_0x34d40c){const _0x49c7fe=_0x3ba67c;return _0x562f26[_0x49c7fe('0x3')]=_0x34d40c,_0x562f26;})[_0x3ba67c('0x1f')](respondWithFilteredResult(_0x306ecb,_0x28b8b3))['catch'](handleError(_0x306ecb,null));},exports['show']=function(_0x2be322,_0x369c2c){const _0x62ec1d=_0x30fdc5;let _0x43f69e={'raw':![],'where':{'id':_0x2be322['params']['id']}};const _0x13bbc6={};return _0x13bbc6[_0x62ec1d('0x34')]=_[_0x62ec1d('0x29')](db[_0x62ec1d('0x1')][_0x62ec1d('0x6')]),_0x13bbc6[_0x62ec1d('0xb')]=_[_0x62ec1d('0x29')](_0x2be322[_0x62ec1d('0xb')]),_0x13bbc6[_0x62ec1d('0x24')]=_[_0x62ec1d('0x2e')](_0x13bbc6[_0x62ec1d('0x34')],_0x13bbc6[_0x62ec1d('0xb')]),_0x43f69e[_0x62ec1d('0x19')]=_[_0x62ec1d('0x2e')](_0x13bbc6[_0x62ec1d('0x34')],qs[_0x62ec1d('0x36')](_0x2be322[_0x62ec1d('0xb')]['fields'])),_0x43f69e['attributes']=_0x43f69e[_0x62ec1d('0x19')][_0x62ec1d('0x20')]?_0x43f69e['attributes']:_0x13bbc6[_0x62ec1d('0x34')],_0x2be322[_0x62ec1d('0xb')]['includeAll']&&(_0x43f69e[_0x62ec1d('0x18')]=[{'all':!![]}]),_0x43f69e=_[_0x62ec1d('0x1d')]({},_0x43f69e,_0x2be322[_0x62ec1d('0x9')]),db[_0x62ec1d('0x1')]['findOne'](_0x43f69e)[_0x62ec1d('0x1f')](handleEntityNotFound(_0x369c2c,null))['then'](respondWithResult(_0x369c2c,null))[_0x62ec1d('0x3c')](handleError(_0x369c2c,null));},exports['create']=function(_0x5bad5a,_0x25e6c9){const _0x123b90=_0x30fdc5;return db[_0x123b90('0x1')][_0x123b90('0x1a')](_0x5bad5a[_0x123b90('0x17')],{})[_0x123b90('0x1f')](respondWithResult(_0x25e6c9,0xc9))[_0x123b90('0x3c')](handleError(_0x25e6c9,null));},exports[_0x30fdc5('0xe')]=function(_0x5ac318,_0x580d3b){const _0x155887=_0x30fdc5;return _0x5ac318[_0x155887('0x17')]['id']&&delete _0x5ac318['body']['id'],db[_0x155887('0x1')][_0x155887('0x2a')]({'where':{'id':_0x5ac318['params']['id']}})['then'](handleEntityNotFound(_0x580d3b,null))['then'](saveUpdates(_0x5ac318[_0x155887('0x17')],null))[_0x155887('0x1f')](respondWithResult(_0x580d3b,null))[_0x155887('0x3c')](handleError(_0x580d3b,null));},exports['destroy']=function(_0x545b41,_0xae7940){const _0x3652ca=_0x30fdc5;return db['ZendeskConfiguration']['findOne']({'where':{'id':_0x545b41[_0x3652ca('0x16')]['id']}})[_0x3652ca('0x1f')](handleEntityNotFound(_0xae7940,null))[_0x3652ca('0x1f')](removeEntity(_0xae7940,null))['catch'](handleError(_0xae7940,null));},exports[_0x30fdc5('0x8')]=function(_0x240fca,_0x2b4f5e){const _0x380155=_0x30fdc5;let _0x62e677={};const _0x4fba39={};let _0x1b5eec,_0x25b795;return db['ZendeskConfiguration'][_0x380155('0x2a')]({'where':{'id':_0x240fca[_0x380155('0x16')]['id']}})[_0x380155('0x1f')](handleEntityNotFound(_0x2b4f5e,null))['then'](function(_0x5bca79){const _0x3b3a46=_0x380155;if(_0x5bca79)return _0x1b5eec=_0x5bca79,_0x4fba39['model']=_[_0x3b3a46('0x29')](db[_0x3b3a46('0x1b')][_0x3b3a46('0x6')]),_0x4fba39['query']=_['keys'](_0x240fca[_0x3b3a46('0xb')]),_0x4fba39[_0x3b3a46('0x24')]=_[_0x3b3a46('0x2e')](_0x4fba39[_0x3b3a46('0x34')],_0x4fba39['query']),_0x62e677[_0x3b3a46('0x19')]=_[_0x3b3a46('0x2e')](_0x4fba39[_0x3b3a46('0x34')],qs[_0x3b3a46('0x36')](_0x240fca[_0x3b3a46('0xb')][_0x3b3a46('0x36')])),_0x62e677['attributes']=_0x62e677[_0x3b3a46('0x19')]['length']?_0x62e677[_0x3b3a46('0x19')]:_0x4fba39[_0x3b3a46('0x34')],_0x62e677[_0x3b3a46('0x39')]=qs[_0x3b3a46('0x31')](_0x240fca[_0x3b3a46('0xb')][_0x3b3a46('0x31')]),_0x62e677['where']=qs[_0x3b3a46('0x24')](_[_0x3b3a46('0x33')](_0x240fca[_0x3b3a46('0xb')],_0x4fba39['filters'])),_0x240fca[_0x3b3a46('0xb')]['filter']&&(_0x62e677[_0x3b3a46('0x28')]=_[_0x3b3a46('0x1d')](_0x62e677[_0x3b3a46('0x28')],{[Op['or']]:_[_0x3b3a46('0x0')](_0x62e677['attributes'],function(_0x14a03b){const _0x78a302=_0x3b3a46,_0x331908={};return _0x331908[_0x14a03b]={[Op[_0x78a302('0x30')]]:'%'+_0x240fca['query'][_0x78a302('0x23')]+'%'},_0x331908;})})),_0x62e677=_['merge']({},_0x62e677,_0x240fca['options']),_0x1b5eec[_0x3b3a46('0x8')](_0x62e677);})[_0x380155('0x1f')](function(_0x54dc34){const _0x5f0e7f=_0x380155;if(_0x54dc34)return _0x25b795=_0x54dc34[_0x5f0e7f('0x20')],typeof _0x240fca['query'][_0x5f0e7f('0x2b')]===_0x5f0e7f('0x15')&&(_0x62e677[_0x5f0e7f('0x1e')]=qs[_0x5f0e7f('0x1e')](_0x240fca[_0x5f0e7f('0xb')][_0x5f0e7f('0x1e')]),_0x62e677['offset']=qs[_0x5f0e7f('0x26')](_0x240fca[_0x5f0e7f('0xb')][_0x5f0e7f('0x26')])),_0x1b5eec['getFields'](_0x62e677);})['then'](function(_0x81b313){if(_0x81b313)return _0x81b313?{'count':_0x25b795,'rows':_0x81b313}:null;})[_0x380155('0x1f')](respondWithResult(_0x2b4f5e,null))[_0x380155('0x3c')](handleError(_0x2b4f5e,null));},exports[_0x30fdc5('0x35')]=function(_0x483048,_0x207756){const _0x11438f=_0x30fdc5;let _0x1d026b={};const _0x7393bf={};let _0x538bf5,_0x39aa40;return db[_0x11438f('0x1')]['findOne']({'where':{'id':_0x483048[_0x11438f('0x16')]['id']}})[_0x11438f('0x1f')](handleEntityNotFound(_0x207756,null))['then'](function(_0x16139d){const _0x1c91ed=_0x11438f;if(_0x16139d)return _0x538bf5=_0x16139d,_0x7393bf[_0x1c91ed('0x34')]=_[_0x1c91ed('0x29')](db[_0x1c91ed('0x1b')][_0x1c91ed('0x6')]),_0x7393bf[_0x1c91ed('0xb')]=_[_0x1c91ed('0x29')](_0x483048['query']),_0x7393bf[_0x1c91ed('0x24')]=_['intersection'](_0x7393bf[_0x1c91ed('0x34')],_0x7393bf[_0x1c91ed('0xb')]),_0x1d026b[_0x1c91ed('0x19')]=_[_0x1c91ed('0x2e')](_0x7393bf['model'],qs[_0x1c91ed('0x36')](_0x483048[_0x1c91ed('0xb')]['fields'])),_0x1d026b[_0x1c91ed('0x19')]=_0x1d026b[_0x1c91ed('0x19')][_0x1c91ed('0x20')]?_0x1d026b[_0x1c91ed('0x19')]:_0x7393bf[_0x1c91ed('0x34')],_0x1d026b[_0x1c91ed('0x39')]=qs[_0x1c91ed('0x31')](_0x483048[_0x1c91ed('0xb')][_0x1c91ed('0x31')]),_0x1d026b[_0x1c91ed('0x28')]=qs[_0x1c91ed('0x24')](_[_0x1c91ed('0x33')](_0x483048['query'],_0x7393bf[_0x1c91ed('0x24')])),_0x483048[_0x1c91ed('0xb')][_0x1c91ed('0x23')]&&(_0x1d026b['where']=_[_0x1c91ed('0x1d')](_0x1d026b['where'],{[Op['or']]:_[_0x1c91ed('0x0')](_0x1d026b[_0x1c91ed('0x19')],function(_0x4da41c){const _0x2bf0df=_0x1c91ed,_0x462ccf={};return _0x462ccf[_0x4da41c]={[Op['like']]:'%'+_0x483048[_0x2bf0df('0xb')][_0x2bf0df('0x23')]+'%'},_0x462ccf;})})),_0x1d026b=_[_0x1c91ed('0x1d')]({},_0x1d026b,_0x483048[_0x1c91ed('0x9')]),_0x538bf5[_0x1c91ed('0x35')](_0x1d026b);})[_0x11438f('0x1f')](function(_0x103e8e){const _0x2037ce=_0x11438f;if(_0x103e8e)return _0x39aa40=_0x103e8e['length'],typeof _0x483048[_0x2037ce('0xb')]['nolimit']===_0x2037ce('0x15')&&(_0x1d026b['limit']=qs[_0x2037ce('0x1e')](_0x483048[_0x2037ce('0xb')][_0x2037ce('0x1e')]),_0x1d026b[_0x2037ce('0x26')]=qs[_0x2037ce('0x26')](_0x483048[_0x2037ce('0xb')][_0x2037ce('0x26')])),_0x538bf5['getSubjects'](_0x1d026b);})[_0x11438f('0x1f')](function(_0x764e5a){if(_0x764e5a)return _0x764e5a?{'count':_0x39aa40,'rows':_0x764e5a}:null;})[_0x11438f('0x1f')](respondWithResult(_0x207756,null))[_0x11438f('0x3c')](handleError(_0x207756,null));},exports['getDescriptions']=function(_0x301d79,_0xe59a){const _0xad15d3=_0x30fdc5;let _0x49e46d={};const _0x17eee9={};let _0x50a48a,_0x213bfd;return db['ZendeskConfiguration'][_0xad15d3('0x2a')]({'where':{'id':_0x301d79[_0xad15d3('0x16')]['id']}})[_0xad15d3('0x1f')](handleEntityNotFound(_0xe59a,null))[_0xad15d3('0x1f')](function(_0x3d940c){const _0x47bdfa=_0xad15d3;if(_0x3d940c)return _0x50a48a=_0x3d940c,_0x17eee9[_0x47bdfa('0x34')]=_[_0x47bdfa('0x29')](db[_0x47bdfa('0x1b')][_0x47bdfa('0x6')]),_0x17eee9[_0x47bdfa('0xb')]=_['keys'](_0x301d79['query']),_0x17eee9[_0x47bdfa('0x24')]=_[_0x47bdfa('0x2e')](_0x17eee9[_0x47bdfa('0x34')],_0x17eee9[_0x47bdfa('0xb')]),_0x49e46d[_0x47bdfa('0x19')]=_['intersection'](_0x17eee9[_0x47bdfa('0x34')],qs[_0x47bdfa('0x36')](_0x301d79['query'][_0x47bdfa('0x36')])),_0x49e46d[_0x47bdfa('0x19')]=_0x49e46d[_0x47bdfa('0x19')]['length']?_0x49e46d[_0x47bdfa('0x19')]:_0x17eee9[_0x47bdfa('0x34')],_0x49e46d['order']=qs[_0x47bdfa('0x31')](_0x301d79[_0x47bdfa('0xb')][_0x47bdfa('0x31')]),_0x49e46d[_0x47bdfa('0x28')]=qs[_0x47bdfa('0x24')](_[_0x47bdfa('0x33')](_0x301d79['query'],_0x17eee9['filters'])),_0x301d79[_0x47bdfa('0xb')][_0x47bdfa('0x23')]&&(_0x49e46d['where']=_[_0x47bdfa('0x1d')](_0x49e46d[_0x47bdfa('0x28')],{[Op['or']]:_[_0x47bdfa('0x0')](_0x49e46d[_0x47bdfa('0x19')],function(_0x3d36ff){const _0x3b8860=_0x47bdfa,_0x1bd29c={};return _0x1bd29c[_0x3d36ff]={[Op[_0x3b8860('0x30')]]:'%'+_0x301d79[_0x3b8860('0xb')][_0x3b8860('0x23')]+'%'},_0x1bd29c;})})),_0x49e46d=_[_0x47bdfa('0x1d')]({},_0x49e46d,_0x301d79['options']),_0x50a48a[_0x47bdfa('0x2f')](_0x49e46d);})[_0xad15d3('0x1f')](function(_0x43d55c){const _0x52031d=_0xad15d3;if(_0x43d55c)return _0x213bfd=_0x43d55c[_0x52031d('0x20')],typeof _0x301d79['query']['nolimit']==='undefined'&&(_0x49e46d['limit']=qs[_0x52031d('0x1e')](_0x301d79['query'][_0x52031d('0x1e')]),_0x49e46d['offset']=qs[_0x52031d('0x26')](_0x301d79['query'][_0x52031d('0x26')])),_0x50a48a[_0x52031d('0x2f')](_0x49e46d);})[_0xad15d3('0x1f')](function(_0x26c4fd){if(_0x26c4fd)return _0x26c4fd?{'count':_0x213bfd,'rows':_0x26c4fd}:null;})[_0xad15d3('0x1f')](respondWithResult(_0xe59a,null))['catch'](handleError(_0xe59a,null));},exports[_0x30fdc5('0x13')]=function(_0xcdfebb,_0x3ddf24){const _0x19f712=_0x30fdc5;let _0x538bec={};const _0x5b2870={};let _0x3da51f,_0x1c70f8;return db[_0x19f712('0x1')][_0x19f712('0x2a')]({'where':{'id':_0xcdfebb[_0x19f712('0x16')]['id']}})[_0x19f712('0x1f')](handleEntityNotFound(_0x3ddf24,null))['then'](function(_0x58f48b){const _0x523d8a=_0x19f712;if(_0x58f48b)return _0x3da51f=_0x58f48b,_0x5b2870['model']=_[_0x523d8a('0x29')](db[_0x523d8a('0x10')][_0x523d8a('0x6')]),_0x5b2870[_0x523d8a('0xb')]=_[_0x523d8a('0x29')](_0xcdfebb[_0x523d8a('0xb')]),_0x5b2870[_0x523d8a('0x24')]=_[_0x523d8a('0x2e')](_0x5b2870[_0x523d8a('0x34')],_0x5b2870[_0x523d8a('0xb')]),_0x538bec[_0x523d8a('0x19')]=_['intersection'](_0x5b2870['model'],qs[_0x523d8a('0x36')](_0xcdfebb['query'][_0x523d8a('0x36')])),_0x538bec['attributes']=_0x538bec[_0x523d8a('0x19')]['length']?_0x538bec['attributes']:_0x5b2870[_0x523d8a('0x34')],_0x538bec[_0x523d8a('0x39')]=qs[_0x523d8a('0x31')](_0xcdfebb[_0x523d8a('0xb')]['sort']),_0x538bec[_0x523d8a('0x28')]=qs[_0x523d8a('0x24')](_['pick'](_0xcdfebb[_0x523d8a('0xb')],_0x5b2870[_0x523d8a('0x24')])),_0xcdfebb['query'][_0x523d8a('0x23')]&&(_0x538bec[_0x523d8a('0x28')]=_[_0x523d8a('0x1d')](_0x538bec[_0x523d8a('0x28')],{[Op['or']]:_[_0x523d8a('0x0')](_0x538bec[_0x523d8a('0x19')],function(_0x4183ee){const _0x2e4fa6=_0x523d8a,_0x35c160={};return _0x35c160[_0x4183ee]={[Op['like']]:'%'+_0xcdfebb[_0x2e4fa6('0xb')]['filter']+'%'},_0x35c160;})})),_0x538bec=_[_0x523d8a('0x1d')]({},_0x538bec,_0xcdfebb[_0x523d8a('0x9')]),_0x3da51f['getTags'](_0x538bec);})[_0x19f712('0x1f')](function(_0x5d1a28){const _0x2ad9f7=_0x19f712;if(_0x5d1a28)return _0x1c70f8=_0x5d1a28[_0x2ad9f7('0x20')],typeof _0xcdfebb[_0x2ad9f7('0xb')][_0x2ad9f7('0x2b')]===_0x2ad9f7('0x15')&&(_0x538bec[_0x2ad9f7('0x1e')]=qs[_0x2ad9f7('0x1e')](_0xcdfebb[_0x2ad9f7('0xb')]['limit']),_0x538bec[_0x2ad9f7('0x26')]=qs['offset'](_0xcdfebb[_0x2ad9f7('0xb')]['offset'])),_0x3da51f[_0x2ad9f7('0x13')](_0x538bec);})[_0x19f712('0x1f')](function(_0x5a42b8){if(_0x5a42b8)return _0x5a42b8?{'count':_0x1c70f8,'rows':_0x5a42b8}:null;})[_0x19f712('0x1f')](respondWithResult(_0x3ddf24,null))[_0x19f712('0x3c')](handleError(_0x3ddf24,null));},exports[_0x30fdc5('0x27')]=function(_0x49506b,_0x47fd8b){const _0x38717f=_0x30fdc5;return _0x49506b[_0x38717f('0x17')]['id']&&delete _0x49506b[_0x38717f('0x17')]['id'],db['ZendeskConfiguration'][_0x38717f('0x2a')]({'where':{'id':_0x49506b['params']['id']}})[_0x38717f('0x1f')](handleEntityNotFound(_0x47fd8b,null))['then'](function(_0x527c17){const _0x29ca80=_0x38717f;if(_0x527c17)return _0x527c17['setTags'](_0x49506b[_0x29ca80('0x17')]['ids']||[]);return null;})[_0x38717f('0x1f')](respondWithResult(_0x47fd8b,null))[_0x38717f('0x3c')](handleError(_0x47fd8b,null));};