Built motion from commit 994c64e1.|2.6.1
[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 _0x28c7=['nameField','customField','../../client','getVtigerAccounts','GetVtigerAccount','name','description','username','accessKey','remoteUri','VtigerConfiguration','VtigerField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','Fields','idField'];(function(_0x292f93,_0x2c6e8e){var _0x5a94b1=function(_0x25735e){while(--_0x25735e){_0x292f93['push'](_0x292f93['shift']());}};_0x5a94b1(++_0x2c6e8e);}(_0x28c7,0x1e6));var _0x728c=function(_0x31175e,_0xdff861){_0x31175e=_0x31175e-0x0;var _0x5c5c51=_0x28c7[_0x31175e];return _0x5c5c51;};'use strict';var client=require(_0x728c('0x0'));exports[_0x728c('0x1')]=function(){return function(_0x38eb8d){return client['Request'](_0x728c('0x2'),{'options':{'raw':![],'attributes':['id',_0x728c('0x3'),_0x728c('0x4'),_0x728c('0x5'),_0x728c('0x6'),_0x728c('0x7'),'serverUrl'],'include':[{'model':_0x728c('0x8'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x728c('0x9'),'as':_0x728c('0xa'),'attributes':['id',_0x728c('0xb'),_0x728c('0xc'),_0x728c('0xd')],'include':[{'model':_0x728c('0xe'),'as':'Variable','attributes':['id',_0x728c('0x3')]}]},{'model':_0x728c('0x9'),'as':'Descriptions','attributes':['id',_0x728c('0xb'),_0x728c('0xc'),_0x728c('0xf'),_0x728c('0x10'),_0x728c('0x11'),_0x728c('0xd')],'include':[{'model':_0x728c('0xe'),'as':_0x728c('0xe'),'attributes':['id',_0x728c('0x3')]}]},{'model':_0x728c('0x9'),'as':_0x728c('0x12'),'attributes':['id',_0x728c('0xb'),'content',_0x728c('0x13'),_0x728c('0x14'),_0x728c('0x15'),_0x728c('0xd')],'include':[{'model':_0x728c('0xe'),'as':_0x728c('0xe'),'attributes':['id','name']}]}]}]},'log':_0x728c('0x2')});};};