Built motion from commit ddca4d0d.|2.5.47
[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 _0xaf8c=['Descriptions','key','keyType','keyContent','nameField','customField','../../client','getVtigerAccounts','GetVtigerAccount','name','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','VtigerField','Subjects','type','content','variableName','Variable'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xaf8c,0xbe));var _0xcaf8=function(_0x2ae2f0,_0x72deeb){_0x2ae2f0=_0x2ae2f0-0x0;var _0x1be261=_0xaf8c[_0x2ae2f0];return _0x1be261;};'use strict';var client=require(_0xcaf8('0x0'));exports[_0xcaf8('0x1')]=function(){return function(_0x128f0f){return client['Request'](_0xcaf8('0x2'),{'options':{'raw':![],'attributes':['id',_0xcaf8('0x3'),_0xcaf8('0x4'),_0xcaf8('0x5'),_0xcaf8('0x6'),_0xcaf8('0x7'),_0xcaf8('0x8')],'include':[{'model':_0xcaf8('0x9'),'as':_0xcaf8('0xa'),'attributes':['id',_0xcaf8('0x3')],'include':[{'model':_0xcaf8('0xb'),'as':_0xcaf8('0xc'),'attributes':['id',_0xcaf8('0xd'),_0xcaf8('0xe'),_0xcaf8('0xf')],'include':[{'model':_0xcaf8('0x10'),'as':'Variable','attributes':['id',_0xcaf8('0x3')]}]},{'model':_0xcaf8('0xb'),'as':_0xcaf8('0x11'),'attributes':['id',_0xcaf8('0xd'),_0xcaf8('0xe'),_0xcaf8('0x12'),_0xcaf8('0x13'),_0xcaf8('0x14'),_0xcaf8('0xf')],'include':[{'model':_0xcaf8('0x10'),'as':_0xcaf8('0x10'),'attributes':['id','name']}]},{'model':_0xcaf8('0xb'),'as':'Fields','attributes':['id',_0xcaf8('0xd'),_0xcaf8('0xe'),'idField',_0xcaf8('0x15'),_0xcaf8('0x16'),_0xcaf8('0xf')],'include':[{'model':_0xcaf8('0x10'),'as':_0xcaf8('0x10'),'attributes':['id',_0xcaf8('0x3')]}]}]}]},'log':_0xcaf8('0x2')});};};