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