9a143341facec102dde293a9082b0e459f2fda95
[motion2.git] / server / api / crmNation / crmNation.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 _0x395a=['./crmNation.attributes','exports','define','CrmNation','crm_nations','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x2d595f,_0xdfdb46){var _0x1e26a2=function(_0x17f26a){while(--_0x17f26a){_0x2d595f['push'](_0x2d595f['shift']());}};_0x1e26a2(++_0xdfdb46);}(_0x395a,0xd7));var _0xa395=function(_0x4e21ba,_0x18097f){_0x4e21ba=_0x4e21ba-0x0;var _0x55b94b=_0x395a[_0x4e21ba];return _0x55b94b;};'use strict';var _=require('lodash');var util=require(_0xa395('0x0'));var logger=require(_0xa395('0x1'))(_0xa395('0x2'));var moment=require(_0xa395('0x3'));var BPromise=require(_0xa395('0x4'));var rp=require(_0xa395('0x5'));var fs=require('fs');var path=require(_0xa395('0x6'));var rimraf=require(_0xa395('0x7'));var config=require(_0xa395('0x8'));var attributes=require(_0xa395('0x9'));module[_0xa395('0xa')]=function(_0x5b6bf2,_0x2f6c59){return _0x5b6bf2[_0xa395('0xb')](_0xa395('0xc'),attributes,{'tableName':_0xa395('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};