aa7e3f42d6445a738c6a29fae5d48c3ae834ee1c
[motion2.git] / server / api / UserChatInteraction / 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 _0x6baa=['util','express','Router','../../components/interaction/service','./UserChatInteraction.controller','get','index','/:id','isAuthenticated','post','put','update','destroy','exports'];(function(_0x2a5b19,_0x2fc190){var _0x4d2c62=function(_0x4e1d33){while(--_0x4e1d33){_0x2a5b19['push'](_0x2a5b19['shift']());}};_0x4d2c62(++_0x2fc190);}(_0x6baa,0x16c));var _0xa6ba=function(_0x4ec6b1,_0x2d8115){_0x4ec6b1=_0x4ec6b1-0x0;var _0x543841=_0x6baa[_0x4ec6b1];return _0x543841;};'use strict';var multer=require('multer');var util=require(_0xa6ba('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xa6ba('0x1'));var router=express[_0xa6ba('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0xa6ba('0x3'));var config=require('../../config/environment');var controller=require(_0xa6ba('0x4'));router[_0xa6ba('0x5')]('/',auth['isAuthenticated'](),controller[_0xa6ba('0x6')]);router['get'](_0xa6ba('0x7'),auth[_0xa6ba('0x8')](),controller['show']);router[_0xa6ba('0x9')]('/',auth[_0xa6ba('0x8')](),controller['create']);router[_0xa6ba('0xa')](_0xa6ba('0x7'),auth['isAuthenticated'](),controller[_0xa6ba('0xb')]);router['delete'](_0xa6ba('0x7'),auth[_0xa6ba('0x8')](),controller[_0xa6ba('0xc')]);module[_0xa6ba('0xd')]=router;