93a2eda745cfaef4542598ab9f11969b2995011e
[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 _0x1e76=['create','put','delete','destroy','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','post'];(function(_0x187e68,_0x488309){var _0x47dc9a=function(_0x6d4ae7){while(--_0x6d4ae7){_0x187e68['push'](_0x187e68['shift']());}};_0x47dc9a(++_0x488309);}(_0x1e76,0x8a));var _0x61e7=function(_0xce8f56,_0x50b5fb){_0xce8f56=_0xce8f56-0x0;var _0x345f78=_0x1e76[_0xce8f56];return _0x345f78;};'use strict';var multer=require(_0x61e7('0x0'));var util=require(_0x61e7('0x1'));var path=require('path');var timeout=require(_0x61e7('0x2'));var express=require(_0x61e7('0x3'));var router=express['Router']();var auth=require(_0x61e7('0x4'));var interaction=require(_0x61e7('0x5'));var config=require(_0x61e7('0x6'));var controller=require(_0x61e7('0x7'));router[_0x61e7('0x8')]('/',auth[_0x61e7('0x9')](),controller[_0x61e7('0xa')]);router[_0x61e7('0x8')](_0x61e7('0xb'),auth[_0x61e7('0x9')](),controller[_0x61e7('0xc')]);router[_0x61e7('0xd')]('/',auth[_0x61e7('0x9')](),controller[_0x61e7('0xe')]);router[_0x61e7('0xf')](_0x61e7('0xb'),auth[_0x61e7('0x9')](),controller['update']);router[_0x61e7('0x10')](_0x61e7('0xb'),auth['isAuthenticated'](),controller[_0x61e7('0x11')]);module[_0x61e7('0x12')]=router;