8f8d0270e2895c7018d9eb22c48eb2cda5903679
[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 _0x2c79=['update','destroy','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./cannedAnswer.controller','get','isAuthenticated','index','/:id','post','create','put'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0x2c79,0x102));var _0x92c7=function(_0x5e2d99,_0x53bd2f){_0x5e2d99=_0x5e2d99-0x0;var _0x43f756=_0x2c79[_0x5e2d99];return _0x43f756;};'use strict';var multer=require(_0x92c7('0x0'));var util=require(_0x92c7('0x1'));var path=require('path');var timeout=require(_0x92c7('0x2'));var express=require(_0x92c7('0x3'));var router=express['Router']();var auth=require(_0x92c7('0x4'));var interaction=require(_0x92c7('0x5'));var config=require('../../config/environment');var controller=require(_0x92c7('0x6'));router[_0x92c7('0x7')]('/',auth[_0x92c7('0x8')](),controller[_0x92c7('0x9')]);router[_0x92c7('0x7')](_0x92c7('0xa'),auth[_0x92c7('0x8')](),controller['show']);router[_0x92c7('0xb')]('/',auth[_0x92c7('0x8')](),controller[_0x92c7('0xc')]);router[_0x92c7('0xd')](_0x92c7('0xa'),auth[_0x92c7('0x8')](),controller[_0x92c7('0xe')]);router['delete'](_0x92c7('0xa'),auth[_0x92c7('0x8')](),controller[_0x92c7('0xf')]);module[_0x92c7('0x10')]=router;