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 _0x47ea=['post','tracked','openchannel','openchannelmessage:create','create','put','update','/:id/accept','accept','util','path','express','Router','../../components/interaction/service','../../config/environment','./openchannelMessage.controller','index','isAuthenticated','get','/:id','show'];(function(_0x47448d,_0x22572e){var _0x210602=function(_0x2b3763){while(--_0x2b3763){_0x47448d['push'](_0x47448d['shift']());}};_0x210602(++_0x22572e);}(_0x47ea,0x87));var _0xa47e=function(_0x226ad1,_0x2858e2){_0x226ad1=_0x226ad1-0x0;var _0x16b625=_0x47ea[_0x226ad1];return _0x16b625;};'use strict';var multer=require('multer');var util=require(_0xa47e('0x0'));var path=require(_0xa47e('0x1'));var timeout=require('connect-timeout');var express=require(_0xa47e('0x2'));var router=express[_0xa47e('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xa47e('0x4'));var config=require(_0xa47e('0x5'));var controller=require(_0xa47e('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0xa47e('0x7')]);router['get']('/describe',auth[_0xa47e('0x8')](),controller['describe']);router[_0xa47e('0x9')](_0xa47e('0xa'),auth[_0xa47e('0x8')](),controller[_0xa47e('0xb')]);router[_0xa47e('0xc')]('/',auth[_0xa47e('0x8')](),interaction[_0xa47e('0xd')](_0xa47e('0xe'),_0xa47e('0xf')),controller[_0xa47e('0x10')]);router[_0xa47e('0x11')]('/:id',auth['isAuthenticated'](),controller[_0xa47e('0x12')]);router[_0xa47e('0x11')](_0xa47e('0x13'),auth[_0xa47e('0x8')](),controller[_0xa47e('0x14')]);router[_0xa47e('0x11')]('/:id/reject',auth[_0xa47e('0x8')](),controller['reject']);router['delete'](_0xa47e('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;