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