Built motion from commit d301b742.|2.6.29
[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 _0x33f3=['./chatInternalMessage.controller','isAuthenticated','index','get','/describe','describe','/users','getUsers','/:id','show','create','put','update','delete','exports','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service'];(function(_0x5b27da,_0x4a6532){var _0x3254f4=function(_0x4194c6){while(--_0x4194c6){_0x5b27da['push'](_0x5b27da['shift']());}};_0x3254f4(++_0x4a6532);}(_0x33f3,0x189));var _0x333f=function(_0x66c899,_0x1875f9){_0x66c899=_0x66c899-0x0;var _0x3efd33=_0x33f3[_0x66c899];return _0x3efd33;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x333f('0x0'));var timeout=require(_0x333f('0x1'));var express=require(_0x333f('0x2'));var router=express[_0x333f('0x3')]();var fs_extra=require(_0x333f('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x333f('0x5'));var config=require('../../config/environment');var controller=require(_0x333f('0x6'));router['get']('/',auth[_0x333f('0x7')](),controller[_0x333f('0x8')]);router[_0x333f('0x9')](_0x333f('0xa'),auth['isAuthenticated'](),controller[_0x333f('0xb')]);router[_0x333f('0x9')](_0x333f('0xc'),auth[_0x333f('0x7')](),controller[_0x333f('0xd')]);router[_0x333f('0x9')](_0x333f('0xe'),auth['isAuthenticated'](),controller[_0x333f('0xf')]);router['post']('/',auth[_0x333f('0x7')](),controller[_0x333f('0x10')]);router[_0x333f('0x11')](_0x333f('0xe'),controller[_0x333f('0x12')]);router[_0x333f('0x13')](_0x333f('0xe'),auth[_0x333f('0x7')](),controller['destroy']);module[_0x333f('0x14')]=router;