c13e929844a52a3e121f2684d6d5867fcb069b28
[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 _0xbf94=['GetTrunk','registry','../client','getTrunks'];(function(_0x2eca40,_0x113232){var _0x482e92=function(_0x368982){while(--_0x368982){_0x2eca40['push'](_0x2eca40['shift']());}};_0x482e92(++_0x113232);}(_0xbf94,0x146));var _0x4bf9=function(_0x31fbc2,_0x432efd){_0x31fbc2=_0x31fbc2-0x0;var _0xf5d06a=_0xbf94[_0x31fbc2];return _0xf5d06a;};'use strict';var client=require(_0x4bf9('0x0'));exports[_0x4bf9('0x1')]=function(_0x9cb451){return function(_0x1a74dc){return client['Request'](_0x4bf9('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x4bf9('0x3'),'defaultuser']},'log':_0x4bf9('0x2')});};};