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