6ac98493fb5915867de2ae3b4dfcb4a25ccb0d53
[motion2.git] / server / api / chatMessage / 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 _0xfebd=['index','get','/describe','describe','/:id','post','tracked','chat','chatmessage:create','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','destroy','multer','util','path','express','Router','fs-extra','../../components/interaction/service','./chatMessage.controller','isAuthenticated'];(function(_0x464360,_0x35ee85){var _0x40223b=function(_0x52a41b){while(--_0x52a41b){_0x464360['push'](_0x464360['shift']());}};_0x40223b(++_0x35ee85);}(_0xfebd,0x99));var _0xdfeb=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0xfebd[_0x2dafbe];return _0x58a45a;};'use strict';var multer=require(_0xdfeb('0x0'));var util=require(_0xdfeb('0x1'));var path=require(_0xdfeb('0x2'));var timeout=require('connect-timeout');var express=require(_0xdfeb('0x3'));var router=express[_0xdfeb('0x4')]();var fs_extra=require(_0xdfeb('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xdfeb('0x6'));var config=require('../../config/environment');var controller=require(_0xdfeb('0x7'));router['get']('/',auth[_0xdfeb('0x8')](),controller[_0xdfeb('0x9')]);router[_0xdfeb('0xa')](_0xdfeb('0xb'),auth[_0xdfeb('0x8')](),controller[_0xdfeb('0xc')]);router[_0xdfeb('0xa')](_0xdfeb('0xd'),auth[_0xdfeb('0x8')](),controller['show']);router[_0xdfeb('0xe')]('/',auth[_0xdfeb('0x8')](),interaction[_0xdfeb('0xf')](_0xdfeb('0x10'),_0xdfeb('0x11')),controller[_0xdfeb('0x12')]);router[_0xdfeb('0x13')](_0xdfeb('0xd'),controller[_0xdfeb('0x14')]);router[_0xdfeb('0x13')](_0xdfeb('0x15'),auth['isAuthenticated'](),controller[_0xdfeb('0x16')]);router[_0xdfeb('0x13')](_0xdfeb('0x17'),auth['isAuthenticated'](),controller[_0xdfeb('0x18')]);router[_0xdfeb('0x19')](_0xdfeb('0xd'),auth[_0xdfeb('0x8')](),controller[_0xdfeb('0x1a')]);module['exports']=router;