Built motion from commit (unavailable).|2.5.21
[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 _0xf350=['path','rimraf','../../config/environment','./intFreshsalesField.attributes','define','FreshsalesField','freshsales_unique_index','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x59fccb,_0x387811){var _0x518c77=function(_0x43cb4f){while(--_0x43cb4f){_0x59fccb['push'](_0x59fccb['shift']());}};_0x518c77(++_0x387811);}(_0xf350,0x1f1));var _0x0f35=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xf350[_0x122ef9];return _0x42fba0;};'use strict';var _=require(_0x0f35('0x0'));var util=require(_0x0f35('0x1'));var logger=require(_0x0f35('0x2'))(_0x0f35('0x3'));var moment=require(_0x0f35('0x4'));var BPromise=require(_0x0f35('0x5'));var rp=require(_0x0f35('0x6'));var fs=require('fs');var path=require(_0x0f35('0x7'));var rimraf=require(_0x0f35('0x8'));var config=require(_0x0f35('0x9'));var attributes=require(_0x0f35('0xa'));module['exports']=function(_0x5b4fa6,_0x1e2cec){return _0x5b4fa6[_0x0f35('0xb')](_0x0f35('0xc'),attributes,{'tableName':'int_freshsales_fields','paranoid':![],'indexes':[{'name':_0x0f35('0xd'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};