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