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