82886eb350db5d76422eb0fff664c852ca35e360
[motion2.git] / server / api / chatInternalMessage / 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 _0xeb70=['create','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','./chatInternalMessage.controller','get','isAuthenticated','index','/describe','describe','/users','getUsers','show','post'];(function(_0xe07094,_0x1cd13b){var _0x2d447b=function(_0x417dc5){while(--_0x417dc5){_0xe07094['push'](_0xe07094['shift']());}};_0x2d447b(++_0x1cd13b);}(_0xeb70,0x13f));var _0x0eb7=function(_0x60ebfd,_0x1d617a){_0x60ebfd=_0x60ebfd-0x0;var _0x312588=_0xeb70[_0x60ebfd];return _0x312588;};'use strict';var multer=require(_0x0eb7('0x0'));var util=require(_0x0eb7('0x1'));var path=require(_0x0eb7('0x2'));var timeout=require(_0x0eb7('0x3'));var express=require('express');var router=express[_0x0eb7('0x4')]();var fs_extra=require(_0x0eb7('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x0eb7('0x6'));var config=require('../../config/environment');var controller=require(_0x0eb7('0x7'));router[_0x0eb7('0x8')]('/',auth[_0x0eb7('0x9')](),controller[_0x0eb7('0xa')]);router['get'](_0x0eb7('0xb'),auth[_0x0eb7('0x9')](),controller[_0x0eb7('0xc')]);router[_0x0eb7('0x8')](_0x0eb7('0xd'),auth[_0x0eb7('0x9')](),controller[_0x0eb7('0xe')]);router[_0x0eb7('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x0eb7('0xf')]);router[_0x0eb7('0x10')]('/',auth[_0x0eb7('0x9')](),controller[_0x0eb7('0x11')]);router[_0x0eb7('0x12')](_0x0eb7('0x13'),controller[_0x0eb7('0x14')]);router[_0x0eb7('0x15')](_0x0eb7('0x13'),auth['isAuthenticated'](),controller[_0x0eb7('0x16')]);module[_0x0eb7('0x17')]=router;