Built motion from commit da617fac.|2.6.6
[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 _0x74dd=['/:id','destroy','exports','multer','util','path','express','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','post','put'];(function(_0x10dfe6,_0x1a7a72){var _0x34dfe2=function(_0x2db5a8){while(--_0x2db5a8){_0x10dfe6['push'](_0x10dfe6['shift']());}};_0x34dfe2(++_0x1a7a72);}(_0x74dd,0xc3));var _0xd74d=function(_0x165834,_0x49e6d7){_0x165834=_0x165834-0x0;var _0x2f8df1=_0x74dd[_0x165834];return _0x2f8df1;};'use strict';var multer=require(_0xd74d('0x0'));var util=require(_0xd74d('0x1'));var path=require(_0xd74d('0x2'));var timeout=require('connect-timeout');var express=require(_0xd74d('0x3'));var router=express['Router']();var fs_extra=require(_0xd74d('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xd74d('0x5'));var config=require(_0xd74d('0x6'));var controller=require('./cannedAnswer.controller');router[_0xd74d('0x7')]('/',auth[_0xd74d('0x8')](),controller[_0xd74d('0x9')]);router[_0xd74d('0x7')]('/:id',auth[_0xd74d('0x8')](),controller[_0xd74d('0xa')]);router[_0xd74d('0xb')]('/',auth[_0xd74d('0x8')](),controller['create']);router[_0xd74d('0xc')](_0xd74d('0xd'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0xd74d('0x8')](),controller[_0xd74d('0xe')]);module[_0xd74d('0xf')]=router;