99f9c00e6dd9ed70335e7ef0f272d087432158fa
[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 _0xf1a1=['exports','multer','util','Router','fs-extra','/:id','isAuthenticated','put','delete','destroy'];(function(_0x269825,_0x271c62){var _0x2d7a7a=function(_0x6ad778){while(--_0x6ad778){_0x269825['push'](_0x269825['shift']());}};_0x2d7a7a(++_0x271c62);}(_0xf1a1,0xdd));var _0x1f1a=function(_0x39a42e,_0x594f2c){_0x39a42e=_0x39a42e-0x0;var _0x462d94=_0xf1a1[_0x39a42e];return _0x462d94;};'use strict';var multer=require(_0x1f1a('0x0'));var util=require(_0x1f1a('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x1f1a('0x2')]();var fs_extra=require(_0x1f1a('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./chatApplication.controller');router['get'](_0x1f1a('0x4'),auth[_0x1f1a('0x5')](),controller['show']);router[_0x1f1a('0x6')](_0x1f1a('0x4'),auth[_0x1f1a('0x5')](),controller['update']);router[_0x1f1a('0x7')]('/:id',auth[_0x1f1a('0x5')](),controller[_0x1f1a('0x8')]);module[_0x1f1a('0x9')]=router;