Built motion from commit (unavailable).|2.5.26
[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 _0xa017=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','/:id/applications','addApplications','put','update','delete','multer'];(function(_0x50865c,_0x5c7b60){var _0x5b7717=function(_0xb71650){while(--_0xb71650){_0x50865c['push'](_0x50865c['shift']());}};_0x5b7717(++_0x5c7b60);}(_0xa017,0x1b4));var _0x7a01=function(_0x26ec61,_0x495ae1){_0x26ec61=_0x26ec61-0x0;var _0x322ddb=_0xa017[_0x26ec61];return _0x322ddb;};'use strict';var multer=require(_0x7a01('0x0'));var util=require(_0x7a01('0x1'));var path=require(_0x7a01('0x2'));var timeout=require(_0x7a01('0x3'));var express=require(_0x7a01('0x4'));var router=express[_0x7a01('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x7a01('0x6'));var interaction=require(_0x7a01('0x7'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router[_0x7a01('0x8')]('/',auth[_0x7a01('0x9')](),controller[_0x7a01('0xa')]);router[_0x7a01('0x8')](_0x7a01('0xb'),auth['isAuthenticated'](),controller[_0x7a01('0xc')]);router[_0x7a01('0xd')]('/',auth[_0x7a01('0x9')](),controller['create']);router[_0x7a01('0xd')](_0x7a01('0xe'),auth[_0x7a01('0x9')](),controller[_0x7a01('0xf')]);router[_0x7a01('0x10')](_0x7a01('0xb'),auth[_0x7a01('0x9')](),controller[_0x7a01('0x11')]);router[_0x7a01('0x12')](_0x7a01('0xb'),auth[_0x7a01('0x9')](),controller['destroy']);module['exports']=router;