9a06ef32fc81575711b215912302690e430374e9
[motion2.git] / server / api / squareOdbc / squareOdbc.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 _0x984a=['lodash','api','moment','bluebird','path','rimraf','exports','define','SquareOdbc','square_odbc'];(function(_0x402c8f,_0x30cc1d){var _0x11e809=function(_0x4ccfa3){while(--_0x4ccfa3){_0x402c8f['push'](_0x402c8f['shift']());}};_0x11e809(++_0x30cc1d);}(_0x984a,0x96));var _0xa984=function(_0xfc42b3,_0x1dd6f4){_0xfc42b3=_0xfc42b3-0x0;var _0x4bb392=_0x984a[_0xfc42b3];return _0x4bb392;};'use strict';var _=require(_0xa984('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xa984('0x1'));var moment=require(_0xa984('0x2'));var BPromise=require(_0xa984('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa984('0x4'));var rimraf=require(_0xa984('0x5'));var config=require('../../config/environment');var attributes=require('./squareOdbc.attributes');module[_0xa984('0x6')]=function(_0x5dbb86,_0x27a118){return _0x5dbb86[_0xa984('0x7')](_0xa984('0x8'),attributes,{'tableName':_0xa984('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};