Built motion from commit fe909640.|2.6.8
[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 _0x54f6=['rimraf','../../config/environment','../../components/integrations/configuration','exports','define','FreshdeskAccount','int_freshdesk_accounts','lodash','../../config/logger','moment','bluebird','request-promise'];(function(_0x5ba1e8,_0xba5705){var _0x157c6b=function(_0x5c7d09){while(--_0x5c7d09){_0x5ba1e8['push'](_0x5ba1e8['shift']());}};_0x157c6b(++_0xba5705);}(_0x54f6,0x193));var _0x654f=function(_0x2a4ed3,_0x5ca1ba){_0x2a4ed3=_0x2a4ed3-0x0;var _0x2a163d=_0x54f6[_0x2a4ed3];return _0x2a163d;};'use strict';var _=require(_0x654f('0x0'));var util=require('util');var logger=require(_0x654f('0x1'))('api');var moment=require(_0x654f('0x2'));var BPromise=require(_0x654f('0x3'));var rp=require(_0x654f('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x654f('0x5'));var config=require(_0x654f('0x6'));var attributes=require('./intFreshdeskAccount.attributes');var integrations=require(_0x654f('0x7'));module[_0x654f('0x8')]=function(_0x7cb8bb,_0x170cdd){return _0x7cb8bb[_0x654f('0x9')](_0x654f('0xa'),attributes,{'tableName':_0x654f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};