Built motion from commit f541bb3b.|2.6.14
[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 _0x589f=['Fields','idField','customField','../../client','Request','name','description','username','accessKey','remoteUri','VtigerConfiguration','Configurations','Subjects','type','content','variableName','Variable','VtigerField','Descriptions','key','keyContent'];(function(_0x10dbba,_0x45e541){var _0x3110d1=function(_0x27ea4e){while(--_0x27ea4e){_0x10dbba['push'](_0x10dbba['shift']());}};_0x3110d1(++_0x45e541);}(_0x589f,0x1e6));var _0xf589=function(_0x3b2421,_0xf30f91){_0x3b2421=_0x3b2421-0x0;var _0x288bde=_0x589f[_0x3b2421];return _0x288bde;};'use strict';var client=require(_0xf589('0x0'));exports['getVtigerAccounts']=function(){return function(_0x2bdc32){return client[_0xf589('0x1')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id',_0xf589('0x2'),_0xf589('0x3'),_0xf589('0x4'),_0xf589('0x5'),_0xf589('0x6'),'serverUrl'],'include':[{'model':_0xf589('0x7'),'as':_0xf589('0x8'),'attributes':['id',_0xf589('0x2')],'include':[{'model':'VtigerField','as':_0xf589('0x9'),'attributes':['id',_0xf589('0xa'),_0xf589('0xb'),_0xf589('0xc')],'include':[{'model':_0xf589('0xd'),'as':'Variable','attributes':['id',_0xf589('0x2')]}]},{'model':_0xf589('0xe'),'as':_0xf589('0xf'),'attributes':['id',_0xf589('0xa'),_0xf589('0xb'),_0xf589('0x10'),'keyType',_0xf589('0x11'),_0xf589('0xc')],'include':[{'model':_0xf589('0xd'),'as':_0xf589('0xd'),'attributes':['id',_0xf589('0x2')]}]},{'model':'VtigerField','as':_0xf589('0x12'),'attributes':['id',_0xf589('0xa'),_0xf589('0xb'),_0xf589('0x13'),'nameField',_0xf589('0x14'),'variableName'],'include':[{'model':_0xf589('0xd'),'as':'Variable','attributes':['id',_0xf589('0x2')]}]}]}]},'log':'GetVtigerAccount'});};};