Built motion from commit 0c5f406c.|2.6.29
[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 _0x43f0=['request-promise','rimraf','exports','define','SquareOdbc','square_odbc','lodash','util','../../config/logger','moment'];(function(_0x12591f,_0x68f920){var _0x382e61=function(_0xa7e963){while(--_0xa7e963){_0x12591f['push'](_0x12591f['shift']());}};_0x382e61(++_0x68f920);}(_0x43f0,0x1d2));var _0x043f=function(_0xe2da2f,_0x1ce93d){_0xe2da2f=_0xe2da2f-0x0;var _0x42b59c=_0x43f0[_0xe2da2f];return _0x42b59c;};'use strict';var _=require(_0x043f('0x0'));var util=require(_0x043f('0x1'));var logger=require(_0x043f('0x2'))('api');var moment=require(_0x043f('0x3'));var BPromise=require('bluebird');var rp=require(_0x043f('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x043f('0x5'));var config=require('../../config/environment');var attributes=require('./squareOdbc.attributes');module[_0x043f('0x6')]=function(_0xc49784,_0x97a5ca){return _0xc49784[_0x043f('0x7')](_0x043f('0x8'),attributes,{'tableName':_0x043f('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};