fc3aff372b47dffb4dc1b7af546590bbce9411a8
[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 _0x73f5=['update','/:id/accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','show','post','tracked','chat','chatmessage:create','create','put','/:id'];(function(_0x3c8018,_0x4f3203){var _0x1ad526=function(_0x2ba184){while(--_0x2ba184){_0x3c8018['push'](_0x3c8018['shift']());}};_0x1ad526(++_0x4f3203);}(_0x73f5,0x13f));var _0x573f=function(_0x22af95,_0x3d0704){_0x22af95=_0x22af95-0x0;var _0x4e4adc=_0x73f5[_0x22af95];return _0x4e4adc;};'use strict';var multer=require(_0x573f('0x0'));var util=require(_0x573f('0x1'));var path=require(_0x573f('0x2'));var timeout=require('connect-timeout');var express=require(_0x573f('0x3'));var router=express[_0x573f('0x4')]();var fs_extra=require(_0x573f('0x5'));var auth=require(_0x573f('0x6'));var interaction=require(_0x573f('0x7'));var config=require(_0x573f('0x8'));var controller=require('./chatMessage.controller');router['get']('/',auth[_0x573f('0x9')](),controller['index']);router[_0x573f('0xa')]('/describe',auth[_0x573f('0x9')](),controller['describe']);router['get']('/:id',auth[_0x573f('0x9')](),controller[_0x573f('0xb')]);router[_0x573f('0xc')]('/',auth[_0x573f('0x9')](),interaction[_0x573f('0xd')](_0x573f('0xe'),_0x573f('0xf')),controller[_0x573f('0x10')]);router[_0x573f('0x11')](_0x573f('0x12'),controller[_0x573f('0x13')]);router[_0x573f('0x11')](_0x573f('0x14'),auth[_0x573f('0x9')](),controller['accept']);router[_0x573f('0x11')](_0x573f('0x15'),auth[_0x573f('0x9')](),controller[_0x573f('0x16')]);router[_0x573f('0x17')](_0x573f('0x12'),auth[_0x573f('0x9')](),controller[_0x573f('0x18')]);module[_0x573f('0x19')]=router;