Built motion from commit 3061e47c.|2.6.31
[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 _0x04a8=['post','create','/:id','update','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/users','getUsers'];(function(_0x5e5ab3,_0x378f77){var _0x51bddf=function(_0x53011e){while(--_0x53011e){_0x5e5ab3['push'](_0x5e5ab3['shift']());}};_0x51bddf(++_0x378f77);}(_0x04a8,0x1e4));var _0x804a=function(_0x24fa4e,_0x2204ef){_0x24fa4e=_0x24fa4e-0x0;var _0x44bce7=_0x04a8[_0x24fa4e];return _0x44bce7;};'use strict';var multer=require('multer');var util=require(_0x804a('0x0'));var path=require(_0x804a('0x1'));var timeout=require(_0x804a('0x2'));var express=require(_0x804a('0x3'));var router=express[_0x804a('0x4')]();var fs_extra=require(_0x804a('0x5'));var auth=require(_0x804a('0x6'));var interaction=require(_0x804a('0x7'));var config=require(_0x804a('0x8'));var controller=require('./chatInternalMessage.controller');router[_0x804a('0x9')]('/',auth[_0x804a('0xa')](),controller[_0x804a('0xb')]);router['get'](_0x804a('0xc'),auth['isAuthenticated'](),controller[_0x804a('0xd')]);router[_0x804a('0x9')](_0x804a('0xe'),auth[_0x804a('0xa')](),controller[_0x804a('0xf')]);router[_0x804a('0x9')]('/:id',auth[_0x804a('0xa')](),controller['show']);router[_0x804a('0x10')]('/',auth['isAuthenticated'](),controller[_0x804a('0x11')]);router['put'](_0x804a('0x12'),controller[_0x804a('0x13')]);router['delete'](_0x804a('0x12'),auth[_0x804a('0xa')](),controller['destroy']);module['exports']=router;