Built motion from commit a679711e.|2.6.15
[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 _0xdc46=['api','bluebird','request-promise','path','../../config/environment','./squareMessage.attributes','exports','define','SquareMessage','util','../../config/logger'];(function(_0x5f21aa,_0x3b79af){var _0x3d621c=function(_0x4a00bf){while(--_0x4a00bf){_0x5f21aa['push'](_0x5f21aa['shift']());}};_0x3d621c(++_0x3b79af);}(_0xdc46,0x1b6));var _0x6dc4=function(_0x1dceff,_0x2737f6){_0x1dceff=_0x1dceff-0x0;var _0x4057da=_0xdc46[_0x1dceff];return _0x4057da;};'use strict';var _=require('lodash');var util=require(_0x6dc4('0x0'));var logger=require(_0x6dc4('0x1'))(_0x6dc4('0x2'));var moment=require('moment');var BPromise=require(_0x6dc4('0x3'));var rp=require(_0x6dc4('0x4'));var fs=require('fs');var path=require(_0x6dc4('0x5'));var rimraf=require('rimraf');var config=require(_0x6dc4('0x6'));var attributes=require(_0x6dc4('0x7'));module[_0x6dc4('0x8')]=function(_0x1c2e72,_0x3562cc){return _0x1c2e72[_0x6dc4('0x9')](_0x6dc4('0xa'),attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});};