Built motion from commit (unavailable).|2.5.0
[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 _0xca07=['../../components/auth/service','../../components/interaction/service','./faxInteraction.controller','get','isAuthenticated','describe','/:id','show','/:id/download','download','post','create','/:id/messages','addMessage','/:id/tags','tracked','fax','faxinteraction:addtags','addTags','put','faxinteraction:update','update','delete','faxinteraction:destroy','destroy','removeTags','exports','util','connect-timeout','Router'];(function(_0x2abde0,_0x34c56e){var _0x33d1e6=function(_0x2e9c44){while(--_0x2e9c44){_0x2abde0['push'](_0x2abde0['shift']());}};_0x33d1e6(++_0x34c56e);}(_0xca07,0xb1));var _0x7ca0=function(_0x5bed28,_0x3069b3){_0x5bed28=_0x5bed28-0x0;var _0x44fe9f=_0xca07[_0x5bed28];return _0x44fe9f;};'use strict';var multer=require('multer');var util=require(_0x7ca0('0x0'));var path=require('path');var timeout=require(_0x7ca0('0x1'));var express=require('express');var router=express[_0x7ca0('0x2')]();var auth=require(_0x7ca0('0x3'));var interaction=require(_0x7ca0('0x4'));var config=require('../../config/environment');var controller=require(_0x7ca0('0x5'));router[_0x7ca0('0x6')]('/',auth[_0x7ca0('0x7')](),controller['index']);router['get']('/describe',auth[_0x7ca0('0x7')](),controller[_0x7ca0('0x8')]);router['get'](_0x7ca0('0x9'),auth['isAuthenticated'](),controller[_0x7ca0('0xa')]);router['get']('/:id/messages',auth[_0x7ca0('0x7')](),controller['getMessages']);router[_0x7ca0('0x6')](_0x7ca0('0xb'),auth[_0x7ca0('0x7')](),controller[_0x7ca0('0xc')]);router[_0x7ca0('0xd')]('/',auth['isAuthenticated'](),controller[_0x7ca0('0xe')]);router[_0x7ca0('0xd')](_0x7ca0('0xf'),auth[_0x7ca0('0x7')](),controller[_0x7ca0('0x10')]);router['post'](_0x7ca0('0x11'),auth[_0x7ca0('0x7')](),interaction[_0x7ca0('0x12')](_0x7ca0('0x13'),_0x7ca0('0x14')),controller[_0x7ca0('0x15')]);router[_0x7ca0('0x16')]('/:id',auth['isAuthenticated'](),interaction['tracked'](_0x7ca0('0x13'),_0x7ca0('0x17')),controller[_0x7ca0('0x18')]);router[_0x7ca0('0x19')](_0x7ca0('0x9'),auth[_0x7ca0('0x7')](),interaction[_0x7ca0('0x12')]('fax',_0x7ca0('0x1a')),controller[_0x7ca0('0x1b')]);router['delete'](_0x7ca0('0x11'),auth[_0x7ca0('0x7')](),controller[_0x7ca0('0x1c')]);module[_0x7ca0('0x1d')]=router;