Built motion from commit (unavailable).|2.5.8
[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 _0x25c1=['reject','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','tracked','chat','chatmessage:create','create','put','update','/:id/accept','accept','/:id/reject'];(function(_0x3f7598,_0x212e37){var _0x51fb16=function(_0x4a5c0b){while(--_0x4a5c0b){_0x3f7598['push'](_0x3f7598['shift']());}};_0x51fb16(++_0x212e37);}(_0x25c1,0x90));var _0x125c=function(_0x201af5,_0xc91123){_0x201af5=_0x201af5-0x0;var _0x35c62f=_0x25c1[_0x201af5];return _0x35c62f;};'use strict';var multer=require(_0x125c('0x0'));var util=require(_0x125c('0x1'));var path=require(_0x125c('0x2'));var timeout=require('connect-timeout');var express=require(_0x125c('0x3'));var router=express[_0x125c('0x4')]();var auth=require(_0x125c('0x5'));var interaction=require(_0x125c('0x6'));var config=require(_0x125c('0x7'));var controller=require('./chatMessage.controller');router[_0x125c('0x8')]('/',auth[_0x125c('0x9')](),controller[_0x125c('0xa')]);router[_0x125c('0x8')](_0x125c('0xb'),auth[_0x125c('0x9')](),controller[_0x125c('0xc')]);router[_0x125c('0x8')](_0x125c('0xd'),auth['isAuthenticated'](),controller[_0x125c('0xe')]);router['post']('/',auth['isAuthenticated'](),interaction[_0x125c('0xf')](_0x125c('0x10'),_0x125c('0x11')),controller[_0x125c('0x12')]);router[_0x125c('0x13')](_0x125c('0xd'),controller[_0x125c('0x14')]);router[_0x125c('0x13')](_0x125c('0x15'),auth[_0x125c('0x9')](),controller[_0x125c('0x16')]);router[_0x125c('0x13')](_0x125c('0x17'),auth[_0x125c('0x9')](),controller[_0x125c('0x18')]);router[_0x125c('0x19')](_0x125c('0xd'),auth[_0x125c('0x9')](),controller[_0x125c('0x1a')]);module[_0x125c('0x1b')]=router;