ba6279137c1505c02cfee06d284332a1e7573f0d
[motion2.git] / server / api / openchannelMessage / 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 _0x75cf=['update','accept','/:id/reject','delete','destroy','multer','util','express','../../components/interaction/service','get','isAuthenticated','/describe','describe','post','tracked','openchannelmessage:create','put','/:id'];(function(_0x52e64,_0x6ba4e8){var _0x282b80=function(_0xc11939){while(--_0xc11939){_0x52e64['push'](_0x52e64['shift']());}};_0x282b80(++_0x6ba4e8);}(_0x75cf,0xcb));var _0xf75c=function(_0x330550,_0x47cc7a){_0x330550=_0x330550-0x0;var _0x2f5443=_0x75cf[_0x330550];return _0x2f5443;};'use strict';var multer=require(_0xf75c('0x0'));var util=require(_0xf75c('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xf75c('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xf75c('0x3'));var config=require('../../config/environment');var controller=require('./openchannelMessage.controller');router[_0xf75c('0x4')]('/',auth[_0xf75c('0x5')](),controller['index']);router[_0xf75c('0x4')](_0xf75c('0x6'),auth[_0xf75c('0x5')](),controller[_0xf75c('0x7')]);router[_0xf75c('0x4')]('/:id',auth[_0xf75c('0x5')](),controller['show']);router[_0xf75c('0x8')]('/',auth[_0xf75c('0x5')](),interaction[_0xf75c('0x9')]('openchannel',_0xf75c('0xa')),controller['create']);router[_0xf75c('0xb')](_0xf75c('0xc'),auth[_0xf75c('0x5')](),controller[_0xf75c('0xd')]);router[_0xf75c('0xb')]('/:id/accept',auth['isAuthenticated'](),controller[_0xf75c('0xe')]);router['put'](_0xf75c('0xf'),auth[_0xf75c('0x5')](),controller['reject']);router[_0xf75c('0x10')](_0xf75c('0xc'),auth[_0xf75c('0x5')](),controller[_0xf75c('0x11')]);module['exports']=router;