Built motion from commit e02f907f.|2.6.14
[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 _0x48bd=['put','update','delete','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/users','getUsers','/:id','show','create'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0x48bd,0xbb));var _0xd48b=function(_0x394144,_0x208c32){_0x394144=_0x394144-0x0;var _0x1b2aec=_0x48bd[_0x394144];return _0x1b2aec;};'use strict';var multer=require(_0xd48b('0x0'));var util=require(_0xd48b('0x1'));var path=require(_0xd48b('0x2'));var timeout=require(_0xd48b('0x3'));var express=require(_0xd48b('0x4'));var router=express[_0xd48b('0x5')]();var fs_extra=require(_0xd48b('0x6'));var auth=require(_0xd48b('0x7'));var interaction=require(_0xd48b('0x8'));var config=require(_0xd48b('0x9'));var controller=require('./chatInternalMessage.controller');router[_0xd48b('0xa')]('/',auth[_0xd48b('0xb')](),controller[_0xd48b('0xc')]);router[_0xd48b('0xa')](_0xd48b('0xd'),auth[_0xd48b('0xb')](),controller[_0xd48b('0xe')]);router[_0xd48b('0xa')](_0xd48b('0xf'),auth[_0xd48b('0xb')](),controller[_0xd48b('0x10')]);router[_0xd48b('0xa')](_0xd48b('0x11'),auth[_0xd48b('0xb')](),controller[_0xd48b('0x12')]);router['post']('/',auth[_0xd48b('0xb')](),controller[_0xd48b('0x13')]);router[_0xd48b('0x14')]('/:id',controller[_0xd48b('0x15')]);router[_0xd48b('0x16')](_0xd48b('0x11'),auth[_0xd48b('0xb')](),controller['destroy']);module['exports']=router;