Built motion from commit (unavailable).|2.5.0
[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 _0xc885=['multer','util','path','express','../../components/auth/service','../../config/environment','./cannedAnswer.controller','get','isAuthenticated','/:id','show','post','create','put','update','delete','destroy','exports'];(function(_0x3d3a0f,_0x40c20b){var _0x13f997=function(_0x397718){while(--_0x397718){_0x3d3a0f['push'](_0x3d3a0f['shift']());}};_0x13f997(++_0x40c20b);}(_0xc885,0xfc));var _0x5c88=function(_0x5779f3,_0x3cee1f){_0x5779f3=_0x5779f3-0x0;var _0x4441fb=_0xc885[_0x5779f3];return _0x4441fb;};'use strict';var multer=require(_0x5c88('0x0'));var util=require(_0x5c88('0x1'));var path=require(_0x5c88('0x2'));var timeout=require('connect-timeout');var express=require(_0x5c88('0x3'));var router=express['Router']();var auth=require(_0x5c88('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5c88('0x5'));var controller=require(_0x5c88('0x6'));router[_0x5c88('0x7')]('/',auth[_0x5c88('0x8')](),controller['index']);router['get'](_0x5c88('0x9'),auth['isAuthenticated'](),controller[_0x5c88('0xa')]);router[_0x5c88('0xb')]('/',auth['isAuthenticated'](),controller[_0x5c88('0xc')]);router[_0x5c88('0xd')](_0x5c88('0x9'),auth[_0x5c88('0x8')](),controller[_0x5c88('0xe')]);router[_0x5c88('0xf')]('/:id',auth[_0x5c88('0x8')](),controller[_0x5c88('0x10')]);module[_0x5c88('0x11')]=router;