Built motion from commit (unavailable).|2.5.26
[motion2.git] / server / api / voicePrefix / 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 _0xbd51=['addAgents','put','/:id','update','delete','destroy','multer','path','connect-timeout','express','Router','./voicePrefix.controller','get','isAuthenticated','/describe','describe','/:id/users','getAgents','post'];(function(_0xc971a4,_0x5b381c){var _0x4ebd6b=function(_0x371149){while(--_0x371149){_0xc971a4['push'](_0xc971a4['shift']());}};_0x4ebd6b(++_0x5b381c);}(_0xbd51,0x1a8));var _0x1bd5=function(_0x462800,_0x567bce){_0x462800=_0x462800-0x0;var _0x15ae8c=_0xbd51[_0x462800];return _0x15ae8c;};'use strict';var multer=require(_0x1bd5('0x0'));var util=require('util');var path=require(_0x1bd5('0x1'));var timeout=require(_0x1bd5('0x2'));var express=require(_0x1bd5('0x3'));var router=express[_0x1bd5('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1bd5('0x5'));router[_0x1bd5('0x6')]('/',auth[_0x1bd5('0x7')](),controller['index']);router[_0x1bd5('0x6')](_0x1bd5('0x8'),auth[_0x1bd5('0x7')](),controller[_0x1bd5('0x9')]);router[_0x1bd5('0x6')]('/:id',auth[_0x1bd5('0x7')](),controller['show']);router[_0x1bd5('0x6')](_0x1bd5('0xa'),auth[_0x1bd5('0x7')](),controller[_0x1bd5('0xb')]);router[_0x1bd5('0xc')]('/',auth[_0x1bd5('0x7')](),controller['create']);router[_0x1bd5('0xc')]('/:id/users',auth[_0x1bd5('0x7')](),controller[_0x1bd5('0xd')]);router[_0x1bd5('0xe')](_0x1bd5('0xf'),auth[_0x1bd5('0x7')](),controller[_0x1bd5('0x10')]);router[_0x1bd5('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x1bd5('0x12')]);router[_0x1bd5('0x11')](_0x1bd5('0xa'),auth[_0x1bd5('0x7')](),controller['removeAgents']);module['exports']=router;