Built motion from commit e6806ed6.|2.6.0
[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 _0x7d8a=['/:id','isAuthenticated','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatApplication.controller'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x7d8a,0x1c4));var _0xa7d8=function(_0x2ae2ad,_0xac5b0c){_0x2ae2ad=_0x2ae2ad-0x0;var _0x26dbd7=_0x7d8a[_0x2ae2ad];return _0x26dbd7;};'use strict';var multer=require(_0xa7d8('0x0'));var util=require(_0xa7d8('0x1'));var path=require(_0xa7d8('0x2'));var timeout=require(_0xa7d8('0x3'));var express=require(_0xa7d8('0x4'));var router=express[_0xa7d8('0x5')]();var fs_extra=require(_0xa7d8('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xa7d8('0x7'));var config=require(_0xa7d8('0x8'));var controller=require(_0xa7d8('0x9'));router['get'](_0xa7d8('0xa'),auth[_0xa7d8('0xb')](),controller['show']);router['put']('/:id',auth[_0xa7d8('0xb')](),controller['update']);router[_0xa7d8('0xc')](_0xa7d8('0xa'),auth[_0xa7d8('0xb')](),controller[_0xa7d8('0xd')]);module['exports']=router;