d364fbbff35427285dbb935cfaf98b1b7bad7671
[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 _0x9e42=['define','SquareMessage','square_messages','util','api','moment','bluebird','../../config/environment','./squareMessage.attributes','exports'];(function(_0xa45f68,_0x290e16){var _0x3e48dd=function(_0x39e4cc){while(--_0x39e4cc){_0xa45f68['push'](_0xa45f68['shift']());}};_0x3e48dd(++_0x290e16);}(_0x9e42,0x1d9));var _0x29e4=function(_0x5f1cf8,_0x5e0923){_0x5f1cf8=_0x5f1cf8-0x0;var _0x27d0fa=_0x9e42[_0x5f1cf8];return _0x27d0fa;};'use strict';var _=require('lodash');var util=require(_0x29e4('0x0'));var logger=require('../../config/logger')(_0x29e4('0x1'));var moment=require(_0x29e4('0x2'));var BPromise=require(_0x29e4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x29e4('0x4'));var attributes=require(_0x29e4('0x5'));module[_0x29e4('0x6')]=function(_0x3aaed2,_0x5f0b48){return _0x3aaed2[_0x29e4('0x7')](_0x29e4('0x8'),attributes,{'tableName':_0x29e4('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};