284eeccc376b44fe251c097b4b20a07daa7877f4
[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 _0x41f0=['chat','chatmessage:create','create','/:id','put','/:id/accept','/:id/reject','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./chatMessage.controller','isAuthenticated','index','get','/describe','show','post'];(function(_0x1fe396,_0x2426a0){var _0x5610b0=function(_0x2aed10){while(--_0x2aed10){_0x1fe396['push'](_0x1fe396['shift']());}};_0x5610b0(++_0x2426a0);}(_0x41f0,0x14e));var _0x041f=function(_0x32a916,_0x2be893){_0x32a916=_0x32a916-0x0;var _0x117189=_0x41f0[_0x32a916];return _0x117189;};'use strict';var multer=require(_0x041f('0x0'));var util=require(_0x041f('0x1'));var path=require(_0x041f('0x2'));var timeout=require(_0x041f('0x3'));var express=require(_0x041f('0x4'));var router=express[_0x041f('0x5')]();var fs_extra=require(_0x041f('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x041f('0x7'));var config=require(_0x041f('0x8'));var controller=require(_0x041f('0x9'));router['get']('/',auth[_0x041f('0xa')](),controller[_0x041f('0xb')]);router[_0x041f('0xc')](_0x041f('0xd'),auth['isAuthenticated'](),controller['describe']);router[_0x041f('0xc')]('/:id',auth[_0x041f('0xa')](),controller[_0x041f('0xe')]);router[_0x041f('0xf')]('/',auth['isAuthenticated'](),interaction['tracked'](_0x041f('0x10'),_0x041f('0x11')),controller[_0x041f('0x12')]);router['put'](_0x041f('0x13'),controller['update']);router[_0x041f('0x14')](_0x041f('0x15'),auth[_0x041f('0xa')](),controller['accept']);router['put'](_0x041f('0x16'),auth['isAuthenticated'](),controller['reject']);router['delete'](_0x041f('0x13'),auth['isAuthenticated'](),controller[_0x041f('0x17')]);module[_0x041f('0x18')]=router;