Built motion from commit 5b761a7b.|2.5.36
[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 _0x667c=['SquareMessage','square_messages','../../config/logger','moment','bluebird','request-promise','path','../../config/environment','./squareMessage.attributes','define'];(function(_0x273b4b,_0x276c2c){var _0x86dc4b=function(_0x5bc746){while(--_0x5bc746){_0x273b4b['push'](_0x273b4b['shift']());}};_0x86dc4b(++_0x276c2c);}(_0x667c,0xac));var _0xc667=function(_0x88e499,_0x33d653){_0x88e499=_0x88e499-0x0;var _0x4c19c0=_0x667c[_0x88e499];return _0x4c19c0;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xc667('0x0'))('api');var moment=require(_0xc667('0x1'));var BPromise=require(_0xc667('0x2'));var rp=require(_0xc667('0x3'));var fs=require('fs');var path=require(_0xc667('0x4'));var rimraf=require('rimraf');var config=require(_0xc667('0x5'));var attributes=require(_0xc667('0x6'));module['exports']=function(_0x24296c,_0x23396b){return _0x24296c[_0xc667('0x7')](_0xc667('0x8'),attributes,{'tableName':_0xc667('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};