Built motion from commit 092f8824.|2.5.49
[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 _0x198a=['update','/:id/accept','reject','delete','destroy','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../config/environment','./chatMessage.controller','isAuthenticated','index','/describe','describe','/:id','show','tracked','chat','chatmessage:create','put'];(function(_0x57bfb4,_0x4f9af0){var _0x375ae0=function(_0x127578){while(--_0x127578){_0x57bfb4['push'](_0x57bfb4['shift']());}};_0x375ae0(++_0x4f9af0);}(_0x198a,0x66));var _0xa198=function(_0x36a2b1,_0x10df95){_0x36a2b1=_0x36a2b1-0x0;var _0x32038c=_0x198a[_0x36a2b1];return _0x32038c;};'use strict';var multer=require(_0xa198('0x0'));var util=require(_0xa198('0x1'));var path=require(_0xa198('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa198('0x3')]();var fs_extra=require(_0xa198('0x4'));var auth=require(_0xa198('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xa198('0x6'));var controller=require(_0xa198('0x7'));router['get']('/',auth[_0xa198('0x8')](),controller[_0xa198('0x9')]);router['get'](_0xa198('0xa'),auth[_0xa198('0x8')](),controller[_0xa198('0xb')]);router['get'](_0xa198('0xc'),auth[_0xa198('0x8')](),controller[_0xa198('0xd')]);router['post']('/',auth[_0xa198('0x8')](),interaction[_0xa198('0xe')](_0xa198('0xf'),_0xa198('0x10')),controller['create']);router[_0xa198('0x11')](_0xa198('0xc'),controller[_0xa198('0x12')]);router[_0xa198('0x11')](_0xa198('0x13'),auth[_0xa198('0x8')](),controller['accept']);router[_0xa198('0x11')]('/:id/reject',auth[_0xa198('0x8')](),controller[_0xa198('0x14')]);router[_0xa198('0x15')](_0xa198('0xc'),auth[_0xa198('0x8')](),controller[_0xa198('0x16')]);module[_0xa198('0x17')]=router;