Built motion from commit (unavailable).|2.0.75
[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 _0xda3f=['get','index','show','post','isAuthenticated','create','put','/:id','update','delete','destroy','util','path','../../components/interaction/service','./openchannelApplication.controller'];(function(_0x4037c3,_0x1a6eb0){var _0x3b5b8a=function(_0x1eb88d){while(--_0x1eb88d){_0x4037c3['push'](_0x4037c3['shift']());}};_0x3b5b8a(++_0x1a6eb0);}(_0xda3f,0xec));var _0xfda3=function(_0x2658a4,_0x1de6c2){_0x2658a4=_0x2658a4-0x0;var _0x1347ac=_0xda3f[_0x2658a4];return _0x1347ac;};'use strict';var multer=require('multer');var util=require(_0xfda3('0x0'));var path=require(_0xfda3('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xfda3('0x2'));var config=require('../../config/environment');var controller=require(_0xfda3('0x3'));router[_0xfda3('0x4')]('/',auth['isAuthenticated'](),controller[_0xfda3('0x5')]);router[_0xfda3('0x4')]('/:id',auth['isAuthenticated'](),controller[_0xfda3('0x6')]);router[_0xfda3('0x7')]('/',auth[_0xfda3('0x8')](),controller[_0xfda3('0x9')]);router[_0xfda3('0xa')](_0xfda3('0xb'),auth[_0xfda3('0x8')](),controller[_0xfda3('0xc')]);router[_0xfda3('0xd')](_0xfda3('0xb'),auth[_0xfda3('0x8')](),controller[_0xfda3('0xe')]);module['exports']=router;