PageSourceSearch

https://posidelkino.ru/assets/js/services/shopsiteitems.js?

js posidelkino.ru collected 2026-10-07 23:00:30 UTC 5,884 bytes, 1 lines download raw bytes

1angular.module("YepCom").service("Shopsiteitems",function(Restangular,$translate){var shopsiteitems=Restangular.all("shopsiteitems"),vypadayuschiySpisok="",radioKnopki="",razmer="",flazhki="",vyborDaty="",translateYepCom=function(translations){return vypadayuschiySpisok=translations.vypadayuschiy_spisok,radioKnopki=translations.radio_knopki,razmer=translations.razmer,flazhki=translations.flazhki,vyborDaty=translations.vybor_daty};return $translate(["vypadayuschiy_spisok","radio_knopki","razmer","flazhki","vybor_daty"]).then(translateYepCom,translateYepCom),{getShopItem:function(uuid,category_id,item_id){return shopsiteitems.customGET(uuid,{category_id:category_id,item_id:item_id}).then(function(res){return res})},createShopItem:function(uuid,category_id,item_name,item_desc,item_amount,item_price,item_oldprice,item_sku){return shopsiteitems.post({id:uuid,category_id:category_id,item:{name:item_name,description:item_desc,amount:item_amount,price:item_price,oldprice:item_oldprice,sku:item_sku,publicated:!1}}).then(function(res){return res})},updateShopItem:function(uuid,category_id,item_id,item_name,item_desc,item_amount,item_price,item_oldprice,item_sku,item_publicated,images){var cat_id=11<arguments.length&&void 0!==arguments[11]?arguments[11]:null,colors=arguments[12];return shopsiteitems.customPUT({category_id:category_id,item_id:item_id,cat_id:cat_id,item:{name:item_name,description:item_desc,amount:item_amount,price:item_price,oldprice:item_oldprice,sku:item_sku,publicated:item_publicated,images:images,colors:colors}},uuid).then(function(res){return res})},deleteShopItem:function(uuid,category_id,item_id){return Restangular.one("shopsiteitems").customDELETE(uuid,{category_id:category_id,item_id:item_id}).then(function(res){return res})},deleteProductImage:function(uuid,usershopimage_id){return Restangular.one("usershopimages").customDELETE(usershopimage_id).then(function(res){return res})},getAllItems:function(uuid,lastid){return shopsiteitems.getList({id:uuid,lastid:lastid=lastid<0?0:lastid}).then(function(res){return res})},copyShopItem:function(uuid,category_id,item_id){return Restangular.one("shopsiteitems").customPOST({id:uuid,category_id:category_id,item_id:item_id},"copy").then(function(res){return res})},getYmlLinkUrl:function(uuid){return shopsiteitems.customGET("getymlurl",{id:uuid}).then(function(res){return res})},startImport:function(siteid,id,goodsfields){return Restangular.one("api/v1/importgoods").customPUT({siteid:siteid,goodsfields:goodsfields},id).then(function(res){return res})},getImportState:function(id){return Restangular.one("api/v1/importgoods").customGET(id,"").then(function(res){return res})},getAllCount:function(uuid){return shopsiteitems.customGET("allcount",{id:uuid}).then(function(res){return res})},setCurrency:function(uuid,currency){return Restangular.one("shopsites/"+uuid).customPUT({currency:currency}).then(function(res){return res})},setViewType:function(uuid,viewtype){return Restangular.one("shopsites/"+uuid).customPUT({viewtype:viewtype}).then(function(res){return res})},setShowSearchBar:function(uuid,flag){return Restangular.one("shopsites/"+uuid).customPUT({showsearchbar:flag}).then(function(res){return res})},searchProduct:function(query){return Restangular.one("previewshopsiteitems").customGET("",{query:query}).then(function(res){return res})},searchProductOwner:function(query,uuid){var category_id=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Restangular.one("/api/v1/shopsitecategories/searchitem").post("",{id:uuid,category_id:category_id,query:query}).then(function(res){return res})},setShowAddrField:function(uuid,flag){return Restangular.one("shopsites/"+uuid).customPUT({showaddrfield:flag}).then(function(res){return res})},setViewOptions:function(uuid,viewoptions){var category=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,currency=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,name=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null;return Restangular.one("shopsites/"+uuid).customPUT({viewoptions:viewoptions,category:category,currency:currency,name:name}).then(function(res){return res})},getAllItemsLimited:function(uuid,lastid){return lastid<0&&(lastid=0),Restangular.one("shopsiteitems").customGET("allindexlimited",{id:uuid,lastid:lastid}).then(function(res){return res})},getModificators:function(id,uuid){return Restangular.one("/api/v1/modificators").customGET(id,{website_uuid:uuid}).then(function(res){return res})},addModificator:function(id,website_uuid,name,type){return Restangular.one("/api/v1/modificators").post("",{id:id,website_uuid:website_uuid,name:name,type:type}).then(function(res){return res})},modTypes:function(){return[{id:1,name:vypadayuschiySpisok},{id:2,name:radioKnopki},{id:3,name:razmer},{id:4,name:flazhki},{id:5,name:vyborDaty}]},setCustomRateCurrency:function(uuid,value){return Restangular.one("shopsites/"+uuid).customPUT({customratevalue:value}).then(function(res){return res})},setSourceRateCurrency:function(uuid,value){return Restangular.one("shopsites/"+uuid).customPUT({sourceratecurrency:value}).then(function(res){return res})},setShopCartPosition:function(uuid,posId){return Restangular.one("shopsites/"+uuid).customPUT({shop_cart_position:posId}).then(function(res){return res})},getShopMails:function(website_uuid){return Restangular.one("/api/v1/shopmails").customGET("",{website_id:website_uuid}).then(function(res){return res})},addNewEmailManager:function(website_uuid,address){var name=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";return Restangular.one("/api/v1/shopmails").post("",{website_id:website_uuid,name:name,address:address}).then(function(res){return res})},deleteEmailManager:function(website_uuid,id){return Restangular.one("/api/v1/shopmails/").customDELETE(id,{website_id:website_uuid}).then(function(res){return res})}}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.