d3d85ac0bf24285723d5c45ed2b912320bcaba25
[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 _0xb917=['connect-timeout','Router','../../components/interaction/service','../../config/environment','./chatInternalMessage.controller','get','isAuthenticated','index','/describe','describe','/users','getUsers','/:id','post','create','put','update','delete','destroy','multer'];(function(_0x1b2ff7,_0x12a034){var _0x31656a=function(_0x1165a5){while(--_0x1165a5){_0x1b2ff7['push'](_0x1b2ff7['shift']());}};_0x31656a(++_0x12a034);}(_0xb917,0xef));var _0x7b91=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0xb917[_0x6c993a];return _0x27f547;};'use strict';var multer=require(_0x7b91('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x7b91('0x1'));var express=require('express');var router=express[_0x7b91('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x7b91('0x3'));var config=require(_0x7b91('0x4'));var controller=require(_0x7b91('0x5'));router[_0x7b91('0x6')]('/',auth[_0x7b91('0x7')](),controller[_0x7b91('0x8')]);router['get'](_0x7b91('0x9'),auth[_0x7b91('0x7')](),controller[_0x7b91('0xa')]);router[_0x7b91('0x6')](_0x7b91('0xb'),auth[_0x7b91('0x7')](),controller[_0x7b91('0xc')]);router[_0x7b91('0x6')](_0x7b91('0xd'),auth['isAuthenticated'](),controller['show']);router[_0x7b91('0xe')]('/',auth[_0x7b91('0x7')](),controller[_0x7b91('0xf')]);router[_0x7b91('0x10')]('/:id',controller[_0x7b91('0x11')]);router[_0x7b91('0x12')](_0x7b91('0xd'),auth[_0x7b91('0x7')](),controller[_0x7b91('0x13')]);module['exports']=router;