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 _0x9752=['exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./openchannelInteraction.controller','get','index','/describe','describe','/:id/messages','/:id/download','isAuthenticated','download','create','post','addMessage','/:id/tags','tracked','openchannel','openchannelinteraction:addtags','addTags','/:id','update','delete','openchannelinteraction:destroy','destroy','removeTags'];(function(_0x4f680c,_0x292aba){var _0x5326b2=function(_0xaccea0){while(--_0xaccea0){_0x4f680c['push'](_0x4f680c['shift']());}};_0x5326b2(++_0x292aba);}(_0x9752,0x1a5));var _0x2975=function(_0x163137,_0x1683be){_0x163137=_0x163137-0x0;var _0x12bc6d=_0x9752[_0x163137];return _0x12bc6d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x2975('0x0'));var timeout=require(_0x2975('0x1'));var express=require('express');var router=express[_0x2975('0x2')]();var fs_extra=require(_0x2975('0x3'));var auth=require(_0x2975('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x2975('0x5'));var controller=require(_0x2975('0x6'));router[_0x2975('0x7')]('/',auth['isAuthenticated'](),controller[_0x2975('0x8')]);router[_0x2975('0x7')](_0x2975('0x9'),auth['isAuthenticated'](),controller[_0x2975('0xa')]);router[_0x2975('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router['get'](_0x2975('0xb'),auth['isAuthenticated'](),controller['getMessages']);router[_0x2975('0x7')](_0x2975('0xc'),auth[_0x2975('0xd')](),controller[_0x2975('0xe')]);router['post']('/',auth[_0x2975('0xd')](),controller[_0x2975('0xf')]);router[_0x2975('0x10')]('/:id/messages',auth[_0x2975('0xd')](),controller[_0x2975('0x11')]);router['post'](_0x2975('0x12'),auth[_0x2975('0xd')](),interaction[_0x2975('0x13')](_0x2975('0x14'),_0x2975('0x15')),controller[_0x2975('0x16')]);router['put'](_0x2975('0x17'),auth[_0x2975('0xd')](),interaction[_0x2975('0x13')](_0x2975('0x14'),'openchannelinteraction:update'),controller[_0x2975('0x18')]);router[_0x2975('0x19')](_0x2975('0x17'),auth['isAuthenticated'](),interaction[_0x2975('0x13')]('openchannel',_0x2975('0x1a')),controller[_0x2975('0x1b')]);router[_0x2975('0x19')]('/:id/tags',auth[_0x2975('0xd')](),controller[_0x2975('0x1c')]);module[_0x2975('0x1d')]=router;