b8affc466bc7a156c8ab4425f02550be486cb7ec
[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 _0x793a=['Request','GetVtigerAccount','name','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','Subjects','type','content','variableName','Variable','VtigerField','Descriptions','keyType','Fields','nameField','customField','getVtigerAccounts'];(function(_0x395f7f,_0x1dc75a){var _0x42a7a1=function(_0x38a0b6){while(--_0x38a0b6){_0x395f7f['push'](_0x395f7f['shift']());}};_0x42a7a1(++_0x1dc75a);}(_0x793a,0x6d));var _0xa793=function(_0xea7b87,_0x4c5a3d){_0xea7b87=_0xea7b87-0x0;var _0x45a902=_0x793a[_0xea7b87];return _0x45a902;};'use strict';var client=require('../../client');exports[_0xa793('0x0')]=function(){return function(_0x563909){return client[_0xa793('0x1')](_0xa793('0x2'),{'options':{'raw':![],'attributes':['id',_0xa793('0x3'),_0xa793('0x4'),_0xa793('0x5'),_0xa793('0x6'),_0xa793('0x7'),_0xa793('0x8')],'include':[{'model':_0xa793('0x9'),'as':_0xa793('0xa'),'attributes':['id',_0xa793('0x3')],'include':[{'model':'VtigerField','as':_0xa793('0xb'),'attributes':['id',_0xa793('0xc'),_0xa793('0xd'),_0xa793('0xe')],'include':[{'model':_0xa793('0xf'),'as':_0xa793('0xf'),'attributes':['id',_0xa793('0x3')]}]},{'model':_0xa793('0x10'),'as':_0xa793('0x11'),'attributes':['id',_0xa793('0xc'),_0xa793('0xd'),'key',_0xa793('0x12'),'keyContent',_0xa793('0xe')],'include':[{'model':_0xa793('0xf'),'as':_0xa793('0xf'),'attributes':['id',_0xa793('0x3')]}]},{'model':'VtigerField','as':_0xa793('0x13'),'attributes':['id',_0xa793('0xc'),_0xa793('0xd'),'idField',_0xa793('0x14'),_0xa793('0x15'),'variableName'],'include':[{'model':_0xa793('0xf'),'as':'Variable','attributes':['id',_0xa793('0x3')]}]}]}]},'log':_0xa793('0x2')});};};