0f46175607061a518ee7d1c3430cb9e1e4549216
[motion2.git] / server / api / saOrder / saOrder.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 _0x1cd3=['moment','bluebird','path','rimraf','./saOrder.attributes','exports','SAOrder','lodash','util','../../config/logger','api'];(function(_0x41d4f5,_0x266073){var _0x3f39e2=function(_0x21f20e){while(--_0x21f20e){_0x41d4f5['push'](_0x41d4f5['shift']());}};_0x3f39e2(++_0x266073);}(_0x1cd3,0xee));var _0x31cd=function(_0x7a8f42,_0x38406d){_0x7a8f42=_0x7a8f42-0x0;var _0x883772=_0x1cd3[_0x7a8f42];return _0x883772;};'use strict';var _=require(_0x31cd('0x0'));var util=require(_0x31cd('0x1'));var logger=require(_0x31cd('0x2'))(_0x31cd('0x3'));var moment=require(_0x31cd('0x4'));var BPromise=require(_0x31cd('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x31cd('0x6'));var rimraf=require(_0x31cd('0x7'));var config=require('../../config/environment');var attributes=require(_0x31cd('0x8'));module[_0x31cd('0x9')]=function(_0x5eac36,_0x4a81dd){return _0x5eac36['define'](_0x31cd('0xa'),attributes,{'tableName':'sa_orders','paranoid':![],'indexes':[],'timestamps':!![]});};