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