cb36a30269ea22d2fe573e8d716c783d3b5e6a02
[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 _0x92e8=['../../config/environment','./chatInternalMessage.controller','isAuthenticated','get','/users','/:id','show','post','create','put','delete','destroy','exports','multer','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x4885e9,_0x4aec32){var _0x566027=function(_0x27c393){while(--_0x27c393){_0x4885e9['push'](_0x4885e9['shift']());}};_0x566027(++_0x4aec32);}(_0x92e8,0x7f));var _0x892e=function(_0x3825a8,_0x2ce1a2){_0x3825a8=_0x3825a8-0x0;var _0xabc9bc=_0x92e8[_0x3825a8];return _0xabc9bc;};'use strict';var multer=require(_0x892e('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x892e('0x1'));var express=require('express');var router=express[_0x892e('0x2')]();var fs_extra=require(_0x892e('0x3'));var auth=require(_0x892e('0x4'));var interaction=require(_0x892e('0x5'));var config=require(_0x892e('0x6'));var controller=require(_0x892e('0x7'));router['get']('/',auth[_0x892e('0x8')](),controller['index']);router[_0x892e('0x9')]('/describe',auth[_0x892e('0x8')](),controller['describe']);router[_0x892e('0x9')](_0x892e('0xa'),auth[_0x892e('0x8')](),controller['getUsers']);router[_0x892e('0x9')](_0x892e('0xb'),auth[_0x892e('0x8')](),controller[_0x892e('0xc')]);router[_0x892e('0xd')]('/',auth['isAuthenticated'](),controller[_0x892e('0xe')]);router[_0x892e('0xf')](_0x892e('0xb'),controller['update']);router[_0x892e('0x10')]('/:id',auth[_0x892e('0x8')](),controller[_0x892e('0x11')]);module[_0x892e('0x12')]=router;