Built motion from commit (unavailable).|2.5.1
[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 _0x609d=['../../config/logger','moment','bluebird','path','../../config/environment','exports','Template','lodash'];(function(_0x3dc6e0,_0x48defd){var _0xc9be48=function(_0x2ae4b2){while(--_0x2ae4b2){_0x3dc6e0['push'](_0x3dc6e0['shift']());}};_0xc9be48(++_0x48defd);}(_0x609d,0xf7));var _0xd609=function(_0xc8ffc4,_0x2cea71){_0xc8ffc4=_0xc8ffc4-0x0;var _0x48e8e6=_0x609d[_0xc8ffc4];return _0x48e8e6;};'use strict';var _=require(_0xd609('0x0'));var util=require('util');var logger=require(_0xd609('0x1'))('api');var moment=require(_0xd609('0x2'));var BPromise=require(_0xd609('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd609('0x4'));var rimraf=require('rimraf');var config=require(_0xd609('0x5'));var attributes=require('./template.attributes');module[_0xd609('0x6')]=function(_0x36f7ca,_0x4509a7){return _0x36f7ca['define'](_0xd609('0x7'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});};