f1c18118c9abb23613c6090881711a30c5afb67a
[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 _0xf79e=['exports','define','int_freshsales_fields','idField','FieldId','util','../../config/logger','api','bluebird','request-promise','../../config/environment','./intFreshsalesField.attributes'];(function(_0x3b0bf1,_0xf37f31){var _0x4bf8a6=function(_0x1e2745){while(--_0x1e2745){_0x3b0bf1['push'](_0x3b0bf1['shift']());}};_0x4bf8a6(++_0xf37f31);}(_0xf79e,0x185));var _0xef79=function(_0x324461,_0x237d75){_0x324461=_0x324461-0x0;var _0x42929e=_0xf79e[_0x324461];return _0x42929e;};'use strict';var _=require('lodash');var util=require(_0xef79('0x0'));var logger=require(_0xef79('0x1'))(_0xef79('0x2'));var moment=require('moment');var BPromise=require(_0xef79('0x3'));var rp=require(_0xef79('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xef79('0x5'));var attributes=require(_0xef79('0x6'));module[_0xef79('0x7')]=function(_0x22b3c2,_0x396c51){return _0x22b3c2[_0xef79('0x8')]('FreshsalesField',attributes,{'tableName':_0xef79('0x9'),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0xef79('0xa'),_0xef79('0xb')],'unique':!![]}],'timestamps':!![]});};