Built motion from commit (unavailable).|2.5.4
[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 _0x7e29=['show','post','tracked','chat','put','update','/:id/accept','/:id/reject','reject','delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','describe','/:id'];(function(_0x59ecf9,_0x9a29d){var _0x3c68c1=function(_0x4992c5){while(--_0x4992c5){_0x59ecf9['push'](_0x59ecf9['shift']());}};_0x3c68c1(++_0x9a29d);}(_0x7e29,0x9b));var _0x97e2=function(_0x5132c1,_0xa981d){_0x5132c1=_0x5132c1-0x0;var _0x106638=_0x7e29[_0x5132c1];return _0x106638;};'use strict';var multer=require(_0x97e2('0x0'));var util=require(_0x97e2('0x1'));var path=require('path');var timeout=require(_0x97e2('0x2'));var express=require(_0x97e2('0x3'));var router=express[_0x97e2('0x4')]();var auth=require(_0x97e2('0x5'));var interaction=require(_0x97e2('0x6'));var config=require(_0x97e2('0x7'));var controller=require('./chatMessage.controller');router[_0x97e2('0x8')]('/',auth['isAuthenticated'](),controller[_0x97e2('0x9')]);router['get']('/describe',auth[_0x97e2('0xa')](),controller[_0x97e2('0xb')]);router['get'](_0x97e2('0xc'),auth[_0x97e2('0xa')](),controller[_0x97e2('0xd')]);router[_0x97e2('0xe')]('/',auth[_0x97e2('0xa')](),interaction[_0x97e2('0xf')](_0x97e2('0x10'),'chatmessage:create'),controller['create']);router[_0x97e2('0x11')]('/:id',controller[_0x97e2('0x12')]);router[_0x97e2('0x11')](_0x97e2('0x13'),auth['isAuthenticated'](),controller['accept']);router[_0x97e2('0x11')](_0x97e2('0x14'),auth['isAuthenticated'](),controller[_0x97e2('0x15')]);router[_0x97e2('0x16')](_0x97e2('0xc'),auth['isAuthenticated'](),controller[_0x97e2('0x17')]);module['exports']=router;