1fef7761695481ea6101ed77e85f738b5d5ba506
[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 _0x78a8=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller','get','isAuthenticated','index','/describe','show','post','tracked','chat','put','/:id','update','/:id/accept','accept','/:id/reject','delete','destroy','multer','util'];(function(_0x5d99bb,_0x10e04b){var _0xdfe846=function(_0x2e3377){while(--_0x2e3377){_0x5d99bb['push'](_0x5d99bb['shift']());}};_0xdfe846(++_0x10e04b);}(_0x78a8,0x136));var _0x878a=function(_0x40063b,_0x934e64){_0x40063b=_0x40063b-0x0;var _0x2ea58b=_0x78a8[_0x40063b];return _0x2ea58b;};'use strict';var multer=require(_0x878a('0x0'));var util=require(_0x878a('0x1'));var path=require('path');var timeout=require(_0x878a('0x2'));var express=require(_0x878a('0x3'));var router=express[_0x878a('0x4')]();var fs_extra=require(_0x878a('0x5'));var auth=require(_0x878a('0x6'));var interaction=require(_0x878a('0x7'));var config=require(_0x878a('0x8'));var controller=require(_0x878a('0x9'));router[_0x878a('0xa')]('/',auth[_0x878a('0xb')](),controller[_0x878a('0xc')]);router[_0x878a('0xa')](_0x878a('0xd'),auth[_0x878a('0xb')](),controller['describe']);router['get']('/:id',auth[_0x878a('0xb')](),controller[_0x878a('0xe')]);router[_0x878a('0xf')]('/',auth[_0x878a('0xb')](),interaction[_0x878a('0x10')](_0x878a('0x11'),'chatmessage:create'),controller['create']);router[_0x878a('0x12')](_0x878a('0x13'),controller[_0x878a('0x14')]);router[_0x878a('0x12')](_0x878a('0x15'),auth[_0x878a('0xb')](),controller[_0x878a('0x16')]);router[_0x878a('0x12')](_0x878a('0x17'),auth[_0x878a('0xb')](),controller['reject']);router[_0x878a('0x18')]('/:id',auth['isAuthenticated'](),controller[_0x878a('0x19')]);module['exports']=router;