Built motion from commit (unavailable).|2.5.4
[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 _0x5c4e=['../../config/environment','./intFreshdeskField.attributes','exports','define','freshdesk_unique_index','idField','FieldId','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x1a2da0,_0x33eac0){var _0x47e3a0=function(_0x238d4d){while(--_0x238d4d){_0x1a2da0['push'](_0x1a2da0['shift']());}};_0x47e3a0(++_0x33eac0);}(_0x5c4e,0x125));var _0xe5c4=function(_0x1d6266,_0x4171af){_0x1d6266=_0x1d6266-0x0;var _0x5aaf21=_0x5c4e[_0x1d6266];return _0x5aaf21;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xe5c4('0x0'))(_0xe5c4('0x1'));var moment=require(_0xe5c4('0x2'));var BPromise=require(_0xe5c4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe5c4('0x4'));var rimraf=require(_0xe5c4('0x5'));var config=require(_0xe5c4('0x6'));var attributes=require(_0xe5c4('0x7'));module[_0xe5c4('0x8')]=function(_0x786a95,_0x4018d8){return _0x786a95[_0xe5c4('0x9')]('FreshdeskField',attributes,{'tableName':'int_freshdesk_fields','paranoid':![],'indexes':[{'name':_0xe5c4('0xa'),'fields':[_0xe5c4('0xb'),_0xe5c4('0xc')],'unique':!![]}],'timestamps':!![]});};