Built motion from commit (unavailable).|2.3.4
[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 _0x362c=['create','/:id/tags','tracked','sms','addTags','put','update','delete','smsinteraction:destroy','destroy','removeTags','multer','path','connect-timeout','express','Router','../../config/environment','./smsInteraction.controller','get','isAuthenticated','index','/:id','show','/:id/messages','getMessages','/:id/download','download','post'];(function(_0x5b19f9,_0x5752ab){var _0x541c23=function(_0x5c641d){while(--_0x5c641d){_0x5b19f9['push'](_0x5b19f9['shift']());}};_0x541c23(++_0x5752ab);}(_0x362c,0x15b));var _0xc362=function(_0x122525,_0x7652d8){_0x122525=_0x122525-0x0;var _0x511cf3=_0x362c[_0x122525];return _0x511cf3;};'use strict';var multer=require(_0xc362('0x0'));var util=require('util');var path=require(_0xc362('0x1'));var timeout=require(_0xc362('0x2'));var express=require(_0xc362('0x3'));var router=express[_0xc362('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xc362('0x5'));var controller=require(_0xc362('0x6'));router[_0xc362('0x7')]('/',auth[_0xc362('0x8')](),controller[_0xc362('0x9')]);router[_0xc362('0x7')]('/describe',auth[_0xc362('0x8')](),controller['describe']);router['get'](_0xc362('0xa'),auth[_0xc362('0x8')](),controller[_0xc362('0xb')]);router[_0xc362('0x7')](_0xc362('0xc'),auth['isAuthenticated'](),controller[_0xc362('0xd')]);router['get'](_0xc362('0xe'),auth[_0xc362('0x8')](),controller[_0xc362('0xf')]);router[_0xc362('0x10')]('/',auth[_0xc362('0x8')](),controller[_0xc362('0x11')]);router[_0xc362('0x10')](_0xc362('0xc'),auth[_0xc362('0x8')](),controller['addMessage']);router[_0xc362('0x10')](_0xc362('0x12'),auth[_0xc362('0x8')](),interaction[_0xc362('0x13')](_0xc362('0x14'),'smsinteraction:addtags'),controller[_0xc362('0x15')]);router[_0xc362('0x16')](_0xc362('0xa'),auth[_0xc362('0x8')](),interaction[_0xc362('0x13')](_0xc362('0x14'),'smsinteraction:update'),controller[_0xc362('0x17')]);router[_0xc362('0x18')](_0xc362('0xa'),auth[_0xc362('0x8')](),interaction[_0xc362('0x13')](_0xc362('0x14'),_0xc362('0x19')),controller[_0xc362('0x1a')]);router['delete'](_0xc362('0x12'),auth[_0xc362('0x8')](),controller[_0xc362('0x1b')]);module['exports']=router;