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