Built motion from commit (unavailable).|2.4.17
[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 _0x0a12=['isAuthenticated','index','/:id','show','post','create','put','update','destroy','exports','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./cannedAnswer.controller'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x0a12,0x1cc));var _0x20a1=function(_0x173441,_0x26b0d9){_0x173441=_0x173441-0x0;var _0x2423a8=_0x0a12[_0x173441];return _0x2423a8;};'use strict';var multer=require(_0x20a1('0x0'));var util=require(_0x20a1('0x1'));var path=require(_0x20a1('0x2'));var timeout=require(_0x20a1('0x3'));var express=require(_0x20a1('0x4'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x20a1('0x5'));var config=require(_0x20a1('0x6'));var controller=require(_0x20a1('0x7'));router['get']('/',auth[_0x20a1('0x8')](),controller[_0x20a1('0x9')]);router['get'](_0x20a1('0xa'),auth[_0x20a1('0x8')](),controller[_0x20a1('0xb')]);router[_0x20a1('0xc')]('/',auth[_0x20a1('0x8')](),controller[_0x20a1('0xd')]);router[_0x20a1('0xe')](_0x20a1('0xa'),auth[_0x20a1('0x8')](),controller[_0x20a1('0xf')]);router['delete']('/:id',auth[_0x20a1('0x8')](),controller[_0x20a1('0x10')]);module[_0x20a1('0x11')]=router;