7f07579700ea3c3e0eb5dc2ea0a28a229db74fe8
[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 _0xdb72=['get','isAuthenticated','index','/:id','post','create','put','update','delete','destroy','exports','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','./cannedAnswer.controller'];(function(_0xe02272,_0x158c06){var _0x2cc54d=function(_0x511215){while(--_0x511215){_0xe02272['push'](_0xe02272['shift']());}};_0x2cc54d(++_0x158c06);}(_0xdb72,0x89));var _0x2db7=function(_0x351b46,_0x26b265){_0x351b46=_0x351b46-0x0;var _0x1515df=_0xdb72[_0x351b46];return _0x1515df;};'use strict';var multer=require('multer');var util=require(_0x2db7('0x0'));var path=require('path');var timeout=require(_0x2db7('0x1'));var express=require(_0x2db7('0x2'));var router=express[_0x2db7('0x3')]();var fs_extra=require(_0x2db7('0x4'));var auth=require(_0x2db7('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x2db7('0x6'));router[_0x2db7('0x7')]('/',auth[_0x2db7('0x8')](),controller[_0x2db7('0x9')]);router[_0x2db7('0x7')](_0x2db7('0xa'),auth[_0x2db7('0x8')](),controller['show']);router[_0x2db7('0xb')]('/',auth[_0x2db7('0x8')](),controller[_0x2db7('0xc')]);router[_0x2db7('0xd')](_0x2db7('0xa'),auth[_0x2db7('0x8')](),controller[_0x2db7('0xe')]);router[_0x2db7('0xf')](_0x2db7('0xa'),auth['isAuthenticated'](),controller[_0x2db7('0x10')]);module[_0x2db7('0x11')]=router;