Built motion from commit (unavailable).|2.4.15
[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 _0x9b51=['./openchannelApplication.controller','get','isAuthenticated','index','show','post','create','put','/:id','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../config/environment'];(function(_0x1ca28d,_0x29d73d){var _0x5094e8=function(_0x2e3e73){while(--_0x2e3e73){_0x1ca28d['push'](_0x1ca28d['shift']());}};_0x5094e8(++_0x29d73d);}(_0x9b51,0x175));var _0x19b5=function(_0x126169,_0x41686e){_0x126169=_0x126169-0x0;var _0x48c0b1=_0x9b51[_0x126169];return _0x48c0b1;};'use strict';var multer=require(_0x19b5('0x0'));var util=require(_0x19b5('0x1'));var path=require('path');var timeout=require(_0x19b5('0x2'));var express=require(_0x19b5('0x3'));var router=express[_0x19b5('0x4')]();var auth=require(_0x19b5('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x19b5('0x6'));var controller=require(_0x19b5('0x7'));router[_0x19b5('0x8')]('/',auth[_0x19b5('0x9')](),controller[_0x19b5('0xa')]);router[_0x19b5('0x8')]('/:id',auth[_0x19b5('0x9')](),controller[_0x19b5('0xb')]);router[_0x19b5('0xc')]('/',auth[_0x19b5('0x9')](),controller[_0x19b5('0xd')]);router[_0x19b5('0xe')](_0x19b5('0xf'),auth['isAuthenticated'](),controller['update']);router[_0x19b5('0x10')](_0x19b5('0xf'),auth[_0x19b5('0x9')](),controller[_0x19b5('0x11')]);module[_0x19b5('0x12')]=router;