Built motion from commit (unavailable).|2.5.14
[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 _0x92be=['path','rimraf','../../config/environment','exports','define','FreshdeskAccount','int_freshdesk_accounts','lodash','util','api','moment','bluebird'];(function(_0x1daf03,_0x8c1858){var _0x4de712=function(_0x95d6f8){while(--_0x95d6f8){_0x1daf03['push'](_0x1daf03['shift']());}};_0x4de712(++_0x8c1858);}(_0x92be,0x1ab));var _0xe92b=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x92be[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0xe92b('0x0'));var util=require(_0xe92b('0x1'));var logger=require('../../config/logger')(_0xe92b('0x2'));var moment=require(_0xe92b('0x3'));var BPromise=require(_0xe92b('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe92b('0x5'));var rimraf=require(_0xe92b('0x6'));var config=require(_0xe92b('0x7'));var attributes=require('./intFreshdeskAccount.attributes');var integrations=require('../../components/integrations/configuration');module[_0xe92b('0x8')]=function(_0x11a8cd,_0x486f71){return _0x11a8cd[_0xe92b('0x9')](_0xe92b('0xa'),attributes,{'tableName':_0xe92b('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};