Built motion from commit 53172ac8.|2.6.30
[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 _0xebf5=['./chatApplication.controller','get','isAuthenticated','show','put','update','/:id','multer','util','path','express','Router','fs-extra','../../config/environment'];(function(_0x561a36,_0x4226d4){var _0x44353b=function(_0x5308b3){while(--_0x5308b3){_0x561a36['push'](_0x561a36['shift']());}};_0x44353b(++_0x4226d4);}(_0xebf5,0x12d));var _0x5ebf=function(_0x22dfe0,_0x43613b){_0x22dfe0=_0x22dfe0-0x0;var _0x91bbfb=_0xebf5[_0x22dfe0];return _0x91bbfb;};'use strict';var multer=require(_0x5ebf('0x0'));var util=require(_0x5ebf('0x1'));var path=require(_0x5ebf('0x2'));var timeout=require('connect-timeout');var express=require(_0x5ebf('0x3'));var router=express[_0x5ebf('0x4')]();var fs_extra=require(_0x5ebf('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x5ebf('0x6'));var controller=require(_0x5ebf('0x7'));router[_0x5ebf('0x8')]('/:id',auth[_0x5ebf('0x9')](),controller[_0x5ebf('0xa')]);router[_0x5ebf('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x5ebf('0xc')]);router['delete'](_0x5ebf('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;