Built motion from commit 19a84241.|2.5.34
[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 _0x4d93=['../../config/environment','./chatMessage.controller','get','/describe','isAuthenticated','/:id','show','chat','chatmessage:create','create','put','/:id/reject','reject','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x401531,_0x582a70){var _0x51b83c=function(_0x118c21){while(--_0x118c21){_0x401531['push'](_0x401531['shift']());}};_0x51b83c(++_0x582a70);}(_0x4d93,0x82));var _0x34d9=function(_0x2da1c5,_0x4cb05d){_0x2da1c5=_0x2da1c5-0x0;var _0x586f49=_0x4d93[_0x2da1c5];return _0x586f49;};'use strict';var multer=require(_0x34d9('0x0'));var util=require(_0x34d9('0x1'));var path=require(_0x34d9('0x2'));var timeout=require(_0x34d9('0x3'));var express=require(_0x34d9('0x4'));var router=express[_0x34d9('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x34d9('0x6'));var interaction=require(_0x34d9('0x7'));var config=require(_0x34d9('0x8'));var controller=require(_0x34d9('0x9'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x34d9('0xa')](_0x34d9('0xb'),auth[_0x34d9('0xc')](),controller['describe']);router['get'](_0x34d9('0xd'),auth['isAuthenticated'](),controller[_0x34d9('0xe')]);router['post']('/',auth['isAuthenticated'](),interaction['tracked'](_0x34d9('0xf'),_0x34d9('0x10')),controller[_0x34d9('0x11')]);router[_0x34d9('0x12')]('/:id',controller['update']);router[_0x34d9('0x12')]('/:id/accept',auth[_0x34d9('0xc')](),controller['accept']);router[_0x34d9('0x12')](_0x34d9('0x13'),auth[_0x34d9('0xc')](),controller[_0x34d9('0x14')]);router['delete'](_0x34d9('0xd'),auth[_0x34d9('0xc')](),controller[_0x34d9('0x15')]);module[_0x34d9('0x16')]=router;