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