Built motion from commit ddca4d0d.|2.5.47
[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 _0x237c=['isAuthenticated','index','/describe','describe','getUsers','/:id','show','post','update','delete','exports','util','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInternalMessage.controller','get'];(function(_0xdd4534,_0x4ac9fc){var _0x10d6b5=function(_0x44397d){while(--_0x44397d){_0xdd4534['push'](_0xdd4534['shift']());}};_0x10d6b5(++_0x4ac9fc);}(_0x237c,0x1c0));var _0xc237=function(_0x30a6eb,_0x54e8b0){_0x30a6eb=_0x30a6eb-0x0;var _0x298808=_0x237c[_0x30a6eb];return _0x298808;};'use strict';var multer=require('multer');var util=require(_0xc237('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xc237('0x1')]();var fs_extra=require(_0xc237('0x2'));var auth=require(_0xc237('0x3'));var interaction=require(_0xc237('0x4'));var config=require(_0xc237('0x5'));var controller=require(_0xc237('0x6'));router[_0xc237('0x7')]('/',auth[_0xc237('0x8')](),controller[_0xc237('0x9')]);router[_0xc237('0x7')](_0xc237('0xa'),auth[_0xc237('0x8')](),controller[_0xc237('0xb')]);router[_0xc237('0x7')]('/users',auth['isAuthenticated'](),controller[_0xc237('0xc')]);router[_0xc237('0x7')](_0xc237('0xd'),auth['isAuthenticated'](),controller[_0xc237('0xe')]);router[_0xc237('0xf')]('/',auth[_0xc237('0x8')](),controller['create']);router['put'](_0xc237('0xd'),controller[_0xc237('0x10')]);router[_0xc237('0x11')](_0xc237('0xd'),auth[_0xc237('0x8')](),controller['destroy']);module[_0xc237('0x12')]=router;