Built motion from commit 953226e6.|2.6.32
[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 _0xa189=['destroy','exports','multer','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','post','chat','chatmessage:create','create','put','update','/:id/accept','accept','/:id/reject','reject','delete'];(function(_0x53ccf2,_0x13cb67){var _0x5a2964=function(_0x3b0514){while(--_0x3b0514){_0x53ccf2['push'](_0x53ccf2['shift']());}};_0x5a2964(++_0x13cb67);}(_0xa189,0xea));var _0x9a18=function(_0x35865f,_0x1e6ec1){_0x35865f=_0x35865f-0x0;var _0x13bd8f=_0xa189[_0x35865f];return _0x13bd8f;};'use strict';var multer=require(_0x9a18('0x0'));var util=require(_0x9a18('0x1'));var path=require(_0x9a18('0x2'));var timeout=require('connect-timeout');var express=require(_0x9a18('0x3'));var router=express[_0x9a18('0x4')]();var fs_extra=require(_0x9a18('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x9a18('0x6'));var config=require(_0x9a18('0x7'));var controller=require(_0x9a18('0x8'));router[_0x9a18('0x9')]('/',auth[_0x9a18('0xa')](),controller[_0x9a18('0xb')]);router['get'](_0x9a18('0xc'),auth[_0x9a18('0xa')](),controller[_0x9a18('0xd')]);router[_0x9a18('0x9')](_0x9a18('0xe'),auth[_0x9a18('0xa')](),controller[_0x9a18('0xf')]);router[_0x9a18('0x10')]('/',auth[_0x9a18('0xa')](),interaction['tracked'](_0x9a18('0x11'),_0x9a18('0x12')),controller[_0x9a18('0x13')]);router[_0x9a18('0x14')]('/:id',controller[_0x9a18('0x15')]);router[_0x9a18('0x14')](_0x9a18('0x16'),auth[_0x9a18('0xa')](),controller[_0x9a18('0x17')]);router['put'](_0x9a18('0x18'),auth[_0x9a18('0xa')](),controller[_0x9a18('0x19')]);router[_0x9a18('0x1a')]('/:id',auth['isAuthenticated'](),controller[_0x9a18('0x1b')]);module[_0x9a18('0x1c')]=router;