0fb283ed5d9a46a6144e44b7e2073c5cc41647da
[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 _0x8cca=['lodash','util','api','bluebird','request-promise','path','rimraf','../../config/environment','./template.attributes','exports','tools_templates'];(function(_0x2837f1,_0x571485){var _0x5aeb48=function(_0x2ee56a){while(--_0x2ee56a){_0x2837f1['push'](_0x2837f1['shift']());}};_0x5aeb48(++_0x571485);}(_0x8cca,0x197));var _0xa8cc=function(_0x4f44e5,_0x1ac097){_0x4f44e5=_0x4f44e5-0x0;var _0x275c08=_0x8cca[_0x4f44e5];return _0x275c08;};'use strict';var _=require(_0xa8cc('0x0'));var util=require(_0xa8cc('0x1'));var logger=require('../../config/logger')(_0xa8cc('0x2'));var moment=require('moment');var BPromise=require(_0xa8cc('0x3'));var rp=require(_0xa8cc('0x4'));var fs=require('fs');var path=require(_0xa8cc('0x5'));var rimraf=require(_0xa8cc('0x6'));var config=require(_0xa8cc('0x7'));var attributes=require(_0xa8cc('0x8'));module[_0xa8cc('0x9')]=function(_0x18f436,_0x19ed72){return _0x18f436['define']('Template',attributes,{'tableName':_0xa8cc('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};