1591ad1c11858fc456c63581e4659d5660d7d295
[motion2.git] / server / api / smsInteraction / 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 _0x4367=['put','tracked','update','sms','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsInteraction.controller','get','isAuthenticated','index','/describe','/:id','/:id/messages','getMessages','/:id/download','download','post','addMessage','/:id/tags','smsinteraction:addtags'];(function(_0x330414,_0x4f3207){var _0x99dbff=function(_0x166f85){while(--_0x166f85){_0x330414['push'](_0x330414['shift']());}};_0x99dbff(++_0x4f3207);}(_0x4367,0x1f3));var _0x7436=function(_0x7e8ef0,_0x5e5227){_0x7e8ef0=_0x7e8ef0-0x0;var _0x25e2ea=_0x4367[_0x7e8ef0];return _0x25e2ea;};'use strict';var multer=require('multer');var util=require(_0x7436('0x0'));var path=require(_0x7436('0x1'));var timeout=require(_0x7436('0x2'));var express=require(_0x7436('0x3'));var router=express['Router']();var auth=require(_0x7436('0x4'));var interaction=require(_0x7436('0x5'));var config=require(_0x7436('0x6'));var controller=require(_0x7436('0x7'));router[_0x7436('0x8')]('/',auth[_0x7436('0x9')](),controller[_0x7436('0xa')]);router['get'](_0x7436('0xb'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x7436('0xc'),auth[_0x7436('0x9')](),controller['show']);router['get'](_0x7436('0xd'),auth[_0x7436('0x9')](),controller[_0x7436('0xe')]);router[_0x7436('0x8')](_0x7436('0xf'),auth['isAuthenticated'](),controller[_0x7436('0x10')]);router[_0x7436('0x11')]('/',auth['isAuthenticated'](),controller['create']);router[_0x7436('0x11')](_0x7436('0xd'),auth['isAuthenticated'](),controller[_0x7436('0x12')]);router[_0x7436('0x11')](_0x7436('0x13'),auth[_0x7436('0x9')](),interaction['tracked']('sms',_0x7436('0x14')),controller['addTags']);router[_0x7436('0x15')](_0x7436('0xc'),auth[_0x7436('0x9')](),interaction[_0x7436('0x16')]('sms','smsinteraction:update'),controller[_0x7436('0x17')]);router['delete'](_0x7436('0xc'),auth[_0x7436('0x9')](),interaction[_0x7436('0x16')](_0x7436('0x18'),'smsinteraction:destroy'),controller['destroy']);router['delete'](_0x7436('0x13'),auth[_0x7436('0x9')](),controller['removeTags']);module[_0x7436('0x19')]=router;