614f0ff0fc7570e6d05e36e7c5b8261d81541d0d
[motion2.git] / server / api / squareMessage / squareMessage.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 _0x663e=['../../config/environment','define','SquareMessage','square_messages','util','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x7e2eb0,_0x17cd58){var _0xd92de4=function(_0x5d005b){while(--_0x5d005b){_0x7e2eb0['push'](_0x7e2eb0['shift']());}};_0xd92de4(++_0x17cd58);}(_0x663e,0x1d2));var _0xe663=function(_0x17c1e8,_0x580060){_0x17c1e8=_0x17c1e8-0x0;var _0x2d3eae=_0x663e[_0x17c1e8];return _0x2d3eae;};'use strict';var _=require('lodash');var util=require(_0xe663('0x0'));var logger=require('../../config/logger')(_0xe663('0x1'));var moment=require(_0xe663('0x2'));var BPromise=require(_0xe663('0x3'));var rp=require(_0xe663('0x4'));var fs=require('fs');var path=require(_0xe663('0x5'));var rimraf=require(_0xe663('0x6'));var config=require(_0xe663('0x7'));var attributes=require('./squareMessage.attributes');module['exports']=function(_0xabf02e,_0x354af7){return _0xabf02e[_0xe663('0x8')](_0xe663('0x9'),attributes,{'tableName':_0xe663('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};