6193479f59169b6e57848bdf1e60306759c4185d
[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 _0x92df=['util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller','get','/:id','isAuthenticated','put','update','delete','destroy','exports'];(function(_0x50f5ed,_0x1a5d11){var _0x545e4c=function(_0x5160aa){while(--_0x5160aa){_0x50f5ed['push'](_0x50f5ed['shift']());}};_0x545e4c(++_0x1a5d11);}(_0x92df,0x100));var _0xf92d=function(_0x294198,_0x1138d0){_0x294198=_0x294198-0x0;var _0x54124b=_0x92df[_0x294198];return _0x54124b;};'use strict';var multer=require('multer');var util=require(_0xf92d('0x0'));var path=require('path');var timeout=require(_0xf92d('0x1'));var express=require(_0xf92d('0x2'));var router=express[_0xf92d('0x3')]();var auth=require(_0xf92d('0x4'));var interaction=require(_0xf92d('0x5'));var config=require(_0xf92d('0x6'));var controller=require(_0xf92d('0x7'));router[_0xf92d('0x8')](_0xf92d('0x9'),auth[_0xf92d('0xa')](),controller['show']);router[_0xf92d('0xb')](_0xf92d('0x9'),auth[_0xf92d('0xa')](),controller[_0xf92d('0xc')]);router[_0xf92d('0xd')]('/:id',auth[_0xf92d('0xa')](),controller[_0xf92d('0xe')]);module[_0xf92d('0xf')]=router;