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 _0x5dea=['request-promise','path','../../config/environment','./squareMessage.attributes','exports','define','SquareMessage','lodash','util','moment'];(function(_0x4d0662,_0x145963){var _0x6eea6d=function(_0x2def06){while(--_0x2def06){_0x4d0662['push'](_0x4d0662['shift']());}};_0x6eea6d(++_0x145963);}(_0x5dea,0x1ab));var _0xa5de=function(_0xa568f3,_0x25b220){_0xa568f3=_0xa568f3-0x0;var _0x20bb26=_0x5dea[_0xa568f3];return _0x20bb26;};'use strict';var _=require(_0xa5de('0x0'));var util=require(_0xa5de('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xa5de('0x2'));var BPromise=require('bluebird');var rp=require(_0xa5de('0x3'));var fs=require('fs');var path=require(_0xa5de('0x4'));var rimraf=require('rimraf');var config=require(_0xa5de('0x5'));var attributes=require(_0xa5de('0x6'));module[_0xa5de('0x7')]=function(_0x4f2eca,_0x356247){return _0x4f2eca[_0xa5de('0x8')](_0xa5de('0x9'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};