1d0576b310478765e57e7284ac81147f364ed187
[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 _0xabaf=['path','rimraf','../../config/environment','./squareMessage.attributes','SquareMessage','square_messages','lodash','util','moment','bluebird','request-promise'];(function(_0x2f4000,_0x513d52){var _0x624b2a=function(_0x3a58a0){while(--_0x3a58a0){_0x2f4000['push'](_0x2f4000['shift']());}};_0x624b2a(++_0x513d52);}(_0xabaf,0xa0));var _0xfaba=function(_0x1dde34,_0x5dc607){_0x1dde34=_0x1dde34-0x0;var _0x10f092=_0xabaf[_0x1dde34];return _0x10f092;};'use strict';var _=require(_0xfaba('0x0'));var util=require(_0xfaba('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xfaba('0x2'));var BPromise=require(_0xfaba('0x3'));var rp=require(_0xfaba('0x4'));var fs=require('fs');var path=require(_0xfaba('0x5'));var rimraf=require(_0xfaba('0x6'));var config=require(_0xfaba('0x7'));var attributes=require(_0xfaba('0x8'));module['exports']=function(_0x21ea14,_0x27d1d2){return _0x21ea14['define'](_0xfaba('0x9'),attributes,{'tableName':_0xfaba('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};