7439c0e09be70e48e06f9359c6da09d96bfe1873
[motion2.git] / server / services / ami / rpc / trunk.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 _0x49a4=['Request','GetTrunk','name','registry'];(function(_0x2728ab,_0x4d0d28){var _0x33d104=function(_0x5633c5){while(--_0x5633c5){_0x2728ab['push'](_0x2728ab['shift']());}};_0x33d104(++_0x4d0d28);}(_0x49a4,0x188));var _0x449a=function(_0x19e35c,_0x29cd1e){_0x19e35c=_0x19e35c-0x0;var _0x3e1fe8=_0x49a4[_0x19e35c];return _0x3e1fe8;};'use strict';var client=require('../client');exports['getTrunks']=function(_0x4e555e){return function(_0x47af88){return client[_0x449a('0x0')](_0x449a('0x1'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x449a('0x2'),_0x449a('0x3')]},'log':'GetTrunk'});};};