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