Built motion from commit 85328c08.|2.5.50
[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 _0x1686=['keyType','keyContent','idField','nameField','customField','../../client','getVtigerAccounts','Request','description','username','accessKey','serverUrl','Configurations','name','Subjects','type','variableName','Variable','VtigerField','Descriptions','content','key'];(function(_0x131e4b,_0x535e53){var _0x1138df=function(_0x43eefb){while(--_0x43eefb){_0x131e4b['push'](_0x131e4b['shift']());}};_0x1138df(++_0x535e53);}(_0x1686,0x1bd));var _0x6168=function(_0x1ab075,_0x146a16){_0x1ab075=_0x1ab075-0x0;var _0x3845d0=_0x1686[_0x1ab075];return _0x3845d0;};'use strict';var client=require(_0x6168('0x0'));exports[_0x6168('0x1')]=function(){return function(_0x40cc0a){return client[_0x6168('0x2')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id','name',_0x6168('0x3'),_0x6168('0x4'),_0x6168('0x5'),'remoteUri',_0x6168('0x6')],'include':[{'model':'VtigerConfiguration','as':_0x6168('0x7'),'attributes':['id',_0x6168('0x8')],'include':[{'model':'VtigerField','as':_0x6168('0x9'),'attributes':['id',_0x6168('0xa'),'content',_0x6168('0xb')],'include':[{'model':_0x6168('0xc'),'as':'Variable','attributes':['id',_0x6168('0x8')]}]},{'model':_0x6168('0xd'),'as':_0x6168('0xe'),'attributes':['id',_0x6168('0xa'),_0x6168('0xf'),_0x6168('0x10'),_0x6168('0x11'),_0x6168('0x12'),'variableName'],'include':[{'model':_0x6168('0xc'),'as':_0x6168('0xc'),'attributes':['id',_0x6168('0x8')]}]},{'model':'VtigerField','as':'Fields','attributes':['id',_0x6168('0xa'),_0x6168('0xf'),_0x6168('0x13'),_0x6168('0x14'),_0x6168('0x15'),_0x6168('0xb')],'include':[{'model':_0x6168('0xc'),'as':_0x6168('0xc'),'attributes':['id',_0x6168('0x8')]}]}]}]},'log':'GetVtigerAccount'});};};