15a8d68b12047c22b63fe56f2bbf80b64a86edd7
[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 _0x0283=['variableName','Fields','idField','nameField','customField','GetVtigerAccount','../../client','getVtigerAccounts','Request','description','username','accessKey','remoteUri','VtigerConfiguration','Configurations','VtigerField','Subjects','content','Variable','name','type','key','keyType','keyContent'];(function(_0x1a7985,_0xf26463){var _0x43c0c5=function(_0x5a1246){while(--_0x5a1246){_0x1a7985['push'](_0x1a7985['shift']());}};_0x43c0c5(++_0xf26463);}(_0x0283,0x126));var _0x3028=function(_0x20ebb5,_0x237d88){_0x20ebb5=_0x20ebb5-0x0;var _0x487182=_0x0283[_0x20ebb5];return _0x487182;};'use strict';var client=require(_0x3028('0x0'));exports[_0x3028('0x1')]=function(){return function(_0x2ad052){return client[_0x3028('0x2')]('GetVtigerAccount',{'options':{'raw':![],'attributes':['id','name',_0x3028('0x3'),_0x3028('0x4'),_0x3028('0x5'),_0x3028('0x6'),'serverUrl'],'include':[{'model':_0x3028('0x7'),'as':_0x3028('0x8'),'attributes':['id','name'],'include':[{'model':_0x3028('0x9'),'as':_0x3028('0xa'),'attributes':['id','type',_0x3028('0xb'),'variableName'],'include':[{'model':_0x3028('0xc'),'as':_0x3028('0xc'),'attributes':['id',_0x3028('0xd')]}]},{'model':'VtigerField','as':'Descriptions','attributes':['id',_0x3028('0xe'),'content',_0x3028('0xf'),_0x3028('0x10'),_0x3028('0x11'),_0x3028('0x12')],'include':[{'model':'Variable','as':_0x3028('0xc'),'attributes':['id',_0x3028('0xd')]}]},{'model':_0x3028('0x9'),'as':_0x3028('0x13'),'attributes':['id',_0x3028('0xe'),_0x3028('0xb'),_0x3028('0x14'),_0x3028('0x15'),_0x3028('0x16'),'variableName'],'include':[{'model':_0x3028('0xc'),'as':_0x3028('0xc'),'attributes':['id','name']}]}]}]},'log':_0x3028('0x17')});};};