19f82ab5dcb37c2830804bf77a4e9170efb19b3b
[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 _0x125b=['../../config/environment','./chatApplication.controller','get','isAuthenticated','show','/:id','update','delete','destroy','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x48961c,_0x280e9d){var _0x1d895d=function(_0x248ffa){while(--_0x248ffa){_0x48961c['push'](_0x48961c['shift']());}};_0x1d895d(++_0x280e9d);}(_0x125b,0x105));var _0xb125=function(_0x5d77cd,_0x46ea40){_0x5d77cd=_0x5d77cd-0x0;var _0x385788=_0x125b[_0x5d77cd];return _0x385788;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb125('0x0'));var timeout=require('connect-timeout');var express=require(_0xb125('0x1'));var router=express[_0xb125('0x2')]();var auth=require(_0xb125('0x3'));var interaction=require(_0xb125('0x4'));var config=require(_0xb125('0x5'));var controller=require(_0xb125('0x6'));router[_0xb125('0x7')]('/:id',auth[_0xb125('0x8')](),controller[_0xb125('0x9')]);router['put'](_0xb125('0xa'),auth[_0xb125('0x8')](),controller[_0xb125('0xb')]);router[_0xb125('0xc')](_0xb125('0xa'),auth[_0xb125('0x8')](),controller[_0xb125('0xd')]);module['exports']=router;