Built motion from commit (unavailable).|2.5.0
[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 _0x9157=['express','Router','../../components/auth/service','../../config/environment','./openchannelApplication.controller','isAuthenticated','index','get','/:id','show','post','create','update','destroy','exports','connect-timeout'];(function(_0x8cfc18,_0xa5bb8b){var _0x28df2d=function(_0x136ee3){while(--_0x136ee3){_0x8cfc18['push'](_0x8cfc18['shift']());}};_0x28df2d(++_0xa5bb8b);}(_0x9157,0x16f));var _0x7915=function(_0x1ac120,_0x3e7e45){_0x1ac120=_0x1ac120-0x0;var _0x19b703=_0x9157[_0x1ac120];return _0x19b703;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x7915('0x0'));var express=require(_0x7915('0x1'));var router=express[_0x7915('0x2')]();var auth=require(_0x7915('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x7915('0x4'));var controller=require(_0x7915('0x5'));router['get']('/',auth[_0x7915('0x6')](),controller[_0x7915('0x7')]);router[_0x7915('0x8')](_0x7915('0x9'),auth[_0x7915('0x6')](),controller[_0x7915('0xa')]);router[_0x7915('0xb')]('/',auth[_0x7915('0x6')](),controller[_0x7915('0xc')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0x7915('0xd')]);router['delete']('/:id',auth[_0x7915('0x6')](),controller[_0x7915('0xe')]);module[_0x7915('0xf')]=router;