Built motion from commit 58b0471d.|2.6.29
[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 _0xc3fd=['isAuthenticated','/describe','describe','/:id','show','chatmessage:create','put','update','/:id/accept','delete','destroy','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller','get'];(function(_0x220fa9,_0x4255fb){var _0x518ed5=function(_0x280cd9){while(--_0x280cd9){_0x220fa9['push'](_0x220fa9['shift']());}};_0x518ed5(++_0x4255fb);}(_0xc3fd,0x12a));var _0xdc3f=function(_0x48b8dd,_0x3481d5){_0x48b8dd=_0x48b8dd-0x0;var _0x543922=_0xc3fd[_0x48b8dd];return _0x543922;};'use strict';var multer=require(_0xdc3f('0x0'));var util=require(_0xdc3f('0x1'));var path=require(_0xdc3f('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xdc3f('0x3')]();var fs_extra=require(_0xdc3f('0x4'));var auth=require(_0xdc3f('0x5'));var interaction=require(_0xdc3f('0x6'));var config=require(_0xdc3f('0x7'));var controller=require(_0xdc3f('0x8'));router[_0xdc3f('0x9')]('/',auth[_0xdc3f('0xa')](),controller['index']);router[_0xdc3f('0x9')](_0xdc3f('0xb'),auth[_0xdc3f('0xa')](),controller[_0xdc3f('0xc')]);router[_0xdc3f('0x9')](_0xdc3f('0xd'),auth['isAuthenticated'](),controller[_0xdc3f('0xe')]);router['post']('/',auth[_0xdc3f('0xa')](),interaction['tracked']('chat',_0xdc3f('0xf')),controller['create']);router[_0xdc3f('0x10')](_0xdc3f('0xd'),controller[_0xdc3f('0x11')]);router[_0xdc3f('0x10')](_0xdc3f('0x12'),auth['isAuthenticated'](),controller['accept']);router[_0xdc3f('0x10')]('/:id/reject',auth['isAuthenticated'](),controller['reject']);router[_0xdc3f('0x13')](_0xdc3f('0xd'),auth[_0xdc3f('0xa')](),controller[_0xdc3f('0x14')]);module[_0xdc3f('0x15')]=router;