Built motion from commit da24aabd.|2.6.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 _0x6001=['accept','/:id/reject','reject','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','/describe','isAuthenticated','describe','/:id','show','post','tracked','chat','chatmessage:create','create','put','update','/:id/accept'];(function(_0x11dc3a,_0x59fa38){var _0x52a9a1=function(_0x1f6515){while(--_0x1f6515){_0x11dc3a['push'](_0x11dc3a['shift']());}};_0x52a9a1(++_0x59fa38);}(_0x6001,0x1b5));var _0x1600=function(_0x24dfb7,_0x2bf1bf){_0x24dfb7=_0x24dfb7-0x0;var _0x525851=_0x6001[_0x24dfb7];return _0x525851;};'use strict';var multer=require(_0x1600('0x0'));var util=require(_0x1600('0x1'));var path=require('path');var timeout=require(_0x1600('0x2'));var express=require(_0x1600('0x3'));var router=express[_0x1600('0x4')]();var fs_extra=require(_0x1600('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x1600('0x6'));var config=require(_0x1600('0x7'));var controller=require('./chatMessage.controller');router[_0x1600('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x1600('0x8')](_0x1600('0x9'),auth[_0x1600('0xa')](),controller[_0x1600('0xb')]);router['get'](_0x1600('0xc'),auth[_0x1600('0xa')](),controller[_0x1600('0xd')]);router[_0x1600('0xe')]('/',auth[_0x1600('0xa')](),interaction[_0x1600('0xf')](_0x1600('0x10'),_0x1600('0x11')),controller[_0x1600('0x12')]);router[_0x1600('0x13')](_0x1600('0xc'),controller[_0x1600('0x14')]);router[_0x1600('0x13')](_0x1600('0x15'),auth[_0x1600('0xa')](),controller[_0x1600('0x16')]);router[_0x1600('0x13')](_0x1600('0x17'),auth[_0x1600('0xa')](),controller[_0x1600('0x18')]);router[_0x1600('0x19')](_0x1600('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0x1600('0x1a')]=router;