0f3e8f556ae0947f9e56e067ea323add51f833e0
[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 _0x95fe=['FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./intZohoField.attributes','exports','ZohoField','int_zoho_fields'];(function(_0x30f0ac,_0x5c4ee1){var _0x3132c5=function(_0x6d621e){while(--_0x6d621e){_0x30f0ac['push'](_0x30f0ac['shift']());}};_0x3132c5(++_0x5c4ee1);}(_0x95fe,0x7f));var _0xe95f=function(_0x2932cf,_0x362fd9){_0x2932cf=_0x2932cf-0x0;var _0x1711dd=_0x95fe[_0x2932cf];return _0x1711dd;};'use strict';var _=require(_0xe95f('0x0'));var util=require(_0xe95f('0x1'));var logger=require(_0xe95f('0x2'))(_0xe95f('0x3'));var moment=require(_0xe95f('0x4'));var BPromise=require(_0xe95f('0x5'));var rp=require(_0xe95f('0x6'));var fs=require('fs');var path=require(_0xe95f('0x7'));var rimraf=require(_0xe95f('0x8'));var config=require('../../config/environment');var attributes=require(_0xe95f('0x9'));module[_0xe95f('0xa')]=function(_0x2a2ef1,_0x410ca7){return _0x2a2ef1['define'](_0xe95f('0xb'),attributes,{'tableName':_0xe95f('0xc'),'paranoid':![],'indexes':[{'name':'zoho_unique_index','fields':['idField',_0xe95f('0xd')],'unique':!![]}],'timestamps':!![]});};