88645644d177dca8c1bb6b539b3ad00eaf6b55c9
[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 _0x6c9f=['SquareOdbc','square_odbc','lodash','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x3f9dd9,_0x5d17c8){var _0x235dbe=function(_0x505759){while(--_0x505759){_0x3f9dd9['push'](_0x3f9dd9['shift']());}};_0x235dbe(++_0x5d17c8);}(_0x6c9f,0x16a));var _0xf6c9=function(_0x1a5446,_0x401806){_0x1a5446=_0x1a5446-0x0;var _0x62c9b5=_0x6c9f[_0x1a5446];return _0x62c9b5;};'use strict';var _=require(_0xf6c9('0x0'));var util=require('util');var logger=require(_0xf6c9('0x1'))('api');var moment=require(_0xf6c9('0x2'));var BPromise=require(_0xf6c9('0x3'));var rp=require(_0xf6c9('0x4'));var fs=require('fs');var path=require(_0xf6c9('0x5'));var rimraf=require(_0xf6c9('0x6'));var config=require(_0xf6c9('0x7'));var attributes=require('./squareOdbc.attributes');module[_0xf6c9('0x8')]=function(_0x1b92e6,_0x1de8c2){return _0x1b92e6[_0xf6c9('0x9')](_0xf6c9('0xa'),attributes,{'tableName':_0xf6c9('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};