Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / smsAccount / 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 _0x2ea5=['removeAgents','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','/:id/dispositions','getDispositions','getAnswers','/:id/applications','getApplications','getInteractions','/:id/status','statusGet','post','addDisposition','/:id/canned_answers','addAnswer','notify','addApplications','/:id/send','send','/:id/users','put','delete','destroy','removeDispositions'];(function(_0x7e2eb0,_0x17cd58){var _0xd92de4=function(_0x5d005b){while(--_0x5d005b){_0x7e2eb0['push'](_0x7e2eb0['shift']());}};_0xd92de4(++_0x17cd58);}(_0x2ea5,0xab));var _0x52ea=function(_0x160c73,_0x2ee678){_0x160c73=_0x160c73-0x0;var _0xd9302=_0x2ea5[_0x160c73];return _0xd9302;};'use strict';var multer=require(_0x52ea('0x0'));var util=require(_0x52ea('0x1'));var path=require(_0x52ea('0x2'));var timeout=require(_0x52ea('0x3'));var express=require('express');var router=express[_0x52ea('0x4')]();var auth=require(_0x52ea('0x5'));var interaction=require(_0x52ea('0x6'));var config=require(_0x52ea('0x7'));var controller=require('./smsAccount.controller');router['get']('/',auth[_0x52ea('0x8')](),controller['index']);router[_0x52ea('0x9')]('/describe',auth[_0x52ea('0x8')](),controller['describe']);router[_0x52ea('0x9')](_0x52ea('0xa'),auth[_0x52ea('0x8')](),controller[_0x52ea('0xb')]);router[_0x52ea('0x9')](_0x52ea('0xc'),auth[_0x52ea('0x8')](),controller[_0x52ea('0xd')]);router[_0x52ea('0x9')]('/:id/canned_answers',auth[_0x52ea('0x8')](),controller[_0x52ea('0xe')]);router['get'](_0x52ea('0xf'),auth[_0x52ea('0x8')](),controller[_0x52ea('0x10')]);router['get']('/:id/interactions',auth[_0x52ea('0x8')](),controller[_0x52ea('0x11')]);router[_0x52ea('0x9')](_0x52ea('0x12'),controller[_0x52ea('0x13')]);router[_0x52ea('0x9')]('/:id/users',auth[_0x52ea('0x8')](),controller['getAgents']);router[_0x52ea('0x14')]('/',auth[_0x52ea('0x8')](),controller['create']);router[_0x52ea('0x14')](_0x52ea('0xc'),auth[_0x52ea('0x8')](),controller[_0x52ea('0x15')]);router[_0x52ea('0x14')](_0x52ea('0x16'),auth[_0x52ea('0x8')](),controller[_0x52ea('0x17')]);router[_0x52ea('0x14')]('/:id/notify',controller[_0x52ea('0x18')]);router[_0x52ea('0x14')](_0x52ea('0xf'),auth['isAuthenticated'](),controller[_0x52ea('0x19')]);router[_0x52ea('0x14')](_0x52ea('0x1a'),auth[_0x52ea('0x8')](),controller[_0x52ea('0x1b')]);router[_0x52ea('0x14')](_0x52ea('0x12'),controller['status']);router['post'](_0x52ea('0x1c'),auth[_0x52ea('0x8')](),controller['addAgents']);router[_0x52ea('0x1d')](_0x52ea('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x52ea('0x1e')]('/:id',auth[_0x52ea('0x8')](),controller[_0x52ea('0x1f')]);router[_0x52ea('0x1e')](_0x52ea('0xc'),auth[_0x52ea('0x8')](),controller[_0x52ea('0x20')]);router['delete'](_0x52ea('0x16'),auth[_0x52ea('0x8')](),controller['removeAnswers']);router[_0x52ea('0x1e')]('/:id/users',auth['isAuthenticated'](),controller[_0x52ea('0x21')]);module['exports']=router;