Built motion from commit f57cc866.|2.6.31
[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 _0x7b49=['../../config/environment','./cannedAnswer.controller','get','isAuthenticated','/:id','show','post','create','update','delete','destroy','exports','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x43e97d,_0x35c7ba){var _0x385d12=function(_0x5182b3){while(--_0x5182b3){_0x43e97d['push'](_0x43e97d['shift']());}};_0x385d12(++_0x35c7ba);}(_0x7b49,0xc7));var _0x97b4=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x7b49[_0x122ef9];return _0x42fba0;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x97b4('0x0'));var timeout=require(_0x97b4('0x1'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x97b4('0x2'));var auth=require(_0x97b4('0x3'));var interaction=require(_0x97b4('0x4'));var config=require(_0x97b4('0x5'));var controller=require(_0x97b4('0x6'));router[_0x97b4('0x7')]('/',auth[_0x97b4('0x8')](),controller['index']);router[_0x97b4('0x7')](_0x97b4('0x9'),auth['isAuthenticated'](),controller[_0x97b4('0xa')]);router[_0x97b4('0xb')]('/',auth[_0x97b4('0x8')](),controller[_0x97b4('0xc')]);router['put'](_0x97b4('0x9'),auth[_0x97b4('0x8')](),controller[_0x97b4('0xd')]);router[_0x97b4('0xe')](_0x97b4('0x9'),auth[_0x97b4('0x8')](),controller[_0x97b4('0xf')]);module[_0x97b4('0x10')]=router;