Built motion from commit d5e4af8c.|2.6.23
[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 _0x40a1=['multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller','index','get','isAuthenticated','describe','/:id','show','tracked','chatmessage:create','put','update','/:id/accept','accept','/:id/reject','reject','destroy','exports'];(function(_0x6c4358,_0x17bcbb){var _0x7aa4ef=function(_0x3ddd15){while(--_0x3ddd15){_0x6c4358['push'](_0x6c4358['shift']());}};_0x7aa4ef(++_0x17bcbb);}(_0x40a1,0x10e));var _0x140a=function(_0x1e3572,_0x12a24b){_0x1e3572=_0x1e3572-0x0;var _0x9fafc=_0x40a1[_0x1e3572];return _0x9fafc;};'use strict';var multer=require(_0x140a('0x0'));var util=require(_0x140a('0x1'));var path=require(_0x140a('0x2'));var timeout=require(_0x140a('0x3'));var express=require(_0x140a('0x4'));var router=express[_0x140a('0x5')]();var fs_extra=require(_0x140a('0x6'));var auth=require(_0x140a('0x7'));var interaction=require(_0x140a('0x8'));var config=require(_0x140a('0x9'));var controller=require(_0x140a('0xa'));router['get']('/',auth['isAuthenticated'](),controller[_0x140a('0xb')]);router[_0x140a('0xc')]('/describe',auth[_0x140a('0xd')](),controller[_0x140a('0xe')]);router[_0x140a('0xc')](_0x140a('0xf'),auth['isAuthenticated'](),controller[_0x140a('0x10')]);router['post']('/',auth[_0x140a('0xd')](),interaction[_0x140a('0x11')]('chat',_0x140a('0x12')),controller['create']);router[_0x140a('0x13')](_0x140a('0xf'),controller[_0x140a('0x14')]);router[_0x140a('0x13')](_0x140a('0x15'),auth[_0x140a('0xd')](),controller[_0x140a('0x16')]);router[_0x140a('0x13')](_0x140a('0x17'),auth[_0x140a('0xd')](),controller[_0x140a('0x18')]);router['delete'](_0x140a('0xf'),auth[_0x140a('0xd')](),controller[_0x140a('0x19')]);module[_0x140a('0x1a')]=router;