Built motion from commit 71df090e.|2.6.31
[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 _0x0c15=['request-promise','path','rimraf','../../config/environment','./squareMessage.attributes','exports','define','SquareMessage','square_messages','lodash','util','../../config/logger','bluebird'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x0c15,0xbf));var _0x50c1=function(_0x38d90b,_0x13c787){_0x38d90b=_0x38d90b-0x0;var _0x1dd83c=_0x0c15[_0x38d90b];return _0x1dd83c;};'use strict';var _=require(_0x50c1('0x0'));var util=require(_0x50c1('0x1'));var logger=require(_0x50c1('0x2'))('api');var moment=require('moment');var BPromise=require(_0x50c1('0x3'));var rp=require(_0x50c1('0x4'));var fs=require('fs');var path=require(_0x50c1('0x5'));var rimraf=require(_0x50c1('0x6'));var config=require(_0x50c1('0x7'));var attributes=require(_0x50c1('0x8'));module[_0x50c1('0x9')]=function(_0x1edfc0,_0x28603d){return _0x1edfc0[_0x50c1('0xa')](_0x50c1('0xb'),attributes,{'tableName':_0x50c1('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};