Built motion from commit c0cdc9d8.|2.6.28
[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 _0x05ef=['/users','getUsers','/:id','show','post','create','update','delete','exports','multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe'];(function(_0x3740fe,_0x6c543c){var _0x55492b=function(_0x1f851f){while(--_0x1f851f){_0x3740fe['push'](_0x3740fe['shift']());}};_0x55492b(++_0x6c543c);}(_0x05ef,0xb9));var _0xf05e=function(_0x21549c,_0x6d64d1){_0x21549c=_0x21549c-0x0;var _0x426cbd=_0x05ef[_0x21549c];return _0x426cbd;};'use strict';var multer=require(_0xf05e('0x0'));var util=require(_0xf05e('0x1'));var path=require(_0xf05e('0x2'));var timeout=require('connect-timeout');var express=require(_0xf05e('0x3'));var router=express[_0xf05e('0x4')]();var fs_extra=require(_0xf05e('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xf05e('0x6'));var config=require(_0xf05e('0x7'));var controller=require('./chatInternalMessage.controller');router[_0xf05e('0x8')]('/',auth[_0xf05e('0x9')](),controller[_0xf05e('0xa')]);router['get'](_0xf05e('0xb'),auth[_0xf05e('0x9')](),controller[_0xf05e('0xc')]);router['get'](_0xf05e('0xd'),auth[_0xf05e('0x9')](),controller[_0xf05e('0xe')]);router[_0xf05e('0x8')](_0xf05e('0xf'),auth[_0xf05e('0x9')](),controller[_0xf05e('0x10')]);router[_0xf05e('0x11')]('/',auth['isAuthenticated'](),controller[_0xf05e('0x12')]);router['put'](_0xf05e('0xf'),controller[_0xf05e('0x13')]);router[_0xf05e('0x14')](_0xf05e('0xf'),auth[_0xf05e('0x9')](),controller['destroy']);module[_0xf05e('0x15')]=router;