Built motion from commit b517aaa2a6638133380e4d135c64a80893061362. Version 3.0.0...
[motion-next.git] / server / api / chatWebsite / index.js
1 const a116_0xdbf5=['./chatWebsite.controller','/:id/canned_answers','/:id','addInteraction','notify','post','/:id/applications','root','put','removeAnswers','getSystemAvatar','index','getAgents','/:id/users','/:id/avatar','util','getFields','Router','single','/:id/notify','now','get','logos','addAgents','originalname','show','getSnippet','addApplications','getProactiveActions','destroy','exports','multer','path','create','/:id/interactions','/:id/proactive_actions','getCustomerAvatar','format','/:id/customer_avatar','server/files/images/','removeDispositions','addDisposition','isAuthenticated','/describe','update','getDispositions','getOfflineMessages','/:id/system_avatar','delete','getInteractions','addAnswer','/:id/dispositions','../../config/environment','describe','getAnswers','join','addCustomerAvatar','avatars','/:id/offline','../../components/auth/service','express','getLogo','offline','/:id/logo','/:id/snippet','file','addProactiveActions'];(function(_0x44a5db,_0xdbf5cd){const _0x558d34=function(_0x285241){while(--_0x285241){_0x44a5db['push'](_0x44a5db['shift']());}};_0x558d34(++_0xdbf5cd);}(a116_0xdbf5,0xdb));const a116_0x558d=function(_0x44a5db,_0xdbf5cd){_0x44a5db=_0x44a5db-0x0;let _0x558d34=a116_0xdbf5[_0x44a5db];return _0x558d34;};const _0x583c04=a116_0x558d;'use strict';const multer=require(_0x583c04('0xd')),util=require(_0x583c04('0x40')),path=require(_0x583c04('0xe')),express=require(_0x583c04('0x2a')),router=express[_0x583c04('0x42')](),auth=require(_0x583c04('0x29')),config=require(_0x583c04('0x22')),controller=require(_0x583c04('0x31')),upload=_0x285241=>multer({'storage':multer['diskStorage']({'destination':function(_0x466e6c,_0x531255,_0x4fa086){const _0x5092ab=_0x583c04;_0x4fa086(null,path[_0x5092ab('0x25')](config[_0x5092ab('0x38')],_0x5092ab('0x15'),_0x285241));},'filename':function(_0x46b636,_0xf06b3a,_0x24b3cc){const _0x277f24=_0x583c04;_0x24b3cc(null,util[_0x277f24('0x13')]('%s-%s',Date[_0x277f24('0x2')](),_0xf06b3a[_0x277f24('0x6')]));}})});router[_0x583c04('0x3')]('/',auth[_0x583c04('0x18')](),controller[_0x583c04('0x3c')]),router[_0x583c04('0x3')](_0x583c04('0x19'),auth['isAuthenticated'](),controller[_0x583c04('0x23')]),router[_0x583c04('0x3')](_0x583c04('0x33'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x7')]),router['get']('/:id/dispositions',auth[_0x583c04('0x18')](),controller[_0x583c04('0x1b')]),router[_0x583c04('0x3')](_0x583c04('0x32'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x24')]),router[_0x583c04('0x3')](_0x583c04('0x2d'),controller[_0x583c04('0x2b')]),router['get'](_0x583c04('0x3f'),controller['getAvatar']),router[_0x583c04('0x3')](_0x583c04('0x14'),controller[_0x583c04('0x12')]),router[_0x583c04('0x3')](_0x583c04('0x1d'),controller[_0x583c04('0x3b')]),router[_0x583c04('0x3')](_0x583c04('0x10'),auth['isAuthenticated'](),controller[_0x583c04('0x1f')]),router[_0x583c04('0x3')](_0x583c04('0x2e'),controller[_0x583c04('0x8')]),router[_0x583c04('0x3')](_0x583c04('0x37'),auth[_0x583c04('0x18')](),controller['getApplications']),router[_0x583c04('0x3')](_0x583c04('0x11'),auth[_0x583c04('0x18')](),controller[_0x583c04('0xa')]),router[_0x583c04('0x3')]('/:id/fields',controller[_0x583c04('0x41')]),router[_0x583c04('0x3')]('/:id/offline_messages',auth[_0x583c04('0x18')](),controller[_0x583c04('0x1c')]),router[_0x583c04('0x3')](_0x583c04('0x3e'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x3d')]),router['post']('/',auth[_0x583c04('0x18')](),controller[_0x583c04('0xf')]),router[_0x583c04('0x36')]('/:id/dispositions',auth[_0x583c04('0x18')](),controller[_0x583c04('0x17')]),router['post'](_0x583c04('0x32'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x20')]),router[_0x583c04('0x36')]('/:id/logo',upload(_0x583c04('0x4'))[_0x583c04('0x0')](_0x583c04('0x2f')),controller['addLogo']),router[_0x583c04('0x36')](_0x583c04('0x3f'),upload('avatars')[_0x583c04('0x0')](_0x583c04('0x2f')),controller['addAvatar']),router[_0x583c04('0x36')](_0x583c04('0x14'),upload(_0x583c04('0x27'))['single'](_0x583c04('0x2f')),controller[_0x583c04('0x26')]),router[_0x583c04('0x36')]('/:id/system_avatar',upload(_0x583c04('0x27'))['single'](_0x583c04('0x2f')),controller['addSystemAvatar']),router[_0x583c04('0x36')](_0x583c04('0x1'),controller[_0x583c04('0x35')]),router[_0x583c04('0x36')](_0x583c04('0x28'),controller[_0x583c04('0x2c')]),router[_0x583c04('0x36')]('/:id/interactions',auth[_0x583c04('0x18')](),controller[_0x583c04('0x34')]),router[_0x583c04('0x36')]('/:id/applications',auth[_0x583c04('0x18')](),controller[_0x583c04('0x9')]),router['post'](_0x583c04('0x11'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x30')]),router[_0x583c04('0x36')]('/:id/users',auth[_0x583c04('0x18')](),controller[_0x583c04('0x5')]),router[_0x583c04('0x39')](_0x583c04('0x33'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x1a')]),router[_0x583c04('0x1e')](_0x583c04('0x33'),auth[_0x583c04('0x18')](),controller[_0x583c04('0xb')]),router[_0x583c04('0x1e')](_0x583c04('0x21'),auth['isAuthenticated'](),controller[_0x583c04('0x16')]),router[_0x583c04('0x1e')](_0x583c04('0x32'),auth[_0x583c04('0x18')](),controller[_0x583c04('0x3a')]),router[_0x583c04('0x1e')](_0x583c04('0x3e'),auth['isAuthenticated'](),controller['removeAgents']),module[_0x583c04('0xc')]=router;