Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / intFreshdeskField / intFreshdeskField.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 _0x76e0=['request-promise','rimraf','./intFreshdeskField.attributes','exports','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','api','bluebird'];(function(_0x3351a1,_0x5aeb34){var _0x44bc6f=function(_0x27b636){while(--_0x27b636){_0x3351a1['push'](_0x3351a1['shift']());}};_0x44bc6f(++_0x5aeb34);}(_0x76e0,0x18e));var _0x076e=function(_0x254126,_0x1e5e17){_0x254126=_0x254126-0x0;var _0x43bedf=_0x76e0[_0x254126];return _0x43bedf;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x076e('0x0'));var moment=require('moment');var BPromise=require(_0x076e('0x1'));var rp=require(_0x076e('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0x076e('0x3'));var config=require('../../config/environment');var attributes=require(_0x076e('0x4'));module[_0x076e('0x5')]=function(_0x51699f,_0x4c7016){return _0x51699f['define'](_0x076e('0x6'),attributes,{'tableName':_0x076e('0x7'),'paranoid':![],'indexes':[{'name':_0x076e('0x8'),'fields':[_0x076e('0x9'),'FieldId'],'unique':!![]}],'timestamps':!![]});};