Built motion from commit (unavailable).|2.5.1
[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 _0x8a82=['Router','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','post','tracked','chat','chatmessage:create','create','update','accept','put','reject','delete','destroy','multer','connect-timeout','express'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x8a82,0x70));var _0x28a8=function(_0x46ea74,_0x148f26){_0x46ea74=_0x46ea74-0x0;var _0x35c2c0=_0x8a82[_0x46ea74];return _0x35c2c0;};'use strict';var multer=require(_0x28a8('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x28a8('0x1'));var express=require(_0x28a8('0x2'));var router=express[_0x28a8('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x28a8('0x4'));var controller=require('./chatMessage.controller');router[_0x28a8('0x5')]('/',auth[_0x28a8('0x6')](),controller[_0x28a8('0x7')]);router[_0x28a8('0x5')](_0x28a8('0x8'),auth[_0x28a8('0x6')](),controller[_0x28a8('0x9')]);router[_0x28a8('0x5')](_0x28a8('0xa'),auth[_0x28a8('0x6')](),controller[_0x28a8('0xb')]);router[_0x28a8('0xc')]('/',auth[_0x28a8('0x6')](),interaction[_0x28a8('0xd')](_0x28a8('0xe'),_0x28a8('0xf')),controller[_0x28a8('0x10')]);router['put'](_0x28a8('0xa'),controller[_0x28a8('0x11')]);router['put']('/:id/accept',auth[_0x28a8('0x6')](),controller[_0x28a8('0x12')]);router[_0x28a8('0x13')]('/:id/reject',auth[_0x28a8('0x6')](),controller[_0x28a8('0x14')]);router[_0x28a8('0x15')](_0x28a8('0xa'),auth[_0x28a8('0x6')](),controller[_0x28a8('0x16')]);module['exports']=router;