e3eff5dec35e239f4bd080e08df4a7a8ea701686
[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 _0x18e5=['reject','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./openchannelMessage.controller','index','get','/describe','isAuthenticated','describe','/:id','post','tracked','openchannel','openchannelmessage:create','create','put','/:id/accept','accept','/:id/reject'];(function(_0x46698a,_0x8de1e4){var _0x356db0=function(_0x19e83c){while(--_0x19e83c){_0x46698a['push'](_0x46698a['shift']());}};_0x356db0(++_0x8de1e4);}(_0x18e5,0x116));var _0x518e=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x18e5[_0x19e35c];return _0x3e1fe8;};'use strict';var multer=require('multer');var util=require(_0x518e('0x0'));var path=require(_0x518e('0x1'));var timeout=require(_0x518e('0x2'));var express=require('express');var router=express[_0x518e('0x3')]();var auth=require(_0x518e('0x4'));var interaction=require(_0x518e('0x5'));var config=require('../../config/environment');var controller=require(_0x518e('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x518e('0x7')]);router[_0x518e('0x8')](_0x518e('0x9'),auth[_0x518e('0xa')](),controller[_0x518e('0xb')]);router[_0x518e('0x8')](_0x518e('0xc'),auth['isAuthenticated'](),controller['show']);router[_0x518e('0xd')]('/',auth[_0x518e('0xa')](),interaction[_0x518e('0xe')](_0x518e('0xf'),_0x518e('0x10')),controller[_0x518e('0x11')]);router[_0x518e('0x12')]('/:id',auth[_0x518e('0xa')](),controller['update']);router[_0x518e('0x12')](_0x518e('0x13'),auth[_0x518e('0xa')](),controller[_0x518e('0x14')]);router[_0x518e('0x12')](_0x518e('0x15'),auth[_0x518e('0xa')](),controller[_0x518e('0x16')]);router['delete'](_0x518e('0xc'),auth[_0x518e('0xa')](),controller[_0x518e('0x17')]);module[_0x518e('0x18')]=router;