2cff0d524309980eb62c74f6ccae50ad9d5f52f0
[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 _0xe335=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxInteraction.controller','isAuthenticated','index','get','describe','/:id','show','getMessages','/:id/download','download','post','create','addMessage','/:id/tags','tracked','faxinteraction:addtags','put','fax','faxinteraction:update','update','delete','destroy','removeTags','multer','util'];(function(_0x3b14ad,_0x5e4401){var _0x392677=function(_0x4c9139){while(--_0x4c9139){_0x3b14ad['push'](_0x3b14ad['shift']());}};_0x392677(++_0x5e4401);}(_0xe335,0x1de));var _0x5e33=function(_0x4e676e,_0x2a7c6d){_0x4e676e=_0x4e676e-0x0;var _0x336a3c=_0xe335[_0x4e676e];return _0x336a3c;};'use strict';var multer=require(_0x5e33('0x0'));var util=require(_0x5e33('0x1'));var path=require(_0x5e33('0x2'));var timeout=require(_0x5e33('0x3'));var express=require(_0x5e33('0x4'));var router=express[_0x5e33('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x5e33('0x6'));var interaction=require(_0x5e33('0x7'));var config=require(_0x5e33('0x8'));var controller=require(_0x5e33('0x9'));router['get']('/',auth[_0x5e33('0xa')](),controller[_0x5e33('0xb')]);router[_0x5e33('0xc')]('/describe',auth['isAuthenticated'](),controller[_0x5e33('0xd')]);router[_0x5e33('0xc')](_0x5e33('0xe'),auth[_0x5e33('0xa')](),controller[_0x5e33('0xf')]);router[_0x5e33('0xc')]('/:id/messages',auth['isAuthenticated'](),controller[_0x5e33('0x10')]);router[_0x5e33('0xc')](_0x5e33('0x11'),auth[_0x5e33('0xa')](),controller[_0x5e33('0x12')]);router[_0x5e33('0x13')]('/',auth[_0x5e33('0xa')](),controller[_0x5e33('0x14')]);router['post']('/:id/messages',auth[_0x5e33('0xa')](),controller[_0x5e33('0x15')]);router[_0x5e33('0x13')](_0x5e33('0x16'),auth[_0x5e33('0xa')](),interaction[_0x5e33('0x17')]('fax',_0x5e33('0x18')),controller['addTags']);router[_0x5e33('0x19')](_0x5e33('0xe'),auth[_0x5e33('0xa')](),interaction['tracked'](_0x5e33('0x1a'),_0x5e33('0x1b')),controller[_0x5e33('0x1c')]);router[_0x5e33('0x1d')](_0x5e33('0xe'),auth['isAuthenticated'](),interaction[_0x5e33('0x17')](_0x5e33('0x1a'),'faxinteraction:destroy'),controller[_0x5e33('0x1e')]);router[_0x5e33('0x1d')](_0x5e33('0x16'),auth['isAuthenticated'](),controller[_0x5e33('0x1f')]);module['exports']=router;