Built motion from commit da617fac.|2.6.6
[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 _0x6fb8=['/describe','describe','/:id','getMessages','post','create','/:id/messages','addMessage','/:id/tags','fax','addTags','put','tracked','faxinteraction:update','update','faxinteraction:destroy','destroy','delete','removeTags','exports','multer','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./faxInteraction.controller','get','isAuthenticated','index'];(function(_0x1c4b44,_0x2377de){var _0x10d72b=function(_0x2bd31e){while(--_0x2bd31e){_0x1c4b44['push'](_0x1c4b44['shift']());}};_0x10d72b(++_0x2377de);}(_0x6fb8,0x104));var _0x86fb=function(_0x173f10,_0x35db61){_0x173f10=_0x173f10-0x0;var _0x53142d=_0x6fb8[_0x173f10];return _0x53142d;};'use strict';var multer=require(_0x86fb('0x0'));var util=require('util');var path=require(_0x86fb('0x1'));var timeout=require(_0x86fb('0x2'));var express=require('express');var router=express[_0x86fb('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x86fb('0x4'));var config=require(_0x86fb('0x5'));var controller=require(_0x86fb('0x6'));router[_0x86fb('0x7')]('/',auth[_0x86fb('0x8')](),controller[_0x86fb('0x9')]);router[_0x86fb('0x7')](_0x86fb('0xa'),auth[_0x86fb('0x8')](),controller[_0x86fb('0xb')]);router[_0x86fb('0x7')](_0x86fb('0xc'),auth[_0x86fb('0x8')](),controller['show']);router[_0x86fb('0x7')]('/:id/messages',auth[_0x86fb('0x8')](),controller[_0x86fb('0xd')]);router[_0x86fb('0x7')]('/:id/download',auth[_0x86fb('0x8')](),controller['download']);router[_0x86fb('0xe')]('/',auth[_0x86fb('0x8')](),controller[_0x86fb('0xf')]);router[_0x86fb('0xe')](_0x86fb('0x10'),auth[_0x86fb('0x8')](),controller[_0x86fb('0x11')]);router[_0x86fb('0xe')](_0x86fb('0x12'),auth[_0x86fb('0x8')](),interaction['tracked'](_0x86fb('0x13'),'faxinteraction:addtags'),controller[_0x86fb('0x14')]);router[_0x86fb('0x15')]('/:id',auth[_0x86fb('0x8')](),interaction[_0x86fb('0x16')](_0x86fb('0x13'),_0x86fb('0x17')),controller[_0x86fb('0x18')]);router['delete'](_0x86fb('0xc'),auth[_0x86fb('0x8')](),interaction[_0x86fb('0x16')](_0x86fb('0x13'),_0x86fb('0x19')),controller[_0x86fb('0x1a')]);router[_0x86fb('0x1b')]('/:id/tags',auth[_0x86fb('0x8')](),controller[_0x86fb('0x1c')]);module[_0x86fb('0x1d')]=router;