Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0xb741=['keyType','idField','nameField','customField','../../client','Request','GetVtigerAccount','username','remoteUri','serverUrl','VtigerConfiguration','Configurations','name','Subjects','type','content','variableName','Variable','VtigerField','key'];(function(_0x5d9173,_0x15aa34){var _0x18c5a2=function(_0x207320){while(--_0x207320){_0x5d9173['push'](_0x5d9173['shift']());}};_0x18c5a2(++_0x15aa34);}(_0xb741,0x1a8));var _0x1b74=function(_0xbef090,_0x25cc96){_0xbef090=_0xbef090-0x0;var _0x547a50=_0xb741[_0xbef090];return _0x547a50;};'use strict';var client=require(_0x1b74('0x0'));exports['getVtigerAccounts']=function(){return function(_0x35ee9a){return client[_0x1b74('0x1')](_0x1b74('0x2'),{'options':{'raw':![],'attributes':['id','name','description',_0x1b74('0x3'),'accessKey',_0x1b74('0x4'),_0x1b74('0x5')],'include':[{'model':_0x1b74('0x6'),'as':_0x1b74('0x7'),'attributes':['id',_0x1b74('0x8')],'include':[{'model':'VtigerField','as':_0x1b74('0x9'),'attributes':['id',_0x1b74('0xa'),_0x1b74('0xb'),_0x1b74('0xc')],'include':[{'model':_0x1b74('0xd'),'as':_0x1b74('0xd'),'attributes':['id','name']}]},{'model':_0x1b74('0xe'),'as':'Descriptions','attributes':['id',_0x1b74('0xa'),'content',_0x1b74('0xf'),_0x1b74('0x10'),'keyContent',_0x1b74('0xc')],'include':[{'model':_0x1b74('0xd'),'as':'Variable','attributes':['id',_0x1b74('0x8')]}]},{'model':_0x1b74('0xe'),'as':'Fields','attributes':['id',_0x1b74('0xa'),_0x1b74('0xb'),_0x1b74('0x11'),_0x1b74('0x12'),_0x1b74('0x13'),_0x1b74('0xc')],'include':[{'model':_0x1b74('0xd'),'as':'Variable','attributes':['id','name']}]}]}]},'log':'GetVtigerAccount'});};};