Built motion from commit (unavailable).|2.5.0
[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 _0xefd8=['put','update','/:id/accept','accept','/:id/reject','reject','delete','exports','multer','path','connect-timeout','../../components/auth/service','../../components/interaction/service','./chatMessage.controller','get','isAuthenticated','describe','/:id','tracked','create'];(function(_0x346411,_0x583228){var _0x13a18e=function(_0x5e4361){while(--_0x5e4361){_0x346411['push'](_0x346411['shift']());}};_0x13a18e(++_0x583228);}(_0xefd8,0x1e8));var _0x8efd=function(_0x486338,_0x2ab3f9){_0x486338=_0x486338-0x0;var _0x4c8298=_0xefd8[_0x486338];return _0x4c8298;};'use strict';var multer=require(_0x8efd('0x0'));var util=require('util');var path=require(_0x8efd('0x1'));var timeout=require(_0x8efd('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0x8efd('0x3'));var interaction=require(_0x8efd('0x4'));var config=require('../../config/environment');var controller=require(_0x8efd('0x5'));router[_0x8efd('0x6')]('/',auth[_0x8efd('0x7')](),controller['index']);router['get']('/describe',auth['isAuthenticated'](),controller[_0x8efd('0x8')]);router[_0x8efd('0x6')](_0x8efd('0x9'),auth[_0x8efd('0x7')](),controller['show']);router['post']('/',auth['isAuthenticated'](),interaction[_0x8efd('0xa')]('chat','chatmessage:create'),controller[_0x8efd('0xb')]);router[_0x8efd('0xc')](_0x8efd('0x9'),controller[_0x8efd('0xd')]);router['put'](_0x8efd('0xe'),auth['isAuthenticated'](),controller[_0x8efd('0xf')]);router[_0x8efd('0xc')](_0x8efd('0x10'),auth['isAuthenticated'](),controller[_0x8efd('0x11')]);router[_0x8efd('0x12')](_0x8efd('0x9'),auth[_0x8efd('0x7')](),controller['destroy']);module[_0x8efd('0x13')]=router;