Built motion from commit 1fd437e9.|2.6.19
[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 _0x6dfe=['path','Router','../../components/auth/service','../../components/interaction/service','./chatInternalMessage.controller','get','isAuthenticated','index','/describe','describe','/users','/:id','show','post','create','put','update','delete','exports','util'];(function(_0x569caa,_0x5174ce){var _0x44cb5a=function(_0x456df4){while(--_0x456df4){_0x569caa['push'](_0x569caa['shift']());}};_0x44cb5a(++_0x5174ce);}(_0x6dfe,0x1a3));var _0xe6df=function(_0x59bfb8,_0x5dde3f){_0x59bfb8=_0x59bfb8-0x0;var _0x428495=_0x6dfe[_0x59bfb8];return _0x428495;};'use strict';var multer=require('multer');var util=require(_0xe6df('0x0'));var path=require(_0xe6df('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe6df('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xe6df('0x3'));var interaction=require(_0xe6df('0x4'));var config=require('../../config/environment');var controller=require(_0xe6df('0x5'));router[_0xe6df('0x6')]('/',auth[_0xe6df('0x7')](),controller[_0xe6df('0x8')]);router[_0xe6df('0x6')](_0xe6df('0x9'),auth['isAuthenticated'](),controller[_0xe6df('0xa')]);router[_0xe6df('0x6')](_0xe6df('0xb'),auth[_0xe6df('0x7')](),controller['getUsers']);router[_0xe6df('0x6')](_0xe6df('0xc'),auth[_0xe6df('0x7')](),controller[_0xe6df('0xd')]);router[_0xe6df('0xe')]('/',auth[_0xe6df('0x7')](),controller[_0xe6df('0xf')]);router[_0xe6df('0x10')](_0xe6df('0xc'),controller[_0xe6df('0x11')]);router[_0xe6df('0x12')](_0xe6df('0xc'),auth[_0xe6df('0x7')](),controller['destroy']);module[_0xe6df('0x13')]=router;