9b5ac0b76abc371dd1585b6308326577db6203e9
[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 _0xf8e5=['isAuthenticated','update','delete','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','get','/:id'];(function(_0x3305b5,_0x50a1a8){var _0x41fea1=function(_0x3c1fa5){while(--_0x3c1fa5){_0x3305b5['push'](_0x3305b5['shift']());}};_0x41fea1(++_0x50a1a8);}(_0xf8e5,0x170));var _0x5f8e=function(_0x441eda,_0x5af144){_0x441eda=_0x441eda-0x0;var _0x47f045=_0xf8e5[_0x441eda];return _0x47f045;};'use strict';var multer=require(_0x5f8e('0x0'));var util=require(_0x5f8e('0x1'));var path=require(_0x5f8e('0x2'));var timeout=require('connect-timeout');var express=require(_0x5f8e('0x3'));var router=express['Router']();var fs_extra=require(_0x5f8e('0x4'));var auth=require(_0x5f8e('0x5'));var interaction=require(_0x5f8e('0x6'));var config=require('../../config/environment');var controller=require('./chatApplication.controller');router[_0x5f8e('0x7')](_0x5f8e('0x8'),auth[_0x5f8e('0x9')](),controller['show']);router['put'](_0x5f8e('0x8'),auth['isAuthenticated'](),controller[_0x5f8e('0xa')]);router[_0x5f8e('0xb')]('/:id',auth[_0x5f8e('0x9')](),controller['destroy']);module[_0x5f8e('0xc')]=router;