Built motion from commit fe909640.|2.6.8
[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 _0x5b45=['put','fax','update','faxinteraction:destroy','delete','removeTags','multer','util','path','connect-timeout','express','Router','../../config/environment','./faxInteraction.controller','isAuthenticated','get','/describe','describe','/:id','show','/:id/messages','getMessages','download','post','addMessage','faxinteraction:addtags','addTags'];(function(_0x4e3932,_0x2f7e21){var _0x551655=function(_0xc0e25c){while(--_0xc0e25c){_0x4e3932['push'](_0x4e3932['shift']());}};_0x551655(++_0x2f7e21);}(_0x5b45,0x114));var _0x55b4=function(_0x53b133,_0x176261){_0x53b133=_0x53b133-0x0;var _0x5647e0=_0x5b45[_0x53b133];return _0x5647e0;};'use strict';var multer=require(_0x55b4('0x0'));var util=require(_0x55b4('0x1'));var path=require(_0x55b4('0x2'));var timeout=require(_0x55b4('0x3'));var express=require(_0x55b4('0x4'));var router=express[_0x55b4('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x55b4('0x6'));var controller=require(_0x55b4('0x7'));router['get']('/',auth[_0x55b4('0x8')](),controller['index']);router[_0x55b4('0x9')](_0x55b4('0xa'),auth[_0x55b4('0x8')](),controller[_0x55b4('0xb')]);router[_0x55b4('0x9')](_0x55b4('0xc'),auth[_0x55b4('0x8')](),controller[_0x55b4('0xd')]);router[_0x55b4('0x9')](_0x55b4('0xe'),auth['isAuthenticated'](),controller[_0x55b4('0xf')]);router[_0x55b4('0x9')]('/:id/download',auth[_0x55b4('0x8')](),controller[_0x55b4('0x10')]);router['post']('/',auth[_0x55b4('0x8')](),controller['create']);router[_0x55b4('0x11')]('/:id/messages',auth[_0x55b4('0x8')](),controller[_0x55b4('0x12')]);router[_0x55b4('0x11')]('/:id/tags',auth['isAuthenticated'](),interaction['tracked']('fax',_0x55b4('0x13')),controller[_0x55b4('0x14')]);router[_0x55b4('0x15')](_0x55b4('0xc'),auth['isAuthenticated'](),interaction['tracked'](_0x55b4('0x16'),'faxinteraction:update'),controller[_0x55b4('0x17')]);router['delete'](_0x55b4('0xc'),auth['isAuthenticated'](),interaction['tracked'](_0x55b4('0x16'),_0x55b4('0x18')),controller['destroy']);router[_0x55b4('0x19')]('/:id/tags',auth['isAuthenticated'](),controller[_0x55b4('0x1a')]);module['exports']=router;