Built motion from commit f7863d46.|2.5.41
[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 _0xdc2c=['put','destroy','exports','multer','util','path','express','Router','./cannedAnswer.controller','isAuthenticated','index','get','/:id','show','post','create'];(function(_0x2a1da9,_0x1d1296){var _0x1d86ae=function(_0x5454eb){while(--_0x5454eb){_0x2a1da9['push'](_0x2a1da9['shift']());}};_0x1d86ae(++_0x1d1296);}(_0xdc2c,0xe3));var _0xcdc2=function(_0x443425,_0x4874f0){_0x443425=_0x443425-0x0;var _0x52ec83=_0xdc2c[_0x443425];return _0x52ec83;};'use strict';var multer=require(_0xcdc2('0x0'));var util=require(_0xcdc2('0x1'));var path=require(_0xcdc2('0x2'));var timeout=require('connect-timeout');var express=require(_0xcdc2('0x3'));var router=express[_0xcdc2('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xcdc2('0x5'));router['get']('/',auth[_0xcdc2('0x6')](),controller[_0xcdc2('0x7')]);router[_0xcdc2('0x8')](_0xcdc2('0x9'),auth['isAuthenticated'](),controller[_0xcdc2('0xa')]);router[_0xcdc2('0xb')]('/',auth[_0xcdc2('0x6')](),controller[_0xcdc2('0xc')]);router[_0xcdc2('0xd')](_0xcdc2('0x9'),auth[_0xcdc2('0x6')](),controller['update']);router['delete'](_0xcdc2('0x9'),auth[_0xcdc2('0x6')](),controller[_0xcdc2('0xe')]);module[_0xcdc2('0xf')]=router;