Built motion from commit (unavailable).|2.0.81
[motion2.git] / server / api / chatWebsite / index.js
index 8838078..a5469db 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xecb2=['/:id/avatar','getAvatar','/:id/customer_avatar','getCustomerAvatar','/:id/system_avatar','getSystemAvatar','/:id/interactions','getInteractions','/:id/snippet','getSnippet','/:id/applications','/:id/proactive_actions','getProactiveActions','/:id/fields','getFields','/:id/offline_messages','getOfflineMessages','getAgents','post','create','addDisposition','addAnswer','diskStorage','join','server/files/images/logos/','format','%s-%s','now','originalname','/:id/logo','single','file','addLogo','root','server/files/images/avatars/','addAvatar','addCustomerAvatar','addSystemAvatar','/:id/notify','notify','/:id/offline','addInteraction','addApplications','addProactiveActions','update','delete','removeDispositions','removeAnswers','/:id/users','removeAgents','exports','multer','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatWebsite.controller','get','isAuthenticated','describe','/:id','/:id/dispositions','/:id/canned_answers','getAnswers','getLogo'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0xecb2,0xf6));var _0x2ecb=function(_0x4e0261,_0x372f97){_0x4e0261=_0x4e0261-0x0;var _0x203658=_0xecb2[_0x4e0261];return _0x203658;};'use strict';var multer=require(_0x2ecb('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x2ecb('0x1'));var express=require('express');var router=express['Router']();var auth=require(_0x2ecb('0x2'));var interaction=require(_0x2ecb('0x3'));var config=require(_0x2ecb('0x4'));var controller=require(_0x2ecb('0x5'));router[_0x2ecb('0x6')]('/',auth[_0x2ecb('0x7')](),controller['index']);router['get']('/describe',auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x8')]);router[_0x2ecb('0x6')](_0x2ecb('0x9'),auth[_0x2ecb('0x7')](),controller['show']);router[_0x2ecb('0x6')](_0x2ecb('0xa'),auth[_0x2ecb('0x7')](),controller['getDispositions']);router[_0x2ecb('0x6')](_0x2ecb('0xb'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0xc')]);router[_0x2ecb('0x6')]('/:id/logo',controller[_0x2ecb('0xd')]);router[_0x2ecb('0x6')](_0x2ecb('0xe'),controller[_0x2ecb('0xf')]);router[_0x2ecb('0x6')](_0x2ecb('0x10'),controller[_0x2ecb('0x11')]);router['get'](_0x2ecb('0x12'),controller[_0x2ecb('0x13')]);router['get'](_0x2ecb('0x14'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x15')]);router[_0x2ecb('0x6')](_0x2ecb('0x16'),controller[_0x2ecb('0x17')]);router[_0x2ecb('0x6')](_0x2ecb('0x18'),auth[_0x2ecb('0x7')](),controller['getApplications']);router[_0x2ecb('0x6')](_0x2ecb('0x19'),auth['isAuthenticated'](),controller[_0x2ecb('0x1a')]);router['get'](_0x2ecb('0x1b'),controller[_0x2ecb('0x1c')]);router[_0x2ecb('0x6')](_0x2ecb('0x1d'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x1e')]);router[_0x2ecb('0x6')]('/:id/users',auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x1f')]);router[_0x2ecb('0x20')]('/',auth['isAuthenticated'](),controller[_0x2ecb('0x21')]);router[_0x2ecb('0x20')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0x2ecb('0x22')]);router['post'](_0x2ecb('0xb'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x23')]);var upload=multer({'storage':multer[_0x2ecb('0x24')]({'destination':function(_0x1ff315,_0x51e8a6,_0x5208f2){_0x5208f2(null,path[_0x2ecb('0x25')](config['root'],_0x2ecb('0x26')));},'filename':function(_0x8f21c,_0x45249b,_0x2d9800){_0x2d9800(null,util[_0x2ecb('0x27')](_0x2ecb('0x28'),Date[_0x2ecb('0x29')](),_0x45249b[_0x2ecb('0x2a')]));}})});router[_0x2ecb('0x20')](_0x2ecb('0x2b'),upload[_0x2ecb('0x2c')](_0x2ecb('0x2d')),controller[_0x2ecb('0x2e')]);var upload=multer({'storage':multer[_0x2ecb('0x24')]({'destination':function(_0x75c8cb,_0x45059a,_0x46092e){_0x46092e(null,path[_0x2ecb('0x25')](config[_0x2ecb('0x2f')],_0x2ecb('0x30')));},'filename':function(_0xb21050,_0x209e9a,_0x4cfa56){_0x4cfa56(null,util['format'](_0x2ecb('0x28'),Date[_0x2ecb('0x29')](),_0x209e9a[_0x2ecb('0x2a')]));}})});router[_0x2ecb('0x20')]('/:id/avatar',upload[_0x2ecb('0x2c')](_0x2ecb('0x2d')),controller[_0x2ecb('0x31')]);var upload=multer({'storage':multer[_0x2ecb('0x24')]({'destination':function(_0x474e35,_0x1d6b16,_0x4c0019){_0x4c0019(null,path[_0x2ecb('0x25')](config['root'],_0x2ecb('0x30')));},'filename':function(_0x6dfae0,_0x1db70c,_0x32f6bd){_0x32f6bd(null,util[_0x2ecb('0x27')](_0x2ecb('0x28'),Date[_0x2ecb('0x29')](),_0x1db70c[_0x2ecb('0x2a')]));}})});router[_0x2ecb('0x20')]('/:id/customer_avatar',upload[_0x2ecb('0x2c')](_0x2ecb('0x2d')),controller[_0x2ecb('0x32')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x18b330,_0x29f404,_0x1afde8){_0x1afde8(null,path['join'](config[_0x2ecb('0x2f')],_0x2ecb('0x30')));},'filename':function(_0x2a98b3,_0x18a92d,_0x2aa8ca){_0x2aa8ca(null,util[_0x2ecb('0x27')](_0x2ecb('0x28'),Date[_0x2ecb('0x29')](),_0x18a92d[_0x2ecb('0x2a')]));}})});router[_0x2ecb('0x20')]('/:id/system_avatar',upload[_0x2ecb('0x2c')]('file'),controller[_0x2ecb('0x33')]);router[_0x2ecb('0x20')](_0x2ecb('0x34'),controller[_0x2ecb('0x35')]);router[_0x2ecb('0x20')](_0x2ecb('0x36'),controller['offline']);router[_0x2ecb('0x20')](_0x2ecb('0x14'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x37')]);router[_0x2ecb('0x20')](_0x2ecb('0x18'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x38')]);router[_0x2ecb('0x20')](_0x2ecb('0x19'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x39')]);router[_0x2ecb('0x20')]('/:id/users',auth[_0x2ecb('0x7')](),controller['addAgents']);router['put'](_0x2ecb('0x9'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x3a')]);router[_0x2ecb('0x3b')]('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0x2ecb('0x3b')]('/:id/dispositions',auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x3c')]);router[_0x2ecb('0x3b')](_0x2ecb('0xb'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x3d')]);router[_0x2ecb('0x3b')](_0x2ecb('0x3e'),auth[_0x2ecb('0x7')](),controller[_0x2ecb('0x3f')]);module[_0x2ecb('0x40')]=router;
\ No newline at end of file
+var _0x4c60=['join','root','server/files/images/logos/','format','%s-%s','now','originalname','single','file','diskStorage','server/files/images/avatars/','addAvatar','addCustomerAvatar','addSystemAvatar','/:id/offline','addInteraction','addProactiveActions','put','delete','destroy','removeAgents','exports','multer','util','path','connect-timeout','Router','get','isAuthenticated','index','/describe','describe','/:id','show','getAnswers','/:id/logo','getLogo','/:id/avatar','/:id/customer_avatar','getCustomerAvatar','/:id/system_avatar','getSystemAvatar','/:id/interactions','getInteractions','/:id/snippet','/:id/applications','getApplications','/:id/proactive_actions','getProactiveActions','/:id/fields','getFields','/:id/users','post','create','/:id/dispositions','addDisposition','/:id/canned_answers'];(function(_0x2facde,_0x5f52aa){var _0x8dfa21=function(_0x20fdb4){while(--_0x20fdb4){_0x2facde['push'](_0x2facde['shift']());}};_0x8dfa21(++_0x5f52aa);}(_0x4c60,0xc1));var _0x04c6=function(_0x11cf08,_0x3acaab){_0x11cf08=_0x11cf08-0x0;var _0x39fb2f=_0x4c60[_0x11cf08];return _0x39fb2f;};'use strict';var multer=require(_0x04c6('0x0'));var util=require(_0x04c6('0x1'));var path=require(_0x04c6('0x2'));var timeout=require(_0x04c6('0x3'));var express=require('express');var router=express[_0x04c6('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./chatWebsite.controller');router[_0x04c6('0x5')]('/',auth[_0x04c6('0x6')](),controller[_0x04c6('0x7')]);router[_0x04c6('0x5')](_0x04c6('0x8'),auth[_0x04c6('0x6')](),controller[_0x04c6('0x9')]);router['get'](_0x04c6('0xa'),auth[_0x04c6('0x6')](),controller[_0x04c6('0xb')]);router[_0x04c6('0x5')]('/:id/dispositions',auth['isAuthenticated'](),controller['getDispositions']);router[_0x04c6('0x5')]('/:id/canned_answers',auth[_0x04c6('0x6')](),controller[_0x04c6('0xc')]);router['get'](_0x04c6('0xd'),controller[_0x04c6('0xe')]);router[_0x04c6('0x5')](_0x04c6('0xf'),controller['getAvatar']);router[_0x04c6('0x5')](_0x04c6('0x10'),controller[_0x04c6('0x11')]);router['get'](_0x04c6('0x12'),controller[_0x04c6('0x13')]);router[_0x04c6('0x5')](_0x04c6('0x14'),auth[_0x04c6('0x6')](),controller[_0x04c6('0x15')]);router[_0x04c6('0x5')](_0x04c6('0x16'),controller['getSnippet']);router[_0x04c6('0x5')](_0x04c6('0x17'),auth[_0x04c6('0x6')](),controller[_0x04c6('0x18')]);router[_0x04c6('0x5')](_0x04c6('0x19'),auth[_0x04c6('0x6')](),controller[_0x04c6('0x1a')]);router['get'](_0x04c6('0x1b'),controller[_0x04c6('0x1c')]);router[_0x04c6('0x5')]('/:id/offline_messages',auth['isAuthenticated'](),controller['getOfflineMessages']);router[_0x04c6('0x5')](_0x04c6('0x1d'),auth['isAuthenticated'](),controller['getAgents']);router[_0x04c6('0x1e')]('/',auth[_0x04c6('0x6')](),controller[_0x04c6('0x1f')]);router['post'](_0x04c6('0x20'),auth[_0x04c6('0x6')](),controller[_0x04c6('0x21')]);router['post'](_0x04c6('0x22'),auth[_0x04c6('0x6')](),controller['addAnswer']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x4c8d72,_0x348ea3,_0x3a2014){_0x3a2014(null,path[_0x04c6('0x23')](config[_0x04c6('0x24')],_0x04c6('0x25')));},'filename':function(_0x52e5f5,_0x562952,_0x383435){_0x383435(null,util[_0x04c6('0x26')](_0x04c6('0x27'),Date[_0x04c6('0x28')](),_0x562952[_0x04c6('0x29')]));}})});router[_0x04c6('0x1e')]('/:id/logo',upload[_0x04c6('0x2a')](_0x04c6('0x2b')),controller['addLogo']);var upload=multer({'storage':multer[_0x04c6('0x2c')]({'destination':function(_0x1cd16a,_0x5f1331,_0x5c9003){_0x5c9003(null,path[_0x04c6('0x23')](config[_0x04c6('0x24')],_0x04c6('0x2d')));},'filename':function(_0xbb9e81,_0x23c500,_0x43884e){_0x43884e(null,util['format']('%s-%s',Date['now'](),_0x23c500[_0x04c6('0x29')]));}})});router['post'](_0x04c6('0xf'),upload[_0x04c6('0x2a')]('file'),controller[_0x04c6('0x2e')]);var upload=multer({'storage':multer[_0x04c6('0x2c')]({'destination':function(_0x6e43fb,_0x14b6f6,_0x5b2056){_0x5b2056(null,path[_0x04c6('0x23')](config[_0x04c6('0x24')],_0x04c6('0x2d')));},'filename':function(_0x69b908,_0x3762af,_0x902e66){_0x902e66(null,util[_0x04c6('0x26')](_0x04c6('0x27'),Date[_0x04c6('0x28')](),_0x3762af[_0x04c6('0x29')]));}})});router[_0x04c6('0x1e')](_0x04c6('0x10'),upload[_0x04c6('0x2a')](_0x04c6('0x2b')),controller[_0x04c6('0x2f')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x5cc26c,_0x1639a1,_0x332811){_0x332811(null,path[_0x04c6('0x23')](config['root'],_0x04c6('0x2d')));},'filename':function(_0x31de0f,_0x4e1cfa,_0x59dad3){_0x59dad3(null,util['format'](_0x04c6('0x27'),Date[_0x04c6('0x28')](),_0x4e1cfa['originalname']));}})});router[_0x04c6('0x1e')]('/:id/system_avatar',upload[_0x04c6('0x2a')](_0x04c6('0x2b')),controller[_0x04c6('0x30')]);router[_0x04c6('0x1e')]('/:id/notify',controller['notify']);router[_0x04c6('0x1e')](_0x04c6('0x31'),controller['offline']);router[_0x04c6('0x1e')]('/:id/interactions',auth['isAuthenticated'](),controller[_0x04c6('0x32')]);router['post'](_0x04c6('0x17'),auth[_0x04c6('0x6')](),controller['addApplications']);router[_0x04c6('0x1e')]('/:id/proactive_actions',auth[_0x04c6('0x6')](),controller[_0x04c6('0x33')]);router[_0x04c6('0x1e')](_0x04c6('0x1d'),auth[_0x04c6('0x6')](),controller['addAgents']);router[_0x04c6('0x34')]('/:id',auth[_0x04c6('0x6')](),controller['update']);router[_0x04c6('0x35')](_0x04c6('0xa'),auth[_0x04c6('0x6')](),controller[_0x04c6('0x36')]);router[_0x04c6('0x35')](_0x04c6('0x20'),auth[_0x04c6('0x6')](),controller['removeDispositions']);router[_0x04c6('0x35')]('/:id/canned_answers',auth[_0x04c6('0x6')](),controller['removeAnswers']);router['delete'](_0x04c6('0x1d'),auth['isAuthenticated'](),controller[_0x04c6('0x37')]);module[_0x04c6('0x38')]=router;
\ No newline at end of file