Built motion from commit 85328c08.|2.5.50
[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 _0xd0a1=['./chatInternalMessage.controller','get','isAuthenticated','describe','getUsers','/:id','put','update','destroy','multer','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0xea8947,_0x1b573d){var _0x2455e9=function(_0x18771e){while(--_0x18771e){_0xea8947['push'](_0xea8947['shift']());}};_0x2455e9(++_0x1b573d);}(_0xd0a1,0x135));var _0x1d0a=function(_0x16803d,_0x2d35fa){_0x16803d=_0x16803d-0x0;var _0x47bd54=_0xd0a1[_0x16803d];return _0x47bd54;};'use strict';var multer=require(_0x1d0a('0x0'));var util=require('util');var path=require(_0x1d0a('0x1'));var timeout=require('connect-timeout');var express=require(_0x1d0a('0x2'));var router=express[_0x1d0a('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x1d0a('0x4'));var interaction=require(_0x1d0a('0x5'));var config=require('../../config/environment');var controller=require(_0x1d0a('0x6'));router[_0x1d0a('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x1d0a('0x7')]('/describe',auth[_0x1d0a('0x8')](),controller[_0x1d0a('0x9')]);router['get']('/users',auth[_0x1d0a('0x8')](),controller[_0x1d0a('0xa')]);router[_0x1d0a('0x7')](_0x1d0a('0xb'),auth[_0x1d0a('0x8')](),controller['show']);router['post']('/',auth[_0x1d0a('0x8')](),controller['create']);router[_0x1d0a('0xc')](_0x1d0a('0xb'),controller[_0x1d0a('0xd')]);router['delete'](_0x1d0a('0xb'),auth[_0x1d0a('0x8')](),controller[_0x1d0a('0xe')]);module['exports']=router;