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