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 _0x2f96=['exports','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','create','post','addMessage','/:id/tags','tracked','faxinteraction:addtags','addTags','put','fax','faxinteraction:update','delete','faxinteraction:destroy'];(function(_0x3da3e6,_0x527a5c){var _0x1a714e=function(_0x2290e4){while(--_0x2290e4){_0x3da3e6['push'](_0x3da3e6['shift']());}};_0x1a714e(++_0x527a5c);}(_0x2f96,0x1b3));var _0x62f9=function(_0x12c1fb,_0xe0e24c){_0x12c1fb=_0x12c1fb-0x0;var _0x334d8b=_0x2f96[_0x12c1fb];return _0x334d8b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x62f9('0x0'));var timeout=require(_0x62f9('0x1'));var express=require(_0x62f9('0x2'));var router=express['Router']();var auth=require(_0x62f9('0x3'));var interaction=require(_0x62f9('0x4'));var config=require(_0x62f9('0x5'));var controller=require(_0x62f9('0x6'));router[_0x62f9('0x7')]('/',auth[_0x62f9('0x8')](),controller[_0x62f9('0x9')]);router[_0x62f9('0x7')](_0x62f9('0xa'),auth['isAuthenticated'](),controller[_0x62f9('0xb')]);router[_0x62f9('0x7')](_0x62f9('0xc'),auth[_0x62f9('0x8')](),controller[_0x62f9('0xd')]);router[_0x62f9('0x7')](_0x62f9('0xe'),auth[_0x62f9('0x8')](),controller[_0x62f9('0xf')]);router[_0x62f9('0x7')](_0x62f9('0x10'),auth[_0x62f9('0x8')](),controller[_0x62f9('0x11')]);router['post']('/',auth[_0x62f9('0x8')](),controller[_0x62f9('0x12')]);router[_0x62f9('0x13')](_0x62f9('0xe'),auth[_0x62f9('0x8')](),controller[_0x62f9('0x14')]);router['post'](_0x62f9('0x15'),auth[_0x62f9('0x8')](),interaction[_0x62f9('0x16')]('fax',_0x62f9('0x17')),controller[_0x62f9('0x18')]);router[_0x62f9('0x19')](_0x62f9('0xc'),auth['isAuthenticated'](),interaction[_0x62f9('0x16')](_0x62f9('0x1a'),_0x62f9('0x1b')),controller['update']);router[_0x62f9('0x1c')](_0x62f9('0xc'),auth[_0x62f9('0x8')](),interaction[_0x62f9('0x16')]('fax',_0x62f9('0x1d')),controller['destroy']);router['delete'](_0x62f9('0x15'),auth['isAuthenticated'](),controller['removeTags']);module[_0x62f9('0x1e')]=router;