Built motion from commit 092f8824.|2.5.49
[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 _0x1848=['util','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','define','SquareMessage','square_messages'];(function(_0x12ca1e,_0x30c726){var _0x105377=function(_0x5d26a6){while(--_0x5d26a6){_0x12ca1e['push'](_0x12ca1e['shift']());}};_0x105377(++_0x30c726);}(_0x1848,0x64));var _0x8184=function(_0x967a95,_0x1f961b){_0x967a95=_0x967a95-0x0;var _0x39f8f5=_0x1848[_0x967a95];return _0x39f8f5;};'use strict';var _=require('lodash');var util=require(_0x8184('0x0'));var logger=require(_0x8184('0x1'))('api');var moment=require(_0x8184('0x2'));var BPromise=require(_0x8184('0x3'));var rp=require(_0x8184('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8184('0x5'));var config=require(_0x8184('0x6'));var attributes=require('./squareMessage.attributes');module['exports']=function(_0x20bc20,_0x20b5d2){return _0x20bc20[_0x8184('0x7')](_0x8184('0x8'),attributes,{'tableName':_0x8184('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};