54c9251d21c519fc7246f9bf662d23603494a23d
[motion2.git] / server / api / faxInteraction / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xcb91=['update','delete','fax','removeTags','exports','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id/messages','getMessages','/:id/download','download','post','create','/:id/tags','tracked','faxinteraction:addtags','addTags','put','/:id','faxinteraction:update'];(function(_0x72a29c,_0x172cc1){var _0x4ae5bb=function(_0x1bc172){while(--_0x1bc172){_0x72a29c['push'](_0x72a29c['shift']());}};_0x4ae5bb(++_0x172cc1);}(_0xcb91,0x1a9));var _0x1cb9=function(_0xad57ee,_0x2823a6){_0xad57ee=_0xad57ee-0x0;var _0x3eaea9=_0xcb91[_0xad57ee];return _0x3eaea9;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x1cb9('0x0'));var timeout=require(_0x1cb9('0x1'));var express=require(_0x1cb9('0x2'));var router=express[_0x1cb9('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x1cb9('0x4'));var config=require(_0x1cb9('0x5'));var controller=require('./faxInteraction.controller');router[_0x1cb9('0x6')]('/',auth[_0x1cb9('0x7')](),controller['index']);router[_0x1cb9('0x6')](_0x1cb9('0x8'),auth['isAuthenticated'](),controller[_0x1cb9('0x9')]);router[_0x1cb9('0x6')]('/:id',auth[_0x1cb9('0x7')](),controller['show']);router['get'](_0x1cb9('0xa'),auth[_0x1cb9('0x7')](),controller[_0x1cb9('0xb')]);router[_0x1cb9('0x6')](_0x1cb9('0xc'),auth['isAuthenticated'](),controller[_0x1cb9('0xd')]);router[_0x1cb9('0xe')]('/',auth[_0x1cb9('0x7')](),controller[_0x1cb9('0xf')]);router[_0x1cb9('0xe')]('/:id/messages',auth['isAuthenticated'](),controller['addMessage']);router[_0x1cb9('0xe')](_0x1cb9('0x10'),auth[_0x1cb9('0x7')](),interaction[_0x1cb9('0x11')]('fax',_0x1cb9('0x12')),controller[_0x1cb9('0x13')]);router[_0x1cb9('0x14')](_0x1cb9('0x15'),auth[_0x1cb9('0x7')](),interaction['tracked']('fax',_0x1cb9('0x16')),controller[_0x1cb9('0x17')]);router[_0x1cb9('0x18')](_0x1cb9('0x15'),auth[_0x1cb9('0x7')](),interaction[_0x1cb9('0x11')](_0x1cb9('0x19'),'faxinteraction:destroy'),controller['destroy']);router[_0x1cb9('0x18')](_0x1cb9('0x10'),auth[_0x1cb9('0x7')](),controller[_0x1cb9('0x1a')]);module[_0x1cb9('0x1b')]=router;