Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / voiceContext / 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 _0x6c35=['update','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','create','put'];(function(_0x260b48,_0x117977){var _0x3f730b=function(_0x7a1e53){while(--_0x7a1e53){_0x260b48['push'](_0x260b48['shift']());}};_0x3f730b(++_0x117977);}(_0x6c35,0x120));var _0x56c3=function(_0x361a20,_0x3a9221){_0x361a20=_0x361a20-0x0;var _0x16e3c9=_0x6c35[_0x361a20];return _0x16e3c9;};'use strict';var multer=require(_0x56c3('0x0'));var util=require(_0x56c3('0x1'));var path=require('path');var timeout=require(_0x56c3('0x2'));var express=require(_0x56c3('0x3'));var router=express[_0x56c3('0x4')]();var fs_extra=require(_0x56c3('0x5'));var auth=require(_0x56c3('0x6'));var interaction=require(_0x56c3('0x7'));var config=require('../../config/environment');var controller=require('./voiceContext.controller');router[_0x56c3('0x8')]('/',auth[_0x56c3('0x9')](),controller[_0x56c3('0xa')]);router[_0x56c3('0x8')](_0x56c3('0xb'),auth[_0x56c3('0x9')](),controller[_0x56c3('0xc')]);router[_0x56c3('0xd')]('/',auth[_0x56c3('0x9')](),controller[_0x56c3('0xe')]);router[_0x56c3('0xf')]('/:id',auth[_0x56c3('0x9')](),controller[_0x56c3('0x10')]);router[_0x56c3('0x11')](_0x56c3('0xb'),auth[_0x56c3('0x9')](),controller['destroy']);module[_0x56c3('0x12')]=router;