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