bef6ae547002e7434f0ebd73ab2b8f3786820a94
[motion2.git] / server / api / voiceExtension / 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 _0xa76c=['index','/:id','show','create','post','/:id/applications','addApplications','put','update','delete','destroy','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated'];(function(_0x38490b,_0x108ad7){var _0x197661=function(_0x70a164){while(--_0x70a164){_0x38490b['push'](_0x38490b['shift']());}};_0x197661(++_0x108ad7);}(_0xa76c,0x14b));var _0xca76=function(_0x606fe8,_0x10b084){_0x606fe8=_0x606fe8-0x0;var _0x28b517=_0xa76c[_0x606fe8];return _0x28b517;};'use strict';var multer=require(_0xca76('0x0'));var util=require(_0xca76('0x1'));var path=require('path');var timeout=require(_0xca76('0x2'));var express=require(_0xca76('0x3'));var router=express[_0xca76('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xca76('0x5'));var interaction=require(_0xca76('0x6'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router[_0xca76('0x7')]('/',auth[_0xca76('0x8')](),controller[_0xca76('0x9')]);router[_0xca76('0x7')](_0xca76('0xa'),auth[_0xca76('0x8')](),controller[_0xca76('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0xca76('0xc')]);router[_0xca76('0xd')](_0xca76('0xe'),auth[_0xca76('0x8')](),controller[_0xca76('0xf')]);router[_0xca76('0x10')](_0xca76('0xa'),auth[_0xca76('0x8')](),controller[_0xca76('0x11')]);router[_0xca76('0x12')](_0xca76('0xa'),auth['isAuthenticated'](),controller[_0xca76('0x13')]);module['exports']=router;