Built motion from commit 497d3d92.|2.5.43
[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 _0xb075=['index','/:id','show','post','put','update','delete','destroy','exports','multer','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','isAuthenticated'];(function(_0x5d8afd,_0xd7f769){var _0x336c61=function(_0x539e58){while(--_0x539e58){_0x5d8afd['push'](_0x5d8afd['shift']());}};_0x336c61(++_0xd7f769);}(_0xb075,0x1d1));var _0x5b07=function(_0xb68b25,_0x580b03){_0xb68b25=_0xb68b25-0x0;var _0x5ecf79=_0xb075[_0xb68b25];return _0x5ecf79;};'use strict';var multer=require(_0x5b07('0x0'));var util=require('util');var path=require(_0x5b07('0x1'));var timeout=require(_0x5b07('0x2'));var express=require(_0x5b07('0x3'));var router=express['Router']();var fs_extra=require(_0x5b07('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x5b07('0x5'));var config=require(_0x5b07('0x6'));var controller=require(_0x5b07('0x7'));router[_0x5b07('0x8')]('/',auth[_0x5b07('0x9')](),controller[_0x5b07('0xa')]);router[_0x5b07('0x8')](_0x5b07('0xb'),auth['isAuthenticated'](),controller[_0x5b07('0xc')]);router[_0x5b07('0xd')]('/',auth[_0x5b07('0x9')](),controller['create']);router[_0x5b07('0xe')](_0x5b07('0xb'),auth[_0x5b07('0x9')](),controller[_0x5b07('0xf')]);router[_0x5b07('0x10')](_0x5b07('0xb'),auth['isAuthenticated'](),controller[_0x5b07('0x11')]);module[_0x5b07('0x12')]=router;