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