Built motion from commit d1eab355.|2.6.28
[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 _0xfb48=['util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','show','post','update','delete','destroy','exports'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xfb48,0x1c2));var _0x8fb4=function(_0x3861f5,_0x133d96){_0x3861f5=_0x3861f5-0x0;var _0x3fdf9a=_0xfb48[_0x3861f5];return _0x3fdf9a;};'use strict';var multer=require('multer');var util=require(_0x8fb4('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x8fb4('0x1'));var router=express[_0x8fb4('0x2')]();var fs_extra=require(_0x8fb4('0x3'));var auth=require(_0x8fb4('0x4'));var interaction=require(_0x8fb4('0x5'));var config=require(_0x8fb4('0x6'));var controller=require(_0x8fb4('0x7'));router[_0x8fb4('0x8')]('/',auth[_0x8fb4('0x9')](),controller[_0x8fb4('0xa')]);router[_0x8fb4('0x8')](_0x8fb4('0xb'),auth[_0x8fb4('0x9')](),controller[_0x8fb4('0xc')]);router[_0x8fb4('0xd')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x8fb4('0xb'),auth[_0x8fb4('0x9')](),controller[_0x8fb4('0xe')]);router[_0x8fb4('0xf')](_0x8fb4('0xb'),auth[_0x8fb4('0x9')](),controller[_0x8fb4('0x10')]);module[_0x8fb4('0x11')]=router;