Built motion from commit ab870f9e.|2.5.44
[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 _0x05a1=['path','Router','fs-extra','../../components/auth/service','../../config/environment','./chatInternalMessage.controller','isAuthenticated','index','get','describe','getUsers','/:id','show','post','create','put','delete','destroy','exports'];(function(_0x45096e,_0x17e82d){var _0xba1fa3=function(_0x29f43c){while(--_0x29f43c){_0x45096e['push'](_0x45096e['shift']());}};_0xba1fa3(++_0x17e82d);}(_0x05a1,0x72));var _0x105a=function(_0x190a12,_0x28e9e8){_0x190a12=_0x190a12-0x0;var _0x371e5f=_0x05a1[_0x190a12];return _0x371e5f;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x105a('0x0'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x105a('0x1')]();var fs_extra=require(_0x105a('0x2'));var auth=require(_0x105a('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x105a('0x4'));var controller=require(_0x105a('0x5'));router['get']('/',auth[_0x105a('0x6')](),controller[_0x105a('0x7')]);router[_0x105a('0x8')]('/describe',auth['isAuthenticated'](),controller[_0x105a('0x9')]);router[_0x105a('0x8')]('/users',auth[_0x105a('0x6')](),controller[_0x105a('0xa')]);router[_0x105a('0x8')](_0x105a('0xb'),auth[_0x105a('0x6')](),controller[_0x105a('0xc')]);router[_0x105a('0xd')]('/',auth[_0x105a('0x6')](),controller[_0x105a('0xe')]);router[_0x105a('0xf')](_0x105a('0xb'),controller['update']);router[_0x105a('0x10')]('/:id',auth[_0x105a('0x6')](),controller[_0x105a('0x11')]);module[_0x105a('0x12')]=router;