Built motion from commit 43538d75.|2.5.35
[motion2.git] / server / api / chatMessage / 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 _0x37f0=['connect-timeout','express','Router','fs-extra','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show','post','tracked','chat','chatmessage:create','update','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports'];(function(_0x4e221e,_0x22329a){var _0x2297eb=function(_0x59a4cd){while(--_0x59a4cd){_0x4e221e['push'](_0x4e221e['shift']());}};_0x2297eb(++_0x22329a);}(_0x37f0,0xd8));var _0x037f=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0x37f0[_0x2b4411];return _0x8e41ef;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x037f('0x0'));var express=require(_0x037f('0x1'));var router=express[_0x037f('0x2')]();var fs_extra=require(_0x037f('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x037f('0x4'));var controller=require('./chatMessage.controller');router[_0x037f('0x5')]('/',auth[_0x037f('0x6')](),controller['index']);router[_0x037f('0x5')](_0x037f('0x7'),auth['isAuthenticated'](),controller[_0x037f('0x8')]);router[_0x037f('0x5')](_0x037f('0x9'),auth[_0x037f('0x6')](),controller[_0x037f('0xa')]);router[_0x037f('0xb')]('/',auth[_0x037f('0x6')](),interaction[_0x037f('0xc')](_0x037f('0xd'),_0x037f('0xe')),controller['create']);router['put'](_0x037f('0x9'),controller[_0x037f('0xf')]);router[_0x037f('0x10')](_0x037f('0x11'),auth[_0x037f('0x6')](),controller[_0x037f('0x12')]);router[_0x037f('0x10')](_0x037f('0x13'),auth['isAuthenticated'](),controller[_0x037f('0x14')]);router[_0x037f('0x15')](_0x037f('0x9'),auth[_0x037f('0x6')](),controller[_0x037f('0x16')]);module[_0x037f('0x17')]=router;