Built motion from commit 449495f6.|2.6.27
[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 _0xbdf6=['rimraf','../../config/environment','exports','define','square_odbc','util','../../config/logger','api','moment','bluebird','path'];(function(_0x2b5a76,_0x49ccb4){var _0x5515dc=function(_0x1d9a5f){while(--_0x1d9a5f){_0x2b5a76['push'](_0x2b5a76['shift']());}};_0x5515dc(++_0x49ccb4);}(_0xbdf6,0x1d3));var _0x6bdf=function(_0x21abbc,_0x5c79db){_0x21abbc=_0x21abbc-0x0;var _0x3e5883=_0xbdf6[_0x21abbc];return _0x3e5883;};'use strict';var _=require('lodash');var util=require(_0x6bdf('0x0'));var logger=require(_0x6bdf('0x1'))(_0x6bdf('0x2'));var moment=require(_0x6bdf('0x3'));var BPromise=require(_0x6bdf('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6bdf('0x5'));var rimraf=require(_0x6bdf('0x6'));var config=require(_0x6bdf('0x7'));var attributes=require('./squareOdbc.attributes');module[_0x6bdf('0x8')]=function(_0x5c471d,_0x371940){return _0x5c471d[_0x6bdf('0x9')]('SquareOdbc',attributes,{'tableName':_0x6bdf('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};