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