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