Built motion from commit 9d1906d1.|2.5.40
[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 _0xf26a=['path','connect-timeout','../../components/auth/service','../../components/interaction/service','./chatInternalMessage.controller','isAuthenticated','index','get','/describe','describe','getUsers','show','post','create','/:id','delete','destroy','exports','util'];(function(_0x16f5bb,_0xa254dd){var _0x1ea456=function(_0x11ebd6){while(--_0x11ebd6){_0x16f5bb['push'](_0x16f5bb['shift']());}};_0x1ea456(++_0xa254dd);}(_0xf26a,0x109));var _0xaf26=function(_0x2d20ef,_0x3bf202){_0x2d20ef=_0x2d20ef-0x0;var _0x452e5a=_0xf26a[_0x2d20ef];return _0x452e5a;};'use strict';var multer=require('multer');var util=require(_0xaf26('0x0'));var path=require(_0xaf26('0x1'));var timeout=require(_0xaf26('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xaf26('0x3'));var interaction=require(_0xaf26('0x4'));var config=require('../../config/environment');var controller=require(_0xaf26('0x5'));router['get']('/',auth[_0xaf26('0x6')](),controller[_0xaf26('0x7')]);router[_0xaf26('0x8')](_0xaf26('0x9'),auth[_0xaf26('0x6')](),controller[_0xaf26('0xa')]);router[_0xaf26('0x8')]('/users',auth[_0xaf26('0x6')](),controller[_0xaf26('0xb')]);router['get']('/:id',auth[_0xaf26('0x6')](),controller[_0xaf26('0xc')]);router[_0xaf26('0xd')]('/',auth[_0xaf26('0x6')](),controller[_0xaf26('0xe')]);router['put'](_0xaf26('0xf'),controller['update']);router[_0xaf26('0x10')](_0xaf26('0xf'),auth[_0xaf26('0x6')](),controller[_0xaf26('0x11')]);module[_0xaf26('0x12')]=router;