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 _0xbc8d=['../../config/environment','./faxInteraction.controller','get','isAuthenticated','index','/describe','/:id','show','getMessages','post','create','/:id/messages','/:id/tags','tracked','fax','faxinteraction:addtags','addTags','put','update','delete','faxinteraction:destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x172948,_0x4262cc){var _0x4aeaa9=function(_0x5ec4b3){while(--_0x5ec4b3){_0x172948['push'](_0x172948['shift']());}};_0x4aeaa9(++_0x4262cc);}(_0xbc8d,0xe1));var _0xdbc8=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xbc8d[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xdbc8('0x0'));var util=require(_0xdbc8('0x1'));var path=require(_0xdbc8('0x2'));var express=require(_0xdbc8('0x3'));var router=express[_0xdbc8('0x4')]();var auth=require(_0xdbc8('0x5'));var interaction=require(_0xdbc8('0x6'));var config=require(_0xdbc8('0x7'));var controller=require(_0xdbc8('0x8'));router[_0xdbc8('0x9')]('/',auth[_0xdbc8('0xa')](),controller[_0xdbc8('0xb')]);router[_0xdbc8('0x9')](_0xdbc8('0xc'),auth[_0xdbc8('0xa')](),controller['describe']);router[_0xdbc8('0x9')](_0xdbc8('0xd'),auth['isAuthenticated'](),controller[_0xdbc8('0xe')]);router[_0xdbc8('0x9')]('/:id/messages',auth[_0xdbc8('0xa')](),controller[_0xdbc8('0xf')]);router[_0xdbc8('0x10')]('/',auth['isAuthenticated'](),controller[_0xdbc8('0x11')]);router[_0xdbc8('0x10')](_0xdbc8('0x12'),auth[_0xdbc8('0xa')](),controller['addMessage']);router[_0xdbc8('0x10')](_0xdbc8('0x13'),auth[_0xdbc8('0xa')](),interaction[_0xdbc8('0x14')](_0xdbc8('0x15'),_0xdbc8('0x16')),controller[_0xdbc8('0x17')]);router[_0xdbc8('0x18')](_0xdbc8('0xd'),auth[_0xdbc8('0xa')](),interaction[_0xdbc8('0x14')](_0xdbc8('0x15'),'faxinteraction:update'),controller[_0xdbc8('0x19')]);router[_0xdbc8('0x1a')](_0xdbc8('0xd'),auth['isAuthenticated'](),interaction['tracked']('fax',_0xdbc8('0x1b')),controller['destroy']);router[_0xdbc8('0x1a')](_0xdbc8('0x13'),auth[_0xdbc8('0xa')](),controller['removeTags']);module[_0xdbc8('0x1c')]=router;