Built motion from commit da617fac.|2.6.6
[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 _0x93e2=['faxinteraction:addtags','addTags','put','faxinteraction:update','update','delete','faxinteraction:destroy','destroy','removeTags','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','create','addMessage','/:id/tags','tracked','fax'];(function(_0x5d15e3,_0x360f9a){var _0x17dab8=function(_0xfb03f1){while(--_0xfb03f1){_0x5d15e3['push'](_0x5d15e3['shift']());}};_0x17dab8(++_0x360f9a);}(_0x93e2,0x106));var _0x293e=function(_0x3bdc0f,_0x4f0015){_0x3bdc0f=_0x3bdc0f-0x0;var _0xb5ec5b=_0x93e2[_0x3bdc0f];return _0xb5ec5b;};'use strict';var multer=require('multer');var util=require(_0x293e('0x0'));var path=require(_0x293e('0x1'));var timeout=require(_0x293e('0x2'));var express=require(_0x293e('0x3'));var router=express[_0x293e('0x4')]();var fs_extra=require(_0x293e('0x5'));var auth=require(_0x293e('0x6'));var interaction=require(_0x293e('0x7'));var config=require(_0x293e('0x8'));var controller=require('./faxInteraction.controller');router[_0x293e('0x9')]('/',auth[_0x293e('0xa')](),controller[_0x293e('0xb')]);router[_0x293e('0x9')](_0x293e('0xc'),auth[_0x293e('0xa')](),controller[_0x293e('0xd')]);router['get'](_0x293e('0xe'),auth[_0x293e('0xa')](),controller[_0x293e('0xf')]);router[_0x293e('0x9')](_0x293e('0x10'),auth[_0x293e('0xa')](),controller[_0x293e('0x11')]);router[_0x293e('0x9')](_0x293e('0x12'),auth['isAuthenticated'](),controller[_0x293e('0x13')]);router[_0x293e('0x14')]('/',auth[_0x293e('0xa')](),controller[_0x293e('0x15')]);router[_0x293e('0x14')](_0x293e('0x10'),auth['isAuthenticated'](),controller[_0x293e('0x16')]);router[_0x293e('0x14')](_0x293e('0x17'),auth[_0x293e('0xa')](),interaction[_0x293e('0x18')](_0x293e('0x19'),_0x293e('0x1a')),controller[_0x293e('0x1b')]);router[_0x293e('0x1c')]('/:id',auth[_0x293e('0xa')](),interaction[_0x293e('0x18')](_0x293e('0x19'),_0x293e('0x1d')),controller[_0x293e('0x1e')]);router[_0x293e('0x1f')]('/:id',auth['isAuthenticated'](),interaction[_0x293e('0x18')]('fax',_0x293e('0x20')),controller[_0x293e('0x21')]);router[_0x293e('0x1f')](_0x293e('0x17'),auth[_0x293e('0xa')](),controller[_0x293e('0x22')]);module[_0x293e('0x23')]=router;