Built motion from commit efa66e19.|2.6.22
[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 _0x01dc=['post','create','put','update','delete','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./voiceContext.controller','isAuthenticated','index','/:id','show'];(function(_0x412e90,_0x3acfb2){var _0x4d6694=function(_0xa86735){while(--_0xa86735){_0x412e90['push'](_0x412e90['shift']());}};_0x4d6694(++_0x3acfb2);}(_0x01dc,0x1ce));var _0xc01d=function(_0x4bb1fc,_0x1f57fc){_0x4bb1fc=_0x4bb1fc-0x0;var _0x27c426=_0x01dc[_0x4bb1fc];return _0x27c426;};'use strict';var multer=require(_0xc01d('0x0'));var util=require(_0xc01d('0x1'));var path=require(_0xc01d('0x2'));var timeout=require(_0xc01d('0x3'));var express=require(_0xc01d('0x4'));var router=express[_0xc01d('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xc01d('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xc01d('0x7'));var controller=require(_0xc01d('0x8'));router['get']('/',auth[_0xc01d('0x9')](),controller[_0xc01d('0xa')]);router['get'](_0xc01d('0xb'),auth['isAuthenticated'](),controller[_0xc01d('0xc')]);router[_0xc01d('0xd')]('/',auth[_0xc01d('0x9')](),controller[_0xc01d('0xe')]);router[_0xc01d('0xf')](_0xc01d('0xb'),auth[_0xc01d('0x9')](),controller[_0xc01d('0x10')]);router[_0xc01d('0x11')](_0xc01d('0xb'),auth[_0xc01d('0x9')](),controller[_0xc01d('0x12')]);module['exports']=router;