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 _0xd21e=['post','chat','chatmessage:create','put','accept','/:id/reject','reject','destroy','multer','util','path','connect-timeout','express','Router','../../config/environment','./chatMessage.controller','get','index','/describe','isAuthenticated','describe','/:id','show'];(function(_0x420b42,_0x2cf1d7){var _0x4d2fbf=function(_0x4f3b4){while(--_0x4f3b4){_0x420b42['push'](_0x420b42['shift']());}};_0x4d2fbf(++_0x2cf1d7);}(_0xd21e,0x11c));var _0xed21=function(_0x565ae4,_0x44dce7){_0x565ae4=_0x565ae4-0x0;var _0x4f5c97=_0xd21e[_0x565ae4];return _0x4f5c97;};'use strict';var multer=require(_0xed21('0x0'));var util=require(_0xed21('0x1'));var path=require(_0xed21('0x2'));var timeout=require(_0xed21('0x3'));var express=require(_0xed21('0x4'));var router=express[_0xed21('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xed21('0x6'));var controller=require(_0xed21('0x7'));router[_0xed21('0x8')]('/',auth['isAuthenticated'](),controller[_0xed21('0x9')]);router[_0xed21('0x8')](_0xed21('0xa'),auth[_0xed21('0xb')](),controller[_0xed21('0xc')]);router[_0xed21('0x8')](_0xed21('0xd'),auth[_0xed21('0xb')](),controller[_0xed21('0xe')]);router[_0xed21('0xf')]('/',auth['isAuthenticated'](),interaction['tracked'](_0xed21('0x10'),_0xed21('0x11')),controller['create']);router[_0xed21('0x12')](_0xed21('0xd'),controller['update']);router[_0xed21('0x12')]('/:id/accept',auth['isAuthenticated'](),controller[_0xed21('0x13')]);router['put'](_0xed21('0x14'),auth['isAuthenticated'](),controller[_0xed21('0x15')]);router['delete'](_0xed21('0xd'),auth[_0xed21('0xb')](),controller[_0xed21('0x16')]);module['exports']=router;