a75a8ef88553dace71138d3b0f90b222a98c9aeb
[motion2.git] / server / api / template / template.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 _0x827c=['lodash','moment','bluebird','request-promise','path','rimraf','../../config/environment','./template.attributes','exports','define','Template'];(function(_0x501c07,_0x1ab123){var _0x73f130=function(_0x2469b7){while(--_0x2469b7){_0x501c07['push'](_0x501c07['shift']());}};_0x73f130(++_0x1ab123);}(_0x827c,0xb0));var _0xc827=function(_0x5f17ed,_0x3624d7){_0x5f17ed=_0x5f17ed-0x0;var _0x9a0f7b=_0x827c[_0x5f17ed];return _0x9a0f7b;};'use strict';var _=require(_0xc827('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xc827('0x1'));var BPromise=require(_0xc827('0x2'));var rp=require(_0xc827('0x3'));var fs=require('fs');var path=require(_0xc827('0x4'));var rimraf=require(_0xc827('0x5'));var config=require(_0xc827('0x6'));var attributes=require(_0xc827('0x7'));module[_0xc827('0x8')]=function(_0x23a297,_0x414ade){return _0x23a297[_0xc827('0x9')](_0xc827('0xa'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};