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