1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x6e6a=['bluebird','request-promise','rimraf','exports','SquareMessage','square_messages','../../config/logger','api','moment'];(function(_0x42c77e,_0x5c0fd5){var _0x58baaf=function(_0x1b72a9){while(--_0x1b72a9){_0x42c77e['push'](_0x42c77e['shift']());}};_0x58baaf(++_0x5c0fd5);}(_0x6e6a,0xf0));var _0xa6e6=function(_0xb3adf5,_0x3c6a97){_0xb3adf5=_0xb3adf5-0x0;var _0x15b27e=_0x6e6a[_0xb3adf5];return _0x15b27e;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xa6e6('0x0'))(_0xa6e6('0x1'));var moment=require(_0xa6e6('0x2'));var BPromise=require(_0xa6e6('0x3'));var rp=require(_0xa6e6('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa6e6('0x5'));var config=require('../../config/environment');var attributes=require('./squareMessage.attributes');module[_0xa6e6('0x6')]=function(_0x2def17,_0x2e3c21){return _0x2def17['define'](_0xa6e6('0x7'),attributes,{'tableName':_0xa6e6('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};