Built motion from commit 47436d59.|2.6.7
[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 _0x510c=['delete','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','getUsers','show','post','create','/:id','update'];(function(_0x40a055,_0x803574){var _0x5584b0=function(_0x181a7b){while(--_0x181a7b){_0x40a055['push'](_0x40a055['shift']());}};_0x5584b0(++_0x803574);}(_0x510c,0x152));var _0xc510=function(_0x5bfcfb,_0x911dd9){_0x5bfcfb=_0x5bfcfb-0x0;var _0x34bfb2=_0x510c[_0x5bfcfb];return _0x34bfb2;};'use strict';var multer=require(_0xc510('0x0'));var util=require('util');var path=require(_0xc510('0x1'));var timeout=require(_0xc510('0x2'));var express=require(_0xc510('0x3'));var router=express[_0xc510('0x4')]();var fs_extra=require(_0xc510('0x5'));var auth=require(_0xc510('0x6'));var interaction=require(_0xc510('0x7'));var config=require(_0xc510('0x8'));var controller=require('./chatInternalMessage.controller');router[_0xc510('0x9')]('/',auth[_0xc510('0xa')](),controller[_0xc510('0xb')]);router[_0xc510('0x9')]('/describe',auth[_0xc510('0xa')](),controller[_0xc510('0xc')]);router[_0xc510('0x9')]('/users',auth['isAuthenticated'](),controller[_0xc510('0xd')]);router[_0xc510('0x9')]('/:id',auth[_0xc510('0xa')](),controller[_0xc510('0xe')]);router[_0xc510('0xf')]('/',auth[_0xc510('0xa')](),controller[_0xc510('0x10')]);router['put'](_0xc510('0x11'),controller[_0xc510('0x12')]);router[_0xc510('0x13')](_0xc510('0x11'),auth['isAuthenticated'](),controller['destroy']);module[_0xc510('0x14')]=router;