Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / api / chatWebsite / index.js
index 4974432..3237cd3 100644 (file)
@@ -1 +1 @@
-const a116_0x177b=['getAvatar','getAgents','getApplications','removeAnswers','files/images/','Router','/describe','single','multer','/:id/proactive_actions','getAnswers','logos','post','%s-%s','/:id/interactions','exports','addSystemAvatar','/:id/customer_avatar','addDisposition','delete','describe','addCustomerAvatar','getDispositions','put','getCustomerAvatar','addInteraction','getSnippet','root','getSystemAvatar','express','/:id','/:id/offline','show','getInteractions','offline','/:id/system_avatar','../../components/auth/service','isAuthenticated','/:id/applications','removeDispositions','notify','../../config/environment','/:id/logo','update','addAvatar','/:id/fields','get','getProactiveActions','getFields','getLogo','/:id/canned_answers','join','/:id/users','format','getOfflineMessages','addAgents','util','/:id/offline_messages','/:id/dispositions','destroy','addAnswer','/:id/avatar','create','file','avatars'];(function(_0x4f06fe,_0x177b7f){const _0x126e9f=function(_0x44aa37){while(--_0x44aa37){_0x4f06fe['push'](_0x4f06fe['shift']());}};_0x126e9f(++_0x177b7f);}(a116_0x177b,0x8e));const a116_0x126e=function(_0x4f06fe,_0x177b7f){_0x4f06fe=_0x4f06fe-0x0;let _0x126e9f=a116_0x177b[_0x4f06fe];return _0x126e9f;};const _0xae5d64=a116_0x126e;'use strict';const multer=require(_0xae5d64('0x3d')),util=require(_0xae5d64('0x2c')),path=require('path'),express=require(_0xae5d64('0x11')),router=express[_0xae5d64('0x3a')](),auth=require(_0xae5d64('0x18')),config=require(_0xae5d64('0x1d')),controller=require('./chatWebsite.controller'),upload=_0x44aa37=>multer({'storage':multer['diskStorage']({'destination':function(_0x8d8d83,_0x565d83,_0x3ee874){const _0x32f5de=_0xae5d64;_0x3ee874(null,path[_0x32f5de('0x27')](config[_0x32f5de('0xf')],_0x32f5de('0x39'),_0x44aa37));},'filename':function(_0x3cb462,_0x276f42,_0x38147a){const _0x13de52=_0xae5d64;_0x38147a(null,util[_0x13de52('0x29')](_0x13de52('0x1'),Date['now'](),_0x276f42['originalname']));}})});router['get']('/',auth[_0xae5d64('0x19')](),controller['index']),router[_0xae5d64('0x22')](_0xae5d64('0x3b'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x8')]),router[_0xae5d64('0x22')](_0xae5d64('0x12'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x14')]),router['get'](_0xae5d64('0x2e'),auth['isAuthenticated'](),controller[_0xae5d64('0xa')]),router[_0xae5d64('0x22')](_0xae5d64('0x26'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x3f')]),router[_0xae5d64('0x22')](_0xae5d64('0x1e'),controller[_0xae5d64('0x25')]),router['get']('/:id/avatar',controller[_0xae5d64('0x35')]),router[_0xae5d64('0x22')](_0xae5d64('0x5'),controller[_0xae5d64('0xc')]),router[_0xae5d64('0x22')](_0xae5d64('0x17'),controller[_0xae5d64('0x10')]),router[_0xae5d64('0x22')]('/:id/interactions',auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x15')]),router[_0xae5d64('0x22')]('/:id/snippet',controller[_0xae5d64('0xe')]),router['get'](_0xae5d64('0x1a'),auth['isAuthenticated'](),controller[_0xae5d64('0x37')]),router[_0xae5d64('0x22')](_0xae5d64('0x3e'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x23')]),router[_0xae5d64('0x22')](_0xae5d64('0x21'),controller[_0xae5d64('0x24')]),router['get'](_0xae5d64('0x2d'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x2a')]),router[_0xae5d64('0x22')](_0xae5d64('0x28'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x36')]),router['post']('/',auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x32')]),router['post'](_0xae5d64('0x2e'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x6')]),router[_0xae5d64('0x0')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0xae5d64('0x30')]),router[_0xae5d64('0x0')](_0xae5d64('0x1e'),upload(_0xae5d64('0x40'))[_0xae5d64('0x3c')](_0xae5d64('0x33')),controller['addLogo']),router['post'](_0xae5d64('0x31'),upload('avatars')[_0xae5d64('0x3c')]('file'),controller[_0xae5d64('0x20')]),router['post'](_0xae5d64('0x5'),upload(_0xae5d64('0x34'))[_0xae5d64('0x3c')]('file'),controller[_0xae5d64('0x9')]),router[_0xae5d64('0x0')](_0xae5d64('0x17'),upload(_0xae5d64('0x34'))[_0xae5d64('0x3c')](_0xae5d64('0x33')),controller[_0xae5d64('0x4')]),router[_0xae5d64('0x0')]('/:id/notify',controller[_0xae5d64('0x1c')]),router['post'](_0xae5d64('0x13'),controller[_0xae5d64('0x16')]),router[_0xae5d64('0x0')](_0xae5d64('0x2'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0xd')]),router[_0xae5d64('0x0')](_0xae5d64('0x1a'),auth['isAuthenticated'](),controller['addApplications']),router[_0xae5d64('0x0')](_0xae5d64('0x3e'),auth[_0xae5d64('0x19')](),controller['addProactiveActions']),router[_0xae5d64('0x0')](_0xae5d64('0x28'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x2b')]),router[_0xae5d64('0xb')](_0xae5d64('0x12'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x1f')]),router[_0xae5d64('0x7')]('/:id',auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x2f')]),router[_0xae5d64('0x7')](_0xae5d64('0x2e'),auth[_0xae5d64('0x19')](),controller[_0xae5d64('0x1b')]),router[_0xae5d64('0x7')](_0xae5d64('0x26'),auth['isAuthenticated'](),controller[_0xae5d64('0x38')]),router[_0xae5d64('0x7')](_0xae5d64('0x28'),auth['isAuthenticated'](),controller['removeAgents']),module[_0xae5d64('0x3')]=router;
\ No newline at end of file
+const a116_0x4d23=['join','offline','index','getInteractions','/:id/dispositions','show','getLogo','express','/:id/offline_messages','addInteraction','get','destroy','/:id/applications','root','isAuthenticated','addApplications','getAvatar','multer','addAvatar','/:id/snippet','format','/:id/fields','/:id/canned_answers','addAgents','files/images/','post','/:id/interactions','/:id','removeAnswers','/:id/customer_avatar','./chatWebsite.controller','/describe','avatars','getAnswers','Router','getFields','/:id/logo','describe','path','/:id/users','logos','util','update','getSnippet','addSystemAvatar','getSystemAvatar','notify','delete','removeDispositions','now','removeAgents','getOfflineMessages','/:id/offline','/:id/system_avatar','addDisposition','single','addAnswer','addProactiveActions','create','file','/:id/proactive_actions','getDispositions','addLogo','diskStorage'];(function(_0x23640f,_0x4d237a){const _0x4d2ebd=function(_0x7338f8){while(--_0x7338f8){_0x23640f['push'](_0x23640f['shift']());}};_0x4d2ebd(++_0x4d237a);}(a116_0x4d23,0x142));const a116_0x4d2e=function(_0x23640f,_0x4d237a){_0x23640f=_0x23640f-0x0;let _0x4d2ebd=a116_0x4d23[_0x23640f];return _0x4d2ebd;};const _0x1782a3=a116_0x4d2e;'use strict';const multer=require(_0x1782a3('0xf')),util=require(_0x1782a3('0x27')),path=require(_0x1782a3('0x24')),express=require(_0x1782a3('0x5')),router=express[_0x1782a3('0x20')](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require(_0x1782a3('0x1c')),upload=_0x7338f8=>multer({'storage':multer[_0x1782a3('0x3d')]({'destination':function(_0x245109,_0x3a1921,_0x1e7bf6){const _0x11f98b=_0x1782a3;_0x1e7bf6(null,path[_0x11f98b('0x3e')](config[_0x11f98b('0xb')],_0x11f98b('0x16'),_0x7338f8));},'filename':function(_0x54f50c,_0x4f5980,_0x4429b9){const _0x1e1e41=_0x1782a3;_0x4429b9(null,util[_0x1e1e41('0x12')]('%s-%s',Date[_0x1e1e41('0x2f')](),_0x4f5980['originalname']));}})});router[_0x1782a3('0x8')]('/',auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x0')]),router[_0x1782a3('0x8')](_0x1782a3('0x1d'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x23')]),router[_0x1782a3('0x8')](_0x1782a3('0x19'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x3')]),router[_0x1782a3('0x8')](_0x1782a3('0x2'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x3b')]),router[_0x1782a3('0x8')](_0x1782a3('0x14'),auth['isAuthenticated'](),controller[_0x1782a3('0x1f')]),router['get']('/:id/logo',controller[_0x1782a3('0x4')]),router[_0x1782a3('0x8')]('/:id/avatar',controller[_0x1782a3('0xe')]),router[_0x1782a3('0x8')](_0x1782a3('0x1b'),controller['getCustomerAvatar']),router[_0x1782a3('0x8')](_0x1782a3('0x33'),controller[_0x1782a3('0x2b')]),router[_0x1782a3('0x8')]('/:id/interactions',auth['isAuthenticated'](),controller[_0x1782a3('0x1')]),router[_0x1782a3('0x8')](_0x1782a3('0x11'),controller[_0x1782a3('0x29')]),router[_0x1782a3('0x8')]('/:id/applications',auth['isAuthenticated'](),controller['getApplications']),router[_0x1782a3('0x8')](_0x1782a3('0x3a'),auth[_0x1782a3('0xc')](),controller['getProactiveActions']),router[_0x1782a3('0x8')](_0x1782a3('0x13'),controller[_0x1782a3('0x21')]),router[_0x1782a3('0x8')](_0x1782a3('0x6'),auth['isAuthenticated'](),controller[_0x1782a3('0x31')]),router[_0x1782a3('0x8')]('/:id/users',auth[_0x1782a3('0xc')](),controller['getAgents']),router[_0x1782a3('0x17')]('/',auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x38')]),router[_0x1782a3('0x17')](_0x1782a3('0x2'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x34')]),router[_0x1782a3('0x17')](_0x1782a3('0x14'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x36')]),router['post'](_0x1782a3('0x22'),upload(_0x1782a3('0x26'))[_0x1782a3('0x35')](_0x1782a3('0x39')),controller[_0x1782a3('0x3c')]),router[_0x1782a3('0x17')]('/:id/avatar',upload(_0x1782a3('0x1e'))['single'](_0x1782a3('0x39')),controller[_0x1782a3('0x10')]),router[_0x1782a3('0x17')]('/:id/customer_avatar',upload(_0x1782a3('0x1e'))[_0x1782a3('0x35')]('file'),controller['addCustomerAvatar']),router[_0x1782a3('0x17')](_0x1782a3('0x33'),upload(_0x1782a3('0x1e'))[_0x1782a3('0x35')](_0x1782a3('0x39')),controller[_0x1782a3('0x2a')]),router['post']('/:id/notify',controller[_0x1782a3('0x2c')]),router[_0x1782a3('0x17')](_0x1782a3('0x32'),controller[_0x1782a3('0x3f')]),router[_0x1782a3('0x17')](_0x1782a3('0x18'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x7')]),router['post'](_0x1782a3('0xa'),auth['isAuthenticated'](),controller[_0x1782a3('0xd')]),router[_0x1782a3('0x17')]('/:id/proactive_actions',auth['isAuthenticated'](),controller[_0x1782a3('0x37')]),router[_0x1782a3('0x17')](_0x1782a3('0x25'),auth['isAuthenticated'](),controller[_0x1782a3('0x15')]),router['put'](_0x1782a3('0x19'),auth['isAuthenticated'](),controller[_0x1782a3('0x28')]),router[_0x1782a3('0x2d')](_0x1782a3('0x19'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x9')]),router['delete'](_0x1782a3('0x2'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x2e')]),router['delete'](_0x1782a3('0x14'),auth['isAuthenticated'](),controller[_0x1782a3('0x1a')]),router['delete'](_0x1782a3('0x25'),auth[_0x1782a3('0xc')](),controller[_0x1782a3('0x30')]),module['exports']=router;
\ No newline at end of file