Built motion from commit cafec4f3.|2.6.31
[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 _0xf3cc=['getTrunks','GetTrunk','name','registry','../client'];(function(_0xa99357,_0x50ffad){var _0x111875=function(_0x4dce0c){while(--_0x4dce0c){_0xa99357['push'](_0xa99357['shift']());}};_0x111875(++_0x50ffad);}(_0xf3cc,0x10d));var _0xcf3c=function(_0x2543be,_0x19ebd6){_0x2543be=_0x2543be-0x0;var _0x4636d0=_0xf3cc[_0x2543be];return _0x4636d0;};'use strict';var client=require(_0xcf3c('0x0'));exports[_0xcf3c('0x1')]=function(_0x170f33){return function(_0x38c9f6){return client['Request'](_0xcf3c('0x2'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xcf3c('0x3'),_0xcf3c('0x4'),'defaultuser']},'log':_0xcf3c('0x2')});};};