Built motion from commit 9d7072cc.|2.5.39
[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 _0x80b3=['isAuthenticated','index','getUsers','/:id','show','create','put','delete','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./chatInternalMessage.controller','get'];(function(_0x28ee53,_0x24ffa4){var _0x41a5b2=function(_0x5369bf){while(--_0x5369bf){_0x28ee53['push'](_0x28ee53['shift']());}};_0x41a5b2(++_0x24ffa4);}(_0x80b3,0xe1));var _0x380b=function(_0x1f65b6,_0x56b38c){_0x1f65b6=_0x1f65b6-0x0;var _0xa7f02b=_0x80b3[_0x1f65b6];return _0xa7f02b;};'use strict';var multer=require(_0x380b('0x0'));var util=require(_0x380b('0x1'));var path=require(_0x380b('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x380b('0x3')]();var fs_extra=require(_0x380b('0x4'));var auth=require(_0x380b('0x5'));var interaction=require(_0x380b('0x6'));var config=require('../../config/environment');var controller=require(_0x380b('0x7'));router[_0x380b('0x8')]('/',auth[_0x380b('0x9')](),controller[_0x380b('0xa')]);router[_0x380b('0x8')]('/describe',auth[_0x380b('0x9')](),controller['describe']);router[_0x380b('0x8')]('/users',auth[_0x380b('0x9')](),controller[_0x380b('0xb')]);router['get'](_0x380b('0xc'),auth[_0x380b('0x9')](),controller[_0x380b('0xd')]);router['post']('/',auth[_0x380b('0x9')](),controller[_0x380b('0xe')]);router[_0x380b('0xf')](_0x380b('0xc'),controller['update']);router[_0x380b('0x10')](_0x380b('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0x380b('0x11')]=router;