aaf6ad11d4760c4d0886e0e2c753550e2c705300
[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 _0x477e=['isAuthenticated','show','put','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','/:id'];(function(_0x180ace,_0x33aba2){var _0x4bf2c2=function(_0x43aa40){while(--_0x43aa40){_0x180ace['push'](_0x180ace['shift']());}};_0x4bf2c2(++_0x33aba2);}(_0x477e,0xf5));var _0xe477=function(_0x13b392,_0x3481f2){_0x13b392=_0x13b392-0x0;var _0x39db24=_0x477e[_0x13b392];return _0x39db24;};'use strict';var multer=require(_0xe477('0x0'));var util=require(_0xe477('0x1'));var path=require(_0xe477('0x2'));var timeout=require(_0xe477('0x3'));var express=require(_0xe477('0x4'));var router=express[_0xe477('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xe477('0x6'));var config=require(_0xe477('0x7'));var controller=require('./chatApplication.controller');router[_0xe477('0x8')](_0xe477('0x9'),auth[_0xe477('0xa')](),controller[_0xe477('0xb')]);router[_0xe477('0xc')]('/:id',auth[_0xe477('0xa')](),controller[_0xe477('0xd')]);router['delete']('/:id',auth[_0xe477('0xa')](),controller[_0xe477('0xe')]);module['exports']=router;