Built motion from commit 85328c08.|2.5.50
[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 _0x0e94=['freshdesk_unique_index','FieldId','lodash','api','moment','bluebird','request-promise','path','rimraf','./intFreshdeskField.attributes','exports','define','FreshdeskField','int_freshdesk_fields'];(function(_0x533a41,_0x53afd0){var _0xfec6b9=function(_0x427352){while(--_0x427352){_0x533a41['push'](_0x533a41['shift']());}};_0xfec6b9(++_0x53afd0);}(_0x0e94,0x8e));var _0x40e9=function(_0x465a0c,_0x19d4d5){_0x465a0c=_0x465a0c-0x0;var _0x1e202e=_0x0e94[_0x465a0c];return _0x1e202e;};'use strict';var _=require(_0x40e9('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x40e9('0x1'));var moment=require(_0x40e9('0x2'));var BPromise=require(_0x40e9('0x3'));var rp=require(_0x40e9('0x4'));var fs=require('fs');var path=require(_0x40e9('0x5'));var rimraf=require(_0x40e9('0x6'));var config=require('../../config/environment');var attributes=require(_0x40e9('0x7'));module[_0x40e9('0x8')]=function(_0xea3cdb,_0x41b6be){return _0xea3cdb[_0x40e9('0x9')](_0x40e9('0xa'),attributes,{'tableName':_0x40e9('0xb'),'paranoid':![],'indexes':[{'name':_0x40e9('0xc'),'fields':['idField',_0x40e9('0xd')],'unique':!![]}],'timestamps':!![]});};