Built motion from commit (unavailable).|2.4.19
[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 _0x1bfd=['util','../../config/logger','api','bluebird','rimraf','../../config/environment','exports','SquareMessage','square_messages'];(function(_0x64b0d2,_0xbf5599){var _0x560c11=function(_0x3ca474){while(--_0x3ca474){_0x64b0d2['push'](_0x64b0d2['shift']());}};_0x560c11(++_0xbf5599);}(_0x1bfd,0x13b));var _0xd1bf=function(_0x42f1eb,_0x5364a2){_0x42f1eb=_0x42f1eb-0x0;var _0x51ac7f=_0x1bfd[_0x42f1eb];return _0x51ac7f;};'use strict';var _=require('lodash');var util=require(_0xd1bf('0x0'));var logger=require(_0xd1bf('0x1'))(_0xd1bf('0x2'));var moment=require('moment');var BPromise=require(_0xd1bf('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xd1bf('0x4'));var config=require(_0xd1bf('0x5'));var attributes=require('./squareMessage.attributes');module[_0xd1bf('0x6')]=function(_0x860c4,_0x2f0368){return _0x860c4['define'](_0xd1bf('0x7'),attributes,{'tableName':_0xd1bf('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};