Built motion from commit ddca4d0d.|2.5.47
[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 _0x4ad0=['rimraf','exports','define','SquareOdbc','util','../../config/logger','api','moment','request-promise','path'];(function(_0x1728cf,_0x311c2f){var _0x4d61db=function(_0x46b608){while(--_0x46b608){_0x1728cf['push'](_0x1728cf['shift']());}};_0x4d61db(++_0x311c2f);}(_0x4ad0,0xb8));var _0x04ad=function(_0x1b5a5f,_0x1eaec4){_0x1b5a5f=_0x1b5a5f-0x0;var _0x347d4c=_0x4ad0[_0x1b5a5f];return _0x347d4c;};'use strict';var _=require('lodash');var util=require(_0x04ad('0x0'));var logger=require(_0x04ad('0x1'))(_0x04ad('0x2'));var moment=require(_0x04ad('0x3'));var BPromise=require('bluebird');var rp=require(_0x04ad('0x4'));var fs=require('fs');var path=require(_0x04ad('0x5'));var rimraf=require(_0x04ad('0x6'));var config=require('../../config/environment');var attributes=require('./squareOdbc.attributes');module[_0x04ad('0x7')]=function(_0x2934e1,_0x318c50){return _0x2934e1[_0x04ad('0x8')](_0x04ad('0x9'),attributes,{'tableName':'square_odbc','paranoid':![],'indexes':[],'timestamps':!![]});};