Built motion from commit (unavailable).|2.5.11
[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 _0xf4eb=['path','rimraf','../../config/environment','exports','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','bluebird','request-promise'];(function(_0x1cc1fd,_0x33f9f1){var _0x5e3d41=function(_0x356881){while(--_0x356881){_0x1cc1fd['push'](_0x1cc1fd['shift']());}};_0x5e3d41(++_0x33f9f1);}(_0xf4eb,0x188));var _0xbf4e=function(_0x544d30,_0x127188){_0x544d30=_0x544d30-0x0;var _0x281a76=_0xf4eb[_0x544d30];return _0x281a76;};'use strict';var _=require(_0xbf4e('0x0'));var util=require(_0xbf4e('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xbf4e('0x2'));var rp=require(_0xbf4e('0x3'));var fs=require('fs');var path=require(_0xbf4e('0x4'));var rimraf=require(_0xbf4e('0x5'));var config=require(_0xbf4e('0x6'));var attributes=require('./intFreshdeskField.attributes');module[_0xbf4e('0x7')]=function(_0x343fc2,_0x1f8a32){return _0x343fc2['define']('FreshdeskField',attributes,{'tableName':_0xbf4e('0x8'),'paranoid':![],'indexes':[{'name':_0xbf4e('0x9'),'fields':[_0xbf4e('0xa'),_0xbf4e('0xb')],'unique':!![]}],'timestamps':!![]});};