Built motion from commit (unavailable).|2.5.31
[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 _0x5723=['put','/:id','delete','exports','util','path','connect-timeout','express','Router','../../components/auth/service','./openchannelApplication.controller','get','isAuthenticated','index','show','post'];(function(_0x3b085,_0x250543){var _0x476a57=function(_0x480941){while(--_0x480941){_0x3b085['push'](_0x3b085['shift']());}};_0x476a57(++_0x250543);}(_0x5723,0x1b4));var _0x3572=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x5723[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require('multer');var util=require(_0x3572('0x0'));var path=require(_0x3572('0x1'));var timeout=require(_0x3572('0x2'));var express=require(_0x3572('0x3'));var router=express[_0x3572('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x3572('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x3572('0x6'));router[_0x3572('0x7')]('/',auth[_0x3572('0x8')](),controller[_0x3572('0x9')]);router['get']('/:id',auth[_0x3572('0x8')](),controller[_0x3572('0xa')]);router[_0x3572('0xb')]('/',auth[_0x3572('0x8')](),controller['create']);router[_0x3572('0xc')](_0x3572('0xd'),auth[_0x3572('0x8')](),controller['update']);router[_0x3572('0xe')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x3572('0xf')]=router;