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