Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / chatWebsite / index.js
index a9cec86..8614f27 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe7fc=['getInteractions','/:id/snippet','getSnippet','getApplications','/:id/proactive_actions','getProactiveActions','/:id/fields','getFields','/:id/offline_messages','getOfflineMessages','/:id/users','getAgents','post','create','addDisposition','addAnswer','join','root','server/files/images/logos/','format','%s-%s','addLogo','diskStorage','server/files/images/avatars/','now','originalname','single','file','addAvatar','addCustomerAvatar','/:id/notify','/:id/offline','offline','/:id/interactions','addInteraction','addApplications','addProactiveActions','addAgents','put','update','destroy','delete','removeDispositions','removeAnswers','exports','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatWebsite.controller','index','get','isAuthenticated','/:id','show','/:id/dispositions','/:id/canned_answers','/:id/logo','getLogo','/:id/avatar','getAvatar','/:id/customer_avatar','getCustomerAvatar','/:id/system_avatar'];(function(_0x2226c1,_0x2bed75){var _0x178716=function(_0x54bb7e){while(--_0x54bb7e){_0x2226c1['push'](_0x2226c1['shift']());}};_0x178716(++_0x2bed75);}(_0xe7fc,0xb3));var _0xce7f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe7fc[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xce7f('0x0'));var util=require(_0xce7f('0x1'));var path=require(_0xce7f('0x2'));var timeout=require('connect-timeout');var express=require(_0xce7f('0x3'));var router=express['Router']();var auth=require(_0xce7f('0x4'));var interaction=require(_0xce7f('0x5'));var config=require(_0xce7f('0x6'));var controller=require(_0xce7f('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0xce7f('0x8')]);router[_0xce7f('0x9')]('/describe',auth[_0xce7f('0xa')](),controller['describe']);router[_0xce7f('0x9')](_0xce7f('0xb'),auth[_0xce7f('0xa')](),controller[_0xce7f('0xc')]);router[_0xce7f('0x9')](_0xce7f('0xd'),auth[_0xce7f('0xa')](),controller['getDispositions']);router[_0xce7f('0x9')](_0xce7f('0xe'),auth[_0xce7f('0xa')](),controller['getAnswers']);router[_0xce7f('0x9')](_0xce7f('0xf'),controller[_0xce7f('0x10')]);router[_0xce7f('0x9')](_0xce7f('0x11'),controller[_0xce7f('0x12')]);router['get'](_0xce7f('0x13'),controller[_0xce7f('0x14')]);router[_0xce7f('0x9')](_0xce7f('0x15'),controller['getSystemAvatar']);router[_0xce7f('0x9')]('/:id/interactions',auth[_0xce7f('0xa')](),controller[_0xce7f('0x16')]);router[_0xce7f('0x9')](_0xce7f('0x17'),controller[_0xce7f('0x18')]);router[_0xce7f('0x9')]('/:id/applications',auth[_0xce7f('0xa')](),controller[_0xce7f('0x19')]);router['get'](_0xce7f('0x1a'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x1b')]);router['get'](_0xce7f('0x1c'),controller[_0xce7f('0x1d')]);router[_0xce7f('0x9')](_0xce7f('0x1e'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x1f')]);router[_0xce7f('0x9')](_0xce7f('0x20'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x21')]);router[_0xce7f('0x22')]('/',auth[_0xce7f('0xa')](),controller[_0xce7f('0x23')]);router[_0xce7f('0x22')](_0xce7f('0xd'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x24')]);router[_0xce7f('0x22')](_0xce7f('0xe'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x25')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x8f24f3,_0x526ed4,_0x3ea2b2){_0x3ea2b2(null,path[_0xce7f('0x26')](config[_0xce7f('0x27')],_0xce7f('0x28')));},'filename':function(_0x13789b,_0x276204,_0x54c6d5){_0x54c6d5(null,util[_0xce7f('0x29')](_0xce7f('0x2a'),Date['now'](),_0x276204['originalname']));}})});router[_0xce7f('0x22')](_0xce7f('0xf'),upload['single']('file'),controller[_0xce7f('0x2b')]);var upload=multer({'storage':multer[_0xce7f('0x2c')]({'destination':function(_0x9684ff,_0xe5fd43,_0x30ad1f){_0x30ad1f(null,path[_0xce7f('0x26')](config[_0xce7f('0x27')],_0xce7f('0x2d')));},'filename':function(_0x32b6aa,_0x353724,_0x5d1e80){_0x5d1e80(null,util[_0xce7f('0x29')](_0xce7f('0x2a'),Date[_0xce7f('0x2e')](),_0x353724[_0xce7f('0x2f')]));}})});router[_0xce7f('0x22')](_0xce7f('0x11'),upload[_0xce7f('0x30')](_0xce7f('0x31')),controller[_0xce7f('0x32')]);var upload=multer({'storage':multer[_0xce7f('0x2c')]({'destination':function(_0x4a34ed,_0x5ef751,_0x529aa4){_0x529aa4(null,path['join'](config[_0xce7f('0x27')],_0xce7f('0x2d')));},'filename':function(_0x38cba0,_0x4333ac,_0x1d3231){_0x1d3231(null,util[_0xce7f('0x29')]('%s-%s',Date[_0xce7f('0x2e')](),_0x4333ac[_0xce7f('0x2f')]));}})});router[_0xce7f('0x22')](_0xce7f('0x13'),upload[_0xce7f('0x30')]('file'),controller[_0xce7f('0x33')]);var upload=multer({'storage':multer[_0xce7f('0x2c')]({'destination':function(_0xa366fd,_0x910f87,_0x366fb7){_0x366fb7(null,path[_0xce7f('0x26')](config[_0xce7f('0x27')],'server/files/images/avatars/'));},'filename':function(_0x57b093,_0x43b5c4,_0x5cdd8a){_0x5cdd8a(null,util[_0xce7f('0x29')](_0xce7f('0x2a'),Date[_0xce7f('0x2e')](),_0x43b5c4['originalname']));}})});router['post'](_0xce7f('0x15'),upload[_0xce7f('0x30')](_0xce7f('0x31')),controller['addSystemAvatar']);router[_0xce7f('0x22')](_0xce7f('0x34'),controller['notify']);router[_0xce7f('0x22')](_0xce7f('0x35'),controller[_0xce7f('0x36')]);router['post'](_0xce7f('0x37'),auth['isAuthenticated'](),controller[_0xce7f('0x38')]);router[_0xce7f('0x22')]('/:id/applications',auth[_0xce7f('0xa')](),controller[_0xce7f('0x39')]);router[_0xce7f('0x22')](_0xce7f('0x1a'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x3a')]);router[_0xce7f('0x22')](_0xce7f('0x20'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x3b')]);router[_0xce7f('0x3c')](_0xce7f('0xb'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x3d')]);router['delete'](_0xce7f('0xb'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x3e')]);router[_0xce7f('0x3f')](_0xce7f('0xd'),auth[_0xce7f('0xa')](),controller[_0xce7f('0x40')]);router[_0xce7f('0x3f')]('/:id/canned_answers',auth[_0xce7f('0xa')](),controller[_0xce7f('0x41')]);router[_0xce7f('0x3f')](_0xce7f('0x20'),auth[_0xce7f('0xa')](),controller['removeAgents']);module[_0xce7f('0x42')]=router;
\ No newline at end of file
+var _0xb7cb=['getOfflineMessages','/:id/users','getAgents','post','create','/:id/dispositions','addDisposition','addAnswer','join','root','server/files/images/logos/','format','%s-%s','now','single','file','diskStorage','server/files/images/avatars/','originalname','addAvatar','addCustomerAvatar','addSystemAvatar','/:id/notify','notify','offline','/:id/applications','addApplications','/:id/proactive_actions','addProactiveActions','addAgents','put','update','delete','destroy','removeDispositions','/:id/canned_answers','removeAnswers','removeAgents','exports','multer','path','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','getDispositions','getAnswers','/:id/logo','getLogo','/:id/avatar','getAvatar','/:id/customer_avatar','getCustomerAvatar','/:id/system_avatar','getSystemAvatar','/:id/interactions','getInteractions','/:id/snippet','getSnippet','getApplications','getProactiveActions','/:id/fields','getFields','/:id/offline_messages'];(function(_0x1fb7e7,_0x154a74){var _0x1cea80=function(_0x5083e2){while(--_0x5083e2){_0x1fb7e7['push'](_0x1fb7e7['shift']());}};_0x1cea80(++_0x154a74);}(_0xb7cb,0x1d1));var _0xbb7c=function(_0x414810,_0x5e924d){_0x414810=_0x414810-0x0;var _0x2d4df5=_0xb7cb[_0x414810];return _0x2d4df5;};'use strict';var multer=require(_0xbb7c('0x0'));var util=require('util');var path=require(_0xbb7c('0x1'));var timeout=require('connect-timeout');var express=require(_0xbb7c('0x2'));var router=express[_0xbb7c('0x3')]();var auth=require(_0xbb7c('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xbb7c('0x5'));var controller=require('./chatWebsite.controller');router[_0xbb7c('0x6')]('/',auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x8')]);router['get'](_0xbb7c('0x9'),auth[_0xbb7c('0x7')](),controller[_0xbb7c('0xa')]);router['get'](_0xbb7c('0xb'),auth['isAuthenticated'](),controller[_0xbb7c('0xc')]);router['get']('/:id/dispositions',auth['isAuthenticated'](),controller[_0xbb7c('0xd')]);router['get']('/:id/canned_answers',auth[_0xbb7c('0x7')](),controller[_0xbb7c('0xe')]);router[_0xbb7c('0x6')](_0xbb7c('0xf'),controller[_0xbb7c('0x10')]);router['get'](_0xbb7c('0x11'),controller[_0xbb7c('0x12')]);router[_0xbb7c('0x6')](_0xbb7c('0x13'),controller[_0xbb7c('0x14')]);router[_0xbb7c('0x6')](_0xbb7c('0x15'),controller[_0xbb7c('0x16')]);router[_0xbb7c('0x6')](_0xbb7c('0x17'),auth['isAuthenticated'](),controller[_0xbb7c('0x18')]);router[_0xbb7c('0x6')](_0xbb7c('0x19'),controller[_0xbb7c('0x1a')]);router['get']('/:id/applications',auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x1b')]);router[_0xbb7c('0x6')]('/:id/proactive_actions',auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x1c')]);router[_0xbb7c('0x6')](_0xbb7c('0x1d'),controller[_0xbb7c('0x1e')]);router['get'](_0xbb7c('0x1f'),auth['isAuthenticated'](),controller[_0xbb7c('0x20')]);router['get'](_0xbb7c('0x21'),auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x22')]);router[_0xbb7c('0x23')]('/',auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x24')]);router['post'](_0xbb7c('0x25'),auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x26')]);router[_0xbb7c('0x23')]('/:id/canned_answers',auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x27')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x431503,_0x11d055,_0x4eb156){_0x4eb156(null,path[_0xbb7c('0x28')](config[_0xbb7c('0x29')],_0xbb7c('0x2a')));},'filename':function(_0x3878ba,_0x403b1d,_0x3cdcb7){_0x3cdcb7(null,util[_0xbb7c('0x2b')](_0xbb7c('0x2c'),Date[_0xbb7c('0x2d')](),_0x403b1d['originalname']));}})});router[_0xbb7c('0x23')]('/:id/logo',upload[_0xbb7c('0x2e')](_0xbb7c('0x2f')),controller['addLogo']);var upload=multer({'storage':multer[_0xbb7c('0x30')]({'destination':function(_0x34c32a,_0x20bf93,_0x3eae9b){_0x3eae9b(null,path['join'](config[_0xbb7c('0x29')],_0xbb7c('0x31')));},'filename':function(_0x5b478b,_0x561df3,_0x440b3b){_0x440b3b(null,util['format'](_0xbb7c('0x2c'),Date[_0xbb7c('0x2d')](),_0x561df3[_0xbb7c('0x32')]));}})});router[_0xbb7c('0x23')](_0xbb7c('0x11'),upload[_0xbb7c('0x2e')]('file'),controller[_0xbb7c('0x33')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x27d8da,_0x39cb44,_0xe3d614){_0xe3d614(null,path[_0xbb7c('0x28')](config[_0xbb7c('0x29')],_0xbb7c('0x31')));},'filename':function(_0x3da48c,_0x2455f2,_0x2b7c8b){_0x2b7c8b(null,util[_0xbb7c('0x2b')](_0xbb7c('0x2c'),Date[_0xbb7c('0x2d')](),_0x2455f2['originalname']));}})});router[_0xbb7c('0x23')](_0xbb7c('0x13'),upload['single'](_0xbb7c('0x2f')),controller[_0xbb7c('0x34')]);var upload=multer({'storage':multer[_0xbb7c('0x30')]({'destination':function(_0x3236aa,_0x57825c,_0x346d73){_0x346d73(null,path[_0xbb7c('0x28')](config[_0xbb7c('0x29')],_0xbb7c('0x31')));},'filename':function(_0xa68751,_0x439705,_0x381508){_0x381508(null,util[_0xbb7c('0x2b')](_0xbb7c('0x2c'),Date['now'](),_0x439705[_0xbb7c('0x32')]));}})});router[_0xbb7c('0x23')]('/:id/system_avatar',upload[_0xbb7c('0x2e')](_0xbb7c('0x2f')),controller[_0xbb7c('0x35')]);router[_0xbb7c('0x23')](_0xbb7c('0x36'),controller[_0xbb7c('0x37')]);router['post']('/:id/offline',controller[_0xbb7c('0x38')]);router['post'](_0xbb7c('0x17'),auth['isAuthenticated'](),controller['addInteraction']);router[_0xbb7c('0x23')](_0xbb7c('0x39'),auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x3a')]);router[_0xbb7c('0x23')](_0xbb7c('0x3b'),auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x3c')]);router[_0xbb7c('0x23')](_0xbb7c('0x21'),auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x3d')]);router[_0xbb7c('0x3e')]('/:id',auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x3f')]);router[_0xbb7c('0x40')]('/:id',auth['isAuthenticated'](),controller[_0xbb7c('0x41')]);router['delete']('/:id/dispositions',auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x42')]);router[_0xbb7c('0x40')](_0xbb7c('0x43'),auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x44')]);router[_0xbb7c('0x40')](_0xbb7c('0x21'),auth[_0xbb7c('0x7')](),controller[_0xbb7c('0x45')]);module[_0xbb7c('0x46')]=router;
\ No newline at end of file