Built motion from commit (unavailable).|2.4.3
[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 _0x4fce=['show','post','create','put','/:id','update','exports','connect-timeout','express','Router','../../config/environment','./cannedAnswer.controller','get','isAuthenticated','index'];(function(_0x5145ba,_0x3c6ae0){var _0x4d3d20=function(_0x591593){while(--_0x591593){_0x5145ba['push'](_0x5145ba['shift']());}};_0x4d3d20(++_0x3c6ae0);}(_0x4fce,0x1e7));var _0xe4fc=function(_0xf394d3,_0x4271dc){_0xf394d3=_0xf394d3-0x0;var _0x51462b=_0x4fce[_0xf394d3];return _0x51462b;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xe4fc('0x0'));var express=require(_0xe4fc('0x1'));var router=express[_0xe4fc('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe4fc('0x3'));var controller=require(_0xe4fc('0x4'));router[_0xe4fc('0x5')]('/',auth[_0xe4fc('0x6')](),controller[_0xe4fc('0x7')]);router[_0xe4fc('0x5')]('/:id',auth['isAuthenticated'](),controller[_0xe4fc('0x8')]);router[_0xe4fc('0x9')]('/',auth[_0xe4fc('0x6')](),controller[_0xe4fc('0xa')]);router[_0xe4fc('0xb')](_0xe4fc('0xc'),auth['isAuthenticated'](),controller[_0xe4fc('0xd')]);router['delete'](_0xe4fc('0xc'),auth[_0xe4fc('0x6')](),controller['destroy']);module[_0xe4fc('0xe')]=router;