4b3a877641f6ecb10abc97149a725af21bfbb60d
[motion2.git] / server / api / intFreshsalesField / intFreshsalesField.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 _0x3d70=['../../config/logger','api','moment','bluebird','../../config/environment','exports','freshsales_unique_index','idField','FieldId','lodash','util'];(function(_0x1308a7,_0x32370e){var _0xdfd608=function(_0x30b397){while(--_0x30b397){_0x1308a7['push'](_0x1308a7['shift']());}};_0xdfd608(++_0x32370e);}(_0x3d70,0x13d));var _0x03d7=function(_0x31295c,_0x2f2b82){_0x31295c=_0x31295c-0x0;var _0x2c150e=_0x3d70[_0x31295c];return _0x2c150e;};'use strict';var _=require(_0x03d7('0x0'));var util=require(_0x03d7('0x1'));var logger=require(_0x03d7('0x2'))(_0x03d7('0x3'));var moment=require(_0x03d7('0x4'));var BPromise=require(_0x03d7('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x03d7('0x6'));var attributes=require('./intFreshsalesField.attributes');module[_0x03d7('0x7')]=function(_0x506314,_0x8015e){return _0x506314['define']('FreshsalesField',attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x03d7('0x8'),'fields':[_0x03d7('0x9'),_0x03d7('0xa')],'unique':!![]}],'timestamps':!![]});};