Built motion from commit dc14b02d.|2.6.27
[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 _0xc06f=['../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x5de83e,_0x58dc33){var _0x20559a=function(_0x15af49){while(--_0x15af49){_0x5de83e['push'](_0x5de83e['shift']());}};_0x20559a(++_0x58dc33);}(_0xc06f,0xd5));var _0xfc06=function(_0x2271dd,_0x5a7e61){_0x2271dd=_0x2271dd-0x0;var _0x7dd33b=_0xc06f[_0x2271dd];return _0x7dd33b;};'use strict';var multer=require(_0xfc06('0x0'));var util=require(_0xfc06('0x1'));var path=require(_0xfc06('0x2'));var timeout=require(_0xfc06('0x3'));var express=require(_0xfc06('0x4'));var router=express[_0xfc06('0x5')]();var fs_extra=require(_0xfc06('0x6'));var auth=require(_0xfc06('0x7'));var interaction=require(_0xfc06('0x8'));var config=require(_0xfc06('0x9'));var controller=require(_0xfc06('0xa'));router[_0xfc06('0xb')]('/',auth[_0xfc06('0xc')](),controller[_0xfc06('0xd')]);router[_0xfc06('0xb')](_0xfc06('0xe'),auth[_0xfc06('0xc')](),controller[_0xfc06('0xf')]);router[_0xfc06('0x10')]('/',auth[_0xfc06('0xc')](),controller[_0xfc06('0x11')]);router[_0xfc06('0x12')]('/:id',auth['isAuthenticated'](),controller[_0xfc06('0x13')]);router[_0xfc06('0x14')](_0xfc06('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0xfc06('0x15')]=router;