a03fc1c11bcd379296eafb7f1d64af183b7fc499
[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 _0x189b=['isAuthenticated','index','describe','/users','/:id','show','put','update','exports','multer','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get'];(function(_0x55f8b4,_0x43f30d){var _0x2475f9=function(_0xdd6f4a){while(--_0xdd6f4a){_0x55f8b4['push'](_0x55f8b4['shift']());}};_0x2475f9(++_0x43f30d);}(_0x189b,0x15d));var _0xb189=function(_0x2d4f73,_0x507dcd){_0x2d4f73=_0x2d4f73-0x0;var _0x5c05c3=_0x189b[_0x2d4f73];return _0x5c05c3;};'use strict';var multer=require(_0xb189('0x0'));var util=require('util');var path=require(_0xb189('0x1'));var timeout=require('connect-timeout');var express=require(_0xb189('0x2'));var router=express[_0xb189('0x3')]();var fs_extra=require(_0xb189('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xb189('0x5'));var config=require(_0xb189('0x6'));var controller=require('./chatInternalMessage.controller');router[_0xb189('0x7')]('/',auth[_0xb189('0x8')](),controller[_0xb189('0x9')]);router[_0xb189('0x7')]('/describe',auth[_0xb189('0x8')](),controller[_0xb189('0xa')]);router['get'](_0xb189('0xb'),auth[_0xb189('0x8')](),controller['getUsers']);router['get'](_0xb189('0xc'),auth['isAuthenticated'](),controller[_0xb189('0xd')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xb189('0xe')]('/:id',controller[_0xb189('0xf')]);router['delete'](_0xb189('0xc'),auth[_0xb189('0x8')](),controller['destroy']);module[_0xb189('0x10')]=router;