f70692b67b9338ac339a8bf1d1c1a30af5062e04
[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 _0x468a=['bluebird','request-promise','path','rimraf','../../config/environment','./squareMessage.attributes','exports','util','../../config/logger','api','moment'];(function(_0x10d1a8,_0x21696c){var _0x416c65=function(_0x142e33){while(--_0x142e33){_0x10d1a8['push'](_0x10d1a8['shift']());}};_0x416c65(++_0x21696c);}(_0x468a,0xd8));var _0xa468=function(_0x19d65d,_0x54f503){_0x19d65d=_0x19d65d-0x0;var _0x28e2b0=_0x468a[_0x19d65d];return _0x28e2b0;};'use strict';var _=require('lodash');var util=require(_0xa468('0x0'));var logger=require(_0xa468('0x1'))(_0xa468('0x2'));var moment=require(_0xa468('0x3'));var BPromise=require(_0xa468('0x4'));var rp=require(_0xa468('0x5'));var fs=require('fs');var path=require(_0xa468('0x6'));var rimraf=require(_0xa468('0x7'));var config=require(_0xa468('0x8'));var attributes=require(_0xa468('0x9'));module[_0xa468('0xa')]=function(_0x1adc75,_0x62ba31){return _0x1adc75['define']('SquareMessage',attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};