e938bcd6eebf4cfbae69b16737bab8f76695abcb
[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 _0x4c46=['create','put','update','delete','destroy','exports','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','isAuthenticated','index','/:id','post'];(function(_0x88cd7b,_0x4c884c){var _0x56fcc8=function(_0x513b3d){while(--_0x513b3d){_0x88cd7b['push'](_0x88cd7b['shift']());}};_0x56fcc8(++_0x4c884c);}(_0x4c46,0x78));var _0x64c4=function(_0x4ee78d,_0x14b9a1){_0x4ee78d=_0x4ee78d-0x0;var _0x169e5a=_0x4c46[_0x4ee78d];return _0x169e5a;};'use strict';var multer=require('multer');var util=require(_0x64c4('0x0'));var path=require(_0x64c4('0x1'));var timeout=require(_0x64c4('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x64c4('0x3'));var auth=require(_0x64c4('0x4'));var interaction=require(_0x64c4('0x5'));var config=require(_0x64c4('0x6'));var controller=require(_0x64c4('0x7'));router[_0x64c4('0x8')]('/',auth[_0x64c4('0x9')](),controller[_0x64c4('0xa')]);router['get'](_0x64c4('0xb'),auth[_0x64c4('0x9')](),controller['show']);router[_0x64c4('0xc')]('/',auth[_0x64c4('0x9')](),controller[_0x64c4('0xd')]);router[_0x64c4('0xe')](_0x64c4('0xb'),auth['isAuthenticated'](),controller[_0x64c4('0xf')]);router[_0x64c4('0x10')](_0x64c4('0xb'),auth['isAuthenticated'](),controller[_0x64c4('0x11')]);module[_0x64c4('0x12')]=router;