716d6a260d2652ea11809783f51f3192bc0d3701
[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 _0x316f=['delete','destroy','multer','util','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','isAuthenticated','index','/:id','show','post','create','update'];(function(_0x117f99,_0x3a257c){var _0x2e7268=function(_0x26e104){while(--_0x26e104){_0x117f99['push'](_0x117f99['shift']());}};_0x2e7268(++_0x3a257c);}(_0x316f,0x134));var _0xf316=function(_0x1eb856,_0x3ab151){_0x1eb856=_0x1eb856-0x0;var _0x629b2b=_0x316f[_0x1eb856];return _0x629b2b;};'use strict';var multer=require(_0xf316('0x0'));var util=require(_0xf316('0x1'));var path=require('path');var timeout=require(_0xf316('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xf316('0x3'));var interaction=require(_0xf316('0x4'));var config=require(_0xf316('0x5'));var controller=require(_0xf316('0x6'));router[_0xf316('0x7')]('/',auth[_0xf316('0x8')](),controller[_0xf316('0x9')]);router[_0xf316('0x7')](_0xf316('0xa'),auth['isAuthenticated'](),controller[_0xf316('0xb')]);router[_0xf316('0xc')]('/',auth[_0xf316('0x8')](),controller[_0xf316('0xd')]);router['put'](_0xf316('0xa'),auth[_0xf316('0x8')](),controller[_0xf316('0xe')]);router[_0xf316('0xf')](_0xf316('0xa'),auth[_0xf316('0x8')](),controller[_0xf316('0x10')]);module['exports']=router;