Built motion from commit (unavailable).|2.5.6
[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 _0x073a=['/describe','describe','tracked','chat','put','/:id','accept','/:id/reject','destroy','multer','util','connect-timeout','express','Router','../../config/environment','./chatMessage.controller','get','isAuthenticated','index'];(function(_0x366e99,_0x15d82d){var _0x180bbe=function(_0x282498){while(--_0x282498){_0x366e99['push'](_0x366e99['shift']());}};_0x180bbe(++_0x15d82d);}(_0x073a,0x198));var _0xa073=function(_0x31030b,_0x4aba61){_0x31030b=_0x31030b-0x0;var _0x3880e8=_0x073a[_0x31030b];return _0x3880e8;};'use strict';var multer=require(_0xa073('0x0'));var util=require(_0xa073('0x1'));var path=require('path');var timeout=require(_0xa073('0x2'));var express=require(_0xa073('0x3'));var router=express[_0xa073('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa073('0x5'));var controller=require(_0xa073('0x6'));router[_0xa073('0x7')]('/',auth[_0xa073('0x8')](),controller[_0xa073('0x9')]);router[_0xa073('0x7')](_0xa073('0xa'),auth[_0xa073('0x8')](),controller[_0xa073('0xb')]);router[_0xa073('0x7')]('/:id',auth[_0xa073('0x8')](),controller['show']);router['post']('/',auth['isAuthenticated'](),interaction[_0xa073('0xc')](_0xa073('0xd'),'chatmessage:create'),controller['create']);router[_0xa073('0xe')](_0xa073('0xf'),controller['update']);router[_0xa073('0xe')]('/:id/accept',auth[_0xa073('0x8')](),controller[_0xa073('0x10')]);router[_0xa073('0xe')](_0xa073('0x11'),auth[_0xa073('0x8')](),controller['reject']);router['delete'](_0xa073('0xf'),auth['isAuthenticated'](),controller[_0xa073('0x12')]);module['exports']=router;