69a596921e2aac8bf1b9921679f0eb8fa9d76f58
[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 _0xcf39=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','get','isAuthenticated','show','update','destroy','path','connect-timeout','express','Router'];(function(_0x396d0d,_0x1ed99c){var _0x28afe1=function(_0xcb935e){while(--_0xcb935e){_0x396d0d['push'](_0x396d0d['shift']());}};_0x28afe1(++_0x1ed99c);}(_0xcf39,0x6c));var _0x9cf3=function(_0x4d578c,_0x4d2ed2){_0x4d578c=_0x4d578c-0x0;var _0xf41cac=_0xcf39[_0x4d578c];return _0xf41cac;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x9cf3('0x0'));var timeout=require(_0x9cf3('0x1'));var express=require(_0x9cf3('0x2'));var router=express[_0x9cf3('0x3')]();var fs_extra=require(_0x9cf3('0x4'));var auth=require(_0x9cf3('0x5'));var interaction=require(_0x9cf3('0x6'));var config=require(_0x9cf3('0x7'));var controller=require(_0x9cf3('0x8'));router[_0x9cf3('0x9')]('/:id',auth[_0x9cf3('0xa')](),controller[_0x9cf3('0xb')]);router['put']('/:id',auth[_0x9cf3('0xa')](),controller[_0x9cf3('0xc')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x9cf3('0xd')]);module['exports']=router;