Built motion from commit 82bb2304.|2.5.39
[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 _0xa90c=['Variable','VtigerField','keyType','keyContent','Fields','idField','nameField','customField','../../client','getVtigerAccounts','GetVtigerAccount','name','description','remoteUri','serverUrl','VtigerConfiguration','Configurations','Subjects','type','content','variableName'];(function(_0x5cc3d4,_0xbcbf9b){var _0x17ca31=function(_0x5dbd6d){while(--_0x5dbd6d){_0x5cc3d4['push'](_0x5cc3d4['shift']());}};_0x17ca31(++_0xbcbf9b);}(_0xa90c,0x71));var _0xca90=function(_0x3cfa98,_0x213aa4){_0x3cfa98=_0x3cfa98-0x0;var _0x1bf028=_0xa90c[_0x3cfa98];return _0x1bf028;};'use strict';var client=require(_0xca90('0x0'));exports[_0xca90('0x1')]=function(){return function(_0x1fdde4){return client['Request'](_0xca90('0x2'),{'options':{'raw':![],'attributes':['id',_0xca90('0x3'),_0xca90('0x4'),'username','accessKey',_0xca90('0x5'),_0xca90('0x6')],'include':[{'model':_0xca90('0x7'),'as':_0xca90('0x8'),'attributes':['id',_0xca90('0x3')],'include':[{'model':'VtigerField','as':_0xca90('0x9'),'attributes':['id',_0xca90('0xa'),_0xca90('0xb'),_0xca90('0xc')],'include':[{'model':_0xca90('0xd'),'as':_0xca90('0xd'),'attributes':['id',_0xca90('0x3')]}]},{'model':_0xca90('0xe'),'as':'Descriptions','attributes':['id',_0xca90('0xa'),_0xca90('0xb'),'key',_0xca90('0xf'),_0xca90('0x10'),_0xca90('0xc')],'include':[{'model':_0xca90('0xd'),'as':_0xca90('0xd'),'attributes':['id',_0xca90('0x3')]}]},{'model':_0xca90('0xe'),'as':_0xca90('0x11'),'attributes':['id',_0xca90('0xa'),'content',_0xca90('0x12'),_0xca90('0x13'),_0xca90('0x14'),_0xca90('0xc')],'include':[{'model':'Variable','as':_0xca90('0xd'),'attributes':['id','name']}]}]}]},'log':_0xca90('0x2')});};};