Built motion from commit 0555bc41.|2.5.41
[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 _0x15ba=['/:id/accept','accept','/:id/reject','delete','destroy','exports','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show','post','tracked','chat','chatmessage:create','create','put','update'];(function(_0x1f8ffb,_0x43a315){var _0x5b18e3=function(_0x2d5f19){while(--_0x2d5f19){_0x1f8ffb['push'](_0x1f8ffb['shift']());}};_0x5b18e3(++_0x43a315);}(_0x15ba,0x1af));var _0xa15b=function(_0x56e32e,_0x9eb2f6){_0x56e32e=_0x56e32e-0x0;var _0x2a757b=_0x15ba[_0x56e32e];return _0x2a757b;};'use strict';var multer=require('multer');var util=require(_0xa15b('0x0'));var path=require('path');var timeout=require(_0xa15b('0x1'));var express=require(_0xa15b('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xa15b('0x3'));var interaction=require(_0xa15b('0x4'));var config=require(_0xa15b('0x5'));var controller=require('./chatMessage.controller');router[_0xa15b('0x6')]('/',auth[_0xa15b('0x7')](),controller['index']);router[_0xa15b('0x6')](_0xa15b('0x8'),auth[_0xa15b('0x7')](),controller[_0xa15b('0x9')]);router['get'](_0xa15b('0xa'),auth[_0xa15b('0x7')](),controller[_0xa15b('0xb')]);router[_0xa15b('0xc')]('/',auth[_0xa15b('0x7')](),interaction[_0xa15b('0xd')](_0xa15b('0xe'),_0xa15b('0xf')),controller[_0xa15b('0x10')]);router[_0xa15b('0x11')](_0xa15b('0xa'),controller[_0xa15b('0x12')]);router[_0xa15b('0x11')](_0xa15b('0x13'),auth['isAuthenticated'](),controller[_0xa15b('0x14')]);router[_0xa15b('0x11')](_0xa15b('0x15'),auth['isAuthenticated'](),controller['reject']);router[_0xa15b('0x16')](_0xa15b('0xa'),auth[_0xa15b('0x7')](),controller[_0xa15b('0x17')]);module[_0xa15b('0x18')]=router;