38954b9b4546bea36cd2a36a998b01817f54472b
[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 _0x69d4=['path','connect-timeout','../../components/interaction/service','isAuthenticated','get','describe','/:id','show','post','tracked','openchannel','put','update','accept','/:id/reject','reject','delete','exports','multer','util'];(function(_0x22f8ab,_0x15d8ff){var _0x2a70e5=function(_0x5e6895){while(--_0x5e6895){_0x22f8ab['push'](_0x22f8ab['shift']());}};_0x2a70e5(++_0x15d8ff);}(_0x69d4,0x152));var _0x469d=function(_0x3fb030,_0x12aebe){_0x3fb030=_0x3fb030-0x0;var _0xd6899b=_0x69d4[_0x3fb030];return _0xd6899b;};'use strict';var multer=require(_0x469d('0x0'));var util=require(_0x469d('0x1'));var path=require(_0x469d('0x2'));var timeout=require(_0x469d('0x3'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x469d('0x4'));var config=require('../../config/environment');var controller=require('./openchannelMessage.controller');router['get']('/',auth[_0x469d('0x5')](),controller['index']);router[_0x469d('0x6')]('/describe',auth[_0x469d('0x5')](),controller[_0x469d('0x7')]);router[_0x469d('0x6')](_0x469d('0x8'),auth['isAuthenticated'](),controller[_0x469d('0x9')]);router[_0x469d('0xa')]('/',auth[_0x469d('0x5')](),interaction[_0x469d('0xb')](_0x469d('0xc'),'openchannelmessage:create'),controller['create']);router[_0x469d('0xd')](_0x469d('0x8'),auth[_0x469d('0x5')](),controller[_0x469d('0xe')]);router[_0x469d('0xd')]('/:id/accept',auth[_0x469d('0x5')](),controller[_0x469d('0xf')]);router[_0x469d('0xd')](_0x469d('0x10'),auth[_0x469d('0x5')](),controller[_0x469d('0x11')]);router[_0x469d('0x12')](_0x469d('0x8'),auth['isAuthenticated'](),controller['destroy']);module[_0x469d('0x13')]=router;