928a20a0afbfe317a3f5d822b0bca60847e8895b
[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 _0x1c4e=['defaultuser','../client','getTrunks','Request','GetTrunk','name','registry'];(function(_0x356f41,_0x5e25e1){var _0x23444b=function(_0x2687a3){while(--_0x2687a3){_0x356f41['push'](_0x356f41['shift']());}};_0x23444b(++_0x5e25e1);}(_0x1c4e,0x7f));var _0xe1c4=function(_0x4c32bc,_0x3cefe4){_0x4c32bc=_0x4c32bc-0x0;var _0x26a3b4=_0x1c4e[_0x4c32bc];return _0x26a3b4;};'use strict';var client=require(_0xe1c4('0x0'));exports[_0xe1c4('0x1')]=function(_0x400144){return function(_0x5c3aa6){return client[_0xe1c4('0x2')](_0xe1c4('0x3'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xe1c4('0x4'),_0xe1c4('0x5'),_0xe1c4('0x6')]},'log':_0xe1c4('0x3')});};};