7b7d0a1905f6a7ca3b2e28e66ab50e523f97361c
[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 _0x8729=['tools_templates','lodash','util','api','bluebird','request-promise','path','rimraf','../../config/environment','define','Template'];(function(_0x476a2f,_0x298b72){var _0x2df32c=function(_0x5de323){while(--_0x5de323){_0x476a2f['push'](_0x476a2f['shift']());}};_0x2df32c(++_0x298b72);}(_0x8729,0x1f0));var _0x9872=function(_0x540135,_0x20d000){_0x540135=_0x540135-0x0;var _0x626b6=_0x8729[_0x540135];return _0x626b6;};'use strict';var _=require(_0x9872('0x0'));var util=require(_0x9872('0x1'));var logger=require('../../config/logger')(_0x9872('0x2'));var moment=require('moment');var BPromise=require(_0x9872('0x3'));var rp=require(_0x9872('0x4'));var fs=require('fs');var path=require(_0x9872('0x5'));var rimraf=require(_0x9872('0x6'));var config=require(_0x9872('0x7'));var attributes=require('./template.attributes');module['exports']=function(_0x4b020e,_0x37ff17){return _0x4b020e[_0x9872('0x8')](_0x9872('0x9'),attributes,{'tableName':_0x9872('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};