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