bdeb78ecbe795e1b3a5e63cb77748b5bab37fa88
[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 _0x8e40=['name','VtigerField','Subjects','type','content','Variable','Descriptions','key','keyType','variableName','Fields','nameField','customField','../../client','GetVtigerAccount','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations'];(function(_0x5b7820,_0x36ab53){var _0x17db47=function(_0x4805d3){while(--_0x4805d3){_0x5b7820['push'](_0x5b7820['shift']());}};_0x17db47(++_0x36ab53);}(_0x8e40,0x157));var _0x08e4=function(_0x2ac4af,_0x288c53){_0x2ac4af=_0x2ac4af-0x0;var _0x3a36df=_0x8e40[_0x2ac4af];return _0x3a36df;};'use strict';var client=require(_0x08e4('0x0'));exports['getVtigerAccounts']=function(){return function(_0x52d307){return client['Request'](_0x08e4('0x1'),{'options':{'raw':![],'attributes':['id','name',_0x08e4('0x2'),_0x08e4('0x3'),_0x08e4('0x4'),_0x08e4('0x5'),_0x08e4('0x6')],'include':[{'model':_0x08e4('0x7'),'as':_0x08e4('0x8'),'attributes':['id',_0x08e4('0x9')],'include':[{'model':_0x08e4('0xa'),'as':_0x08e4('0xb'),'attributes':['id',_0x08e4('0xc'),_0x08e4('0xd'),'variableName'],'include':[{'model':'Variable','as':_0x08e4('0xe'),'attributes':['id',_0x08e4('0x9')]}]},{'model':'VtigerField','as':_0x08e4('0xf'),'attributes':['id',_0x08e4('0xc'),'content',_0x08e4('0x10'),_0x08e4('0x11'),'keyContent',_0x08e4('0x12')],'include':[{'model':_0x08e4('0xe'),'as':'Variable','attributes':['id',_0x08e4('0x9')]}]},{'model':'VtigerField','as':_0x08e4('0x13'),'attributes':['id','type',_0x08e4('0xd'),'idField',_0x08e4('0x14'),_0x08e4('0x15'),'variableName'],'include':[{'model':_0x08e4('0xe'),'as':_0x08e4('0xe'),'attributes':['id','name']}]}]}]},'log':_0x08e4('0x1')});};};