3575252af5b3d8207bbadd878ee8cd13829d2ad7
[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 _0x793c=['Variable','type','key','Fields','nameField','customField','../../client','getVtigerAccounts','Request','GetVtigerAccount','name','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','VtigerField','Subjects','content','variableName'];(function(_0x372b89,_0x448dfb){var _0x45dbd5=function(_0x4333f1){while(--_0x4333f1){_0x372b89['push'](_0x372b89['shift']());}};_0x45dbd5(++_0x448dfb);}(_0x793c,0xa0));var _0xc793=function(_0x45783c,_0x49c56d){_0x45783c=_0x45783c-0x0;var _0x1161da=_0x793c[_0x45783c];return _0x1161da;};'use strict';var client=require(_0xc793('0x0'));exports[_0xc793('0x1')]=function(){return function(_0x308604){return client[_0xc793('0x2')](_0xc793('0x3'),{'options':{'raw':![],'attributes':['id',_0xc793('0x4'),_0xc793('0x5'),_0xc793('0x6'),_0xc793('0x7'),_0xc793('0x8'),_0xc793('0x9')],'include':[{'model':_0xc793('0xa'),'as':_0xc793('0xb'),'attributes':['id','name'],'include':[{'model':_0xc793('0xc'),'as':_0xc793('0xd'),'attributes':['id','type',_0xc793('0xe'),_0xc793('0xf')],'include':[{'model':'Variable','as':_0xc793('0x10'),'attributes':['id',_0xc793('0x4')]}]},{'model':_0xc793('0xc'),'as':'Descriptions','attributes':['id',_0xc793('0x11'),_0xc793('0xe'),_0xc793('0x12'),'keyType','keyContent',_0xc793('0xf')],'include':[{'model':_0xc793('0x10'),'as':_0xc793('0x10'),'attributes':['id','name']}]},{'model':_0xc793('0xc'),'as':_0xc793('0x13'),'attributes':['id',_0xc793('0x11'),'content','idField',_0xc793('0x14'),_0xc793('0x15'),_0xc793('0xf')],'include':[{'model':_0xc793('0x10'),'as':'Variable','attributes':['id',_0xc793('0x4')]}]}]}]},'log':'GetVtigerAccount'});};};