Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / saProduct / saProduct.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 _0x966e=['path','rimraf','./saProduct.attributes','exports','define','SAProduct','sa_products','util','../../config/logger','api','bluebird'];(function(_0x55af51,_0xb02398){var _0x7b2eef=function(_0x300b4a){while(--_0x300b4a){_0x55af51['push'](_0x55af51['shift']());}};_0x7b2eef(++_0xb02398);}(_0x966e,0xc2));var _0xe966=function(_0x441819,_0x5b8d0a){_0x441819=_0x441819-0x0;var _0x478882=_0x966e[_0x441819];return _0x478882;};'use strict';var _=require('lodash');var util=require(_0xe966('0x0'));var logger=require(_0xe966('0x1'))(_0xe966('0x2'));var moment=require('moment');var BPromise=require(_0xe966('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe966('0x4'));var rimraf=require(_0xe966('0x5'));var config=require('../../config/environment');var attributes=require(_0xe966('0x6'));module[_0xe966('0x7')]=function(_0x19127b,_0x1f0097){return _0x19127b[_0xe966('0x8')](_0xe966('0x9'),attributes,{'tableName':_0xe966('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};