bec6fb4465b2ced77aaf026b7d7d7644b3bbad45
[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 _0x0700=['GetTrunk','name','defaultuser','../client','getTrunks','Request'];(function(_0x545d79,_0x3168b2){var _0x1dc91c=function(_0x41fc07){while(--_0x41fc07){_0x545d79['push'](_0x545d79['shift']());}};_0x1dc91c(++_0x3168b2);}(_0x0700,0x81));var _0x0070=function(_0x14d143,_0x3efea0){_0x14d143=_0x14d143-0x0;var _0x20e167=_0x0700[_0x14d143];return _0x20e167;};'use strict';var client=require(_0x0070('0x0'));exports[_0x0070('0x1')]=function(_0x399098){return function(_0x279a38){return client[_0x0070('0x2')](_0x0070('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0x0070('0x4'),'registry',_0x0070('0x5')]},'log':_0x0070('0x3')});};};