72766f9b90c08c277bcf48d4188e726120a71372
[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 _0x9b54=['chat','chatmessage:create','create','update','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','multer','express','Router','../../components/auth/service','../../config/environment','./chatMessage.controller','isAuthenticated','index','get','/describe','describe','show','post','tracked'];(function(_0x3ff091,_0x2b0f1c){var _0x141fd7=function(_0x4f8554){while(--_0x4f8554){_0x3ff091['push'](_0x3ff091['shift']());}};_0x141fd7(++_0x2b0f1c);}(_0x9b54,0x19b));var _0x49b5=function(_0x18f898,_0x448fc3){_0x18f898=_0x18f898-0x0;var _0x4ca3c0=_0x9b54[_0x18f898];return _0x4ca3c0;};'use strict';var multer=require(_0x49b5('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x49b5('0x1'));var router=express[_0x49b5('0x2')]();var auth=require(_0x49b5('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x49b5('0x4'));var controller=require(_0x49b5('0x5'));router['get']('/',auth[_0x49b5('0x6')](),controller[_0x49b5('0x7')]);router[_0x49b5('0x8')](_0x49b5('0x9'),auth[_0x49b5('0x6')](),controller[_0x49b5('0xa')]);router[_0x49b5('0x8')]('/:id',auth[_0x49b5('0x6')](),controller[_0x49b5('0xb')]);router[_0x49b5('0xc')]('/',auth[_0x49b5('0x6')](),interaction[_0x49b5('0xd')](_0x49b5('0xe'),_0x49b5('0xf')),controller[_0x49b5('0x10')]);router['put']('/:id',controller[_0x49b5('0x11')]);router[_0x49b5('0x12')](_0x49b5('0x13'),auth[_0x49b5('0x6')](),controller[_0x49b5('0x14')]);router[_0x49b5('0x12')](_0x49b5('0x15'),auth[_0x49b5('0x6')](),controller[_0x49b5('0x16')]);router[_0x49b5('0x17')]('/:id',auth[_0x49b5('0x6')](),controller[_0x49b5('0x18')]);module['exports']=router;