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