23bffbfd5056c971a0d727fca8bff5dd9b5a1085
[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 _0x3d56=['create','put','update','delete','destroy','exports','util','path','express','../../components/auth/service','../../components/interaction/service','get','index','/:id','isAuthenticated','post'];(function(_0x3da502,_0xc234d1){var _0x1263cd=function(_0x406caa){while(--_0x406caa){_0x3da502['push'](_0x3da502['shift']());}};_0x1263cd(++_0xc234d1);}(_0x3d56,0x156));var _0x63d5=function(_0x39b1fe,_0x4f8f17){_0x39b1fe=_0x39b1fe-0x0;var _0x306bfb=_0x3d56[_0x39b1fe];return _0x306bfb;};'use strict';var multer=require('multer');var util=require(_0x63d5('0x0'));var path=require(_0x63d5('0x1'));var timeout=require('connect-timeout');var express=require(_0x63d5('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x63d5('0x3'));var interaction=require(_0x63d5('0x4'));var config=require('../../config/environment');var controller=require('./cannedAnswer.controller');router[_0x63d5('0x5')]('/',auth['isAuthenticated'](),controller[_0x63d5('0x6')]);router['get'](_0x63d5('0x7'),auth[_0x63d5('0x8')](),controller['show']);router[_0x63d5('0x9')]('/',auth[_0x63d5('0x8')](),controller[_0x63d5('0xa')]);router[_0x63d5('0xb')](_0x63d5('0x7'),auth[_0x63d5('0x8')](),controller[_0x63d5('0xc')]);router[_0x63d5('0xd')](_0x63d5('0x7'),auth['isAuthenticated'](),controller[_0x63d5('0xe')]);module[_0x63d5('0xf')]=router;