Built motion from commit (unavailable).|2.5.2
[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 _0xfde5=['api','moment','bluebird','path','define','square_messages','lodash'];(function(_0xf50820,_0x56f041){var _0x2a9b10=function(_0x33f0f4){while(--_0x33f0f4){_0xf50820['push'](_0xf50820['shift']());}};_0x2a9b10(++_0x56f041);}(_0xfde5,0x16b));var _0x5fde=function(_0x15e0f4,_0x43b720){_0x15e0f4=_0x15e0f4-0x0;var _0x273500=_0xfde5[_0x15e0f4];return _0x273500;};'use strict';var _=require(_0x5fde('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x5fde('0x1'));var moment=require(_0x5fde('0x2'));var BPromise=require(_0x5fde('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5fde('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./squareMessage.attributes');module['exports']=function(_0x589331,_0x4d13cc){return _0x589331[_0x5fde('0x5')]('SquareMessage',attributes,{'tableName':_0x5fde('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};