Built motion from commit 3e059bc2.|2.5.32
[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 _0xac35=['FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshsalesField.attributes','exports','FreshsalesField','freshsales_unique_index','idField'];(function(_0x4c0712,_0x45b4b9){var _0x4b86a0=function(_0x2ca820){while(--_0x2ca820){_0x4c0712['push'](_0x4c0712['shift']());}};_0x4b86a0(++_0x45b4b9);}(_0xac35,0x141));var _0x5ac3=function(_0x75bf0d,_0x328a37){_0x75bf0d=_0x75bf0d-0x0;var _0x4de7b1=_0xac35[_0x75bf0d];return _0x4de7b1;};'use strict';var _=require(_0x5ac3('0x0'));var util=require(_0x5ac3('0x1'));var logger=require(_0x5ac3('0x2'))(_0x5ac3('0x3'));var moment=require(_0x5ac3('0x4'));var BPromise=require(_0x5ac3('0x5'));var rp=require(_0x5ac3('0x6'));var fs=require('fs');var path=require(_0x5ac3('0x7'));var rimraf=require(_0x5ac3('0x8'));var config=require(_0x5ac3('0x9'));var attributes=require(_0x5ac3('0xa'));module[_0x5ac3('0xb')]=function(_0x33a8f2,_0x13d4fb){return _0x33a8f2['define'](_0x5ac3('0xc'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x5ac3('0xd'),'fields':[_0x5ac3('0xe'),_0x5ac3('0xf')],'unique':!![]}],'timestamps':!![]});};