Built motion from commit (unavailable).|2.3.1
[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 _0x18f2=['/:id/tags','tracked','addTags','/:id','fax','faxinteraction:update','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxInteraction.controller','get','isAuthenticated','/describe','describe','show','/:id/messages','getMessages','download','create','post','addMessage'];(function(_0x3fd975,_0x968a2c){var _0x374ba6=function(_0x224c73){while(--_0x224c73){_0x3fd975['push'](_0x3fd975['shift']());}};_0x374ba6(++_0x968a2c);}(_0x18f2,0x9f));var _0x218f=function(_0xab56c8,_0x4f5f94){_0xab56c8=_0xab56c8-0x0;var _0x29c649=_0x18f2[_0xab56c8];return _0x29c649;};'use strict';var multer=require(_0x218f('0x0'));var util=require(_0x218f('0x1'));var path=require(_0x218f('0x2'));var timeout=require(_0x218f('0x3'));var express=require(_0x218f('0x4'));var router=express[_0x218f('0x5')]();var auth=require(_0x218f('0x6'));var interaction=require(_0x218f('0x7'));var config=require(_0x218f('0x8'));var controller=require(_0x218f('0x9'));router[_0x218f('0xa')]('/',auth[_0x218f('0xb')](),controller['index']);router['get'](_0x218f('0xc'),auth['isAuthenticated'](),controller[_0x218f('0xd')]);router['get']('/:id',auth[_0x218f('0xb')](),controller[_0x218f('0xe')]);router[_0x218f('0xa')](_0x218f('0xf'),auth[_0x218f('0xb')](),controller[_0x218f('0x10')]);router[_0x218f('0xa')]('/:id/download',auth['isAuthenticated'](),controller[_0x218f('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0x218f('0x12')]);router[_0x218f('0x13')](_0x218f('0xf'),auth[_0x218f('0xb')](),controller[_0x218f('0x14')]);router[_0x218f('0x13')](_0x218f('0x15'),auth[_0x218f('0xb')](),interaction[_0x218f('0x16')]('fax','faxinteraction:addtags'),controller[_0x218f('0x17')]);router['put'](_0x218f('0x18'),auth[_0x218f('0xb')](),interaction[_0x218f('0x16')](_0x218f('0x19'),_0x218f('0x1a')),controller[_0x218f('0x1b')]);router['delete']('/:id',auth[_0x218f('0xb')](),interaction[_0x218f('0x16')](_0x218f('0x19'),'faxinteraction:destroy'),controller[_0x218f('0x1c')]);router['delete']('/:id/tags',auth[_0x218f('0xb')](),controller['removeTags']);module[_0x218f('0x1d')]=router;