e771d3741f2487931358ce1cd38ec3cff1147723
[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 _0x3470=['../../config/environment','./squareMessage.attributes','exports','define','SquareMessage','square_messages','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf'];(function(_0x143ce6,_0x46e089){var _0x33ed64=function(_0x5a6856){while(--_0x5a6856){_0x143ce6['push'](_0x143ce6['shift']());}};_0x33ed64(++_0x46e089);}(_0x3470,0x1c8));var _0x0347=function(_0x3a9c01,_0x149452){_0x3a9c01=_0x3a9c01-0x0;var _0x4d676e=_0x3470[_0x3a9c01];return _0x4d676e;};'use strict';var _=require(_0x0347('0x0'));var util=require(_0x0347('0x1'));var logger=require(_0x0347('0x2'))(_0x0347('0x3'));var moment=require(_0x0347('0x4'));var BPromise=require(_0x0347('0x5'));var rp=require(_0x0347('0x6'));var fs=require('fs');var path=require(_0x0347('0x7'));var rimraf=require(_0x0347('0x8'));var config=require(_0x0347('0x9'));var attributes=require(_0x0347('0xa'));module[_0x0347('0xb')]=function(_0x4f2807,_0x5b7c09){return _0x4f2807[_0x0347('0xc')](_0x0347('0xd'),attributes,{'tableName':_0x0347('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};