86c58b618b6ca522cc13e0f48797556884ec0ad1
[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 _0x6e29=['exports','multer','util','path','express','Router','../../components/auth/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','delete'];(function(_0x25be71,_0x5451f4){var _0x43e806=function(_0x137beb){while(--_0x137beb){_0x25be71['push'](_0x25be71['shift']());}};_0x43e806(++_0x5451f4);}(_0x6e29,0x16a));var _0x96e2=function(_0x141966,_0x12fe79){_0x141966=_0x141966-0x0;var _0x2fdb35=_0x6e29[_0x141966];return _0x2fdb35;};'use strict';var multer=require(_0x96e2('0x0'));var util=require(_0x96e2('0x1'));var path=require(_0x96e2('0x2'));var timeout=require('connect-timeout');var express=require(_0x96e2('0x3'));var router=express[_0x96e2('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x96e2('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x96e2('0x6'));var controller=require(_0x96e2('0x7'));router[_0x96e2('0x8')]('/',auth[_0x96e2('0x9')](),controller[_0x96e2('0xa')]);router[_0x96e2('0x8')](_0x96e2('0xb'),auth[_0x96e2('0x9')](),controller[_0x96e2('0xc')]);router[_0x96e2('0xd')]('/',auth[_0x96e2('0x9')](),controller[_0x96e2('0xe')]);router[_0x96e2('0xf')](_0x96e2('0xb'),auth['isAuthenticated'](),controller[_0x96e2('0x10')]);router[_0x96e2('0x11')]('/:id',auth[_0x96e2('0x9')](),controller['destroy']);module[_0x96e2('0x12')]=router;