Built motion from commit 97153652.|2.6.26
[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 _0x034a=['put','update','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','/describe','getUsers','/:id','post','create'];(function(_0x332ad6,_0x38c82b){var _0x34011e=function(_0x8de51d){while(--_0x8de51d){_0x332ad6['push'](_0x332ad6['shift']());}};_0x34011e(++_0x38c82b);}(_0x034a,0xd6));var _0xa034=function(_0x5721a3,_0x400204){_0x5721a3=_0x5721a3-0x0;var _0x11b5e9=_0x034a[_0x5721a3];return _0x11b5e9;};'use strict';var multer=require(_0xa034('0x0'));var util=require(_0xa034('0x1'));var path=require(_0xa034('0x2'));var timeout=require('connect-timeout');var express=require(_0xa034('0x3'));var router=express[_0xa034('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xa034('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xa034('0x6'));var controller=require('./chatInternalMessage.controller');router[_0xa034('0x7')]('/',auth[_0xa034('0x8')](),controller['index']);router['get'](_0xa034('0x9'),auth[_0xa034('0x8')](),controller['describe']);router['get']('/users',auth[_0xa034('0x8')](),controller[_0xa034('0xa')]);router['get'](_0xa034('0xb'),auth['isAuthenticated'](),controller['show']);router[_0xa034('0xc')]('/',auth['isAuthenticated'](),controller[_0xa034('0xd')]);router[_0xa034('0xe')]('/:id',controller[_0xa034('0xf')]);router[_0xa034('0x10')](_0xa034('0xb'),auth[_0xa034('0x8')](),controller[_0xa034('0x11')]);module[_0xa034('0x12')]=router;