1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x416f=['openchannel','create','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','multer','path','connect-timeout','Router','../../config/environment','isAuthenticated','index','get','/describe','describe','/:id','show','post','tracked'];(function(_0x1cbfe9,_0x1d16dc){var _0x160c37=function(_0x33ea07){while(--_0x33ea07){_0x1cbfe9['push'](_0x1cbfe9['shift']());}};_0x160c37(++_0x1d16dc);}(_0x416f,0x142));var _0xf416=function(_0x4ab3c4,_0x16c6c3){_0x4ab3c4=_0x4ab3c4-0x0;var _0x44f309=_0x416f[_0x4ab3c4];return _0x44f309;};'use strict';var multer=require(_0xf416('0x0'));var util=require('util');var path=require(_0xf416('0x1'));var timeout=require(_0xf416('0x2'));var express=require('express');var router=express[_0xf416('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xf416('0x4'));var controller=require('./openchannelMessage.controller');router['get']('/',auth[_0xf416('0x5')](),controller[_0xf416('0x6')]);router[_0xf416('0x7')](_0xf416('0x8'),auth['isAuthenticated'](),controller[_0xf416('0x9')]);router[_0xf416('0x7')](_0xf416('0xa'),auth['isAuthenticated'](),controller[_0xf416('0xb')]);router[_0xf416('0xc')]('/',auth[_0xf416('0x5')](),interaction[_0xf416('0xd')](_0xf416('0xe'),'openchannelmessage:create'),controller[_0xf416('0xf')]);router[_0xf416('0x10')](_0xf416('0xa'),auth[_0xf416('0x5')](),controller['update']);router[_0xf416('0x10')](_0xf416('0x11'),auth['isAuthenticated'](),controller[_0xf416('0x12')]);router[_0xf416('0x10')](_0xf416('0x13'),auth['isAuthenticated'](),controller[_0xf416('0x14')]);router[_0xf416('0x15')](_0xf416('0xa'),auth[_0xf416('0x5')](),controller[_0xf416('0x16')]);module[_0xf416('0x17')]=router;