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