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