Built motion from commit da24aabd.|2.6.20
[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 _0xdade=['index','show','post','create','put','/:id','update','delete','destroy','util','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./openchannelApplication.controller','get','isAuthenticated'];(function(_0x2ed678,_0x46ad57){var _0x110e43=function(_0x28cd55){while(--_0x28cd55){_0x2ed678['push'](_0x2ed678['shift']());}};_0x110e43(++_0x46ad57);}(_0xdade,0x99));var _0xedad=function(_0x593f03,_0x4af84a){_0x593f03=_0x593f03-0x0;var _0x178299=_0xdade[_0x593f03];return _0x178299;};'use strict';var multer=require('multer');var util=require(_0xedad('0x0'));var path=require(_0xedad('0x1'));var timeout=require(_0xedad('0x2'));var express=require('express');var router=express[_0xedad('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xedad('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xedad('0x5'));var controller=require(_0xedad('0x6'));router[_0xedad('0x7')]('/',auth[_0xedad('0x8')](),controller[_0xedad('0x9')]);router[_0xedad('0x7')]('/:id',auth['isAuthenticated'](),controller[_0xedad('0xa')]);router[_0xedad('0xb')]('/',auth[_0xedad('0x8')](),controller[_0xedad('0xc')]);router[_0xedad('0xd')](_0xedad('0xe'),auth['isAuthenticated'](),controller[_0xedad('0xf')]);router[_0xedad('0x10')](_0xedad('0xe'),auth[_0xedad('0x8')](),controller[_0xedad('0x11')]);module['exports']=router;