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