a0ce030ea6040593820fb9fdb9aa15ca41413dcb
[motion2.git] / server / api / intFreshdeskAccount / intFreshdeskAccount.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 _0x10c7=['bluebird','request-promise','path','rimraf','../../config/environment','exports','define','FreshdeskAccount','int_freshdesk_accounts','lodash','util','../../config/logger','api','moment'];(function(_0x47b595,_0x32dae3){var _0x33b16c=function(_0x14ff08){while(--_0x14ff08){_0x47b595['push'](_0x47b595['shift']());}};_0x33b16c(++_0x32dae3);}(_0x10c7,0x1d7));var _0x710c=function(_0x1c3a1a,_0xfa88ee){_0x1c3a1a=_0x1c3a1a-0x0;var _0x37eb4e=_0x10c7[_0x1c3a1a];return _0x37eb4e;};'use strict';var _=require(_0x710c('0x0'));var util=require(_0x710c('0x1'));var logger=require(_0x710c('0x2'))(_0x710c('0x3'));var moment=require(_0x710c('0x4'));var BPromise=require(_0x710c('0x5'));var rp=require(_0x710c('0x6'));var fs=require('fs');var path=require(_0x710c('0x7'));var rimraf=require(_0x710c('0x8'));var config=require(_0x710c('0x9'));var attributes=require('./intFreshdeskAccount.attributes');var integrations=require('../../components/integrations/configuration');module[_0x710c('0xa')]=function(_0x3a7ce8,_0x4d6690){return _0x3a7ce8[_0x710c('0xb')](_0x710c('0xc'),attributes,{'tableName':_0x710c('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};