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