932727e4249cea3f8ebd9cb417dede709b4f8042
[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 _0x0c94=['define','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash','util','moment','bluebird','path','../../config/environment','exports'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x0c94,0x71));var _0x40c9=function(_0x1f9f37,_0x18776e){_0x1f9f37=_0x1f9f37-0x0;var _0x21c080=_0x0c94[_0x1f9f37];return _0x21c080;};'use strict';var _=require(_0x40c9('0x0'));var util=require(_0x40c9('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x40c9('0x2'));var BPromise=require(_0x40c9('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x40c9('0x4'));var rimraf=require('rimraf');var config=require(_0x40c9('0x5'));var attributes=require('./intFreshdeskField.attributes');module[_0x40c9('0x6')]=function(_0x52d1b8,_0x10fcab){return _0x52d1b8[_0x40c9('0x7')]('FreshdeskField',attributes,{'tableName':_0x40c9('0x8'),'paranoid':![],'indexes':[{'name':_0x40c9('0x9'),'fields':[_0x40c9('0xa'),_0x40c9('0xb')],'unique':!![]}],'timestamps':!![]});};