d4cbe9538539c49a3d8241b499b201dc6d5c7de8
[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 _0x4301=['show','put','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','./chatApplication.controller','/:id','isAuthenticated'];(function(_0x4b1d33,_0x122640){var _0x53d6e9=function(_0x385ac0){while(--_0x385ac0){_0x4b1d33['push'](_0x4b1d33['shift']());}};_0x53d6e9(++_0x122640);}(_0x4301,0x1d6));var _0x1430=function(_0x3b40c6,_0x168b08){_0x3b40c6=_0x3b40c6-0x0;var _0x5b324c=_0x4301[_0x3b40c6];return _0x5b324c;};'use strict';var multer=require(_0x1430('0x0'));var util=require(_0x1430('0x1'));var path=require(_0x1430('0x2'));var timeout=require('connect-timeout');var express=require(_0x1430('0x3'));var router=express[_0x1430('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x1430('0x5'));var interaction=require(_0x1430('0x6'));var config=require('../../config/environment');var controller=require(_0x1430('0x7'));router['get'](_0x1430('0x8'),auth[_0x1430('0x9')](),controller[_0x1430('0xa')]);router[_0x1430('0xb')](_0x1430('0x8'),auth[_0x1430('0x9')](),controller['update']);router[_0x1430('0xc')]('/:id',auth[_0x1430('0x9')](),controller[_0x1430('0xd')]);module[_0x1430('0xe')]=router;