27720d5430bb5a245e1dfefd61af8b85d8ffb193
[motion2.git] / server / api / chatApplication / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe2c0=['put','update','delete','destroy','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','/:id','isAuthenticated','show'];(function(_0x53bea5,_0xfbebf2){var _0x10e9bc=function(_0x565ef6){while(--_0x565ef6){_0x53bea5['push'](_0x53bea5['shift']());}};_0x10e9bc(++_0xfbebf2);}(_0xe2c0,0x126));var _0x0e2c=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0xe2c0[_0x2641f9];return _0x585741;};'use strict';var multer=require(_0x0e2c('0x0'));var util=require(_0x0e2c('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x0e2c('0x2'));var router=express[_0x0e2c('0x3')]();var fs_extra=require(_0x0e2c('0x4'));var auth=require(_0x0e2c('0x5'));var interaction=require(_0x0e2c('0x6'));var config=require(_0x0e2c('0x7'));var controller=require(_0x0e2c('0x8'));router['get'](_0x0e2c('0x9'),auth[_0x0e2c('0xa')](),controller[_0x0e2c('0xb')]);router[_0x0e2c('0xc')](_0x0e2c('0x9'),auth['isAuthenticated'](),controller[_0x0e2c('0xd')]);router[_0x0e2c('0xe')]('/:id',auth[_0x0e2c('0xa')](),controller[_0x0e2c('0xf')]);module[_0x0e2c('0x10')]=router;