09cb4a68d9efbd2040d410f181c30ebfd64dd27b
[motion2.git] / server / api / openchannelApplication / 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 _0xf582=['path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','show','post','create','put','/:id','delete','destroy','exports','multer','util'];(function(_0x521f06,_0x1f8e7c){var _0x410a40=function(_0x471e9d){while(--_0x471e9d){_0x521f06['push'](_0x521f06['shift']());}};_0x410a40(++_0x1f8e7c);}(_0xf582,0x166));var _0x2f58=function(_0x41d364,_0xdfdc1a){_0x41d364=_0x41d364-0x0;var _0x5ace98=_0xf582[_0x41d364];return _0x5ace98;};'use strict';var multer=require(_0x2f58('0x0'));var util=require(_0x2f58('0x1'));var path=require(_0x2f58('0x2'));var timeout=require(_0x2f58('0x3'));var express=require(_0x2f58('0x4'));var router=express[_0x2f58('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x2f58('0x6'));var config=require(_0x2f58('0x7'));var controller=require(_0x2f58('0x8'));router[_0x2f58('0x9')]('/',auth[_0x2f58('0xa')](),controller[_0x2f58('0xb')]);router[_0x2f58('0x9')]('/:id',auth[_0x2f58('0xa')](),controller[_0x2f58('0xc')]);router[_0x2f58('0xd')]('/',auth[_0x2f58('0xa')](),controller[_0x2f58('0xe')]);router[_0x2f58('0xf')](_0x2f58('0x10'),auth[_0x2f58('0xa')](),controller['update']);router[_0x2f58('0x11')](_0x2f58('0x10'),auth['isAuthenticated'](),controller[_0x2f58('0x12')]);module[_0x2f58('0x13')]=router;