Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / cannedAnswer / 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 _0x7244=['../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','post','create','put','update','delete','destroy','multer','path','connect-timeout','express','Router'];(function(_0x4a53d,_0x58a95e){var _0x27410e=function(_0x38fc90){while(--_0x38fc90){_0x4a53d['push'](_0x4a53d['shift']());}};_0x27410e(++_0x58a95e);}(_0x7244,0xa6));var _0x4724=function(_0x36884e,_0x48008f){_0x36884e=_0x36884e-0x0;var _0x1cc367=_0x7244[_0x36884e];return _0x1cc367;};'use strict';var multer=require(_0x4724('0x0'));var util=require('util');var path=require(_0x4724('0x1'));var timeout=require(_0x4724('0x2'));var express=require(_0x4724('0x3'));var router=express[_0x4724('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x4724('0x5'));var interaction=require(_0x4724('0x6'));var config=require(_0x4724('0x7'));var controller=require('./cannedAnswer.controller');router['get']('/',auth[_0x4724('0x8')](),controller[_0x4724('0x9')]);router[_0x4724('0xa')](_0x4724('0xb'),auth['isAuthenticated'](),controller[_0x4724('0xc')]);router[_0x4724('0xd')]('/',auth[_0x4724('0x8')](),controller[_0x4724('0xe')]);router[_0x4724('0xf')](_0x4724('0xb'),auth[_0x4724('0x8')](),controller[_0x4724('0x10')]);router[_0x4724('0x11')](_0x4724('0xb'),auth[_0x4724('0x8')](),controller[_0x4724('0x12')]);module['exports']=router;