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 _0xda69=['Router','../../components/auth/service','../../components/interaction/service','./openchannelMessage.controller','isAuthenticated','index','get','/describe','describe','openchannel','openchannelmessage:create','put','/:id/accept','accept','reject','delete','/:id','destroy','multer','express'];(function(_0x4e8401,_0x51b328){var _0x17269f=function(_0x35ac65){while(--_0x35ac65){_0x4e8401['push'](_0x4e8401['shift']());}};_0x17269f(++_0x51b328);}(_0xda69,0x1de));var _0x9da6=function(_0x46ae5a,_0x2a38d0){_0x46ae5a=_0x46ae5a-0x0;var _0x434986=_0xda69[_0x46ae5a];return _0x434986;};'use strict';var multer=require(_0x9da6('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9da6('0x1'));var router=express[_0x9da6('0x2')]();var auth=require(_0x9da6('0x3'));var interaction=require(_0x9da6('0x4'));var config=require('../../config/environment');var controller=require(_0x9da6('0x5'));router['get']('/',auth[_0x9da6('0x6')](),controller[_0x9da6('0x7')]);router[_0x9da6('0x8')](_0x9da6('0x9'),auth[_0x9da6('0x6')](),controller[_0x9da6('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x9da6('0x6')](),interaction['tracked'](_0x9da6('0xb'),_0x9da6('0xc')),controller['create']);router['put']('/:id',auth[_0x9da6('0x6')](),controller['update']);router[_0x9da6('0xd')](_0x9da6('0xe'),auth['isAuthenticated'](),controller[_0x9da6('0xf')]);router[_0x9da6('0xd')]('/:id/reject',auth['isAuthenticated'](),controller[_0x9da6('0x10')]);router[_0x9da6('0x11')](_0x9da6('0x12'),auth[_0x9da6('0x6')](),controller[_0x9da6('0x13')]);module['exports']=router;