Built motion from commit 10af8726.|2.6.34
[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 _0x3abe=['keyType','idField','customField','getVtigerAccounts','Request','GetVtigerAccount','name','description','username','accessKey','remoteUri','VtigerConfiguration','Configurations','VtigerField','Subjects','type','variableName','Variable','content','key'];(function(_0x2da462,_0x279431){var _0x2c5067=function(_0x1564d3){while(--_0x1564d3){_0x2da462['push'](_0x2da462['shift']());}};_0x2c5067(++_0x279431);}(_0x3abe,0x157));var _0xe3ab=function(_0x493696,_0x10bee6){_0x493696=_0x493696-0x0;var _0x4f7ef7=_0x3abe[_0x493696];return _0x4f7ef7;};'use strict';var client=require('../../client');exports[_0xe3ab('0x0')]=function(){return function(_0x419775){return client[_0xe3ab('0x1')](_0xe3ab('0x2'),{'options':{'raw':![],'attributes':['id',_0xe3ab('0x3'),_0xe3ab('0x4'),_0xe3ab('0x5'),_0xe3ab('0x6'),_0xe3ab('0x7'),'serverUrl'],'include':[{'model':_0xe3ab('0x8'),'as':_0xe3ab('0x9'),'attributes':['id','name'],'include':[{'model':_0xe3ab('0xa'),'as':_0xe3ab('0xb'),'attributes':['id',_0xe3ab('0xc'),'content',_0xe3ab('0xd')],'include':[{'model':_0xe3ab('0xe'),'as':'Variable','attributes':['id',_0xe3ab('0x3')]}]},{'model':_0xe3ab('0xa'),'as':'Descriptions','attributes':['id',_0xe3ab('0xc'),_0xe3ab('0xf'),_0xe3ab('0x10'),_0xe3ab('0x11'),'keyContent','variableName'],'include':[{'model':_0xe3ab('0xe'),'as':'Variable','attributes':['id',_0xe3ab('0x3')]}]},{'model':_0xe3ab('0xa'),'as':'Fields','attributes':['id','type','content',_0xe3ab('0x12'),'nameField',_0xe3ab('0x13'),_0xe3ab('0xd')],'include':[{'model':_0xe3ab('0xe'),'as':_0xe3ab('0xe'),'attributes':['id',_0xe3ab('0x3')]}]}]}]},'log':_0xe3ab('0x2')});};};