87805af6e64bd3985fe5685bf2fcb6e00e9991f3
[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 _0x2d1b=['get','isAuthenticated','index','/describe','describe','/:id','show','post','tracked','chatmessage:create','create','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller'];(function(_0x4099ee,_0x38495a){var _0x1b7bfc=function(_0x5f5388){while(--_0x5f5388){_0x4099ee['push'](_0x4099ee['shift']());}};_0x1b7bfc(++_0x38495a);}(_0x2d1b,0x12b));var _0xb2d1=function(_0x1b04d2,_0x43190c){_0x1b04d2=_0x1b04d2-0x0;var _0x95da=_0x2d1b[_0x1b04d2];return _0x95da;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb2d1('0x0'));var timeout=require(_0xb2d1('0x1'));var express=require(_0xb2d1('0x2'));var router=express[_0xb2d1('0x3')]();var fs_extra=require(_0xb2d1('0x4'));var auth=require(_0xb2d1('0x5'));var interaction=require(_0xb2d1('0x6'));var config=require(_0xb2d1('0x7'));var controller=require(_0xb2d1('0x8'));router[_0xb2d1('0x9')]('/',auth[_0xb2d1('0xa')](),controller[_0xb2d1('0xb')]);router['get'](_0xb2d1('0xc'),auth['isAuthenticated'](),controller[_0xb2d1('0xd')]);router[_0xb2d1('0x9')](_0xb2d1('0xe'),auth['isAuthenticated'](),controller[_0xb2d1('0xf')]);router[_0xb2d1('0x10')]('/',auth['isAuthenticated'](),interaction[_0xb2d1('0x11')]('chat',_0xb2d1('0x12')),controller[_0xb2d1('0x13')]);router[_0xb2d1('0x14')]('/:id',controller['update']);router[_0xb2d1('0x14')](_0xb2d1('0x15'),auth[_0xb2d1('0xa')](),controller[_0xb2d1('0x16')]);router[_0xb2d1('0x14')](_0xb2d1('0x17'),auth[_0xb2d1('0xa')](),controller[_0xb2d1('0x18')]);router[_0xb2d1('0x19')](_0xb2d1('0xe'),auth[_0xb2d1('0xa')](),controller[_0xb2d1('0x1a')]);module[_0xb2d1('0x1b')]=router;