Built motion from commit bab6f49e.|2.6.17
[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 _0xad32=['./openchannelApplication.controller','get','index','/:id','isAuthenticated','create','put','update','delete','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x3080d9,_0x68b836){var _0x456668=function(_0x539c99){while(--_0x539c99){_0x3080d9['push'](_0x3080d9['shift']());}};_0x456668(++_0x68b836);}(_0xad32,0xf9));var _0x2ad3=function(_0x53ea77,_0x3edf7e){_0x53ea77=_0x53ea77-0x0;var _0xfc6ae3=_0xad32[_0x53ea77];return _0xfc6ae3;};'use strict';var multer=require('multer');var util=require(_0x2ad3('0x0'));var path=require(_0x2ad3('0x1'));var timeout=require(_0x2ad3('0x2'));var express=require(_0x2ad3('0x3'));var router=express['Router']();var fs_extra=require(_0x2ad3('0x4'));var auth=require(_0x2ad3('0x5'));var interaction=require(_0x2ad3('0x6'));var config=require('../../config/environment');var controller=require(_0x2ad3('0x7'));router[_0x2ad3('0x8')]('/',auth['isAuthenticated'](),controller[_0x2ad3('0x9')]);router[_0x2ad3('0x8')](_0x2ad3('0xa'),auth[_0x2ad3('0xb')](),controller['show']);router['post']('/',auth[_0x2ad3('0xb')](),controller[_0x2ad3('0xc')]);router[_0x2ad3('0xd')](_0x2ad3('0xa'),auth[_0x2ad3('0xb')](),controller[_0x2ad3('0xe')]);router[_0x2ad3('0xf')](_0x2ad3('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;