81d9e3a315403f63daaa46dc9f957e3ea0f70f57
[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 _0x05fa=['/:id','post','update','delete','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./cannedAnswer.controller','isAuthenticated','index','get'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x05fa,0xf5));var _0xa05f=function(_0x3beb1f,_0xc0567a){_0x3beb1f=_0x3beb1f-0x0;var _0x7ace5b=_0x05fa[_0x3beb1f];return _0x7ace5b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xa05f('0x0'));var timeout=require(_0xa05f('0x1'));var express=require(_0xa05f('0x2'));var router=express[_0xa05f('0x3')]();var fs_extra=require(_0xa05f('0x4'));var auth=require(_0xa05f('0x5'));var interaction=require(_0xa05f('0x6'));var config=require('../../config/environment');var controller=require(_0xa05f('0x7'));router['get']('/',auth[_0xa05f('0x8')](),controller[_0xa05f('0x9')]);router[_0xa05f('0xa')](_0xa05f('0xb'),auth[_0xa05f('0x8')](),controller['show']);router[_0xa05f('0xc')]('/',auth[_0xa05f('0x8')](),controller['create']);router['put']('/:id',auth[_0xa05f('0x8')](),controller[_0xa05f('0xd')]);router[_0xa05f('0xe')]('/:id',auth[_0xa05f('0x8')](),controller['destroy']);module[_0xa05f('0xf')]=router;