2fa7ae82e11c0751ad40786f560456322f6b1898
[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 _0x9f89=['express','Router','../../components/auth/service','../../components/interaction/service','./smsInteraction.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/messages','getMessages','download','post','create','addMessage','/:id/tags','tracked','sms','smsinteraction:addtags','addTags','put','smsinteraction:update','update','smsinteraction:destroy','exports','util','connect-timeout'];(function(_0x487b0c,_0x14ff74){var _0x1adbdc=function(_0x2e7b9d){while(--_0x2e7b9d){_0x487b0c['push'](_0x487b0c['shift']());}};_0x1adbdc(++_0x14ff74);}(_0x9f89,0x13d));var _0x99f8=function(_0xf7831f,_0x1c6188){_0xf7831f=_0xf7831f-0x0;var _0x3f88e7=_0x9f89[_0xf7831f];return _0x3f88e7;};'use strict';var multer=require('multer');var util=require(_0x99f8('0x0'));var path=require('path');var timeout=require(_0x99f8('0x1'));var express=require(_0x99f8('0x2'));var router=express[_0x99f8('0x3')]();var auth=require(_0x99f8('0x4'));var interaction=require(_0x99f8('0x5'));var config=require('../../config/environment');var controller=require(_0x99f8('0x6'));router[_0x99f8('0x7')]('/',auth[_0x99f8('0x8')](),controller[_0x99f8('0x9')]);router[_0x99f8('0x7')](_0x99f8('0xa'),auth[_0x99f8('0x8')](),controller['describe']);router[_0x99f8('0x7')](_0x99f8('0xb'),auth[_0x99f8('0x8')](),controller[_0x99f8('0xc')]);router['get'](_0x99f8('0xd'),auth[_0x99f8('0x8')](),controller[_0x99f8('0xe')]);router[_0x99f8('0x7')]('/:id/download',auth[_0x99f8('0x8')](),controller[_0x99f8('0xf')]);router[_0x99f8('0x10')]('/',auth[_0x99f8('0x8')](),controller[_0x99f8('0x11')]);router[_0x99f8('0x10')](_0x99f8('0xd'),auth[_0x99f8('0x8')](),controller[_0x99f8('0x12')]);router[_0x99f8('0x10')](_0x99f8('0x13'),auth['isAuthenticated'](),interaction[_0x99f8('0x14')](_0x99f8('0x15'),_0x99f8('0x16')),controller[_0x99f8('0x17')]);router[_0x99f8('0x18')](_0x99f8('0xb'),auth[_0x99f8('0x8')](),interaction[_0x99f8('0x14')](_0x99f8('0x15'),_0x99f8('0x19')),controller[_0x99f8('0x1a')]);router['delete'](_0x99f8('0xb'),auth[_0x99f8('0x8')](),interaction['tracked'](_0x99f8('0x15'),_0x99f8('0x1b')),controller['destroy']);router['delete'](_0x99f8('0x13'),auth[_0x99f8('0x8')](),controller['removeTags']);module[_0x99f8('0x1c')]=router;