18a40265b9ad7fa84645ff2a8a9e0e1f553860a0
[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 _0x8e9d=['SquareMessage','square_messages','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./squareMessage.attributes','exports','define'];(function(_0x5001be,_0x297b66){var _0x11abfc=function(_0x36c52f){while(--_0x36c52f){_0x5001be['push'](_0x5001be['shift']());}};_0x11abfc(++_0x297b66);}(_0x8e9d,0xd2));var _0xd8e9=function(_0x22b4f0,_0x1cf2d9){_0x22b4f0=_0x22b4f0-0x0;var _0x472d38=_0x8e9d[_0x22b4f0];return _0x472d38;};'use strict';var _=require(_0xd8e9('0x0'));var util=require('util');var logger=require(_0xd8e9('0x1'))(_0xd8e9('0x2'));var moment=require(_0xd8e9('0x3'));var BPromise=require(_0xd8e9('0x4'));var rp=require(_0xd8e9('0x5'));var fs=require('fs');var path=require(_0xd8e9('0x6'));var rimraf=require(_0xd8e9('0x7'));var config=require('../../config/environment');var attributes=require(_0xd8e9('0x8'));module[_0xd8e9('0x9')]=function(_0xf70e5,_0x45c9b4){return _0xf70e5[_0xd8e9('0xa')](_0xd8e9('0xb'),attributes,{'tableName':_0xd8e9('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};