Built motion from commit 2b9af5da.|2.6.26
[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 _0x4953=['registry','../client','getTrunks','Request','GetTrunk'];(function(_0x2de020,_0x252df0){var _0x182b7c=function(_0xcbcdaa){while(--_0xcbcdaa){_0x2de020['push'](_0x2de020['shift']());}};_0x182b7c(++_0x252df0);}(_0x4953,0x10a));var _0x3495=function(_0x43cce6,_0x40c102){_0x43cce6=_0x43cce6-0x0;var _0x4ef752=_0x4953[_0x43cce6];return _0x4ef752;};'use strict';var client=require(_0x3495('0x0'));exports[_0x3495('0x1')]=function(_0x2cca73){return function(_0x1c5e7a){return client[_0x3495('0x2')](_0x3495('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x3495('0x4'),'defaultuser']},'log':_0x3495('0x3')});};};