41a5db5ec82252a37412d9e705d818f2aebcc278
[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 _0x73a0=['Subjects','type','Variable','VtigerField','content','key','keyContent','nameField','customField','variableName','../../client','getVtigerAccounts','Request','GetVtigerAccount','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','name'];(function(_0x1a5cd7,_0x3811e9){var _0x399402=function(_0x2b388c){while(--_0x2b388c){_0x1a5cd7['push'](_0x1a5cd7['shift']());}};_0x399402(++_0x3811e9);}(_0x73a0,0x130));var _0x073a=function(_0x487df3,_0x601b4d){_0x487df3=_0x487df3-0x0;var _0x22269c=_0x73a0[_0x487df3];return _0x22269c;};'use strict';var client=require(_0x073a('0x0'));exports[_0x073a('0x1')]=function(){return function(_0x38a1c){return client[_0x073a('0x2')](_0x073a('0x3'),{'options':{'raw':![],'attributes':['id','name','description',_0x073a('0x4'),_0x073a('0x5'),_0x073a('0x6'),_0x073a('0x7')],'include':[{'model':_0x073a('0x8'),'as':_0x073a('0x9'),'attributes':['id',_0x073a('0xa')],'include':[{'model':'VtigerField','as':_0x073a('0xb'),'attributes':['id',_0x073a('0xc'),'content','variableName'],'include':[{'model':_0x073a('0xd'),'as':_0x073a('0xd'),'attributes':['id',_0x073a('0xa')]}]},{'model':_0x073a('0xe'),'as':'Descriptions','attributes':['id',_0x073a('0xc'),_0x073a('0xf'),_0x073a('0x10'),'keyType',_0x073a('0x11'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x073a('0xa')]}]},{'model':_0x073a('0xe'),'as':'Fields','attributes':['id',_0x073a('0xc'),_0x073a('0xf'),'idField',_0x073a('0x12'),_0x073a('0x13'),_0x073a('0x14')],'include':[{'model':'Variable','as':_0x073a('0xd'),'attributes':['id',_0x073a('0xa')]}]}]}]},'log':_0x073a('0x3')});};};