3411af1fd6809fa75a515652465aa94c12e61d20
[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 _0x868a=['GetTrunk','../client','getTrunks','Request','name','registry'];(function(_0x3b7a0c,_0xf1a4c2){var _0x3bb70f=function(_0x248b52){while(--_0x248b52){_0x3b7a0c['push'](_0x3b7a0c['shift']());}};_0x3bb70f(++_0xf1a4c2);}(_0x868a,0xbb));var _0xa868=function(_0x3a5e34,_0x4e3a17){_0x3a5e34=_0x3a5e34-0x0;var _0x129d11=_0x868a[_0x3a5e34];return _0x129d11;};'use strict';var client=require(_0xa868('0x0'));exports[_0xa868('0x1')]=function(_0x119c58){return function(_0xb4015c){return client[_0xa868('0x2')]('GetTrunk',{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xa868('0x3'),_0xa868('0x4'),'defaultuser']},'log':_0xa868('0x5')});};};