Built motion from commit 1fa89557.|2.6.10
[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 _0x6c9f=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','./chatMessage.controller','get','isAuthenticated','index','/describe','/:id','post','chat','chatmessage:create','create','put','update','/:id/accept','/:id/reject','reject','destroy','util','path','connect-timeout','express'];(function(_0x4adc05,_0x185bea){var _0x2aa66f=function(_0x49da90){while(--_0x49da90){_0x4adc05['push'](_0x4adc05['shift']());}};_0x2aa66f(++_0x185bea);}(_0x6c9f,0x74));var _0xf6c9=function(_0x2a2c8a,_0x3a3b2d){_0x2a2c8a=_0x2a2c8a-0x0;var _0x584269=_0x6c9f[_0x2a2c8a];return _0x584269;};'use strict';var multer=require('multer');var util=require(_0xf6c9('0x0'));var path=require(_0xf6c9('0x1'));var timeout=require(_0xf6c9('0x2'));var express=require(_0xf6c9('0x3'));var router=express[_0xf6c9('0x4')]();var fs_extra=require(_0xf6c9('0x5'));var auth=require(_0xf6c9('0x6'));var interaction=require(_0xf6c9('0x7'));var config=require('../../config/environment');var controller=require(_0xf6c9('0x8'));router[_0xf6c9('0x9')]('/',auth[_0xf6c9('0xa')](),controller[_0xf6c9('0xb')]);router[_0xf6c9('0x9')](_0xf6c9('0xc'),auth[_0xf6c9('0xa')](),controller['describe']);router[_0xf6c9('0x9')](_0xf6c9('0xd'),auth[_0xf6c9('0xa')](),controller['show']);router[_0xf6c9('0xe')]('/',auth['isAuthenticated'](),interaction['tracked'](_0xf6c9('0xf'),_0xf6c9('0x10')),controller[_0xf6c9('0x11')]);router[_0xf6c9('0x12')]('/:id',controller[_0xf6c9('0x13')]);router[_0xf6c9('0x12')](_0xf6c9('0x14'),auth[_0xf6c9('0xa')](),controller['accept']);router['put'](_0xf6c9('0x15'),auth[_0xf6c9('0xa')](),controller[_0xf6c9('0x16')]);router['delete'](_0xf6c9('0xd'),auth[_0xf6c9('0xa')](),controller[_0xf6c9('0x17')]);module['exports']=router;