Built motion from commit 753c950e.|2.5.42
[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 _0x384b=['Descriptions','content','key','keyContent','VtigerField','Fields','idField','nameField','customField','GetVtigerAccount','getVtigerAccounts','Request','name','description','username','accessKey','remoteUri','Configurations','type','variableName','Variable'];(function(_0x186332,_0x541429){var _0x3ecead=function(_0x1919fe){while(--_0x1919fe){_0x186332['push'](_0x186332['shift']());}};_0x3ecead(++_0x541429);}(_0x384b,0x1d8));var _0xb384=function(_0x2c80ff,_0x26055a){_0x2c80ff=_0x2c80ff-0x0;var _0x1f2e15=_0x384b[_0x2c80ff];return _0x1f2e15;};'use strict';var client=require('../../client');exports[_0xb384('0x0')]=function(){return function(_0x3c0ba6){return client[_0xb384('0x1')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id',_0xb384('0x2'),_0xb384('0x3'),_0xb384('0x4'),_0xb384('0x5'),_0xb384('0x6'),'serverUrl'],'include':[{'model':'VtigerConfiguration','as':_0xb384('0x7'),'attributes':['id',_0xb384('0x2')],'include':[{'model':'VtigerField','as':'Subjects','attributes':['id',_0xb384('0x8'),'content',_0xb384('0x9')],'include':[{'model':_0xb384('0xa'),'as':'Variable','attributes':['id',_0xb384('0x2')]}]},{'model':'VtigerField','as':_0xb384('0xb'),'attributes':['id',_0xb384('0x8'),_0xb384('0xc'),_0xb384('0xd'),'keyType',_0xb384('0xe'),_0xb384('0x9')],'include':[{'model':_0xb384('0xa'),'as':_0xb384('0xa'),'attributes':['id',_0xb384('0x2')]}]},{'model':_0xb384('0xf'),'as':_0xb384('0x10'),'attributes':['id',_0xb384('0x8'),_0xb384('0xc'),_0xb384('0x11'),_0xb384('0x12'),_0xb384('0x13'),_0xb384('0x9')],'include':[{'model':'Variable','as':_0xb384('0xa'),'attributes':['id','name']}]}]}]},'log':_0xb384('0x14')});};};