6f754002e7ea04a5091f1793772ee76ef6730dc9
[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 _0x2a8f=['/:id','update','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','/users','getUsers','put'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x2a8f,0xb9));var _0xf2a8=function(_0x2235bf,_0x3a06a7){_0x2235bf=_0x2235bf-0x0;var _0x4c3a64=_0x2a8f[_0x2235bf];return _0x4c3a64;};'use strict';var multer=require(_0xf2a8('0x0'));var util=require(_0xf2a8('0x1'));var path=require(_0xf2a8('0x2'));var timeout=require('connect-timeout');var express=require(_0xf2a8('0x3'));var router=express[_0xf2a8('0x4')]();var fs_extra=require(_0xf2a8('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf2a8('0x6'));var config=require(_0xf2a8('0x7'));var controller=require('./chatInternalMessage.controller');router[_0xf2a8('0x8')]('/',auth[_0xf2a8('0x9')](),controller[_0xf2a8('0xa')]);router[_0xf2a8('0x8')](_0xf2a8('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0xf2a8('0x8')](_0xf2a8('0xc'),auth['isAuthenticated'](),controller[_0xf2a8('0xd')]);router[_0xf2a8('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xf2a8('0x9')](),controller['create']);router[_0xf2a8('0xe')](_0xf2a8('0xf'),controller[_0xf2a8('0x10')]);router[_0xf2a8('0x11')]('/:id',auth[_0xf2a8('0x9')](),controller[_0xf2a8('0x12')]);module[_0xf2a8('0x13')]=router;