90dca49921bffc2844a8558f4a07b9c71d7d81ad
[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 _0x00a9=['SquareMessage','square_messages','lodash','util','../../config/logger','moment','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x569796,_0x221089){var _0x694fcd=function(_0x101dbe){while(--_0x101dbe){_0x569796['push'](_0x569796['shift']());}};_0x694fcd(++_0x221089);}(_0x00a9,0x1ee));var _0x900a=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x00a9[_0x167cc1];return _0x10bc4b;};'use strict';var _=require(_0x900a('0x0'));var util=require(_0x900a('0x1'));var logger=require(_0x900a('0x2'))('api');var moment=require(_0x900a('0x3'));var BPromise=require('bluebird');var rp=require(_0x900a('0x4'));var fs=require('fs');var path=require(_0x900a('0x5'));var rimraf=require(_0x900a('0x6'));var config=require(_0x900a('0x7'));var attributes=require('./squareMessage.attributes');module[_0x900a('0x8')]=function(_0x2246c9,_0x3fe29d){return _0x2246c9[_0x900a('0x9')](_0x900a('0xa'),attributes,{'tableName':_0x900a('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};