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 _0x8cb9=['Fields','idField','nameField','customField','../../client','GetVtigerAccount','name','description','username','accessKey','serverUrl','VtigerConfiguration','Configurations','Subjects','type','variableName','Variable','VtigerField','Descriptions','content','key','keyType','keyContent'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x8cb9,0x77));var _0x98cb=function(_0x5c2150,_0x2db683){_0x5c2150=_0x5c2150-0x0;var _0x3cac1d=_0x8cb9[_0x5c2150];return _0x3cac1d;};'use strict';var client=require(_0x98cb('0x0'));exports['getVtigerAccounts']=function(){return function(_0x5e3dce){return client['Request'](_0x98cb('0x1'),{'options':{'raw':![],'attributes':['id',_0x98cb('0x2'),_0x98cb('0x3'),_0x98cb('0x4'),_0x98cb('0x5'),'remoteUri',_0x98cb('0x6')],'include':[{'model':_0x98cb('0x7'),'as':_0x98cb('0x8'),'attributes':['id','name'],'include':[{'model':'VtigerField','as':_0x98cb('0x9'),'attributes':['id',_0x98cb('0xa'),'content',_0x98cb('0xb')],'include':[{'model':_0x98cb('0xc'),'as':_0x98cb('0xc'),'attributes':['id','name']}]},{'model':_0x98cb('0xd'),'as':_0x98cb('0xe'),'attributes':['id','type',_0x98cb('0xf'),_0x98cb('0x10'),_0x98cb('0x11'),_0x98cb('0x12'),_0x98cb('0xb')],'include':[{'model':'Variable','as':_0x98cb('0xc'),'attributes':['id','name']}]},{'model':_0x98cb('0xd'),'as':_0x98cb('0x13'),'attributes':['id','type',_0x98cb('0xf'),_0x98cb('0x14'),_0x98cb('0x15'),_0x98cb('0x16'),_0x98cb('0xb')],'include':[{'model':'Variable','as':_0x98cb('0xc'),'attributes':['id',_0x98cb('0x2')]}]}]}]},'log':_0x98cb('0x1')});};};