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