Built motion from commit (unavailable).|2.5.23
[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 _0x1ff9=['show','post','put','update','destroy','multer','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x421040,_0x42091c){var _0x3d737e=function(_0x32ff81){while(--_0x32ff81){_0x421040['push'](_0x421040['shift']());}};_0x3d737e(++_0x42091c);}(_0x1ff9,0xf5));var _0x91ff=function(_0xc916a3,_0x2b600c){_0xc916a3=_0xc916a3-0x0;var _0x15ae95=_0x1ff9[_0xc916a3];return _0x15ae95;};'use strict';var multer=require(_0x91ff('0x0'));var util=require(_0x91ff('0x1'));var path=require(_0x91ff('0x2'));var timeout=require('connect-timeout');var express=require(_0x91ff('0x3'));var router=express['Router']();var auth=require(_0x91ff('0x4'));var interaction=require(_0x91ff('0x5'));var config=require(_0x91ff('0x6'));var controller=require('./openchannelApplication.controller');router[_0x91ff('0x7')]('/',auth[_0x91ff('0x8')](),controller[_0x91ff('0x9')]);router[_0x91ff('0x7')](_0x91ff('0xa'),auth[_0x91ff('0x8')](),controller[_0x91ff('0xb')]);router[_0x91ff('0xc')]('/',auth[_0x91ff('0x8')](),controller['create']);router[_0x91ff('0xd')](_0x91ff('0xa'),auth[_0x91ff('0x8')](),controller[_0x91ff('0xe')]);router['delete'](_0x91ff('0xa'),auth[_0x91ff('0x8')](),controller[_0x91ff('0xf')]);module['exports']=router;