b585f268e1cc9a6ac12c16be434ab7b859699d72
[motion2.git] / server / api / intZohoField / intZohoField.model.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 _0xccec=['lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intZohoField.attributes','exports','define','ZohoField','int_zoho_fields','zoho_unique_index','idField'];(function(_0x1570de,_0x1b8ae6){var _0x14e136=function(_0x556e8b){while(--_0x556e8b){_0x1570de['push'](_0x1570de['shift']());}};_0x14e136(++_0x1b8ae6);}(_0xccec,0x100));var _0xccce=function(_0x3be0c4,_0x5b7eff){_0x3be0c4=_0x3be0c4-0x0;var _0x11af9f=_0xccec[_0x3be0c4];return _0x11af9f;};'use strict';var _=require(_0xccce('0x0'));var util=require(_0xccce('0x1'));var logger=require(_0xccce('0x2'))('api');var moment=require(_0xccce('0x3'));var BPromise=require(_0xccce('0x4'));var rp=require(_0xccce('0x5'));var fs=require('fs');var path=require(_0xccce('0x6'));var rimraf=require(_0xccce('0x7'));var config=require(_0xccce('0x8'));var attributes=require(_0xccce('0x9'));module[_0xccce('0xa')]=function(_0x154f53,_0x57f2db){return _0x154f53[_0xccce('0xb')](_0xccce('0xc'),attributes,{'tableName':_0xccce('0xd'),'paranoid':![],'indexes':[{'name':_0xccce('0xe'),'fields':[_0xccce('0xf'),'FieldId'],'unique':!![]}],'timestamps':!![]});};